`s get reset. However, we also reset the // bottom margin to use `rem` units instead of `em`. p { margin-top: 0; margin-bottom: $paragraph-margin-bottom; } // Abbreviations // // 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin // 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari. // 3. Add explicit cursor to indicate changed behavior. // 4. Prevent the text-decoration to be skipped. abbr[title], abbr[data-bs-original-title] { // 1 text-decoration: underline dotted; // 2 cursor: help; // 3 text-decoration-skip-ink: none; // 4 } // Address address { margin-bottom: 1rem; font-style: normal; line-height: inherit; } // Lists ol, ul { padding-left: 2rem; } ol, ul, dl { margin-top: 0; margin-bottom: 1rem; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: $dt-font-weight; } // 1. Undo browser default dd { margin-bottom: .5rem; margin-left: 0; // 1 } // Blockquote blockquote { margin: 0 0 1rem; } // Strong // // Add the correct font weight in Chrome, Edge, and Safari b, strong { font-weight: $font-weight-bolder; } // Small // // Add the correct font size in all browsers 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 // all browsers. sub, sup { position: relative; @include font-size($sub-sup-font-size); line-height: 0; vertical-align: baseline; } sub { bottom: -.25em; } sup { top: -.5em; } // Links a { color: $link-color; text-decoration: $link-decoration; &:hover { color: $link-hover-color; text-decoration: $link-hover-decoration; } } // And undo these styles for placeholder links/named anchors (without href). // 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 a:not([href]):not([class]) { &, &:hover { color: inherit; text-decoration: none; } } // Code pre, code, kbd, samp { font-family: $font-family-code; @include font-size(1em); // Correct the odd `em` font sizing in all browsers. direction: ltr #{"/* rtl:ignore */"}; unicode-bidi: bidi-override; } // 1. Remove browser default top margin // 2. Reset browser default of `1em` to use `rem`s // 3. Don't allow content to break outside pre { 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; @include font-size(1em); font-weight: $nested-kbd-font-weight; } } // Figures // // Apply a consistent margin strategy (matches our type styles). figure { margin: 0 0 1rem; } // Images and content img, svg { vertical-align: middle; } // Tables // // Prevent double borders table { caption-side: bottom; border-collapse: collapse; } caption { padding-top: $table-cell-padding-y; padding-bottom: $table-cell-padding-y; color: $table-caption-color; text-align: left; } // 1. Removes font-weight bold by inheriting // 2. Matches default `