forked from harvard-edge/cs249r_book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
164 lines (130 loc) · 4.03 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
/*-- 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 */
}
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 --*/
/* 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;
}