summaryrefslogtreecommitdiff
blob: e5fb89682a07f2aa7ab98bde268df6850cf864e2 (plain)
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
/*!
* CleanSlate
*   github.com/premasagar/cleanslate
*
*/
/*
    An extreme CSS reset stylesheet, for normalising the styling of a container element and its children.

    by Premasagar Rose
        dharmafly.com

    license
        opensource.org/licenses/mit-license.php

    **

    v0.10.1

*/
/* == BLANKET RESET RULES == */
/* HTML 4.01 */
.cleanslate, .cleanslate h1, .cleanslate h2, .cleanslate h3, .cleanslate h4, .cleanslate h5, .cleanslate h6, .cleanslate p, .cleanslate td, .cleanslate dl, .cleanslate tr, .cleanslate dt, .cleanslate ol, .cleanslate form, .cleanslate select, .cleanslate option, .cleanslate pre, .cleanslate div, .cleanslate table, .cleanslate th, .cleanslate tbody, .cleanslate tfoot, .cleanslate caption, .cleanslate thead, .cleanslate ul, .cleanslate li, .cleanslate address, .cleanslate blockquote, .cleanslate dd, .cleanslate fieldset, .cleanslate li, .cleanslate iframe, .cleanslate strong, .cleanslate legend, .cleanslate em, .cleanslate summary, .cleanslate cite, .cleanslate span, .cleanslate input, .cleanslate sup, .cleanslate label, .cleanslate dfn, .cleanslate object, .cleanslate big, .cleanslate q, .cleanslate samp, .cleanslate acronym, .cleanslate small, .cleanslate img, .cleanslate strike, .cleanslate code, .cleanslate sub, .cleanslate ins, .cleanslate textarea, .cleanslate button, .cleanslate var, .cleanslate a, .cleanslate abbr, .cleanslate applet, .cleanslate del, .cleanslate kbd, .cleanslate tt, .cleanslate b, .cleanslate i, .cleanslate hr,
.cleanslate article, .cleanslate aside, .cleanslate figure, .cleanslate figcaption, .cleanslate footer, .cleanslate header, .cleanslate menu, .cleanslate nav, .cleanslate section, .cleanslate time, .cleanslate mark, .cleanslate audio, .cleanslate video, .cleanslate abbr, .cleanslate address, .cleanslate area, .cleanslate blockquote, .cleanslate canvas, .cleanslate caption, .cleanslate cite, .cleanslate code, .cleanslate colgroup, .cleanslate col, .cleanslate datalist, .cleanslate fieldset, .cleanslate main, .cleanslate map, .cleanslate meta, .cleanslate optgroup, .cleanslate output, .cleanslate progress, .cleanslate svg {
  background-attachment: scroll !important;
  background-color: transparent !important;
  background-image: none !important;
  /* This rule affects the use of pngfix JavaScript http://dillerdesign.com/experiment/DD_BelatedPNG for IE6, which is used to force the browser to recognise alpha-transparent PNGs files that replace the IE6 lack of PNG transparency. (The rule overrides the VML image that is used to replace the given CSS background-image). If you don't know what that means, then you probably haven't used the pngfix script, and this comment may be ignored :) */
  background-position: 0 0 !important;
  background-repeat: repeat !important;
  border-color: black !important;
  border-color: currentColor !important;
  /* `border-color` should match font color. Modern browsers (incl. IE9) allow the use of "currentColor" to match the current font 'color' value <http://www.w3.org/TR/css3-color/#currentcolor>. For older browsers, a default of 'black' is given before this rule. Guideline to support older browsers: if you haven't already declared a border-color for an element, be sure to do so, e.g. when you first declare the border-width. */
  border-radius: 0 !important;
  border-style: none !important;
  border-width: medium !important;
  bottom: auto !important;
  clear: none !important;
  clip: auto !important;
  color: inherit !important;
  counter-increment: none !important;
  counter-reset: none !important;
  cursor: auto !important;
  direction: inherit !important;
  display: inline !important;
  float: none !important;
  font-family: inherit !important;
  /* As with other inherit values, this needs to be set on the root container element */
  font-size: inherit !important;
  font-style: inherit !important;
  font-variant: normal !important;
  font-weight: inherit !important;
  height: auto !important;
  left: auto !important;
  letter-spacing: normal !important;
  line-height: inherit !important;
  list-style-type: inherit !important;
  /* Could set list-style-type to none */
  list-style-position: outside !important;
  list-style-image: none !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  opacity: 1;
  outline: invert none medium !important;
  overflow: visible !important;
  padding: 0 !important;
  position: static !important;
  quotes: "" "" !important;
  right: auto !important;
  table-layout: auto !important;
  text-align: inherit !important;
  text-decoration: inherit !important;
  text-indent: 0 !important;
  text-transform: none !important;
  top: auto !important;
  unicode-bidi: normal !important;
  vertical-align: baseline !important;
  visibility: inherit !important;
  white-space: normal !important;
  width: auto !important;
  word-spacing: normal !important;
  z-index: auto !important;
  /* CSS3 */
  /* Including all prefixes according to http://caniuse.com/ */
  /* CSS Animations don't cascade, so don't require resetting */
  background-origin: padding-box !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  background-size: auto !important;
  -o-border-image: none !important;
  border-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: content-box !important;
  column-count: auto !important;
  column-gap: normal !important;
  column-rule: medium none black !important;
  /* doesn't exist yet but probably will */
  column-span: 1 !important;
  column-width: auto !important;
  font-feature-settings: normal !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  -webkit-hyphens: manual !important;
  hyphens: manual !important;
  -ms-perspective: none !important;
  -o-perspective: none !important;
  perspective: none !important;
  -ms-perspective-origin: 50% 50% !important;
  -o-perspective-origin: 50% 50% !important;
  perspective-origin: 50% 50% !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  text-shadow: none !important;
  transition: all 0s ease 0s !important;
  transform: none !important;
  transform-origin: 50% 50% !important;
  transform-style: flat !important;
  word-break: normal !important;
}

/* == BLOCK-LEVEL == */
/* Actually, some of these should be inline-block and other values, but block works fine (TODO: rigorously verify this) */
/* HTML 4.01 */
.cleanslate, .cleanslate h3, .cleanslate h5, .cleanslate p, .cleanslate h1, .cleanslate dl, .cleanslate dt, .cleanslate h6, .cleanslate ol, .cleanslate form, .cleanslate option, .cleanslate pre, .cleanslate div, .cleanslate h2, .cleanslate caption, .cleanslate h4, .cleanslate ul, .cleanslate address, .cleanslate blockquote, .cleanslate dd, .cleanslate fieldset, .cleanslate hr,
.cleanslate article, .cleanslate dialog, .cleanslate figure, .cleanslate footer, .cleanslate header, .cleanslate hgroup, .cleanslate menu, .cleanslate nav, .cleanslate section, .cleanslate audio, .cleanslate video, .cleanslate address, .cleanslate blockquote, .cleanslate colgroup, .cleanslate main, .cleanslate progress, .cleanslate summary {
  display: block !important;
}

.cleanslate h1, .cleanslate h2, .cleanslate h3, .cleanslate h4, .cleanslate h5, .cleanslate h6 {
  font-weight: bold !important;
}

.cleanslate h1:before, .cleanslate h2:before {
  display: none !important;
}

.cleanslate h1 {
  font-size: 2em !important;
  padding: 0.67em 0 !important;
}

.cleanslate h2 {
  font-size: 1.5em !important;
  padding: 0.83em 0 !important;
}

.cleanslate h3 {
  font-size: 1.17em !important;
  padding: 0.83em 0 !important;
}

.cleanslate h4 {
  font-size: 1em !important;
}

.cleanslate h5 {
  font-size: 0.83em !important;
}

.cleanslate p {
  margin: 1em 0 !important;
}

.cleanslate table {
  display: table !important;
}

.cleanslate thead {
  display: table-header-group !important;
}

.cleanslate tbody {
  display: table-row-group !important;
}

.cleanslate tfoot {
  display: table-footer-group !important;
}

.cleanslate tr {
  display: table-row !important;
}

.cleanslate th, .cleanslate td {
  display: table-cell !important;
  padding: 2px !important;
}

/* == SPECIFIC ELEMENTS == */
/* Some of these are browser defaults; some are just useful resets */
.cleanslate ol, .cleanslate ul {
  margin: 1em 0 !important;
}

.cleanslate ul li, .cleanslate ul ul li, .cleanslate ul ul ul li, .cleanslate ol li, .cleanslate ol ol li, .cleanslate ol ol ol li, .cleanslate ul ol ol li, .cleanslate ul ul ol li, .cleanslate ol ul ul li, .cleanslate ol ol ul li {
  list-style-position: inside !important;
  margin-top: 0.08em !important;
}

.cleanslate ol ol, .cleanslate ol ol ol, .cleanslate ul ul, .cleanslate ul ul ul, .cleanslate ol ul, .cleanslate ol ul ul, .cleanslate ol ol ul, .cleanslate ul ol, .cleanslate ul ol ol, .cleanslate ul ul ol {
  padding-left: 40px !important;
  margin: 0 !important;
}

/* helper for general navigation */
.cleanslate nav ul, .cleanslate nav ol {
  list-style-type: none !important;
}

.cleanslate ul, .cleanslate menu {
  list-style-type: disc !important;
}

.cleanslate ol {
  list-style-type: decimal !important;
}

.cleanslate ol ul, .cleanslate ul ul, .cleanslate menu ul, .cleanslate ol menu, .cleanslate ul menu, .cleanslate menu menu {
  list-style-type: circle !important;
}

.cleanslate ol ol ul, .cleanslate ol ul ul, .cleanslate ol menu ul, .cleanslate ol ol menu, .cleanslate ol ul menu, .cleanslate ol menu menu, .cleanslate ul ol ul, .cleanslate ul ul ul, .cleanslate ul menu ul, .cleanslate ul ol menu, .cleanslate ul ul menu, .cleanslate ul menu menu, .cleanslate menu ol ul, .cleanslate menu ul ul, .cleanslate menu menu ul, .cleanslate menu ol menu, .cleanslate menu ul menu, .cleanslate menu menu menu {
  list-style-type: square !important;
}

.cleanslate li {
  display: list-item !important;
  /* Fixes IE7 issue with positioning of nested bullets */
  min-height: auto !important;
  min-width: auto !important;
  padding-left: 20px !important;
  /* replace -webkit-padding-start: 40px; */
}

.cleanslate strong {
  font-weight: bold !important;
}

.cleanslate em {
  font-style: italic !important;
}

.cleanslate kbd, .cleanslate samp, .cleanslate code, .cleanslate pre {
  font-family: monospace !important;
}

.cleanslate a {
  color: blue !important;
  text-decoration: underline !important;
}

.cleanslate a:visited {
  color: #529 !important;
}

.cleanslate a, .cleanslate a *, .cleanslate input[type=submit], .cleanslate input[type=button], .cleanslate input[type=radio], .cleanslate input[type=checkbox], .cleanslate select, .cleanslate button {
  cursor: pointer !important;
}

.cleanslate button, .cleanslate input[type=submit] {
  text-align: center !important;
  padding: 2px 6px 3px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: small !important;
  background: white !important;
  -webkit-appearance: push-button !important;
  color: buttontext !important;
  border: 1px #a6a6a6 solid !important;
  background: lightgrey !important;
  /* Old browsers */
  background: white;
  /* Old browsers */
  /* FF3.6+ */
  /* Chrome,Safari4+ */
  /* Chrome10+,Safari5.1+ */
  /* Opera 11.10+ */
  /* IE10+ */
  background: linear-gradient(to bottom, white 0%, #dddddd 100%, #d1d1d1 100%, #dddddd 100%) !important;
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#ffffff", endColorstr="#dddddd",GradientType=0 ) !important;
  /* IE6-9 */
  -o-box-shadow: 1px 1px 0px #eee !important;
  box-shadow: 1px 1px 0px #eee !important;
  outline: initial !important;
}

.cleanslate button:active, .cleanslate input[type=submit]:active, .cleanslate input[type=button]:active, .cleanslate button:active {
  background: #3b679e !important;
  /* Old browsers */
  /* FF3.6+ */
  /* Chrome,Safari4+ */
  /* Chrome10+,Safari5.1+ */
  /* Opera 11.10+ */
  /* IE10+ */
  background: linear-gradient(to bottom, #3b679e 0%, #2b88d9 50%, #207cca 51%, #7db9e8 100%) !important;
  /* W3C */
  border-color: #5259b0 !important;
}

.cleanslate button {
  padding: 1px 6px 2px 6px !important;
  margin-right: 5px !important;
}

.cleanslate input[type=hidden] {
  display: none !important;
}

/* restore form defaults */
.cleanslate textarea {
  -webkit-appearance: textarea !important;
  background: white !important;
  padding: 2px !important;
  margin-left: 4px !important;
  word-wrap: break-word !important;
  white-space: pre-wrap !important;
  font-size: 11px !important;
  font-family: inherit !important;
  line-height: 13px !important;
  resize: both !important;
}

.cleanslate select, .cleanslate textarea, .cleanslate input {
  border: 1px solid #ccc !important;
}

.cleanslate select {
  font-size: 11px !important;
  font-family: inherit !important;
  display: inline-block;
}

.cleanslate textarea:focus, .cleanslate input:focus {
  outline: auto 5px -webkit-focus-ring-color !important;
  outline: initial !important;
}

.cleanslate input[type=text] {
  background: white !important;
  padding: 1px !important;
  font-family: initial !important;
  font-size: small !important;
}

.cleanslate input[type=checkbox], .cleanslate input[type=radio] {
  border: 1px #2b2b2b solid !important;
  border-radius: 4px !important;
}

.cleanslate input[type=checkbox], .cleanslate input[type=radio] {
  outline: initial !important;
}

.cleanslate input[type=radio] {
  margin: 2px 2px 3px 2px !important;
}

.cleanslate abbr[title], .cleanslate acronym[title], .cleanslate dfn[title] {
  cursor: help !important;
  border-bottom-width: 1px !important;
  border-bottom-style: dotted !important;
}

.cleanslate ins {
  background-color: #ff9 !important;
  color: black !important;
}

.cleanslate del {
  text-decoration: line-through !important;
}

.cleanslate blockquote, .cleanslate q {
  quotes: none !important;
  /* HTML5 */
}

.cleanslate blockquote:before, .cleanslate blockquote:after, .cleanslate q:before, .cleanslate q:after, .cleanslate li:before, .cleanslate li:after {
  content: "" !important;
}

.cleanslate input, .cleanslate select {
  vertical-align: middle !important;
}

.cleanslate table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

.cleanslate hr {
  display: block !important;
  height: 1px !important;
  border: 0 !important;
  border-top: 1px solid #ccc !important;
  margin: 1em 0 !important;
}

.cleanslate *[dir=rtl] {
  direction: rtl !important;
}

.cleanslate mark {
  background-color: #ff9 !important;
  color: black !important;
  font-style: italic !important;
  font-weight: bold !important;
}

.cleanslate menu {
  padding-left: 40px !important;
  padding-top: 8px !important;
}

/* additional helpers */
.cleanslate [hidden],
.cleanslate template {
  display: none !important;
}

.cleanslate abbr[title] {
  border-bottom: 1px dotted !important;
}

.cleanslate sub, .cleanslate sup {
  font-size: 75% !important;
  line-height: 0 !important;
  position: relative !important;
  vertical-align: baseline !important;
}

.cleanslate sup {
  top: -0.5em !important;
}

.cleanslate sub {
  bottom: -0.25em !important;
}

.cleanslate img {
  border: 0 !important;
}

.cleanslate figure {
  margin: 0 !important;
}

.cleanslate textarea {
  overflow: auto !important;
  vertical-align: top !important;
}

/* == ROOT CONTAINER ELEMENT == */
/* This contains default values for child elements to inherit  */
.cleanslate {
  font-size: medium !important;
  line-height: 1 !important;
  direction: ltr !important;
  text-align: left !important;
  /* for IE, Opera */
  text-align: start !important;
  /* recommended W3C Spec */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  color: black !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-decoration: none !important;
  list-style-type: disc !important;
}

.cleanslate pre {
  white-space: pre !important;
}