-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMADAstyle.scss
218 lines (173 loc) · 3.67 KB
/
MADAstyle.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
/*-- scss:defaults --*/
$link: #307f96;
$heading: #507059;
/*-- scss:rules --*/
a {
color: $link;
}
// heading color
h1, h2, h3, h4, h5, h6 {
color: $heading;
}
// Source code light gray background
div.sourceCode {
background-color: #f7f7f7;
border: 1px solid rgba(204,204,204,.65);
border-radius: .25rem;
}
// Bold the title of the active document in the sidebar
div.sidebar-item-container .active, div.sidebar-item-container .show>.nav-link, div.sidebar-item-container .sidebar-link>code {
font-weight: bold;
}
// Add a little more space between heading and author / date metadata
#title-block-header.quarto-title-block.default .quarto-title .title {
margin-bottom: 0.5em;
}
/* Images ---------------*/
// Quarto figure class contains the figure and the figure-caption. The below rules set the figure class to center-justify both the image and caption. But the text itself in the caption is left-justified.
.figure {
display: grid;
justify-items: center;
}
.figure-caption {
text-align: left;
}
/* .image {
max-width: 100%;
padding: 0;
text-align: center;
display: block;
margin-left: auto;
margin-right: auto;
}
.figure {
max-width: 100%;
text-align: center;
font-style: italic;
border: thin silver solid;
padding: 0.5em;
display: block;
margin-left: auto;
margin-right: auto;
}
*/
/* Image inside figure div, for diagrams ---------------
.figure img {
max-width: 100%;
width: auto;
height: auto;
}
.caption {
padding: 0;
margin: auto;
}
*/
.thumbnail .caption {
padding: 0;
padding-top: 4px;
padding-left: 3px;
font-size: 0.9em;
color: gray;
}
a.thumbnail:hover {
text-decoration: none;
}
/* iframe ---------------*/
.container {
position: relative;
width: 90%;
height: 0;
padding-bottom: 56.25%;
margin-bottom: 1em;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* Various divs to label text, similar to Quarto callout blocks but customized ---------------*/
div.note
{
padding: 0.5em;
margin: 0.5em 0em;
color: #153e67;
background-color: #dde8f6;
border: solid 5px #ecf4ff;
border-radius: 10px;
}
div.warning
{
padding: 0.5em;
margin: 0.5em 0em;
color: #6c1f0e;
background-color: #ffece7;
border: solid 5px #fff4f2;
border-radius: 10px;
}
div.emphasis
{
padding: 0.5em;
margin: 0.5em 0em;
color: #145233;
background-color: #d6f5e6;
border: solid 5px #33cc80;
border-radius: 10px;
}
div.instruction
{
padding: 0.5em;
margin: 0.5em 0em;
color: #145233;
background-color: #d6f5e6;
border: solid 5px #33cc80;
border-radius: 10px;
}
div.prompt
{
padding: 0.5em;
margin: 0.5em 0em;
color: black;
background-color: #c7dcf2;
border: solid 5px #0c7ef5;
border-radius: 10px;
}
div.output
{
padding: 0.5em;
margin: 0.5em 0;
color: black;
background-color: #d0f7e2;
border: solid 5px #029645;
border-radius: 10px;
}
/* -----------div tips------------- */
/* adapted from */
/* http://desiree.rbind.io/post/2019/making-tip-boxes-with-bookdown-and-rmarkdown/ */
/*
div.puzzle, div.fyi, div.demo, div.note {
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
color: #1f5386;
background-color: #bed3ec;
border: solid 5px #dfedff;
}
div.puzzle {
background-image: url("./media/yourturn.png");
}
div.fyi {
background-image: url("./media/fyi.png");
}
div.demo {
background-image: url("./media/livecode.png");
}
div.note {
background-image: url("./media/lightbulb.png");
}
*/