-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.scss
197 lines (161 loc) · 3.33 KB
/
custom.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/*-- scss:defaults --*/
$kobe: #8F2400 !default;
$etonblue: #8FCB9B !default;
$celadonblue: #3A7CA5 !default;
$ochre: #C4761C !default;
$midnight: #6E3371 !default;
$sealbrown: #661A00 !default;
$primary: $kobe !default;
$success: $etonblue !default;
$info: $celadonblue !default;
$warning: $ochre !default;
$danger: $midnight !default;
/*-- scss:rules --*/
.kobe {
color: $kobe;
}
.etonblue {
color: $etonblue;
}
.celadonblue {
color: $celadonblue;
}
.ochre {
color: $ochre;
}
.midnight {
color: $midnight;
}
.sealbrown {
color: $sealbrown;
}
strong, b, a {
color: $primary;
}
.disclaimer a {
color: var(--bs-secondary-color) !important;
}
.navbar {
background-color: #fff;
color: rgba(0, 0, 0, .6);
border-color: #dedede;
}
a:not(.navbar-brand, .nav-link, .btn):hover,
a:not(.navbar-brand, .nav-link, .btn):hover>* {
color: $sealbrown;
}
.sidebar nav[role=doc-toc] ul>li>a.active {
border-left: 1px solid $primary;
color: $primary !important;
}
.dropdown-menu {
--bs-dropdown-link-hover-color: #fff;
--bs-dropdown-link-hover-bg: rgba(85, 85, 85, 0.75);
}
.dropdown-menu .dropdown-item:hover .dropdown-text {
color: white;
}
/* about page */
div.quarto-about-trestles {
padding-top: 0 !important;
}
div.quarto-about-trestles .about-entity .about-image {
margin-top: 1.5em;
}
@media (min-width: 992px) {
div.quarto-about-trestles .about-contents {
border-left: none;
}
}
/*
table stuff
all tables are two column
*/
.table tr td:first-child {
padding-left: 0 !important;
}
.table tr td:last-child {
padding-right: 0 !important;
}
.table>tbody {
border-top: none;
}
.table>:not(:first-child) {
border-top-width: 0px;
}
thead, tbody, tfoot, tr, td, th {
border-style: none;
}
/*
A Frankenstein'd list to hold cv list items
Hierarchy:
blocks
|--> block-year
|--> block-row = {date + details}
|--> block-row
|--> block-year
|--> block-row
|--> block-row
This makes it easier to handle page breaks and CSS styling.
*/
:root{
--decorator-horizontal-margin: 0;
--row-blocks-padding-top: 0;
--date-block-width: 0.6in;
--main-blocks-title-icon-offset-left: calc(-17pt - 0.25 * var(--root-font-size));
}
.blocks {
margin-top: 1em;
margin-bottom: 0.75rem;
}
/* hide all dates in block year except the first one */
.block-year .block-row:not(:first-child) .date p {
display: none;
}
.block-row {
display: flex;
flex-flow: row nowrap;
break-inside: avoid;
padding-bottom: 1rem;
vertical-align: top;
align-items: start;
}
.blocks p {
margin: 0;
padding: 0;
vertical-align: top;
}
.date{
flex: 0 0 var(--date-block-width);
padding-top: var(--row-blocks-padding-top) !important;
padding-right: var(--decorator-horizontal-margin);
text-align: left;
max-width: var(--date-block-width);
vertical-align: top;
top: 0;
}
.details{
vertical-align: top;
top: 0;
}
.buttons {
margin-top: 0.5rem;
}
@media (max-width: 480px) {
.buttons .btn span {
display: none;
}
}
/* this is for orienting icons horizontally in navbar dropdown */
#navbarCollapse ul:nth-child(2) {
flex-direction: row;
-webkit-flex-direction: row;
}
section.footnotes {
ol li:not(:first-child) {
margin-top: 0.8em;
}
ul li:not(:first-child) {
margin-top: 0.8em;
}
}