2020-11-20 08:54:24 +01:00
|
|
|
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
|
2016-02-06 21:28:18 +01:00
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
2015-04-17 02:15:29 +02:00
|
|
|
// Reboot
|
2012-06-29 06:46:45 +02:00
|
|
|
//
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Normalization of HTML elements, manually forked from Normalize.css to remove
|
|
|
|
// styles targeting irrelevant browsers while applying new styles.
|
|
|
|
//
|
|
|
|
// Normalize is licensed MIT. https://github.com/necolas/normalize.css
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Document
|
2015-04-17 02:15:29 +02:00
|
|
|
//
|
2019-04-30 10:00:34 +02:00
|
|
|
// Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
|
2020-03-05 14:51:14 +01:00
|
|
|
|
2017-08-11 08:05:32 +02:00
|
|
|
*,
|
|
|
|
*::before,
|
|
|
|
*::after {
|
2019-04-30 10:00:34 +02:00
|
|
|
box-sizing: border-box;
|
2015-04-27 21:15:17 +02:00
|
|
|
}
|
2015-01-21 21:41:11 +01:00
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
2019-08-24 15:11:02 +02:00
|
|
|
// Root
|
|
|
|
//
|
2020-03-05 14:51:14 +01:00
|
|
|
// Ability to the value of the root font sizes, affecting the value of `rem`.
|
|
|
|
// null by default, thus nothing is generated.
|
2019-08-24 15:11:02 +02:00
|
|
|
|
|
|
|
:root {
|
2021-07-19 05:38:30 +02:00
|
|
|
@if $font-size-root != null {
|
2021-08-05 07:39:04 +02:00
|
|
|
font-size: var(--#{$variable-prefix}root-font-size);
|
2021-07-19 05:38:30 +02:00
|
|
|
}
|
2020-10-19 11:00:37 +02:00
|
|
|
|
|
|
|
@if $enable-smooth-scroll {
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
|
|
|
}
|
2019-08-24 15:11:02 +02:00
|
|
|
}
|
2015-11-30 04:55:51 +01:00
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Body
|
2015-04-17 03:39:45 +02:00
|
|
|
//
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// 1. Remove the margin in all browsers.
|
2019-07-15 13:34:01 +02:00
|
|
|
// 2. As a best practice, apply a default `background-color`.
|
2020-03-09 21:48:37 +01:00
|
|
|
// 3. Prevent adjustments of font size after orientation changes in iOS.
|
2019-07-15 13:34:01 +02:00
|
|
|
// 4. Change the default tap highlight to be completely transparent in iOS.
|
2020-03-05 14:51:14 +01:00
|
|
|
|
2021-07-19 05:38:30 +02:00
|
|
|
// scss-docs-start reboot-body-rules
|
2011-05-04 03:09:25 +02:00
|
|
|
body {
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
margin: 0; // 1
|
2021-07-19 05:38:30 +02:00
|
|
|
font-family: var(--#{$variable-prefix}body-font-family);
|
2021-11-26 01:01:19 +01:00
|
|
|
font-size: var(--#{$variable-prefix}body-font-size);
|
2021-07-19 05:38:30 +02:00
|
|
|
font-weight: var(--#{$variable-prefix}body-font-weight);
|
|
|
|
line-height: var(--#{$variable-prefix}body-line-height);
|
|
|
|
color: var(--#{$variable-prefix}body-color);
|
|
|
|
text-align: var(--#{$variable-prefix}body-text-align);
|
|
|
|
background-color: var(--#{$variable-prefix}body-bg); // 2
|
2019-07-15 13:34:01 +02:00
|
|
|
-webkit-text-size-adjust: 100%; // 3
|
|
|
|
-webkit-tap-highlight-color: rgba($black, 0); // 4
|
2012-11-30 09:24:17 +01:00
|
|
|
}
|
2021-07-19 05:38:30 +02:00
|
|
|
// scss-docs-end reboot-body-rules
|
2012-11-30 09:24:17 +01:00
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Content grouping
|
|
|
|
//
|
2019-04-30 10:00:34 +02:00
|
|
|
// 1. Reset Firefox's gray color
|
|
|
|
// 2. Set correct height and prevent the `size` attribute to make the `hr` look like an input field
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
|
|
|
|
hr {
|
2019-04-30 10:00:34 +02:00
|
|
|
margin: $hr-margin-y 0;
|
|
|
|
color: $hr-color; // 1
|
2021-05-04 00:11:11 +02:00
|
|
|
background-color: $hr-bg-color;
|
|
|
|
border: $hr-border-width;
|
2019-04-30 10:00:34 +02:00
|
|
|
opacity: $hr-opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr:not([size]) {
|
|
|
|
height: $hr-height; // 2
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
// Typography
|
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Remove top margins from headings
|
|
|
|
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
|
|
|
// margin for easier control within type scales as it avoids margin collapsing.
|
2015-04-17 03:39:45 +02:00
|
|
|
|
2019-04-30 10:00:34 +02:00
|
|
|
%heading {
|
2019-06-17 20:08:37 +02:00
|
|
|
margin-top: 0; // 1
|
2017-09-25 11:22:43 +02:00
|
|
|
margin-bottom: $headings-margin-bottom;
|
2019-04-30 10:00:34 +02:00
|
|
|
font-family: $headings-font-family;
|
2019-05-02 21:35:58 +02:00
|
|
|
font-style: $headings-font-style;
|
2019-04-30 10:00:34 +02:00
|
|
|
font-weight: $headings-font-weight;
|
|
|
|
line-height: $headings-line-height;
|
|
|
|
color: $headings-color;
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2019-04-30 10:00:34 +02:00
|
|
|
h1 {
|
|
|
|
@extend %heading;
|
|
|
|
@include font-size($h1-font-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
@extend %heading;
|
|
|
|
@include font-size($h2-font-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
@extend %heading;
|
|
|
|
@include font-size($h3-font-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
@extend %heading;
|
|
|
|
@include font-size($h4-font-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
@extend %heading;
|
|
|
|
@include font-size($h5-font-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
@extend %heading;
|
|
|
|
@include font-size($h6-font-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
// Reset margins on paragraphs
|
|
|
|
//
|
|
|
|
// Similarly, the top margin on `<p>`s get reset. However, we also reset the
|
|
|
|
// bottom margin to use `rem` units instead of `em`.
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
p {
|
|
|
|
margin-top: 0;
|
2017-08-11 08:00:01 +02:00
|
|
|
margin-bottom: $paragraph-margin-bottom;
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2016-11-29 05:26:28 +01:00
|
|
|
// Abbreviations
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
//
|
2020-07-22 21:33:11 +02:00
|
|
|
// 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin
|
2020-03-09 21:48:37 +01:00
|
|
|
// 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// 3. Add explicit cursor to indicate changed behavior.
|
2019-06-17 20:08:37 +02:00
|
|
|
// 4. Prevent the text-decoration to be skipped.
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
|
2015-04-18 20:13:45 +02:00
|
|
|
abbr[title],
|
2020-07-22 21:33:11 +02:00
|
|
|
abbr[data-bs-original-title] { // 1
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
text-decoration: underline dotted; // 2
|
|
|
|
cursor: help; // 3
|
2019-06-17 20:08:37 +02:00
|
|
|
text-decoration-skip-ink: none; // 4
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
// Address
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
address {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
font-style: normal;
|
2013-03-27 01:12:17 +01:00
|
|
|
line-height: inherit;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
|
|
|
// Lists
|
|
|
|
|
v5: Forms update (#28450)
* Initial spike of consolidated form checks
* Stub out forms rearrangement
- Prepping to drop non-custom file and range inputs
- Prepping to merge custom and native checks and radios (with switches)
- Prepping to merge custom select with form select
- Moving docs arround so forms has it's own area given volume of CSS
* Move input group Sass file to forms subdir
* Start to split and move the docs around
* Simpler imports
* Copyediting
* delete overview file
* Remove commented out code
* remove the custom-forms import
* rewrite flex-check as form-check, replace all custom properties
* Remove old forms doc
* stub out new subpage link section
* update migration guide
* Update nav, forms overview in page nav, and descriptions
* fix check bg position
* fix margin-top calculation
* rename .custom-select to .form-select
* Update validation styles for new checks
* add some vertical margin, fix inline checks
* fix docs examples
* better way to do this contents stuff, redo the toc while i'm at it
* page restyle for docs while here
* un-callout that, edit text
* redo padding on toc
* fix toc
* start to cleanup checks docs
* Rewrite Markdown tables into HTML
* Redesign tables, redo their docs
* Replace Open Iconic icons with custom Bootstrap icons
* Redesign the docs navbar, add a subheader, redo the sidebar
* Redesign docs homepage a bit
* Simplify table style overrides for docs tables
* Simplify docs typography for page titles and reading line length
* Stub out icons page
* Part of sidebar update, remove migration from nav.yml
* Move toc CSS to separate partial
* Change appearance of overview page
* fix sidebar arrow direction
* Add footer to docs layout
* Update descriptions
* Drop the .form-group class for margin utilities
* Remove lingering form-group-margin-bottom var
* improve footer spacing
* add headings to range page
* uncomment form range css
* Rename .custom-range to .form-range
* Drop unused docs var
* Uncomment the comment
* Remove unused variable
* Fix radio image sizing
* Reboot update: reset horizontal ul and ol padding
* de-dupe IDs
* tweak toc styles
* nvm, fix dropdown versions stuff
* remove sidebar nav toggle for now
* broken html
* fix more broken html, move css
* scss linting
* comment out broken helper docs
* scope styles
* scope styles
* Fixes #25540 and fixes #26407 for v5 only
* Update sidebar once more
* Match new sidenav order
* fix syntax error
* Rename custom-file to form-file, update paths, update migration docs for previous changes in #28696
* rename back
* fix size and alignment
* rename that back too
2019-07-12 23:52:33 +02:00
|
|
|
ol,
|
|
|
|
ul {
|
|
|
|
padding-left: 2rem;
|
|
|
|
}
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
ol,
|
|
|
|
ul,
|
|
|
|
dl {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2011-09-03 08:01:38 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
ol ol,
|
|
|
|
ul ul,
|
|
|
|
ol ul,
|
|
|
|
ul ol {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dt {
|
2015-12-06 21:28:15 +01:00
|
|
|
font-weight: $dt-font-weight;
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Undo browser default
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
dd {
|
|
|
|
margin-bottom: .5rem;
|
2019-06-17 20:08:37 +02:00
|
|
|
margin-left: 0; // 1
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
|
|
|
// Blockquote
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
blockquote {
|
|
|
|
margin: 0 0 1rem;
|
|
|
|
}
|
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
|
|
|
// Strong
|
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// Add the correct font weight in Chrome, Edge, and Safari
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
b,
|
|
|
|
strong {
|
2019-06-17 20:08:37 +02:00
|
|
|
font-weight: $font-weight-bolder;
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
// Small
|
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// Add the correct font size in all browsers
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
small {
|
2019-06-17 20:08:37 +02:00
|
|
|
@include font-size($small-font-size);
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
|
|
|
// Mark
|
|
|
|
|
|
|
|
mark {
|
|
|
|
padding: $mark-padding;
|
|
|
|
background-color: $mark-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Sub and Sup
|
|
|
|
//
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Prevent `sub` and `sup` elements from affecting the line height in
|
|
|
|
// all browsers.
|
|
|
|
|
|
|
|
sub,
|
|
|
|
sup {
|
|
|
|
position: relative;
|
2019-08-22 10:14:42 +02:00
|
|
|
@include font-size($sub-sup-font-size);
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
line-height: 0;
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub { bottom: -.25em; }
|
|
|
|
sup { top: -.5em; }
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
|
2012-02-21 17:24:18 +01:00
|
|
|
// Links
|
2011-05-04 03:09:25 +02:00
|
|
|
|
|
|
|
a {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $link-color;
|
2015-09-02 06:14:51 +02:00
|
|
|
text-decoration: $link-decoration;
|
2013-08-18 23:28:55 +02:00
|
|
|
|
2018-09-18 01:10:07 +02:00
|
|
|
&:hover {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $link-hover-color;
|
|
|
|
text-decoration: $link-hover-decoration;
|
2013-08-18 23:28:55 +02:00
|
|
|
}
|
2012-12-21 05:52:20 +01:00
|
|
|
}
|
2012-07-27 09:06:43 +02:00
|
|
|
|
2019-07-29 17:49:07 +02:00
|
|
|
// And undo these styles for placeholder links/named anchors (without href).
|
2016-03-06 07:34:59 +01:00
|
|
|
// It would be more straightforward to just use a[href] in previous block, but that
|
|
|
|
// causes specificity issues in many other styles that are too complex to fix.
|
|
|
|
// See https://github.com/twbs/bootstrap/issues/19402
|
2016-03-05 02:01:09 +01:00
|
|
|
|
2020-05-15 14:59:06 +02:00
|
|
|
a:not([href]):not([class]) {
|
2018-09-18 01:10:07 +02:00
|
|
|
&,
|
2019-07-29 09:32:09 +02:00
|
|
|
&:hover {
|
2016-03-05 02:01:09 +01:00
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-27 09:06:43 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
// Code
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
pre,
|
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
samp {
|
2020-06-09 10:20:53 +02:00
|
|
|
font-family: $font-family-code;
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size(1em); // Correct the odd `em` font sizing in all browsers.
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Remove browser default top margin
|
|
|
|
// 2. Reset browser default of `1em` to use `rem`s
|
|
|
|
// 3. Don't allow content to break outside
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
pre {
|
2019-06-17 20:08:37 +02:00
|
|
|
display: block;
|
|
|
|
margin-top: 0; // 1
|
|
|
|
margin-bottom: 1rem; // 2
|
|
|
|
overflow: auto; // 3
|
|
|
|
@include font-size($code-font-size);
|
|
|
|
color: $pre-color;
|
|
|
|
|
|
|
|
// Account for some code outputs that place code tags in pre tags
|
|
|
|
code {
|
|
|
|
@include font-size(inherit);
|
|
|
|
color: inherit;
|
|
|
|
word-break: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
@include font-size($code-font-size);
|
|
|
|
color: $code-color;
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
// Streamline the style when inside anchors to avoid broken underline and more
|
|
|
|
a > & {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kbd {
|
|
|
|
padding: $kbd-padding-y $kbd-padding-x;
|
|
|
|
@include font-size($kbd-font-size);
|
|
|
|
color: $kbd-color;
|
|
|
|
background-color: $kbd-bg;
|
|
|
|
@include border-radius($border-radius-sm);
|
|
|
|
|
|
|
|
kbd {
|
|
|
|
padding: 0;
|
2019-08-22 10:14:42 +02:00
|
|
|
@include font-size(1em);
|
2019-06-17 20:08:37 +02:00
|
|
|
font-weight: $nested-kbd-font-weight;
|
|
|
|
}
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Figures
|
2020-03-05 14:51:14 +01:00
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// Apply a consistent margin strategy (matches our type styles).
|
2015-04-17 03:39:45 +02:00
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 0 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Images and content
|
2012-07-27 09:06:43 +02:00
|
|
|
|
2020-03-09 21:48:37 +01:00
|
|
|
img,
|
2018-07-20 05:21:19 +02:00
|
|
|
svg {
|
2018-07-20 16:33:26 +02:00
|
|
|
vertical-align: middle;
|
2013-06-28 09:09:10 +02:00
|
|
|
}
|
|
|
|
|
2013-08-19 04:24:10 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
// Tables
|
2020-03-05 14:51:14 +01:00
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// Prevent double borders
|
2015-04-17 03:39:45 +02:00
|
|
|
|
|
|
|
table {
|
2020-03-24 10:00:45 +01:00
|
|
|
caption-side: bottom;
|
2019-06-17 20:08:37 +02:00
|
|
|
border-collapse: collapse;
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
caption {
|
2020-05-14 19:43:33 +02:00
|
|
|
padding-top: $table-cell-padding-y;
|
|
|
|
padding-bottom: $table-cell-padding-y;
|
2018-02-19 23:42:54 +01:00
|
|
|
color: $table-caption-color;
|
2015-04-17 03:39:45 +02:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2020-06-17 15:55:28 +02:00
|
|
|
// 1. Removes font-weight bold by inheriting
|
|
|
|
// 2. Matches default `<td>` alignment by inheriting `text-align`.
|
|
|
|
// 3. Fix alignment for Safari
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
th {
|
2020-06-17 15:55:28 +02:00
|
|
|
font-weight: $table-th-font-weight; // 1
|
|
|
|
text-align: inherit; // 2
|
|
|
|
text-align: -webkit-match-parent; // 3
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2020-03-24 15:00:00 +01:00
|
|
|
thead,
|
|
|
|
tbody,
|
|
|
|
tfoot,
|
|
|
|
tr,
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
border-color: inherit;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0;
|
|
|
|
}
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
|
|
|
|
// Forms
|
2020-03-05 14:51:14 +01:00
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Allow labels to use `margin` for spacing.
|
2015-04-17 03:39:45 +02:00
|
|
|
|
|
|
|
label {
|
2019-06-17 20:08:37 +02:00
|
|
|
display: inline-block; // 1
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2017-09-27 16:01:00 +02:00
|
|
|
// Remove the default `border-radius` that macOS Chrome adds.
|
2020-03-05 14:51:14 +01:00
|
|
|
// See https://github.com/twbs/bootstrap/issues/24093
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2017-09-27 16:01:00 +02:00
|
|
|
button {
|
2020-09-28 13:57:48 +02:00
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2017-09-27 16:01:00 +02:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2021-01-10 11:42:26 +01:00
|
|
|
// Explicitly remove focus outline in Chromium when it shouldn't be
|
|
|
|
// visible (e.g. as result of mouse click or touch tap). It already
|
|
|
|
// should be doing this automatically, but seems to currently be
|
|
|
|
// confused and applies its very visible two-tone outline anyway.
|
|
|
|
|
|
|
|
button:focus:not(:focus-visible) {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Remove the margin in Firefox and Safari
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
optgroup,
|
2015-04-17 03:39:45 +02:00
|
|
|
textarea {
|
2020-03-05 14:51:14 +01:00
|
|
|
margin: 0; // 1
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
font-family: inherit;
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size(inherit);
|
2015-04-17 03:39:45 +02:00
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// Remove the inheritance of text transform in Firefox
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
button,
|
|
|
|
select {
|
2019-06-17 20:08:37 +02:00
|
|
|
text-transform: none;
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
2020-06-16 20:30:40 +02:00
|
|
|
// Set the cursor for non-`<button>` buttons
|
|
|
|
//
|
|
|
|
// Details at https://github.com/twbs/bootstrap/pull/30562
|
|
|
|
[role="button"] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2019-01-04 10:40:10 +01:00
|
|
|
select {
|
2021-03-02 15:09:14 +01:00
|
|
|
// Remove the inheritance of word-wrap in Safari.
|
|
|
|
// See https://github.com/twbs/bootstrap/issues/24990
|
2019-01-04 10:40:10 +01:00
|
|
|
word-wrap: normal;
|
2021-03-02 15:09:14 +01:00
|
|
|
|
|
|
|
// Undo the opacity change from Chrome
|
|
|
|
&:disabled {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-01-04 10:40:10 +01:00
|
|
|
}
|
|
|
|
|
2019-08-24 01:59:57 +02:00
|
|
|
// Remove the dropdown arrow in Chrome from inputs built with datalists.
|
2020-03-05 14:51:14 +01:00
|
|
|
// See https://stackoverflow.com/a/54997118
|
2019-08-24 01:59:57 +02:00
|
|
|
|
|
|
|
[list]::-webkit-calendar-picker-indicator {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-01-04 10:40:10 +01:00
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
|
|
|
// controls in Android 4.
|
|
|
|
// 2. Correct the inability to style clickable types in iOS and Safari.
|
2019-06-17 20:08:37 +02:00
|
|
|
// 3. Opinionated: add "hand" cursor to non-disabled button elements.
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
button,
|
2018-10-27 06:04:56 +02:00
|
|
|
[type="button"], // 1
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
[type="reset"],
|
|
|
|
[type="submit"] {
|
|
|
|
-webkit-appearance: button; // 2
|
|
|
|
|
2020-04-14 02:48:19 +02:00
|
|
|
@if $enable-button-pointers {
|
2018-12-29 12:55:20 +01:00
|
|
|
&:not(:disabled) {
|
2019-06-17 20:08:37 +02:00
|
|
|
cursor: pointer; // 3
|
2018-12-29 12:55:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
|
2019-06-17 20:08:37 +02:00
|
|
|
|
|
|
|
::-moz-focus-inner {
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
padding: 0;
|
|
|
|
border-style: none;
|
|
|
|
}
|
|
|
|
|
2020-03-09 21:48:37 +01:00
|
|
|
// 1. Textareas should really only resize vertically so they don't break their (horizontal) containers.
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
textarea {
|
2020-03-09 21:48:37 +01:00
|
|
|
resize: vertical; // 1
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Browsers set a default `min-width: min-content;` on fieldsets,
|
|
|
|
// unlike e.g. `<div>`s, which have `min-width: 0;` by default.
|
|
|
|
// So we reset that to ensure fieldsets behave more like a standard block element.
|
|
|
|
// See https://github.com/twbs/bootstrap/issues/12359
|
|
|
|
// and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
|
|
|
|
// 2. Reset the default outline behavior of fieldsets so they don't affect page layout.
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
fieldset {
|
2019-06-17 20:08:37 +02:00
|
|
|
min-width: 0; // 1
|
2020-03-05 14:51:14 +01:00
|
|
|
padding: 0; // 2
|
2019-06-17 20:08:37 +02:00
|
|
|
margin: 0; // 2
|
|
|
|
border: 0; // 2
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2020-03-21 15:44:08 +01:00
|
|
|
// 1. By using `float: left`, the legend will behave like a block element.
|
|
|
|
// This way the border of a fieldset wraps around the legend if present.
|
2020-10-26 15:09:07 +01:00
|
|
|
// 2. Fix wrapping bug.
|
2020-03-21 15:44:08 +01:00
|
|
|
// See https://github.com/twbs/bootstrap/issues/29712
|
2019-06-17 20:08:37 +02:00
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
legend {
|
2019-06-17 20:08:37 +02:00
|
|
|
float: left; // 1
|
2015-04-17 03:39:45 +02:00
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
2019-06-17 20:08:37 +02:00
|
|
|
margin-bottom: $legend-margin-bottom;
|
|
|
|
@include font-size($legend-font-size);
|
|
|
|
font-weight: $legend-font-weight;
|
2015-04-17 03:39:45 +02:00
|
|
|
line-height: inherit;
|
2020-03-21 15:44:08 +01:00
|
|
|
|
|
|
|
+ * {
|
2020-10-26 15:09:07 +01:00
|
|
|
clear: left; // 2
|
2020-03-21 15:44:08 +01:00
|
|
|
}
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// Fix height of inputs with a type of datetime-local, date, month, week, or time
|
|
|
|
// See https://github.com/twbs/bootstrap/issues/18842
|
|
|
|
|
2020-02-22 21:48:14 +01:00
|
|
|
::-webkit-datetime-edit-fields-wrapper,
|
|
|
|
::-webkit-datetime-edit-text,
|
|
|
|
::-webkit-datetime-edit-minute,
|
|
|
|
::-webkit-datetime-edit-hour-field,
|
|
|
|
::-webkit-datetime-edit-day-field,
|
|
|
|
::-webkit-datetime-edit-month-field,
|
|
|
|
::-webkit-datetime-edit-year-field {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-inner-spin-button {
|
|
|
|
height: auto;
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Correct the outline style in Safari.
|
|
|
|
// 2. This overrides the extra rounded corners on search inputs in iOS so that our
|
|
|
|
// `.form-control` class can properly style them. Note that this cannot simply
|
|
|
|
// be added to `.form-control` as it's not specific enough. For details, see
|
|
|
|
// https://github.com/twbs/bootstrap/issues/11586.
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
[type="search"] {
|
2019-06-17 20:08:37 +02:00
|
|
|
outline-offset: -2px; // 1
|
|
|
|
-webkit-appearance: textfield; // 2
|
2015-04-17 03:39:45 +02:00
|
|
|
}
|
|
|
|
|
2020-06-26 16:06:20 +02:00
|
|
|
// 1. A few input types should stay LTR
|
|
|
|
// See https://rtlstyling.com/posts/rtl-styling#form-inputs
|
|
|
|
// 2. RTL only output
|
|
|
|
// See https://rtlcss.com/learn/usage-guide/control-directives/#raw
|
|
|
|
|
|
|
|
/* rtl:raw:
|
|
|
|
[type="tel"],
|
|
|
|
[type="url"],
|
|
|
|
[type="email"],
|
|
|
|
[type="number"] {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2018-12-27 23:48:51 +01:00
|
|
|
// Remove the inner padding in Chrome and Safari on macOS.
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
|
2019-06-17 20:08:37 +02:00
|
|
|
::-webkit-search-decoration {
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
|
2019-08-17 15:55:22 +02:00
|
|
|
// Remove padding around color pickers in webkit browsers
|
|
|
|
|
|
|
|
::-webkit-color-swatch-wrapper {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2020-10-28 15:03:41 +01:00
|
|
|
|
2021-10-29 07:47:24 +02:00
|
|
|
// 1. Inherit font family and line height for file input buttons
|
2019-06-17 20:08:37 +02:00
|
|
|
// 2. Correct the inability to style clickable types in iOS and Safari.
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
|
2021-10-29 07:47:24 +02:00
|
|
|
::file-selector-button {
|
2019-06-17 20:08:37 +02:00
|
|
|
font: inherit; // 1
|
|
|
|
-webkit-appearance: button; // 2
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Correct element displays
|
|
|
|
|
2015-04-17 03:39:45 +02:00
|
|
|
output {
|
2015-04-17 09:22:35 +02:00
|
|
|
display: inline-block;
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
2020-04-29 20:32:35 +02:00
|
|
|
// Remove border from iframe
|
|
|
|
|
|
|
|
iframe {
|
|
|
|
border: 0;
|
|
|
|
}
|
2020-03-05 14:51:14 +01:00
|
|
|
|
|
|
|
// Summary
|
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// 1. Add the correct display in all browsers
|
|
|
|
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
summary {
|
2019-06-17 20:08:37 +02:00
|
|
|
display: list-item; // 1
|
2017-12-28 03:08:10 +01:00
|
|
|
cursor: pointer;
|
Drop Normalize, port relevant parts to Reboot (#21741)
* Get this party started by removing mention of Normalize.css
* Nuke the old comment, consolidate to a single line and number as appropriate
* Bring over styles for HTML element from Normalize to Reboot
* Move margin override for body element from Normalize to Reboot
* Drop the block reset for HTML5 elements in IE9- from Normalize given we dropped IE9 support
* Building on previous commit, do the same thing for figure, figcaption, and main
* Remove IE9- display from Normalize given our browser support
* Drop IE8 figure margin because we're IE10+
* No need for the h1 overrides because we reset these font and margin styles anyway in _type.scss already
* Drop Safari 6 b and strong normalization because we're Safari 8+
* Remove mark styles for IE9- from Normalize
* Remove old iOS audio fixes from Normalize
* Remove IE9- display for progress from Normalize
* Remove more IE9- rules from Normalize
* One more IE9- display removal for canvas element
* Move pre overrides from Normalize to Reboot
* Move over some link resets to Reboot, drop others
- Move over background-color and text-decoration
- Drop focus outline change given it affects the offset on hover of
focused links
* Move over more code element resets, consolidate with pre overrides, too
* Move over sub and sup wholesale
* Move over img normalization to Reboot
* Move over SVG override too
* - Drop dupe hidden, but add comment for it
- Move over template
- Move over summary
* Remove bulk of @viewport comment
* edit down that code comment
* consolidate html-based normalizations
* update comments
* Consolidate abbr styles
* move over more type elements
* move over hr changes
* move over form controls and more
* move over button resets
* move over firefox button changes
* move over search changes and more
* we nuke all these styles for fieldsets anyway, so outright remove them
* no need for those, we override them
* move over legend, fieldset, progress
* line break
* delete normalize file
* linting
* update comment
* clarify docs mentions of normalize and reboot
* remove normalize excludes from linter
* remove normalize excludes from cli task
* linting
* callout license since we forked part of normalize
* Improve comments, move table background reset to .table class instead of in reboot
* trailing space
2017-01-21 23:14:25 +01:00
|
|
|
}
|
|
|
|
|
2020-03-05 14:51:14 +01:00
|
|
|
|
|
|
|
// Progress
|
|
|
|
//
|
|
|
|
// Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
|
|
|
|
|
|
progress {
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Hidden attribute
|
|
|
|
//
|
2019-06-17 20:08:37 +02:00
|
|
|
// Always hide an element with the `hidden` HTML attribute.
|
|
|
|
|
2015-11-13 04:15:54 +01:00
|
|
|
[hidden] {
|
|
|
|
display: none !important;
|
|
|
|
}
|