-
Notifications
You must be signed in to change notification settings - Fork 163
/
style.scss
278 lines (227 loc) · 6.63 KB
/
style.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
/*-- scss:defaults --*/
$font-size-root: 16px !default;
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;800&display=swap');
/*-- scss:rules --*/
/* Override font color in Sandstone theme */
.theme-sandstone {
color: #A51C30; /* Set font color to #A51C30 */
}
/*-- scss:defaults --*/
:root {
--link-color: #A51C30; /* Define the CSS variable for link color */
--mermaid-bg-color: #f9fafb; /* Light neutral background */
--mermaid-edge-color: #4b5563; /* Muted dark gray for edges */
--mermaid-node-fg-color: #1f2937; /* Dark gray for node text */
--mermaid-fg-color: #2563eb; /* Primary blue for accents */
--mermaid-fg-color--lighter: #60a5fa; /* Lighter blue for highlights */
--mermaid-fg-color--lightest: #93c5fd; /* Lightest blue for secondary highlights */
--mermaid-font-family: 'Roboto', sans-serif; /* Modern, clean font */
--mermaid-label-bg-color: #e5e7eb; /* Soft gray for label backgrounds */
--mermaid-label-fg-color: #1f2937; /* Dark gray for label text */
--mermaid-node-bg-color: #ffffff; /* White for node backgrounds */
--mermaid-node-fg-color: #1f2937; /* Dark gray for node text */
}
div.sidebar-item-container .active {
font-weight: bold;
}
.sidebar nav[role=doc-toc] ul>li>a.active, .sidebar nav[role=doc-toc] ul>li>ul>li>a.active{
font-weight: bold;
}
.sidebar nav[role="doc-toc"] ul > li > a.active {
color: #A51C30 !important;
background-color: snow;
font-weight: bold;
}
/*-- scss:defaults --*/
/*-- scss:rules --*/
/* Headings ------------------------------------------------------ */
#title-block-header.quarto-title-block.default .quarto-title h1.title {
margin-bottom: 0.5rem;
}
h2 {
margin-top: 2rem;
margin-bottom: 1rem;
font-size: 1.4rem;
font-weight: 600;
}
h3 { margin-top: 1.5em; font-size: 1.2rem; font-weight: 500; }
h4 { margin-top: 1.5em; font-size: 1.1rem; }
h5 { margin-top: 1.5em; font-size: 1rem; }
/* Code ------------------------------------------------ */
code a:any-link {
text-decoration: underline;
}
/*-- scss:defaults --*/
.figure {
margin: auto;
text-align: left;
}
/* Aligns the caption in margin to the left */
.csl-entry {
display: block;
margin-left: 0;
text-align: left;
}
/* Mixin for callout styling */
@mixin base-callout {
margin-top: 1em;
margin-bottom: 1em;
border-radius: .25rem;
border-left: solid #acacac .3rem; /* Establishes base left border */
border-right: solid 0.5px silver;
border-top: solid 0.5px silver;
border-bottom: solid 0.5px silver;
}
/* Styling for answer callout body */
.callout-body-container.callout-body {
padding: 0px 0px 0px 23.04px; /* Top Right Bottom Left */
}
/* Slide callout styling */
div.callout-slide.callout {
@include base-callout;
border-left-color: #8f00ff !important; /* Overrides left border color */
}
div.callout-slide.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "🎫";
margin-right: 10px;
}
/* Video callout styling */
div.callout-video.callout {
@include base-callout;
border-left-color: #8ccd00 !important; /* Overrides left border color */
}
div.callout-video.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "📺";
margin-right: 10px;
}
div.callout-lab.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "🧪";
margin-right: 10px;
}
/* Question callout styling */
div.callout-question.callout {
@include base-callout;
border-left-color: #ff7d00 !important; /* Overrides left border color */
}
div.callout-question.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "❓";
margin-right: 10px;
}
/* Exercise callout styling */
div.callout-colab.callout {
@include base-callout;
border-left-color: #ff7d00 !important; /* Overrides left border color */
}
div.callout-colab.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "👩💻";
margin-right: 10px;
}
/* Answer callout styling */
div.callout-answer.callout {
@include base-callout;
border-left-color: #ffdd00 !important; /* Overrides left border color */
}
div.callout-answer.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "✅";
margin-right: 10px;
}
/* Hint callout styling */
div.callout-hint.callout {
@include base-callout;
border-left-color: #01befe !important; /* Overrides left border color for hint */
}
div.callout-hint.callout > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "🤔";
margin-right: 10px;
}
.callout-toggle::before {
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(52, 58, 64)" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
}
/* styling for giscuss comments */
.giscus{
padding-left: 1em;
padding-right: 1em;
}
/* scrolling windows for long Python scripts in the HTML e-book version */
.scroll-code-block {
max-height: 400px;
overflow-y: auto;
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 10px;
background-color: #f8f8f8;
}
.scroll-code-block pre {
margin: 0;
padding: 0;
border: none;
background-color: transparent;
}
.scroll-code-block code {
display: block;
white-space: pre;
word-wrap: normal;
overflow-x: auto;
}
/* Sidebar customization */
/* Sidebar Container */
.sidebar {
background-color: #F9F9F9; /* Neutral light background */
padding: 20px;
border-right: 1px solid #E0E0E0; /* Light border to define the sidebar */
}
/* Section Headers (PART titles) */
.part {
background-color: #D8C3A5; /* Muted beige-grey */
color: #3B2E2A; /* Rich dark brown */
padding: 4px 6px;
border-radius: 6px;
font-weight: oblique;
margin-bottom: 10px;
}
/* Highlighted PART header (active section) */
.part.active {
background-color: #C4B295; /* Slightly darker beige */
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
/* List Items */
.sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar ul li {
margin: 8px 0;
color: #555555; /* Neutral dark gray */
font-size: 14px;
}
.sidebar ul li a {
text-decoration: none;
color: inherit;
}
.sidebar ul li a:hover {
color: #A51C30; /* Hover effect with the blue tone */
}
/* Active Item Highlight */
.sidebar ul li.active a,
.sidebar ul li a.highlight {
color: #9D3E3E; /* Muted red */
font-weight: bold;
}
/* Responsive Design */
@media (max-width: 768px) {
.sidebar {
display: none; /* Hide sidebar on smaller screens */
}
.sidebar.collapsed {
display: block;
width: 100%;
}
}