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: 14px base font * 85% = about 12px
79 .small { font-size: 85%; }
81 // Undo browser default styling
82 cite { font-style: normal; }
85 .text-left { text-align: left; }
86 .text-right { text-align: right; }
87 .text-center { text-align: center; }
88 .text-justify { text-align: justify; }
95 .text-emphasis-variant(@brand-primary);
98 .text-emphasis-variant(@state-success-text);
101 .text-emphasis-variant(@state-info-text);
104 .text-emphasis-variant(@state-warning-text);
107 .text-emphasis-variant(@state-danger-text);
110 // Contextual backgrounds
111 // For now we'll leave these alongside the text classes until v4 when we can
112 // safely shift things around (per SemVer rules).
114 // Given the contrast here, this is the only class to have its color inverted
117 .bg-variant(@brand-primary);
120 .bg-variant(@state-success-bg);
123 .bg-variant(@state-info-bg);
126 .bg-variant(@state-warning-bg);
129 .bg-variant(@state-danger-bg);
134 // -------------------------
137 padding-bottom: ((@line-height-computed / 2) - 1);
138 margin: (@line-height-computed * 2) 0 @line-height-computed;
139 border-bottom: 1px solid @page-header-border-color;
144 // --------------------------------------------------
146 // Unordered and Ordered lists
150 margin-bottom: (@line-height-computed / 2);
159 // Unstyled keeps list items block level, just removes default browser padding and list-style
165 // Inline turns list items into inline-block
170 display: inline-block;
182 margin-top: 0; // Remove browser default
183 margin-bottom: @line-height-computed;
187 line-height: @line-height-base;
193 margin-left: 0; // Undo browser default
196 // Horizontal description lists
198 // Defaults to being stacked without any of the below styles applied, until the
199 // grid breakpoint is reached (default of ~768px).
201 @media (min-width: @grid-float-breakpoint) {
205 width: (@component-offset-horizontal - 20);
211 margin-left: @component-offset-horizontal;
212 &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
220 // Abbreviations and acronyms
222 // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
223 abbr[data-original-title] {
225 border-bottom: 1px dotted @abbr-border-color;
229 text-transform: uppercase;
234 padding: (@line-height-computed / 2) @line-height-computed;
235 margin: 0 0 @line-height-computed;
236 font-size: (@font-size-base * 1.25);
237 border-left: 5px solid @blockquote-border-color;
247 // Deprecating small and .small for v3.1
248 // Context: https://github.com/twbs/bootstrap/issues/11660
253 font-size: 80%; // back to default font-size
254 line-height: @line-height-base;
255 color: @blockquote-small-color;
258 content: '\2014 \00A0'; // em dash, nbsp
263 // Opposite alignment of blockquote
265 // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.
267 blockquote.pull-right {
270 border-right: 5px solid @blockquote-border-color;
274 // Account for citation
278 &:before { content: ''; }
280 content: '\00A0 \2014'; // nbsp, em dash
293 margin-bottom: @line-height-computed;
295 line-height: @line-height-base;