-
Notifications
You must be signed in to change notification settings - Fork 5
/
base.scss
144 lines (121 loc) · 2.23 KB
/
base.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
// Base element style overrides
// stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id
* {
box-sizing: border-box;
}
html {
@include fs-4;
scroll-behavior: smooth;
}
body {
font-family: Palatino, $body-font-family;
font-size: inherit;
line-height: $body-line-height;
color: $body-text-color;
background-color: $body-background-color;
overflow-wrap: break-word;
}
ol,
ul,
dl,
pre,
address,
blockquote,
table,
div,
hr,
form,
fieldset,
noscript .table-wrapper {
margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
#toctitle {
margin-top: 0;
margin-bottom: 1em;
font-weight: 500;
line-height: $body-heading-line-height;
color: $body-heading-color;
}
#markdown-toc {
text-transform: capitalize;
}
p {
margin-top: 1em;
margin-bottom: 1em;
}
a {
color: $link-color;
text-decoration: none;
}
a:not([class]) {
text-decoration: underline;
text-decoration-color: $border-color;
text-underline-offset: 2px;
&:hover {
text-decoration-color: rgba($link-color, 0.45);
}
}
code {
font-family: $mono-font-family;
font-size: 0.75em;
line-height: $body-line-height;
}
figure,
pre {
margin: 0;
}
figure {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
img,
video,
svg {
margin: auto;
}
}
li {
margin: 0.25em 0;
}
img {
max-width: 100%;
height: auto;
justify-content: center;
}
hr {
height: 1px;
padding: 0;
margin: $sp-6 0;
background-color: $border-color;
border: 0;
}
// adds a GitHub-style sidebar to blockquotes
blockquote {
margin: 10px 0;
// resets user-agent stylesheets for blockquotes
margin-block-start: 0;
margin-inline-start: 0;
padding-left: 15px;
border-left: 3px solid $border-color;
}
// GradML modification: Add automatic counters to theorem
// Note that the theorem cannot be nested within another element for this numbering to work
main {
counter-reset: theorems;
}
// We add two .theorem's here to increase CSS specificity
.theorem.theorem[theorem-name]::before {
counter-increment: theorems;
content: "Theorem " counter(theorems) " (" attr(theorem-name) "). ";
}
.theorem.theorem::before {
counter-increment: theorems;
content: "Theorem " counter(theorems) ". ";
}