|
@ -9,142 +9,163 @@ |
|
|
* |
|
|
* |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
html { |
|
|
|
|
|
font-size: 100%; |
|
|
|
|
|
line-height: 1.15; // Correct the line height in all browsers. |
|
|
|
|
|
-webkit-text-size-adjust: 100%; // Prevent adjustments of font size after orientation changes in iOS. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
html { |
|
|
|
|
|
font-size: 100%; |
|
|
|
|
|
line-height: 1.15; // Correct the line height in all browsers. |
|
|
|
|
|
-webkit-text-size-adjust: 100%; // Prevent adjustments of font size after orientation changes in iOS. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
body, |
|
|
|
|
|
html { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
body, |
|
|
|
|
|
html { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
html, |
|
|
|
|
|
legend { |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
html, |
|
|
|
|
|
legend { |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
body { |
|
|
|
|
|
font-family: $plain-ui__font-family; |
|
|
|
|
|
color: var(--text); |
|
|
|
|
|
|
|
|
main { |
|
|
|
|
|
display: block; // Render the `main` element consistently in IE. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
background-color: var(--background); |
|
|
|
|
|
direction: $plain-ui__direction; |
|
|
|
|
|
|
|
|
*, |
|
|
|
|
|
*::after, |
|
|
|
|
|
*::before { |
|
|
|
|
|
box-sizing: inherit; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
font-size: $plain-ui__font-size; |
|
|
|
|
|
//@include crispy__media-breakpoints('line-height', $crispy__line-height__breakpoints); |
|
|
|
|
|
|
|
|
table { |
|
|
|
|
|
border-collapse: collapse; |
|
|
|
|
|
border-spacing: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
line-height: $plain-ui__line-height; |
|
|
|
|
|
//@include crispy__media-breakpoints('font-size', $crispy__font-size-breakpoints); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
a { |
|
|
|
|
|
color: var(--link); |
|
|
|
|
|
transition: color 0.5s; |
|
|
|
|
|
|
|
|
figure { |
|
|
|
|
|
margin: $plain-ui__margin; |
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
|
color: var(--link-hover); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
figcaption { |
|
|
|
|
|
margin: 10px 0; |
|
|
|
|
|
|
|
|
&:focus { |
|
|
|
|
|
outline: none; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
main { |
|
|
|
|
|
display: block; // Render the `main` element consistently in IE. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* form elements |
|
|
|
|
|
* |
|
|
|
|
|
* |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// Remove the margin in Firefox and Safari. |
|
|
|
|
|
button, |
|
|
|
|
|
input, |
|
|
|
|
|
optgroup, |
|
|
|
|
|
select, |
|
|
|
|
|
textarea { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
*, |
|
|
|
|
|
*::after, |
|
|
|
|
|
*::before { |
|
|
|
|
|
box-sizing: inherit; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
fieldset { |
|
|
|
|
|
//padding: $plain-ui__padding; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
table { |
|
|
|
|
|
border-collapse: collapse; |
|
|
|
|
|
border-spacing: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Remove the inheritance of text transform in Firefox |
|
|
|
|
|
button, |
|
|
|
|
|
select { |
|
|
|
|
|
text-transform: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
figure { |
|
|
|
|
|
margin: $plain-ui__margin; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Correct the inability to style clickable types in iOS and Safari. |
|
|
|
|
|
button, |
|
|
|
|
|
[type="button"], |
|
|
|
|
|
[type="reset"], |
|
|
|
|
|
[type="submit"] { |
|
|
|
|
|
-webkit-appearance: button; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
figcaption { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 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; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* form elements |
|
|
|
|
|
* |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// Restore the focus styles unset by the previous rule. |
|
|
|
|
|
button:-moz-focusring, |
|
|
|
|
|
[type="button"]:-moz-focusring, |
|
|
|
|
|
[type="reset"]:-moz-focusring, |
|
|
|
|
|
[type="submit"]:-moz-focusring { |
|
|
|
|
|
outline: 1px dotted ButtonText; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Remove the margin in Firefox and Safari. |
|
|
|
|
|
button, |
|
|
|
|
|
input, |
|
|
|
|
|
optgroup, |
|
|
|
|
|
select, |
|
|
|
|
|
textarea { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
legend { |
|
|
|
|
|
box-sizing: border-box; //Correct the text wrapping in Edge and IE. |
|
|
|
|
|
display: table; // Correct the text wrapping in Edge and IE. |
|
|
|
|
|
max-width: 100%; // Correct the text wrapping in Edge and IE. |
|
|
|
|
|
padding: 0; // Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers. |
|
|
|
|
|
white-space: normal; // Correct the text wrapping in Edge and IE. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
fieldset { |
|
|
|
|
|
margin: $plain-ui__margin; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Correct the cursor style of increment and decrement buttons in Chrome. |
|
|
|
|
|
[type="number"]::-webkit-inner-spin-button, |
|
|
|
|
|
[type="number"]::-webkit-outer-spin-button { |
|
|
|
|
|
height: auto; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Remove the inheritance of text transform in Firefox |
|
|
|
|
|
button, |
|
|
|
|
|
select { |
|
|
|
|
|
text-transform: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[type="search"] { |
|
|
|
|
|
-webkit-appearance: textfield; // Correct the odd appearance in Chrome and Safari. |
|
|
|
|
|
outline-offset: -2px; // Correct the outline style in Safari. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Correct the inability to style clickable types in iOS and Safari. |
|
|
|
|
|
[type="button"], |
|
|
|
|
|
[type="reset"], |
|
|
|
|
|
[type="submit"], |
|
|
|
|
|
button { |
|
|
|
|
|
-webkit-appearance: button; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Remove the inner padding in Chrome and Safari on macOS. |
|
|
|
|
|
[type="search"]::-webkit-search-decoration { |
|
|
|
|
|
-webkit-appearance: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Remove the inner border and padding in Firefox. |
|
|
|
|
|
[type="button"]::-moz-focus-inner, |
|
|
|
|
|
[type="reset"]::-moz-focus-inner, |
|
|
|
|
|
[type="submit"]::-moz-focus-inner, |
|
|
|
|
|
button::-moz-focus-inner { |
|
|
|
|
|
border-style: none; |
|
|
|
|
|
padding: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
::-webkit-file-upload-button { |
|
|
|
|
|
-webkit-appearance: button; // Correct the inability to style clickable types in iOS and Safari. |
|
|
|
|
|
font: inherit; // Change font properties to `inherit` in Safari. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Restore the focus styles unset by the previous rule. |
|
|
|
|
|
[type="button"]:-moz-focusring, |
|
|
|
|
|
[type="reset"]:-moz-focusring, |
|
|
|
|
|
[type="submit"]:-moz-focusring, |
|
|
|
|
|
button:-moz-focusring { |
|
|
|
|
|
outline: 1px dotted ButtonText; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
legend { |
|
|
|
|
|
box-sizing: border-box; //Correct the text wrapping in Edge and IE. |
|
|
|
|
|
display: table; // Correct the text wrapping in Edge and IE. |
|
|
|
|
|
max-width: 100%; // Correct the text wrapping in Edge and IE. |
|
|
|
|
|
padding: 0; // Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers. |
|
|
|
|
|
white-space: normal; // Correct the text wrapping in Edge and IE. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* hr |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// Correct the cursor style of increment and decrement buttons in Chrome. |
|
|
|
|
|
[type="number"]::-webkit-inner-spin-button, |
|
|
|
|
|
[type="number"]::-webkit-outer-spin-button { |
|
|
|
|
|
height: auto; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[type="search"] { |
|
|
|
|
|
-webkit-appearance: textfield; // Correct the odd appearance in Chrome and Safari. |
|
|
|
|
|
outline-offset: -2px; // Correct the outline style in Safari. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Remove the inner padding in Chrome and Safari on macOS. |
|
|
|
|
|
[type="search"]::-webkit-search-decoration { |
|
|
|
|
|
-webkit-appearance: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
::-webkit-file-upload-button { |
|
|
|
|
|
-webkit-appearance: button; // Correct the inability to style clickable types in iOS and Safari. |
|
|
|
|
|
font: inherit; // Change font properties to `inherit` in Safari. |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* hr |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
hr { |
|
|
hr { |
|
|
box-sizing: content-box; // Add the correct box sizing in Firefox. |
|
|
box-sizing: content-box; // Add the correct box sizing in Firefox. |
|
|
height: 0; // Add the correct box sizing in Firefox. |
|
|
height: 0; // Add the correct box sizing in Firefox. |
|
|
overflow: visible; // Show the overflow in Edge and IE. |
|
|
overflow: visible; // Show the overflow in Edge and IE. |
|
|
|
|
|
|
|
|
border: 0; |
|
|
border: 0; |
|
|
border-top: 1px solid $plain-ui__secondary; |
|
|
|
|
|
margin: 0 0 1rem; |
|
|
|
|
|
|
|
|
border-top: 1px solid var(--border); |
|
|
|
|
|
margin: $plain-ui__margin; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Add the correct vertical alignment in Chrome, Firefox, and Opera. |
|
|
// Add the correct vertical alignment in Chrome, Firefox, and Opera. |
|
@ -163,11 +184,10 @@ summary { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
code, |
|
|
code, |
|
|
pre, |
|
|
|
|
|
kbd, |
|
|
kbd, |
|
|
|
|
|
pre, |
|
|
samp { |
|
|
samp { |
|
|
font-family: $plain-ui__font-family; |
|
|
font-family: $plain-ui__font-family; |
|
|
font-size: $plain-ui__font-size; |
|
|
font-size: $plain-ui__font-size; |
|
|
|
|
|
|
|
|
//@include crispy__media-breakpoints('font-size', $plain-ui__font-size-monospace__breakpoints); |
|
|
|
|
|
|
|
|
// @TODO |
|
|
} |
|
|
} |