3 // --------------------------------------------------
7 // -------------------------
9 h1, h2, h3, h4, h5, h6,
10 .h1, .h2, .h3, .h4, .h5, .h6 {
11 font-family: $headings-font-family;
12 font-weight: $headings-font-weight;
13 line-height: $headings-line-height;
14 color: $headings-color;
20 color: $headings-small-color;
27 margin-top: $line-height-computed;
28 margin-bottom: ($line-height-computed / 2);
38 margin-top: ($line-height-computed / 2);
39 margin-bottom: ($line-height-computed / 2);
47 h1, .h1 { font-size: $font-size-h1; }
48 h2, .h2 { font-size: $font-size-h2; }
49 h3, .h3 { font-size: $font-size-h3; }
50 h4, .h4 { font-size: $font-size-h4; }
51 h5, .h5 { font-size: $font-size-h5; }
52 h6, .h6 { font-size: $font-size-h6; }
56 // -------------------------
59 margin: 0 0 ($line-height-computed / 2);
63 margin-bottom: $line-height-computed;
64 font-size: floor(($font-size-base * 1.15));
68 @media (min-width: $screen-sm-min) {
69 font-size: ($font-size-base * 1.5);
75 // -------------------------
77 // Ex: (12px small font / 14px base font) * 100% = about 85%
80 font-size: floor((100% * $font-size-small / $font-size-base));
85 background-color: $state-warning-bg;
90 .text-left { text-align: left; }
91 .text-right { text-align: right; }
92 .text-center { text-align: center; }
93 .text-justify { text-align: justify; }
94 .text-nowrap { white-space: nowrap; }
97 .text-lowercase { text-transform: lowercase; }
98 .text-uppercase { text-transform: uppercase; }
99 .text-capitalize { text-transform: capitalize; }
106 @include text-emphasis-variant('.text-primary', $brand-primary);
108 @include text-emphasis-variant('.text-success', $state-success-text);
110 @include text-emphasis-variant('.text-info', $state-info-text);
112 @include text-emphasis-variant('.text-warning', $state-warning-text);
114 @include text-emphasis-variant('.text-danger', $state-danger-text);
116 // Contextual backgrounds
117 // For now we'll leave these alongside the text classes until v4 when we can
118 // safely shift things around (per SemVer rules).
120 // Given the contrast here, this is the only class to have its color inverted
124 @include bg-variant('.bg-primary', $brand-primary);
126 @include bg-variant('.bg-success', $state-success-bg);
128 @include bg-variant('.bg-info', $state-info-bg);
130 @include bg-variant('.bg-warning', $state-warning-bg);
132 @include bg-variant('.bg-danger', $state-danger-bg);
136 // -------------------------
139 padding-bottom: (($line-height-computed / 2) - 1);
140 margin: ($line-height-computed * 2) 0 $line-height-computed;
141 border-bottom: 1px solid $page-header-border-color;
146 // -------------------------
148 // Unordered and Ordered lists
152 margin-bottom: ($line-height-computed / 2);
161 // [converter] extracted from `.list-unstyled` for libsass compatibility
162 @mixin list-unstyled {
166 // [converter] extracted as `@mixin list-unstyled` for libsass compatibility
168 @include list-unstyled;
172 // Inline turns list items into inline-block
174 @include list-unstyled;
178 display: inline-block;
186 margin-top: 0; // Remove browser default
187 margin-bottom: $line-height-computed;
191 line-height: $line-height-base;
197 margin-left: 0; // Undo browser default
200 // Horizontal description lists
202 // Defaults to being stacked without any of the below styles applied, until the
203 // grid breakpoint is reached (default of ~768px).
207 @include clearfix; // Clear the floated `dt` if an empty `dd` is present
210 @media (min-width: $dl-horizontal-breakpoint) {
213 width: ($dl-horizontal-offset - 20);
216 @include text-overflow;
219 margin-left: $dl-horizontal-offset;
226 // -------------------------
228 // Abbreviations and acronyms
230 // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
231 abbr[data-original-title] {
233 border-bottom: 1px dotted $abbr-border-color;
237 @extend .text-uppercase;
242 padding: ($line-height-computed / 2) $line-height-computed;
243 margin: 0 0 $line-height-computed;
244 font-size: $blockquote-font-size;
245 border-left: 5px solid $blockquote-border-color;
255 // Note: Deprecated small and .small as of v3.1.0
256 // Context: https://github.com/twbs/bootstrap/issues/11660
261 font-size: 80%; // back to default font-size
262 line-height: $line-height-base;
263 color: $blockquote-small-color;
266 content: '\2014 \00A0'; // em dash, nbsp
271 // Opposite alignment of blockquote
273 // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
275 blockquote.pull-right {
278 border-right: 5px solid $blockquote-border-color;
282 // Account for citation
286 &:before { content: ''; }
288 content: '\00A0 \2014'; // nbsp, em dash
295 margin-bottom: $line-height-computed;
297 line-height: $line-height-base;