Debian Codegraph @

resources/skins/nudus-base/html_style_base.scss

raw
1 // ___________________________
2 // < I'm an expert in my field. >
3 // ---------------------------
4 // \ ^__^
5 // \ (oo)\_______
6 // (__)\ )\/\
7 // ||----w |
8 // || ||
9
10 //
11 // Variables
12 //
13
14 $base-unit: 10px !default;
15
16 //
17 // Styling
18 //
19
20 // Let the font be customised via RSS Guard settings
21 * {
22 font-family: inherit;
23 font-size: inherit;
24 }
25
26 //
27 // Reset some basic elements
28 //
29
30 body, h1, h2, h3, h4, h5, h6,
31 p, blockquote, pre, hr,
32 dl, dd, ol, ul, figure {
33 margin: 0;
34 padding: 0;
35 }
36
37 //
38 // Add some basic styling
39 //
40
41 body {
42 background-color: $cbg00;
43
44 box-sizing: border-box;
45 color: $cfg00;
46 //cursor: default;
47 -webkit-text-size-adjust: 100%;
48 -webkit-font-feature-settings: "kern" 1;
49 font-feature-settings: "kern" 1;
50 font-kerning: normal;
51 padding: 10px !important;
52 min-height: 100vh;
53 }
54
55 ::selection {
56 background-color: $clink;
57 text-shadow: none;
58 }
59
60 h1, h2, h3, h4, h5, h6,
61 p, blockquote, pre,
62 ul, ol, dl, figure,
63 details {
64 margin-bottom: $base-unit;
65 }
66
67 hr {
68 background-color: $cbor2;
69 border: none;
70 display: block;
71 height: 2px;
72 margin: $base-unit 0;
73 }
74
75 h1, h2, h3, h4, h5, h6 {
76 font-weight: 600 !important;
77 }
78
79 h1 { font-size: 1.25rem !important; }
80 h2 { font-size: 1.20rem !important; }
81 h3 { font-size: 1.15rem !important; }
82 h4 { font-size: 1.1rem !important; }
83 h5 { font-size: 1rem !important; }
84 h6 { font-size: .95rem !important; }
85
86 b {
87 font-weight: bold !important;
88 }
89
90 i {
91 font-style: italic !important;
92 }
93
94 strong {
95 font-weight: 800 !important;
96 }
97
98 em {
99 font-style: oblique !important;
100 }
101
102 mark {
103 background-color: $cmark;
104 }
105
106 sub,
107 sup {
108 font-size: .8rem !important;
109 }
110
111 small {
112 font-size: .9rem !important;
113 }
114
115 abbr {
116 cursor: help;
117 font-style: italic !important;
118 font-weight: 100 !important;
119 }
120
121 q {
122 font-style: italic !important;
123
124 &::before {
125 content: '“';
126 }
127
128 &::after {
129 content: '”';
130 }
131 }
132
133 time {
134 font-weight: 450 !important;
135 }
136
137 var {
138 font-style: oblique !important;
139 font-weight: 500 !important;
140 }
141
142 a {
143 color: $clink;
144
145 &:hover {
146 text-decoration: none;
147 }
148
149 &:focus {
150 box-shadow: none;
151 outline: none;
152 }
153 }
154
155 cite {
156 font-style: italic !important;
157 font-weight: bold !important;
158 }
159
160 // override if width is defined in element's style attribute
161 figure {
162 max-width: 100%;
163 }
164
165 figure > img {
166 display: block;
167 }
168
169 figcaption {
170 font-size: .8rem !important;
171 }
172
173 blockquote {
174 border-left: .3em solid $cbor2;
175 margin-left: 0;
176 padding: 0 $base-unit;
177
178 &,
179 p {
180 color: $cfg11;
181 }
182 }
183
184 pre,
185 code {
186 border: 1px solid $cbor3;
187 border-radius: $radius-unit;
188 color: $cfg10;
189 //cursor: text;
190
191 // Font for code blocks falls back to system default monospace
192 font-family: monospace;
193 font-size: .95rem !important;
194 }
195
196 code {
197 background-color: $ccode;
198 padding: 0 .25em;
199 word-break: break-word;
200 }
201
202 pre {
203 background-color: $ccodeblock;
204 overflow-x: auto;
205 padding: 7px 13px;
206 tab-size: 2;
207 // For <pre style='white-space:pre-wrap;'>
208 white-space: pre !important;
209
210 // For <pre style='white-space:pre-wrap;width:81ex'>
211 width: unset !important;
212
213 > code {
214 background-color: unset;
215 border: none;
216 color: unset;
217 padding-right: 0;
218 padding-left: 0;
219 tab-size: 2;
220 }
221 }
222
223 kbd {
224 background: $ccode;
225 border: 1px solid $cbor3;
226 border-bottom: 3px solid darken($cbor3, 3%);
227 border-radius: $radius-unit;
228 box-shadow:
229 0 2px 4px darken($cbg00, 6%),
230 inset 0 1px $cbg00
231 ;
232 font-size: .9rem !important;
233 padding: .1em .4em .2em .4em;
234 }
235
236 select {
237 background-color: $ccodeblock;
238 border: 1px solid $cbor3;
239 border-radius: $radius-unit;
240 color: $cfg00;
241 padding: .04em .25em;
242 // Do not use max-width here
243 width: 100%;
244
245 &:focus {
246 box-shadow: none;
247 outline: none;
248
249 background-color: $cbg00;
250 }
251
252 > option {
253 background-color: $cbg00;
254 }
255 }
256
257 table {
258 border-collapse: collapse;
259 // `!important` is set to override something like <table width="900px">
260 width: 100% !important;
261 }
262
263 // Return this if something goes wrong, and return the JS override for dark theme
264 //table,
265 //th,
266 //td {
267 // color: $cfg00;
268 //}
269
270 li {
271 display: list-item;
272 }
273
274 ul,
275 ol {
276 padding-left: 1.5em;
277 }
278
279 ul {
280 list-style-type: disc;
281
282 li ul {
283 list-style-type: square;
284 }
285 }
286
287 ol {
288 list-style-type: decimal;
289
290 li ol {
291 list-style-type: lower-roman;
292 }
293 }
294
295 img {
296 // Let the width be defined (see .rssguard-mbody img), but keep aspect ratio
297 //height: auto;
298 // `width auto` creates many problems even if set as a fallback
299 //width: auto;
300 }
301
302 details {
303 border: 1px solid $ccodeblock;
304 border-radius: $radius-unit;
305 padding: .5em .5em 0;
306
307 > summary {
308 background-color: $ccodeblock;
309 border-radius: $radius-unit * 0.9;
310 cursor: pointer;
311 margin: -.5em -.5em 0;
312 padding-left: .5em;
313
314 &:focus {
315 box-shadow: none;
316 outline: none;
317 }
318 }
319
320 & *:last-child {
321 margin-bottom: 0;
322 }
323 }
324
325 details[open] {
326 border-color: $cbor3;
327 padding: .5em;
328
329 > summary {
330 border-bottom: 1px solid $cbor3;
331 border-radius: ($radius-unit * 0.9) ($radius-unit * 0.9) 0 0;
332 margin-bottom: .5em;
333 }
334 }
335
336 iframe {
337 max-width: 100%;
338 height: auto;
339 width: auto;
340 }
341
342 a,
343 select,
344 summary {
345
346 &:focus {
347 background-color: $cbor3;
348 text-shadow: 0 -1px $cbg00;
349 }
350 }
351
352 :target {
353 outline: 1px solid $clink;
354 }
355
356 // m* == message*
357 .rssguard-mwrapper {
358 padding: 0px !important;
359
360 .rssguard-mhead {
361
362 .msmall,
363 .mlinks {
364 opacity: .8;
365 }
366
367 > h1 {
368 margin: 0;
369 }
370
371 .msmall {
372 font-size: .9em;
373 }
374
375 .mlinks {
376
377 .menc {
378 word-break: break-word;
379 }
380
381 .mwrapurl {
382 display: inline-flex;
383
384 a[href=""] {
385
386 &,
387 & + span {
388 display: none;
389 }
390 }
391 }
392 }
393 }
394
395 img, video {
396 // Needs to be `!important` when max-width is defined by image style
397 // <img src="https://....png" alt="alt" style="max-width: 100%;">
398 //max-width: 450px !important;
399 // For cases when they both are set
400 //max-height: unset !important;
401
402 @media only screen and (max-width: 800px) {
403 // `!important` to override `!important` that is set above
404 max-width: 100% !important;
405 }
406 }
407 }
408
409 //
410 // Other
411 //
412
413 // For articles without any html elements;
414 // If not applied to _all_, *must* be applied to links in mbody
415 // mbody == article body
416 .rssguard-mbody {
417 word-break: break-word;
418 }
419
420 // Fix at least some mess produced by above
421 table {
422 word-break: normal;
423 }