|
@@ -9,33 +9,33 @@
|
|
# ================================================================= */
|
|
# ================================================================= */
|
|
|
|
|
|
html {
|
|
html {
|
|
- box-sizing: border-box;
|
|
|
|
- -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS */
|
|
|
|
- word-break: normal;
|
|
|
|
- -moz-tab-size: 4;
|
|
|
|
- tab-size: 4;
|
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS */
|
|
|
|
+ word-break: normal;
|
|
|
|
+ -moz-tab-size: 4;
|
|
|
|
+ tab-size: 4;
|
|
}
|
|
}
|
|
|
|
|
|
*,
|
|
*,
|
|
::before,
|
|
::before,
|
|
::after {
|
|
::after {
|
|
- background-repeat: no-repeat; /* Set `background-repeat: no-repeat` to all elements and pseudo elements */
|
|
|
|
- box-sizing: inherit;
|
|
|
|
- appearance: none;
|
|
|
|
- -webkit-tap-highlight-color: rgba(255,255,255,0);
|
|
|
|
- text-rendering: optimizeLegibility!important;
|
|
|
|
- -webkit-font-smoothing: antialiased!important;
|
|
|
|
|
|
+ background-repeat: no-repeat; /* Set `background-repeat: no-repeat` to all elements and pseudo elements */
|
|
|
|
+ box-sizing: inherit;
|
|
|
|
+ appearance: none;
|
|
|
|
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
|
|
|
+ text-rendering: optimizeLegibility !important;
|
|
|
|
+ -webkit-font-smoothing: antialiased !important;
|
|
}
|
|
}
|
|
|
|
|
|
::before,
|
|
::before,
|
|
::after {
|
|
::after {
|
|
- text-decoration: inherit; /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */
|
|
|
|
- vertical-align: inherit;
|
|
|
|
|
|
+ text-decoration: inherit; /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */
|
|
|
|
+ vertical-align: inherit;
|
|
}
|
|
}
|
|
|
|
|
|
* {
|
|
* {
|
|
- padding: 0; /* Reset `padding` and `margin` of all elements */
|
|
|
|
- margin: 0;
|
|
|
|
|
|
+ padding: 0; /* Reset `padding` and `margin` of all elements */
|
|
|
|
+ margin: 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* # =================================================================
|
|
/* # =================================================================
|
|
@@ -43,80 +43,80 @@ html {
|
|
# ================================================================= */
|
|
# ================================================================= */
|
|
|
|
|
|
hr {
|
|
hr {
|
|
- overflow: visible; /* Show the overflow in Edge and IE */
|
|
|
|
- height: 0; /* Add the correct box sizing in Firefox */
|
|
|
|
- color: inherit; /* Correct border color in Firefox. */
|
|
|
|
|
|
+ overflow: visible; /* Show the overflow in Edge and IE */
|
|
|
|
+ height: 0; /* Add the correct box sizing in Firefox */
|
|
|
|
+ color: inherit; /* Correct border color in Firefox. */
|
|
}
|
|
}
|
|
|
|
|
|
details,
|
|
details,
|
|
main {
|
|
main {
|
|
- display: block; /* Render the `main` element consistently in IE. */
|
|
|
|
|
|
+ display: block; /* Render the `main` element consistently in IE. */
|
|
}
|
|
}
|
|
|
|
|
|
summary {
|
|
summary {
|
|
- display: list-item; /* Add the correct display in all browsers */
|
|
|
|
|
|
+ display: list-item; /* Add the correct display in all browsers */
|
|
}
|
|
}
|
|
|
|
|
|
small {
|
|
small {
|
|
- font-size: 80%; /* Set font-size to 80% in `small` elements */
|
|
|
|
|
|
+ font-size: 80%; /* Set font-size to 80% in `small` elements */
|
|
}
|
|
}
|
|
|
|
|
|
[hidden] {
|
|
[hidden] {
|
|
- display: none; /* Add the correct display in IE */
|
|
|
|
|
|
+ display: none; /* Add the correct display in IE */
|
|
}
|
|
}
|
|
|
|
|
|
abbr[title] {
|
|
abbr[title] {
|
|
- border-bottom: none; /* Remove the bottom border in Chrome 57 */
|
|
|
|
- /* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari */
|
|
|
|
- text-decoration: underline;
|
|
|
|
- text-decoration: underline dotted;
|
|
|
|
|
|
+ border-bottom: none; /* Remove the bottom border in Chrome 57 */
|
|
|
|
+ /* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari */
|
|
|
|
+ text-decoration: underline;
|
|
|
|
+ text-decoration: underline dotted;
|
|
}
|
|
}
|
|
|
|
|
|
a {
|
|
a {
|
|
- background-color: transparent; /* Remove the gray background on active links in IE 10 */
|
|
|
|
|
|
+ background-color: transparent; /* Remove the gray background on active links in IE 10 */
|
|
}
|
|
}
|
|
|
|
|
|
a:active,
|
|
a:active,
|
|
a:hover {
|
|
a:hover {
|
|
- outline-width: 0; /* Remove the outline when hovering in all browsers */
|
|
|
|
|
|
+ outline-width: 0; /* Remove the outline when hovering in all browsers */
|
|
}
|
|
}
|
|
|
|
|
|
code,
|
|
code,
|
|
kbd,
|
|
kbd,
|
|
pre,
|
|
pre,
|
|
samp {
|
|
samp {
|
|
- font-family: monospace, monospace; /* Specify the font family of code elements */
|
|
|
|
|
|
+ font-family: monospace, monospace; /* Specify the font family of code elements */
|
|
}
|
|
}
|
|
|
|
|
|
pre {
|
|
pre {
|
|
- font-size: 1em; /* Correct the odd `em` font sizing in all browsers */
|
|
|
|
|
|
+ font-size: 1em; /* Correct the odd `em` font sizing in all browsers */
|
|
}
|
|
}
|
|
|
|
|
|
b,
|
|
b,
|
|
strong {
|
|
strong {
|
|
- font-weight: bolder; /* Add the correct font weight in Chrome, Edge, and Safari */
|
|
|
|
|
|
+ font-weight: bolder; /* Add the correct font weight in Chrome, Edge, and Safari */
|
|
}
|
|
}
|
|
|
|
|
|
/* https://gist.github.com/unruthless/413930 */
|
|
/* https://gist.github.com/unruthless/413930 */
|
|
sub,
|
|
sub,
|
|
sup {
|
|
sup {
|
|
- font-size: 75%;
|
|
|
|
- line-height: 0;
|
|
|
|
- position: relative;
|
|
|
|
- vertical-align: baseline;
|
|
|
|
|
|
+ font-size: 75%;
|
|
|
|
+ line-height: 0;
|
|
|
|
+ position: relative;
|
|
|
|
+ vertical-align: baseline;
|
|
}
|
|
}
|
|
|
|
|
|
sub {
|
|
sub {
|
|
- bottom: -0.25em;
|
|
|
|
|
|
+ bottom: -0.25em;
|
|
}
|
|
}
|
|
|
|
|
|
sup {
|
|
sup {
|
|
- top: -0.5em;
|
|
|
|
|
|
+ top: -0.5em;
|
|
}
|
|
}
|
|
|
|
|
|
table {
|
|
table {
|
|
- border-color: inherit; /* Correct border color in all Chrome, Edge, and Safari. */
|
|
|
|
- text-indent: 0; /* Remove text indentation in Chrome, Edge, and Safari */
|
|
|
|
|
|
+ border-color: inherit; /* Correct border color in all Chrome, Edge, and Safari. */
|
|
|
|
+ text-indent: 0; /* Remove text indentation in Chrome, Edge, and Safari */
|
|
}
|
|
}
|
|
|
|
|
|
/* # =================================================================
|
|
/* # =================================================================
|
|
@@ -124,32 +124,32 @@ table {
|
|
# ================================================================= */
|
|
# ================================================================= */
|
|
|
|
|
|
input {
|
|
input {
|
|
- border-radius: 0;
|
|
|
|
|
|
+ border-radius: 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* Replace pointer cursor in disabled elements */
|
|
/* Replace pointer cursor in disabled elements */
|
|
[disabled] {
|
|
[disabled] {
|
|
- cursor: default;
|
|
|
|
- user-select: none;
|
|
|
|
|
|
+ cursor: default;
|
|
|
|
+ user-select: none;
|
|
}
|
|
}
|
|
|
|
|
|
[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; /* Correct the cursor style of increment and decrement buttons in Chrome */
|
|
|
|
|
|
+ height: auto; /* Correct the cursor style of increment and decrement buttons in Chrome */
|
|
}
|
|
}
|
|
|
|
|
|
[type='search'] {
|
|
[type='search'] {
|
|
- -webkit-appearance: textfield; /* Correct the odd appearance in Chrome and Safari */
|
|
|
|
- outline-offset: -2px; /* Correct the outline style in Safari */
|
|
|
|
|
|
+ -webkit-appearance: textfield; /* Correct the odd appearance in Chrome and Safari */
|
|
|
|
+ outline-offset: -2px; /* Correct the outline style in Safari */
|
|
}
|
|
}
|
|
|
|
|
|
[type='search']::-webkit-search-decoration {
|
|
[type='search']::-webkit-search-decoration {
|
|
- -webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS */
|
|
|
|
|
|
+ -webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS */
|
|
}
|
|
}
|
|
|
|
|
|
textarea {
|
|
textarea {
|
|
- overflow: auto; /* Internet Explorer 11+ */
|
|
|
|
- resize: vertical; /* Specify textarea resizability */
|
|
|
|
|
|
+ overflow: auto; /* Internet Explorer 11+ */
|
|
|
|
+ resize: vertical; /* Specify textarea resizability */
|
|
}
|
|
}
|
|
|
|
|
|
button,
|
|
button,
|
|
@@ -157,20 +157,20 @@ input,
|
|
optgroup,
|
|
optgroup,
|
|
select,
|
|
select,
|
|
textarea {
|
|
textarea {
|
|
- font: inherit; /* Specify font inheritance of form elements */
|
|
|
|
|
|
+ font: inherit; /* Specify font inheritance of form elements */
|
|
}
|
|
}
|
|
|
|
|
|
optgroup {
|
|
optgroup {
|
|
- font-weight: bold; /* Restore the font weight unset by the previous rule */
|
|
|
|
|
|
+ font-weight: bold; /* Restore the font weight unset by the previous rule */
|
|
}
|
|
}
|
|
|
|
|
|
button {
|
|
button {
|
|
- overflow: visible; /* Address `overflow` set to `hidden` in IE 8/9/10/11 */
|
|
|
|
|
|
+ overflow: visible; /* Address `overflow` set to `hidden` in IE 8/9/10/11 */
|
|
}
|
|
}
|
|
|
|
|
|
button,
|
|
button,
|
|
select {
|
|
select {
|
|
- text-transform: none; /* Firefox 40+, Internet Explorer 11- */
|
|
|
|
|
|
+ text-transform: none; /* Firefox 40+, Internet Explorer 11- */
|
|
}
|
|
}
|
|
|
|
|
|
/* Apply cursor pointer to button elements */
|
|
/* Apply cursor pointer to button elements */
|
|
@@ -179,8 +179,8 @@ button,
|
|
[type='reset'],
|
|
[type='reset'],
|
|
[type='submit'],
|
|
[type='submit'],
|
|
[role='button'] {
|
|
[role='button'] {
|
|
- cursor: pointer;
|
|
|
|
- color: inherit;
|
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ color: inherit;
|
|
}
|
|
}
|
|
|
|
|
|
/* Remove inner padding and border in Firefox 4+ */
|
|
/* Remove inner padding and border in Firefox 4+ */
|
|
@@ -188,8 +188,8 @@ button::-moz-focus-inner,
|
|
[type='button']::-moz-focus-inner,
|
|
[type='button']::-moz-focus-inner,
|
|
[type='reset']::-moz-focus-inner,
|
|
[type='reset']::-moz-focus-inner,
|
|
[type='submit']::-moz-focus-inner {
|
|
[type='submit']::-moz-focus-inner {
|
|
- border-style: none;
|
|
|
|
- padding: 0;
|
|
|
|
|
|
+ border-style: none;
|
|
|
|
+ padding: 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* Replace focus style removed in the border reset above */
|
|
/* Replace focus style removed in the border reset above */
|
|
@@ -197,14 +197,14 @@ button:-moz-focusring,
|
|
[type='button']::-moz-focus-inner,
|
|
[type='button']::-moz-focus-inner,
|
|
[type='reset']::-moz-focus-inner,
|
|
[type='reset']::-moz-focus-inner,
|
|
[type='submit']::-moz-focus-inner {
|
|
[type='submit']::-moz-focus-inner {
|
|
- outline: 1px dotted #ccc;
|
|
|
|
|
|
+ outline: 1px dotted #ccc;
|
|
}
|
|
}
|
|
|
|
|
|
button,
|
|
button,
|
|
html [type='button'], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */
|
|
html [type='button'], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */
|
|
[type='reset'],
|
|
[type='reset'],
|
|
[type='submit'] {
|
|
[type='submit'] {
|
|
- -webkit-appearance: button; /* Correct the inability to style clickable types in iOS */
|
|
|
|
|
|
+ -webkit-appearance: button; /* Correct the inability to style clickable types in iOS */
|
|
}
|
|
}
|
|
|
|
|
|
/* Remove the default button styling in all browsers */
|
|
/* Remove the default button styling in all browsers */
|
|
@@ -212,8 +212,8 @@ button,
|
|
input,
|
|
input,
|
|
select,
|
|
select,
|
|
textarea {
|
|
textarea {
|
|
- background-color: transparent;
|
|
|
|
- border-style: none;
|
|
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ border-style: none;
|
|
}
|
|
}
|
|
|
|
|
|
a:focus,
|
|
a:focus,
|
|
@@ -221,37 +221,37 @@ button:focus,
|
|
input:focus,
|
|
input:focus,
|
|
select:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
textarea:focus {
|
|
- outline-width: 0;
|
|
|
|
|
|
+ outline-width: 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* Style select like a standard input */
|
|
/* Style select like a standard input */
|
|
select {
|
|
select {
|
|
- -moz-appearance: none; /* Firefox 36+ */
|
|
|
|
- -webkit-appearance: none; /* Chrome 41+ */
|
|
|
|
|
|
+ -moz-appearance: none; /* Firefox 36+ */
|
|
|
|
+ -webkit-appearance: none; /* Chrome 41+ */
|
|
}
|
|
}
|
|
|
|
|
|
select::-ms-expand {
|
|
select::-ms-expand {
|
|
- display: none; /* Internet Explorer 11+ */
|
|
|
|
|
|
+ display: none; /* Internet Explorer 11+ */
|
|
}
|
|
}
|
|
|
|
|
|
select::-ms-value {
|
|
select::-ms-value {
|
|
- color: currentColor; /* Internet Explorer 11+ */
|
|
|
|
|
|
+ color: currentColor; /* Internet Explorer 11+ */
|
|
}
|
|
}
|
|
|
|
|
|
legend {
|
|
legend {
|
|
- border: 0; /* Correct `color` not being inherited in IE 8/9/10/11 */
|
|
|
|
- color: inherit; /* Correct the color inheritance from `fieldset` elements in IE */
|
|
|
|
- display: table; /* Correct the text wrapping in Edge and IE */
|
|
|
|
- max-width: 100%; /* Correct the text wrapping in Edge and IE */
|
|
|
|
- white-space: normal; /* Correct the text wrapping in Edge and IE */
|
|
|
|
- max-width: 100%; /* Correct the text wrapping in Edge 18- and IE */
|
|
|
|
|
|
+ border: 0; /* Correct `color` not being inherited in IE 8/9/10/11 */
|
|
|
|
+ color: inherit; /* Correct the color inheritance from `fieldset` elements in IE */
|
|
|
|
+ display: table; /* Correct the text wrapping in Edge and IE */
|
|
|
|
+ max-width: 100%; /* Correct the text wrapping in Edge and IE */
|
|
|
|
+ white-space: normal; /* Correct the text wrapping in Edge and IE */
|
|
|
|
+ max-width: 100%; /* Correct the text wrapping in Edge 18- and IE */
|
|
}
|
|
}
|
|
|
|
|
|
::-webkit-file-upload-button {
|
|
::-webkit-file-upload-button {
|
|
- /* Correct the inability to style clickable types in iOS and Safari */
|
|
|
|
- -webkit-appearance: button;
|
|
|
|
- color: inherit;
|
|
|
|
- font: inherit; /* Change font properties to `inherit` in Chrome and Safari */
|
|
|
|
|
|
+ /* Correct the inability to style clickable types in iOS and Safari */
|
|
|
|
+ -webkit-appearance: button;
|
|
|
|
+ color: inherit;
|
|
|
|
+ font: inherit; /* Change font properties to `inherit` in Chrome and Safari */
|
|
}
|
|
}
|
|
|
|
|
|
/* # =================================================================
|
|
/* # =================================================================
|
|
@@ -259,12 +259,12 @@ legend {
|
|
# ================================================================= */
|
|
# ================================================================= */
|
|
|
|
|
|
img {
|
|
img {
|
|
- border-style: none; /* Remove border when inside `a` element in IE 8/9/10 */
|
|
|
|
|
|
+ border-style: none; /* Remove border when inside `a` element in IE 8/9/10 */
|
|
}
|
|
}
|
|
|
|
|
|
/* Add the correct vertical alignment in Chrome, Firefox, and Opera */
|
|
/* Add the correct vertical alignment in Chrome, Firefox, and Opera */
|
|
progress {
|
|
progress {
|
|
- vertical-align: baseline;
|
|
|
|
|
|
+ vertical-align: baseline;
|
|
}
|
|
}
|
|
|
|
|
|
/* # =================================================================
|
|
/* # =================================================================
|
|
@@ -273,21 +273,21 @@ progress {
|
|
|
|
|
|
/* Specify the progress cursor of updating elements */
|
|
/* Specify the progress cursor of updating elements */
|
|
[aria-busy='true'] {
|
|
[aria-busy='true'] {
|
|
- cursor: progress;
|
|
|
|
|
|
+ cursor: progress;
|
|
}
|
|
}
|
|
|
|
|
|
/* Specify the pointer cursor of trigger elements */
|
|
/* Specify the pointer cursor of trigger elements */
|
|
[aria-controls] {
|
|
[aria-controls] {
|
|
- cursor: pointer;
|
|
|
|
|
|
+ cursor: pointer;
|
|
}
|
|
}
|
|
|
|
|
|
/* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */
|
|
/* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */
|
|
[aria-disabled='true'] {
|
|
[aria-disabled='true'] {
|
|
- cursor: default;
|
|
|
|
|
|
+ cursor: default;
|
|
}
|
|
}
|
|
|
|
|
|
.disabled,
|
|
.disabled,
|
|
-:disabled{
|
|
|
|
- opacity: 0.3 !important;
|
|
|
|
- pointer-events: none !important;
|
|
|
|
|
|
+:disabled {
|
|
|
|
+ opacity: 0.3 !important;
|
|
|
|
+ pointer-events: none !important;
|
|
}
|
|
}
|