-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
363 lines (308 loc) · 11.3 KB
/
styles.css
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,500;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:[email protected]&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:[email protected]&display=swap');
/* Import font from local source */
@font-face {
font-family: 'FiraCode-Retina';
src: local('Fira Code Retina'), local('FiraCode-Retina'), url('/fonts/FiraCode-Retina.ttf') format('truetype');
}
h1, .h1 {
text-transform: uppercase !important;
font-family: "Oswald", sans-serif;
font-size: 40px !important;
font-weight: 540;
font-optical-sizing: auto;
color: #1E4477 !important;
}
/* simple straight border line */
/*
border-bottom: 2px solid #1E4477 !important;
border-bottom: 2px solid !important;
*/
/* h2 color gradient border line with no taper */
/*
h2, .h2 {
font-family: "Noto Sans", sans-serif;
font-weight: 540 !important;
border-bottom: 4px solid !important;
padding-bottom: .5rem;
color: #1E4477 !important;
border-image: linear-gradient(to right, #415D8EFF, #859CCDFF , #B1BEE7FF, #fffaf0, #fffaf0, #fffaf0, #fffaf0) !important;
border-image-slice: .65 !important;
}
*/
h2, .h2 {
font-family: "Caveat", sans-serif;
font-weight: 540 !important;
font-size: 42px;
font-optical-sizing: auto;
color: #1E4477 !important;
padding-bottom: 0.5rem;
position: relative;
display: inline-block; /* Ensures proper width */
}
/* pseudo-element */
/* creates color gradient and tapers the thickness (clip-path) */
h2::after {
content: "";
display: block;
width: 100%;
height: 7px;
background: linear-gradient(to right, #415D8E, #859CCD, #B1BEE7, #fffaf0);
position: absolute; /* ensures the border stays underneath the h2 and doesn’t affect layout. */
bottom: -2px; /* position it just below the text */
left: 0;
clip-path: polygon(0% 0%, 100% 66%, 100% 100%, 0% 100%);
border-radius: 6px;
}
h3, .h3 {
font-family: "Noto Sans", sans-serif;
font-weight: 530 !important;
font-size: calc(1.25rem + 0.24vw);
font-optical-sizing: auto;
border-bottom: 2px solid #dee2e6;
padding-bottom: .5rem;
color: #365586FF !important;
}
h4, h5, .h4, .h5 {
font-family: "Noto Sans", sans-serif;
font-optical-sizing: auto;
color: #365586FF !important;
border-bottom: 2px solid #dee2e6;
padding-bottom: .1rem;
width: -moz-max-content;
width: -webkit-max-content;
width: max-content;
}
h6, .h6 {
font-family: "Noto Sans", sans-serif;
font-optical-sizing: auto;
color: #500E00FF !important;
border-bottom: 2px solid #500E00FF !important;
padding-bottom: .1rem;
width: -moz-max-content;
width: -webkit-max-content;
width: max-content;
}
/* highlight effect around Examples */
.ribbon-highlight{
position:relative;
margin:0.1em;
color: white;
padding: 0 14px;
}
.ribbon-highlight:before{
content:"";
z-index:-1;
left:-0.04em;
top:0.25em;
border-width:0.5em;
border-style: solid;
border-color: #44883C;
position:absolute;
width:100%;
border-left-color:transparent;
border-right-color:transparent;
}
/* styling for function argument names */
.arg-text {
font-family: 'Roboto Mono', monospace;
font-size: 90%;
}
/* styling for data variable names */
.var-text {
font-family: 'Merienda', cursive;
font-size: 90%;
}
/* code folding html tag */
details > summary {
color: #365586FF;
}
/* styling for inline code text */
code {
display: inline-block;
margin: 0 .2em !important;
padding: 1px 6px !important;
color: #365586FF;
background: #FFFDF9FF !important;
border: 1px solid #DDD;
box-shadow: 1px 1px 0 #B2ADA3FF, 1px 1px 0 #ddd;
}
/* code tag affects inline AND block code, so I'm undoing the above style changes for block code */
pre code {
background: #fff !important;
border: none;
box-shadow: none;
}
/* "note" callout; banner color is in scss file */
.callout-note {
color: #1E4477;
font-weight: 100 !important;
}
.callout-style-default {
background-color: #FFFDF9FF;
}
/* use this for llm prompts; wanted the text wrap; matches .callout-note appearance="minimal" */
.callout.callout-style-simple {
font-family: 'FiraCode-Retina';
color: #404d59;
background-color: #fff;
border-left: 1px solid #dee2e6 !important;
}
/* package icon for tip callout; you get this by copying svg path and doing a little manipulation */
/* Claude's changes:
Removed unnecessary XML attributes and groups
Consolidated the paths
Set width and height to 16
Kept the original viewBox to maintain the proportions
*/
div.callout-tip.callout-titled .callout-icon::before {
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 512 512"><polygon style="fill:%237E4F1F" points="511.516,107.105 511.788,107.036 264.065,31.004 0.479,106.898 0,106.759 0,411.849 238.676,480.721 238.676,480.159 238.888,480.996 512,412.125 512,107.036"/><polygon style="fill:%23EDA637" points="264.065,31.004 0,107.036 238.676,175.907 511.788,107.036"/><polygon style="fill:%23C27526" points="238.888,480.996 512,412.125 512,107.036 238.888,175.907"/><path style="fill:%23FFEC99" d="M193.016,51.462L78.638,84.393l230.233,73.866v50.416c0,3.323,1.541,6.458,4.172,8.487 c2.631,2.029,6.053,2.725,9.268,1.881l99.058-25.986c4.713-1.237,7.999-5.495,7.999-10.369v-54.816L193.016,51.462z"/><path style="fill:%23FFDC35" d="M486.158,374.572c0,6.29-4.278,11.775-10.378,13.307l-52.647,13.55 c-2.779,0.698-5.736,0.663-8.41-0.367c-5.363-2.066-8.677-7.119-8.677-12.576v-56.226c0-6.29,4.278-11.775,10.378-13.307 l52.647-13.55c2.779-0.698,5.736-0.663,8.41,0.367c5.363,2.066,8.677,7.119,8.677,12.576V374.572z M429.367,182.689c0,4.872-3.287,9.132-7.999,10.368l-99.058,25.986c-3.214,0.843-6.637,0.148-9.268-1.881-2.631-2.029-4.172-5.164-4.172-8.487v-50.416l120.497-30.386v54.816z"/><path style="fill:%23DF7400" d="M186.692,292.407l-40.804-11.978c-5.273-1.548-8.895-6.385-8.895-11.881v-39.76 c0-8.263,7.941-14.208,15.87-11.881l40.804,11.978c5.273,1.548,8.895,6.385,8.895,11.881v39.76 c0,8.265-7.94,14.209-15.87,11.881z"/></svg>');
}
/* old color for title and icons: #0064B6FF */
/* Book title */
.sidebar-title>a {
color: #1E4477;
}
/* icons in side panel e.g. home, other notebooks, github, reader-mode */
#quarto-sidebar > div.pt-lg-2.mt-2.text-left.sidebar-header > div > div > a > i{
color: #1E4477;
}
/* document table of contents sidebar */
/* selected ("active") */
.sidebar nav[role=doc-toc] ul>li>a.active, .sidebar nav[role=doc-toc] ul>li>ul>li>a.active {
border-left: 1px solid #007BB7 !important;
color: #007BB7 !important;
}
/* hover */
.sidebar nav[role=doc-toc] ul>li>a:hover, .sidebar nav[role=doc-toc] ul>li>ul>li>a:hover {
color: #007BB7 !important;
}
/* --------------------------------MathJax LateX attributes ------------------------------------- */
.math.inline .MathJax {
font-size: 100% !important;
}
.math.display .MathJax {
/*background-color: #FFFDFAFF !important*/
background: #C9D6FF; /* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #C9D6FF, #E2E2E2); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #C9D6FF, #E2E2E2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: #1E4477 !important;
overflow: auto;
}
/* aligns latex equation block text to the left */
mjx-container[jax="CHTML"][display="true"] {
text-align: left !important;
width: -moz-max-content;
width: -webkit-max-content; /* all 3 "widths" make the container the width of the text, just for different browsers */
width: max-content;
padding: 10px; /* adds space around the equations */
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4);
border-radius: 10px; /* rounds edges of box; higher makes them more rounded */
}
/* styles code annotation */
/* outside code block */
dl.code-annotation-container-grid dt {
color: #007BB7;
border: solid #007BB7 1px;
}
/* inside code block */
code.sourceCode .code-annotation-anchor {
font-family: "Fira Code Retina";
color: #007BB7;
border: solid #007BB7 1px;
border-radius: 50%;
height: 18px;
width: 18px;
font-size: 9px;
margin-top: 2px;
}
/* outlier note; using equation id to specify a specific equation. There's some extra space on the left side that needs removed.
#eq-grubbstest > span > mjx-container > mjx-math > mjx-mtable {
text-align: left;
}
/* for all equations using equation ids
mjx-container [width="full"] {
width: 100%;
text-align: left;
}
*/
/* -------------------------------------------- Scrollbars ------------------------------------------------*/
/* page and code block scroll bars' color */
/* also narrows and rounds bar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
-webkit-border-radius: 5px;
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 5px;
border-radius: 5px;
/*background: #335f83; */
background: #B1BEE7FF;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
/* --------- Panel Tabset ------------- */
.tab-content {
background-color: #E3DED4FF;
border-color: #E3DED4FF #B2ADA3FF #B2ADA3FF ;
border-top-right-radius: .3rem;
border-bottom-left-radius: .3rem;
border-bottom-right-radius: .3rem;
box-shadow: 0 0.3rem 0.6rem #9A958BFF;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
color: #882815 ;
font-size: smaller;
font-weight: bold;
background-color: #E3DED4FF ;
border-color: #882815 #B2ADA3FF #E3DED4FF ;
border-top: 3px solid #882815 ;
}
.nav-tabs .nav-link {
color: #9B3B2DFF;
font-size: smaller;
background: none;
border-top-left-radius: .30rem;
border-top-right-radius: .30rem;
}
/* ---------------------- TOC ------------------------- */
/* I styled the h2 header border line but the TOC title inherited that styling which I didn't like.*/
/* Removes body's h2 border line styling and add a simple blue border line */
/* Remove the existing border for TOC h2 elements */
.sidebar .toc-actions h2::after,
.sidebar .toc-actions .h2::after,
.sidebar .quarto-code-links h2::after,
.sidebar .quarto-code-links .h2::after,
.sidebar .quarto-other-links h2::after,
.sidebar .quarto-other-links .h2::after,
.sidebar .quarto-alternate-notebooks h2::after,
.sidebar .quarto-alternate-notebooks .h2::after,
.sidebar .quarto-alternate-formats h2::after,
.sidebar .quarto-alternate-formats .h2::after,
.sidebar nav[role=doc-toc] > h2::after,
.sidebar nav[role=doc-toc] > .h2::after {
display: none; /* Remove the existing border */
}
/* Add a custom border for TOC h2 elements */
.sidebar .toc-actions h2,
.sidebar .toc-actions .h2,
.sidebar .quarto-code-links h2,
.sidebar .quarto-code-links .h2,
.sidebar .quarto-other-links h2,
.sidebar .quarto-other-links .h2,
.sidebar .quarto-alternate-notebooks h2,
.sidebar .quarto-alternate-notebooks .h2,
.sidebar .quarto-alternate-formats h2,
.sidebar .quarto-alternate-formats .h2,
.sidebar nav[role=doc-toc] > h2,
.sidebar nav[role=doc-toc] > .h2 {
border-bottom: 2px solid #1E4477;
}