still working on the curriculum page. Added signature to every post. Added categories...
[theme-danix.xyz.git] / assets / sass / base / _typography.scss
CommitLineData
748286b5 1///\r
2/// Forty by HTML5 UP\r
3/// html5up.net | @ajlkn\r
4/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)\r
5///\r
6\r
7/* Type */\r
8\r
9 body, input, select, textarea {\r
cb4379e1 10 color: _palette_light(fg);\r
11 @media screen and (prefers-color-scheme: dark) {\r
12 color: _palette_dark(fg);\r
13 }\r
748286b5 14 font-family: _font(family);\r
15 font-size: 17pt;\r
16 font-weight: _font(weight);\r
17 letter-spacing: _font(letter-spacing);\r
18 line-height: 1.65;\r
19\r
20 @include breakpoint('<=xlarge') {\r
21 font-size: 14pt;\r
22 }\r
23\r
24 @include breakpoint('<=large') {\r
25 font-size: 12pt;\r
26 }\r
27\r
28 @include breakpoint('<=xxsmall') {\r
29 font-size: 11pt;\r
30 }\r
31 }\r
32\r
33 a {\r
34 @include vendor('transition', (\r
35 'color #{_duration(transition)} ease-in-out',\r
36 'border-bottom-color #{_duration(transition)} ease-in-out'\r
37 ));\r
38 border-bottom: dotted 1px;\r
39 color: inherit;\r
40 text-decoration: none;\r
41\r
42 &:hover {\r
43 border-bottom-color: transparent;\r
cb4379e1 44 color: _palette_light(highlight) !important;\r
45 @media screen and (prefers-color-scheme: dark) {\r
46 color: _palette_dark(highlight);\r
47 }\r
748286b5 48 }\r
49\r
50 &:active {\r
cb4379e1 51 color: desaturate(darken(_palette_light(highlight), 15), 5) !important;\r
52 @media screen and (prefers-color-scheme: dark) {\r
53 color: desaturate(darken(_palette_dark(highlight), 15), 5) !important;\r
54 }\r
748286b5 55 }\r
56 }\r
57\r
58 strong, b {\r
cb4379e1 59 color: _palette_light(fg-bold);\r
60 @media screen and (prefers-color-scheme: dark) {\r
61 color: _palette_dark(fg-bold);\r
62 }\r
748286b5 63 font-weight: _font(weight-bold);\r
64 }\r
65\r
66 em, i {\r
67 font-style: italic;\r
68 }\r
69\r
70 p {\r
71 margin: 0 0 _size(element-margin) 0;\r
06c2e9e4 72 &.smaller {\r
73 font-style: italic;\r
74 font-size: 12pt;\r
75 }\r
748286b5 76 }\r
77\r
78 h1, h2, h3, h4, h5, h6 {\r
cb4379e1 79 color: _palette_light(fg-bold);\r
80 @media screen and (prefers-color-scheme: dark) {\r
81 color: _palette_dark(fg-bold);\r
82 }\r
748286b5 83 font-weight: _font(weight-bold);\r
84 line-height: 1.65;\r
85 margin: 0 0 (_size(element-margin) * 0.5) 0;\r
86\r
87 a {\r
88 color: inherit;\r
89 border-bottom: 0;\r
90 }\r
91 }\r
92\r
93 h1 {\r
94 font-size: 2.5em;\r
95 }\r
96\r
97 h2 {\r
98 font-size: 1.75em;\r
99 }\r
100\r
101 h3 {\r
102 font-size: 1.35em;\r
103 }\r
104\r
105 h4 {\r
106 font-size: 1.1em;\r
107 }\r
108\r
109 h5 {\r
110 font-size: 0.9em;\r
111 }\r
112\r
113 h6 {\r
114 font-size: 0.7em;\r
115 }\r
116\r
117 @include breakpoint('<=small') {\r
118 h1 {\r
119 font-size: 2em;\r
120 }\r
121\r
122 h2 {\r
123 font-size: 1.5em;\r
124 }\r
125\r
126 h3 {\r
127 font-size: 1.25em;\r
128 }\r
129 }\r
130\r
131 sub {\r
132 font-size: 0.8em;\r
133 position: relative;\r
134 top: 0.5em;\r
135 }\r
136\r
137 sup {\r
138 font-size: 0.8em;\r
139 position: relative;\r
140 top: -0.5em;\r
141 }\r
142\r
143 blockquote {\r
cb4379e1 144 border-left: solid 4px _palette_light(border);\r
145 @media screen and (prefers-color-scheme: dark) {\r
146 border-left: solid 4px _palette_dark(border);\r
147 }\r
748286b5 148 font-style: italic;\r
149 margin: 0 0 _size(element-margin) 0;\r
150 padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);\r
151 }\r
152\r
153 code {\r
cb4379e1 154 background: _palette_light(border-bg);\r
155 @media screen and (prefers-color-scheme: dark) {\r
156 background: _palette_dark(border-bg);\r
157 }\r
748286b5 158 font-family: _font(family-fixed);\r
159 font-size: 0.9em;\r
160 margin: 0 0.25em;\r
161 padding: 0.25em 0.65em;\r
162 }\r
163\r
164 pre {\r
165 -webkit-overflow-scrolling: touch;\r
166 font-family: _font(family-fixed);\r
167 font-size: 0.9em;\r
168 margin: 0 0 _size(element-margin) 0;\r
169\r
170 code {\r
171 display: block;\r
172 line-height: 1.75;\r
173 padding: 1em 1.5em;\r
174 overflow-x: auto;\r
175 }\r
176 }\r
177\r
178 hr {\r
179 border: 0;\r
cb4379e1 180 border-bottom: solid 1px _palette_light(border);\r
181 @media screen and (prefers-color-scheme: dark) {\r
182 border-bottom: solid 1px _palette_dark(border);\r
183 }\r
748286b5 184 margin: _size(element-margin) 0;\r
185\r
186 &.major {\r
187 margin: (_size(element-margin) * 1.5) 0;\r
188 }\r
189 }\r
190\r
191 .align-left {\r
192 text-align: left;\r
193 }\r
194\r
195 .align-center {\r
196 text-align: center;\r
197 }\r
198\r
199 .align-right {\r
200 text-align: right;\r
201 }\r
202\r
203 .screen-reader-text,\r
37ce5147 204 .hidden,\r
205 .js-hidden {\r
748286b5 206 @include hide-visually;\r
207 }\r
0042e5bc 208\r
209 // large code blocks are wrapped in the highlight shortcode\r
210 .highlight {\r
211 max-width: 100%;\r
212 overflow-x: auto;\r
b96eccb7 213 }\r
214\r
215 .has-dropcap:first-letter {\r
216 font-family: _font(family-fixed);\r
217 font-weight: 900;\r
218 float: left;\r
219 font-size: 6rem;\r
220 line-height: 0.65;\r
221 margin: 0.1em 0.1em 0.2em 0;\r
222 }\r
223\r