fixing the dropcap display
[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
10 color: _palette(fg);\r
11 font-family: _font(family);\r
12 font-size: 17pt;\r
13 font-weight: _font(weight);\r
14 letter-spacing: _font(letter-spacing);\r
15 line-height: 1.65;\r
16\r
17 @include breakpoint('<=xlarge') {\r
18 font-size: 14pt;\r
19 }\r
20\r
21 @include breakpoint('<=large') {\r
22 font-size: 12pt;\r
23 }\r
24\r
25 @include breakpoint('<=xxsmall') {\r
26 font-size: 11pt;\r
27 }\r
28 }\r
29\r
30 a {\r
31 @include vendor('transition', (\r
32 'color #{_duration(transition)} ease-in-out',\r
33 'border-bottom-color #{_duration(transition)} ease-in-out'\r
34 ));\r
35 border-bottom: dotted 1px;\r
36 color: inherit;\r
37 text-decoration: none;\r
38\r
39 &:hover {\r
40 border-bottom-color: transparent;\r
41 color: _palette(highlight) !important;\r
42 }\r
43\r
44 &:active {\r
45 color: desaturate(darken(_palette(highlight), 15), 5) !important;\r
46 }\r
47 }\r
48\r
49 strong, b {\r
50 color: _palette(fg-bold);\r
51 font-weight: _font(weight-bold);\r
52 }\r
53\r
54 em, i {\r
55 font-style: italic;\r
56 }\r
57\r
58 p {\r
59 margin: 0 0 _size(element-margin) 0;\r
60 }\r
61\r
62 h1, h2, h3, h4, h5, h6 {\r
63 color: _palette(fg-bold);\r
64 font-weight: _font(weight-bold);\r
65 line-height: 1.65;\r
66 margin: 0 0 (_size(element-margin) * 0.5) 0;\r
67\r
68 a {\r
69 color: inherit;\r
70 border-bottom: 0;\r
71 }\r
72 }\r
73\r
74 h1 {\r
75 font-size: 2.5em;\r
76 }\r
77\r
78 h2 {\r
79 font-size: 1.75em;\r
80 }\r
81\r
82 h3 {\r
83 font-size: 1.35em;\r
84 }\r
85\r
86 h4 {\r
87 font-size: 1.1em;\r
88 }\r
89\r
90 h5 {\r
91 font-size: 0.9em;\r
92 }\r
93\r
94 h6 {\r
95 font-size: 0.7em;\r
96 }\r
97\r
98 @include breakpoint('<=small') {\r
99 h1 {\r
100 font-size: 2em;\r
101 }\r
102\r
103 h2 {\r
104 font-size: 1.5em;\r
105 }\r
106\r
107 h3 {\r
108 font-size: 1.25em;\r
109 }\r
110 }\r
111\r
112 sub {\r
113 font-size: 0.8em;\r
114 position: relative;\r
115 top: 0.5em;\r
116 }\r
117\r
118 sup {\r
119 font-size: 0.8em;\r
120 position: relative;\r
121 top: -0.5em;\r
122 }\r
123\r
124 blockquote {\r
125 border-left: solid 4px _palette(border);\r
126 font-style: italic;\r
127 margin: 0 0 _size(element-margin) 0;\r
128 padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);\r
129 }\r
130\r
131 code {\r
132 background: _palette(border-bg);\r
133 font-family: _font(family-fixed);\r
134 font-size: 0.9em;\r
135 margin: 0 0.25em;\r
136 padding: 0.25em 0.65em;\r
137 }\r
138\r
139 pre {\r
140 -webkit-overflow-scrolling: touch;\r
141 font-family: _font(family-fixed);\r
142 font-size: 0.9em;\r
143 margin: 0 0 _size(element-margin) 0;\r
144\r
145 code {\r
146 display: block;\r
147 line-height: 1.75;\r
148 padding: 1em 1.5em;\r
149 overflow-x: auto;\r
150 }\r
151 }\r
152\r
153 hr {\r
154 border: 0;\r
155 border-bottom: solid 1px _palette(border);\r
156 margin: _size(element-margin) 0;\r
157\r
158 &.major {\r
159 margin: (_size(element-margin) * 1.5) 0;\r
160 }\r
161 }\r
162\r
163 .align-left {\r
164 text-align: left;\r
165 }\r
166\r
167 .align-center {\r
168 text-align: center;\r
169 }\r
170\r
171 .align-right {\r
172 text-align: right;\r
173 }\r
174\r
175 .screen-reader-text,\r
176 .hidden {\r
177 @include hide-visually;\r
178 }\r
0042e5bc 179\r
180 // large code blocks are wrapped in the highlight shortcode\r
181 .highlight {\r
182 max-width: 100%;\r
183 overflow-x: auto;\r
b96eccb7 184 }\r
185\r
186 .has-dropcap:first-letter {\r
187 font-family: _font(family-fixed);\r
188 font-weight: 900;\r
189 float: left;\r
190 font-size: 6rem;\r
191 line-height: 0.65;\r
192 margin: 0.1em 0.1em 0.2em 0;\r
193 }\r
194\r