Only keep reset styles that we need

This commit is contained in:
chris (daiyi) 2017-08-31 12:38:45 +02:00
parent cddac46a76
commit f925d12683
2 changed files with 92 additions and 482 deletions

View File

@ -1,118 +1,18 @@
#--re-frame-trace-- { #--re-frame-trace-- {
all: initial; all: initial;
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ /*! abridged from normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
line-height: 1.15; line-height: 1.15;
/* 1 */
-ms-text-size-adjust: 100%;
/* 2 */
-webkit-text-size-adjust: 100%;
/* 2 */
/* Sections
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
/* Text-level semantics /* Text-level semantics
========================================================================== */ ========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
/**
* Add the correct background and color in IE 9-.
*/
/**
* Add the correct font size in all browsers.
*/
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
/* Embedded content /* Embedded content
========================================================================== */ ========================================================================== */
/**
* Add the correct display in IE 9-.
*/
/**
* Add the correct display in iOS 4-7.
*/
/**
* Remove the border on images inside links in IE 10-.
*/
/**
* Hide the overflow in IE.
*/
/* Forms /* Forms
========================================================================== */ ========================================================================== */
/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
/** /**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4. * controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari. * 2. Correct the inability to style clickable types in iOS and Safari.
*/ */
/**
* Remove the inner border and padding in Firefox.
*/
/**
* Restore the focus styles unset by the previous rule.
*/
/**
* Remove the default vertical scrollbar in IE.
*/
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
/* Hidden /* Hidden
========================================================================== */ ========================================================================== */
/** /**
@ -127,44 +27,25 @@
all: unset; all: unset;
} }
#--re-frame-trace-- div, #--re-frame-trace-- div,
#--re-frame-trace-- footer,
#--re-frame-trace-- header,
#--re-frame-trace-- nav { #--re-frame-trace-- nav {
display: block; display: block;
} }
#--re-frame-trace-- h1 {
font-size: 2em;
margin: 0.67em 0;
}
#--re-frame-trace-- pre { #--re-frame-trace-- pre {
font-family: monospace, monospace; font-family: monospace, monospace;
/* 1 */
font-size: 1em; font-size: 1em;
/* 2 */
} }
#--re-frame-trace-- a { #--re-frame-trace-- a,
background-color: transparent; #--re-frame-trace-- a:visited {
/* 1 */ color: #333;
-webkit-text-decoration-skip: objects; border-bottom: 1px #333 dotted;
/* 2 */
} }
#--re-frame-trace-- b, #--re-frame-trace-- a:hover,
#--re-frame-trace-- strong { #--re-frame-trace-- a:focus {
font-weight: inherit; border-bottom: 1px #666666 solid;
}
#--re-frame-trace-- b,
#--re-frame-trace-- strong {
font-weight: bolder;
} }
#--re-frame-trace-- code { #--re-frame-trace-- code {
font-family: monospace, monospace; font-family: monospace, monospace;
/* 1 */
font-size: 1em; font-size: 1em;
/* 2 */
}
#--re-frame-trace-- mark {
background-color: #ff0;
color: #000;
} }
#--re-frame-trace-- small { #--re-frame-trace-- small {
font-size: 80%; font-size: 80%;
@ -182,20 +63,9 @@
#--re-frame-trace-- sup { #--re-frame-trace-- sup {
top: -0.5em; top: -0.5em;
} }
#--re-frame-trace-- audio,
#--re-frame-trace-- video {
display: inline-block;
}
#--re-frame-trace-- audio:not([controls]) {
display: none;
height: 0;
}
#--re-frame-trace-- img { #--re-frame-trace-- img {
border-style: none; border-style: none;
} }
#--re-frame-trace-- svg:not(:root) {
overflow: hidden;
}
#--re-frame-trace-- option { #--re-frame-trace-- option {
display: block; display: block;
} }
@ -204,40 +74,22 @@
#--re-frame-trace-- optgroup, #--re-frame-trace-- optgroup,
#--re-frame-trace-- select, #--re-frame-trace-- select,
#--re-frame-trace-- textarea { #--re-frame-trace-- textarea {
font-family: sans-serif; font-family: "courier new", monospace;
/* 1 */
font-size: 100%; font-size: 100%;
/* 1 */
line-height: 1.15; line-height: 1.15;
/* 1 */
margin: 0;
/* 2 */
border: 1px solid black; border: 1px solid black;
} }
#--re-frame-trace-- button, #--re-frame-trace-- button,
#--re-frame-trace-- input { #--re-frame-trace-- input {
/* 1 */
overflow: visible; overflow: visible;
} }
#--re-frame-trace-- button, #--re-frame-trace-- button,
#--re-frame-trace-- select {
/* 1 */
text-transform: none;
}
#--re-frame-trace-- button,
#--re-frame-trace-- html [type="button"], #--re-frame-trace-- html [type="button"],
#--re-frame-trace-- [type="reset"], #--re-frame-trace-- [type="reset"],
#--re-frame-trace-- [type="submit"] { #--re-frame-trace-- [type="submit"] {
-webkit-appearance: button; -webkit-appearance: button;
/* 2 */ /* 2 */
} }
#--re-frame-trace-- button::-moz-focus-inner,
#--re-frame-trace-- [type="button"]::-moz-focus-inner,
#--re-frame-trace-- [type="reset"]::-moz-focus-inner,
#--re-frame-trace-- [type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
#--re-frame-trace-- button:-moz-focusring, #--re-frame-trace-- button:-moz-focusring,
#--re-frame-trace-- [type="button"]:-moz-focusring, #--re-frame-trace-- [type="button"]:-moz-focusring,
#--re-frame-trace-- [type="reset"]:-moz-focusring, #--re-frame-trace-- [type="reset"]:-moz-focusring,
@ -250,9 +102,6 @@
#--re-frame-trace-- [type="checkbox"], #--re-frame-trace-- [type="checkbox"],
#--re-frame-trace-- [type="radio"] { #--re-frame-trace-- [type="radio"] {
box-sizing: border-box; box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
} }
#--re-frame-trace-- [type="number"]::-webkit-inner-spin-button, #--re-frame-trace-- [type="number"]::-webkit-inner-spin-button,
#--re-frame-trace-- [type="number"]::-webkit-outer-spin-button { #--re-frame-trace-- [type="number"]::-webkit-outer-spin-button {
@ -260,72 +109,25 @@
} }
#--re-frame-trace-- [type="search"] { #--re-frame-trace-- [type="search"] {
-webkit-appearance: textfield; -webkit-appearance: textfield;
/* 1 */
outline-offset: -2px; outline-offset: -2px;
/* 2 */
}
#--re-frame-trace-- [type="search"]::-webkit-search-cancel-button,
#--re-frame-trace-- [type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
} }
#--re-frame-trace-- ::-webkit-file-upload-button { #--re-frame-trace-- ::-webkit-file-upload-button {
-webkit-appearance: button; -webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
} }
#--re-frame-trace-- [hidden] { #--re-frame-trace-- [hidden] {
display: none; display: none;
} }
#--re-frame-trace-- h1,
#--re-frame-trace-- h2,
#--re-frame-trace-- h3,
#--re-frame-trace-- h4,
#--re-frame-trace-- p,
#--re-frame-trace-- blockquote,
#--re-frame-trace-- figure,
#--re-frame-trace-- ol,
#--re-frame-trace-- ul {
margin: 0;
padding: 0;
}
#--re-frame-trace-- main,
#--re-frame-trace-- li { #--re-frame-trace-- li {
display: block; display: block;
} }
#--re-frame-trace-- h1,
#--re-frame-trace-- h2,
#--re-frame-trace-- h3,
#--re-frame-trace-- h4 {
font-size: inherit;
}
#--re-frame-trace-- strong {
font-weight: bold;
}
#--re-frame-trace-- a,
#--re-frame-trace-- button {
color: inherit;
transition: .3s;
}
#--re-frame-trace-- a {
text-decoration: none;
}
#--re-frame-trace-- button { #--re-frame-trace-- button {
overflow: visible; overflow: visible;
border: 0; border: 0;
font: inherit;
-webkit-font-smoothing: inherit; -webkit-font-smoothing: inherit;
letter-spacing: inherit; letter-spacing: inherit;
background: none; background: none;
cursor: pointer; cursor: pointer;
} }
#--re-frame-trace-- ::-moz-focus-inner {
padding: 0;
border: 0;
}
#--re-frame-trace-- :focus {
outline: 0;
}
#--re-frame-trace-- img { #--re-frame-trace-- img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
@ -448,6 +250,9 @@
background: white; background: white;
font-family: 'courier new', monospace; font-family: 'courier new', monospace;
font-size: 1em; font-size: 1em;
-moz-appearance: menulist;
-webkit-appearance: menulist;
appearance: menulist;
} }
#--re-frame-trace-- .nav { #--re-frame-trace-- .nav {
background: #efeef1; background: #efeef1;

View File

@ -6,120 +6,41 @@
all: unset; all: unset;
} }
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ /*! abridged from normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document line-height: 1.15;
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
// html {
line-height: 1.15; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
// }
/* Sections
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
div, div,
footer,
header,
nav { nav {
display: block; display: block;
} }
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre { pre {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ font-size: 1em;
} }
/* Text-level semantics /* Text-level semantics
========================================================================== */ ========================================================================== */
/** a, a:visited {
* 1. Remove the gray background on active links in IE 10. color: #333;
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+. border-bottom: 1px #333 dotted;
*/
a {
background-color: transparent; /* 1 */
-webkit-text-decoration-skip: objects; /* 2 */
} }
a:hover, a:focus {
/** border-bottom: 1px #666666 solid;
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b,
strong {
font-weight: inherit;
} }
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code { code {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ font-size: 1em;
} }
/**
* Add the correct background and color in IE 9-.
*/
mark {
background-color: #ff0;
color: #000;
}
/**
* Add the correct font size in all browsers.
*/
small { small {
font-size: 80%; font-size: 80%;
} }
/** // Prevent `sub` and `sup` elements from affecting the line height
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub, sub,
sup { sup {
font-size: 75%; font-size: 75%;
@ -139,39 +60,10 @@
/* Embedded content /* Embedded content
========================================================================== */ ========================================================================== */
/**
* Add the correct display in IE 9-.
*/
audio,
video {
display: inline-block;
}
/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Remove the border on images inside links in IE 10-.
*/
img { img {
border-style: none; border-style: none;
} }
/**
* Hide the overflow in IE.
*/
svg:not(:root) {
overflow: hidden;
}
/* Forms /* Forms
========================================================================== */ ========================================================================== */
@ -180,44 +72,22 @@
display: block; display: block;
} }
/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button, button,
input, input,
optgroup, optgroup,
select, select,
textarea { textarea {
font-family: sans-serif; /* 1 */ font-family: "courier new", monospace;
font-size: 100%; /* 1 */ font-size: 100%;
line-height: 1.15; /* 1 */ line-height: 1.15;
margin: 0; /* 2 */
border: 1px solid black; border: 1px solid black;
// background-color: transparent;
} }
/** button, // Show the overflow in IE.
* Show the overflow in IE. input { // Show the overflow in Edge.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible; overflow: visible;
} }
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/** /**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4. * controls in Android 4.
@ -231,22 +101,7 @@
-webkit-appearance: button; /* 2 */ -webkit-appearance: button; /* 2 */
} }
/** // Restore the focus styles unset by the previous rule.
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring, button:-moz-focusring,
[type="button"]:-moz-focusring, [type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring, [type="reset"]:-moz-focusring,
@ -254,61 +109,28 @@
outline: 1px dotted ButtonText; outline: 1px dotted ButtonText;
} }
/**
* Remove the default vertical scrollbar in IE.
*/
textarea { textarea {
overflow: auto; overflow: auto; // Remove the default vertical scrollbar in IE.
} }
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"], [type="checkbox"],
[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box; // IE 10-
padding: 0; /* 2 */
} }
/** // Correct the cursor style of increment and decrement buttons in Chrome.
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { [type="number"]::-webkit-outer-spin-button {
height: auto; height: auto;
} }
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] { [type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield; // Correct the odd appearance in Chrome and Safari.
outline-offset: -2px; /* 2 */ outline-offset: -2px; // Correct the outline style in Safari.
} }
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button { ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */ -webkit-appearance: button; // Correct the inability to style clickable types in iOS and Safari.
font: inherit; /* 2 */
} }
@ -323,70 +145,32 @@
display: none; display: none;
} }
h1,
h2,
h3,
h4,
p,
blockquote,
figure,
ol,
ul {
margin: 0;
padding: 0;
}
main,
li { li {
display: block; display: block;
}
h1,
h2,
h3,
h4 {
font-size: inherit;
}
strong {
font-weight: bold;
}
a,
button {
color: inherit;
transition: .3s;
}
a {
text-decoration: none;
} }
button { button {
overflow: visible; overflow: visible;
border: 0; border: 0;
font: inherit; -webkit-font-smoothing: inherit;
-webkit-font-smoothing: inherit; letter-spacing: inherit;
letter-spacing: inherit; background: none;
background: none; cursor: pointer;
cursor: pointer;
}
::-moz-focus-inner {
padding: 0;
border: 0;
}
:focus {
outline: 0;
} }
img { img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
border: 0; border: 0;
} }
// tables // tables
table, table,
thead, thead,
tbody, tbody,
tfoot, tfoot,
tr, tr,
th, th,
td { td {
display: block; display: block;
width: auto; width: auto;
height: auto; height: auto;
@ -401,23 +185,23 @@ td {
font-weight: inherit; font-weight: inherit;
-webkit-border-horizontal-spacing: 0; -webkit-border-horizontal-spacing: 0;
-webkit-border-vertical-spacing: 0; -webkit-border-vertical-spacing: 0;
} }
th, td { th, td {
display: table-cell; display: table-cell;
} }
tr { tr {
display: table-row; display: table-row;
} }
thead { thead {
display: table-header-group; display: table-header-group;
} }
tbody { tbody {
display: table-row-group; display: table-row-group;
} }
table { table {
display: table; display: table;
width: 100%; width: 100%;
} }
/* re-frame-trace styles /* re-frame-trace styles
@ -512,7 +296,28 @@ table {
background: white; background: white;
font-family: 'courier new', monospace; font-family: 'courier new', monospace;
font-size: 1em; font-size: 1em;
-moz-appearance: menulist;
-webkit-appearance: menulist;
appearance: menulist;
} }
// select {
// background-image:
// linear-gradient(45deg, transparent 50%, gray 50%),
// linear-gradient(135deg, gray 50%, transparent 50%);
// background-position:
// calc(100% - 10px) calc(1em + 2px),
// calc(100% - 5px) calc(1em + 2px);
// background-size:
// 5px 5px,
// 5px 5px,
// 1px 1.5em;
// background-repeat: no-repeat;
// }
// select:-moz-focusring {
// color: transparent;
// text-shadow: 0 0 0 #000;
// }
.nav { .nav {
background: #efeef1; background: #efeef1;
color: #222; color: #222;