-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.scss
122 lines (101 loc) · 2.86 KB
/
styles.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*-- scss:defaults --*/
// Colors
$orange: #ff9600 !default;
$light-orange: #ffaa00 !default;
$teal: #00AFD4 !default;
// Navbar
$navbar-bg: $orange !default;
$navbar-hl: $teal !default;
// Links
$link-color: $orange !default;
$link-decoration: none !default;
$link-hover-color: $light-orange !default;
$link-hover-decoration: underline !default;
// Table of contents
$toc-color: $teal !default;
$toc-font-size: 1rem !default;
// Code
$code-color: $teal !default;
$code-bg: #f8f9fa !default; // lighten background for code
$code-block-bg: #f8f9fa !default;
// Fonts
// import google fonts
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;1,6..12,300&display=swap');
//** use Avenir font if available
$headings-font-family: "EB Garamond", serif !default;
$font-family-sans-serif: "Nunito Sans", sans-serif !default;
$font-family-monospace: "Source Code Pro", monospace !default;
$font-size-base: 1.1rem !default;
/*-- scss:rules --*/
//** Article subtitle: Lighten color of subtitle
.lead {
font-size: 1.25rem;
font-weight: 300;
color: #6c757d;
}
// Title block: Category styling
.quarto-title {
.quarto-categories {
display: flex;
flex-wrap: wrap;
row-gap: 0.5em;
column-gap: 0.4em;
padding-bottom: 0.5em;
margin-top: 0.75em;
.quarto-category {
padding: 0.25em 0.75em;
font-size: 0.65em;
font-family: Monospace; // monospace
text-transform: lowercase; // lowercase
border: solid 1px;
border-radius: $border-radius;
opacity: 0.6;
a {
color: inherit;
}
}
}
}
// Listing page: Category styling for right sidebar
#quarto-margin-sidebar {
.quarto-listing-category {
padding-top: 0;
font-family: Monospace;
font-size: 0.85rem;
}
.quarto-listing-category-title {
cursor: pointer;
font-weight: 600;
font-family: Monospace;
font-size: 1rem;
}
}
/*-- scss:mixins --*/
// Listing page: Category styling in post listing
@mixin listing-category {
display: flex;
flex-wrap: wrap;
padding-bottom: 5px;
.listing-category {
color: listing-override-value($theme-name, "category-color", $text-muted);
$val: listing-override-value($theme-name, "category-border", null);
@if $val != null {
border: $val;
} @else {
border: solid 1px $border-color;
}
border-radius: $border-radius;
font-size: 0.65em;
text-transform: lowercase; // lowercase
font-family: Monospace; // monospace
padding-left: 0.5em;
padding-right: 0.5em;
padding-top: 0.15em;
padding-bottom: 0.15em;
cursor: pointer;
margin-right: 4px;
margin-bottom: 4px;
}
}