Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions bootstrap/_reboot.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix


// Reboot
//
// 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


// Document
//
// Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
Expand All @@ -17,12 +19,13 @@
box-sizing: border-box;
}


// Root
//
// Ability to the value of the root font sizes, affecting the value of `rem`.
// null by default, thus nothing is generated.

:host {
:root {
@if $font-size-root != null {
font-size: var(--#{$variable-prefix}root-font-size);
}
Expand All @@ -34,6 +37,7 @@
}
}


// Body
//
// 1. Remove the margin in all browsers.
Expand All @@ -56,6 +60,7 @@ body {
}
// scss-docs-end reboot-body-rules


// Content grouping
//
// 1. Reset Firefox's gray color
Expand All @@ -73,6 +78,7 @@ hr:not([size]) {
height: $hr-height; // 2
}


// Typography
//
// 1. Remove top margins from headings
Expand Down Expand Up @@ -119,6 +125,7 @@ h6 {
@include font-size($h6-font-size);
}


// Reset margins on paragraphs
//
// Similarly, the top margin on `<p>`s get reset. However, we also reset the
Expand All @@ -129,6 +136,7 @@ p {
margin-bottom: $paragraph-margin-bottom;
}


// Abbreviations
//
// 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin
Expand All @@ -137,13 +145,13 @@ p {
// 4. Prevent the text-decoration to be skipped.

abbr[title],
abbr[data-bs-original-title] {
// 1
abbr[data-bs-original-title] { // 1
text-decoration: underline dotted; // 2
cursor: help; // 3
text-decoration-skip-ink: none; // 4
}


// Address

address {
Expand All @@ -152,6 +160,7 @@ address {
line-height: inherit;
}


// Lists

ol,
Expand Down Expand Up @@ -180,16 +189,18 @@ dt {
// 1. Undo browser default

dd {
margin-bottom: 0.5rem;
margin-bottom: .5rem;
margin-left: 0; // 1
}


// Blockquote

blockquote {
margin: 0 0 1rem;
}


// Strong
//
// Add the correct font weight in Chrome, Edge, and Safari
Expand All @@ -199,6 +210,7 @@ strong {
font-weight: $font-weight-bolder;
}


// Small
//
// Add the correct font size in all browsers
Expand All @@ -207,13 +219,15 @@ small {
@include font-size($small-font-size);
}


// Mark

mark {
padding: $mark-padding;
background-color: $mark-bg;
}


// Sub and Sup
//
// Prevent `sub` and `sup` elements from affecting the line height in
Expand All @@ -227,12 +241,9 @@ sup {
vertical-align: baseline;
}

sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
sub { bottom: -.25em; }
sup { top: -.5em; }


// Links

Expand All @@ -259,6 +270,7 @@ a:not([href]):not([class]) {
}
}


// Code

pre,
Expand Down Expand Up @@ -316,6 +328,7 @@ kbd {
}
}


// Figures
//
// Apply a consistent margin strategy (matches our type styles).
Expand All @@ -324,13 +337,15 @@ figure {
margin: 0 0 1rem;
}


// Images and content

img,
svg {
vertical-align: middle;
}


// Tables
//
// Prevent double borders
Expand Down Expand Up @@ -368,6 +383,7 @@ th {
border-width: 0;
}


// Forms
//
// 1. Allow labels to use `margin` for spacing.
Expand Down Expand Up @@ -554,6 +570,7 @@ legend {
padding: 0;
}


// Inherit font family and line height for file input buttons

::file-selector-button {
Expand Down Expand Up @@ -589,6 +606,7 @@ summary {
cursor: pointer;
}


// Progress
//
// Add the correct vertical alignment in Chrome, Firefox, and Opera.
Expand All @@ -597,6 +615,7 @@ progress {
vertical-align: baseline;
}


// Hidden attribute
//
// Always hide an element with the `hidden` HTML attribute.
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/_root.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:host {
:root {
// Note: Custom variable values only support SassScript inside `#{}`.

// Colors
Expand Down
57 changes: 57 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading