generated from tarleb/lua-filter-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathspecimen.sass
197 lines (160 loc) · 3.04 KB
/
specimen.sass
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
/* Noto Sans, Noto Serif and Fira Mono fonts from Google change as needed */
@import url("https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");
// Variables that correspond to the LaTeX font values set in the YAML block
$fontsize: 16px
$mainfont: "Noto Serif", serif
$sansfont: "Noto Sans", sans-serif
$monofont: "Fira Mono", monospace
$linkcolor: blue
$linestretch: 1.25
// Calculate REM font sizes that correspond to LaTeX font sizes
$tiny: calc(1rem / 12) * 6
$xxsmall: calc(1rem / 12) * 8
$xsmall: calc(1rem / 12) * 10
$small: calc(1rem / 12) * 10.95
$normal: calc(1rem / 12) * 12
$large: calc(1rem / 12) * 14.4
$xlarge: calc(1rem / 12) * 17.28
$xxlarge: calc(1rem / 12) * 20.74
$huge: calc(1rem / 12) * 24.88
/* The below styles are not defined in fonts and alignment filter
but are kept here to ease the readability of the rendered HTML content */
body
margin-left: auto
margin-right: auto
font-size: $fontsize
font-family: $mainfont
line-height: $linestretch
width: 60%
span
&.bold,
&.emphasis,
&.italic,
&.lower,
&.medium,
&.monospace,
&.normalfont,
&.sans,
&.serif,
&.slanted,
&.smallcaps,
&.upper,
&.upright,
&.bf,
&.em,
&.it,
&.md,
&.tt,
&.nf,
&.sf,
&.rm,
&.sl,
&.sc,
&.up,
&.tiny,
&.xxsmall,
&.xsmall,
&.small,
&.normal,
&.large,
&.xlarge,
&.xxlarge,
&.huge
color: maroon
.title,
.author,
.date
text-align: center
a
color: $linkcolor
text-decoration: none
a:hover
text-decoration: underline
/* The styles below are for the classes defined in the fonts and alignment
Lua filter. Modify them as required to style the HTML document. */
/* Font Styles */
.bold,
.bf
font-weight: 700
.emphasis,
.italic,
.it,
.slanted,
.sl
font-style: italic
.lower
text-transform: lowercase
.medium,
.md
font-weight: 400
.normalfont,
.nf,
.upright,
.up
font-family: $mainfont
font-style: normal
font-weight: 400
.monospace,
.tt
font-family: $monofont
.sans,
.sf
font-family: $sansfont
.serif,
.rm
font-family: $mainfont
.smallcaps,
.sc
font-variant: small-caps
.upper
text-transform: uppercase
/* Font Sizes relative to a 16px/12pt document
.tiny
font-size: $tiny
.xxsmall
font-size: $xxsmall
.xsmall
font-size: $xsmall
.small
font-size: $small
.normal
font-size: $normal
.large
font-size: $large
.xlarge
font-size: $xlarge
.xxlarge
font-size: $xxlarge
.huge
font-size: $huge
/* Text Alignments */
div
&.center,
&.centering
text-align: center
&.flushright,
&.raggedleft
text-align: right
&.flushleft,
&.raggedright
text-align: left
/* Underline Styles */
span
&.dashuline,
&.dau
text-decoration: underline dashed
&.dotuline,
&.dou
text-decoration: underline dotted
&.uline,
&.u
text-decoration: underline
&.uuline,
&.uu
text-decoration: underline double
&.uwave,
&.uw
text-decoration: underline wavy
&.sout,
&.so
text-decoration: line-through