emacs-config/misc/org-css/_normalize.scss

156 lines
2.7 KiB
SCSS
Raw Normal View History

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2020-07-15 10:27:33 +00:00
// * Document *
2020-07-15 10:27:33 +00:00
// 1. Correct the line height in all browsers.
// 2. Prevent adjustments of font size after orientation changes in iOS.
2020-07-15 10:27:33 +00:00
html {
line-height: 1.15; // 1
-webkit-text-size-adjust: 100%; // 2
2020-07-15 10:27:33 +00:00
}
// * Sections *
// Remove the margin in all browsers.
2020-07-15 10:27:33 +00:00
body {
margin: 0;
}
// Correct the font size and margin on `h1` elements within `section` and
// `article` contexts in Chrome, Firefox, and Safari.
2020-07-15 10:27:33 +00:00
h1 {
font-size: 2em;
margin: 0.67em 0;
}
// * Grouping content *
2020-07-15 10:27:33 +00:00
// Add the correct box sizing in Firefox.
2020-07-15 10:27:33 +00:00
hr {
box-sizing: content-box;
height: 0;
2020-07-15 10:27:33 +00:00
}
// 1. Correct the inheritance and scaling of font size in all browsers.
// 2. Correct the odd `em` font sizing in all browsers.
2020-07-15 10:27:33 +00:00
pre {
font-family: monospace, monospace; // 1
font-size: 1em; // 2
2020-07-15 10:27:33 +00:00
}
// * Text-level semantics *
2020-07-15 10:27:33 +00:00
// 1. Remove the bottom border in Chrome 57-
// 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
2020-07-15 10:27:33 +00:00
// abbr[title] {
// border-bottom: none; // 1
// text-decoration: underline; // 2
// text-decoration: underline dotted; // 2
// }
2020-07-15 10:27:33 +00:00
// Add the correct font weight in Chrome, Edge, and Safari.
2020-07-15 10:27:33 +00:00
b {
2020-07-15 10:27:33 +00:00
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.
2020-07-15 10:27:33 +00:00
code,
kbd,
samp {
font-family: monospace, monospace; // 1
font-size: 1em; // 2
2020-07-15 10:27:33 +00:00
}
// Add the correct font size in all browsers.
2020-07-15 10:27:33 +00:00
small {
font-size: 80%;
}
// Prevent `sub` and `sup` elements from affecting the line height in
// all browsers.
2020-07-15 10:27:33 +00:00
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
// * Forms *
2020-07-15 10:27:33 +00:00
// 1. Change the font styles in all browsers.
// 2. Remove the margin in Firefox and Safari.
2020-07-15 10:27:33 +00:00
button,
input,
optgroup,
select,
textarea {
font-family: inherit; // 1
font-size: 100%; // 1
line-height: 1.15; // 1
margin: 0; // 2
2020-07-15 10:27:33 +00:00
}
// Remove the inheritance of text transform in Edge, and Firefox.
// 1. Remove the inheritance of text transform in Firefox.
2020-07-15 10:27:33 +00:00
button,
select { // 1
2020-07-15 10:27:33 +00:00
text-transform: none;
}
// Correct the inability to style clickable types in iOS and Safari.
2020-07-15 10:27:33 +00:00
button {
-webkit-appearance: button;
2020-07-15 10:27:33 +00:00
}
// Remove the inner border and padding in Firefox.
2020-07-15 10:27:33 +00:00
button::-moz-focus-inner {
2020-07-15 10:27:33 +00:00
border-style: none;
padding: 0;
}
// Restore the focus styles unset by the previous rule.
2020-07-15 10:27:33 +00:00
button:-moz-focusring {
2020-07-15 10:27:33 +00:00
outline: 1px dotted ButtonText;
}
// * Interactive *
2020-07-15 10:27:33 +00:00
// Add the correct display in Edge and Firefox.
2020-07-15 10:27:33 +00:00
details {
2020-07-15 10:27:33 +00:00
display: block;
}
// Add the correct display in all browsers.
2020-07-15 10:27:33 +00:00
summary {
display: list-item;
}
/*! end normalise.css */