// // Typography // -------------------------------------------------- // Body text // ------------------------- body { font-family: $fontFamilyBase; font-size: $fontSizeBase; } p { margin: 0 0 ($lineHeightComputed / 2); } .lead { margin-bottom: $lineHeightBase; font-size: 20px; font-weight: 200; line-height: $lineHeightBase * 1.5; } // Emphasis & misc // ------------------------- small { font-size: 85%; // Ex: 14px base font * 85% = about 12px } strong { font-weight: bold; } em { font-style: italic; } cite { font-style: normal; } .muted { color: $grayLight; } // Headings // ------------------------- h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: $headingsFontFamily; font-weight: $headingsFontWeight; line-height: $headingsLineHeight; color: $headingsColor; small, .small { font-weight: normal; line-height: 1; color: $headingsSmallColor; } } h1, .h1, h2, .h2, h3, .h3 { margin-top: $lineHeightComputed; margin-bottom: ($lineHeightComputed / 2); small, .small { font-size: 65%; } } h4, .h4, h5, .h5, h6, .h6 { margin-top: ($lineHeightComputed / 2); margin-bottom: ($lineHeightComputed / 2); small, .small { font-size: 75%; } } h1, .h1 { font-size: $fontSizeH1; } h2, .h2 { font-size: $fontSizeH2; } h3, .h3 { font-size: $fontSizeH3; } h4, .h4 { font-size: $fontSizeH4; } h5, .h5 { font-size: $fontSizeH5; } h6, .h6 { font-size: $fontSizeH6; } // Page header // ------------------------- .page-header { padding-bottom: ($lineHeightBase / 2) - 1; margin: $lineHeightBase 0 ($lineHeightBase * 1.5); border-bottom: 1px solid $borderColor; } // Lists // -------------------------------------------------- // Unordered and Ordered lists ul, ol { margin-top: 0; margin-bottom: ($lineHeightComputed / 2); ul, ol { margin-bottom: 0; } } // List options // Unstyled keeps list items block level, just removes default browser padding and list-style .list-unstyled { padding-left: 0; list-style: none; } // Inline turns list items into inline-block .list-inline { padding-left: 0; list-style: none; margin-left: -5px; > li { display: inline-block; padding-left: 5px; padding-right: 5px; } } // Description Lists dl { margin-top: 0; margin-bottom: $lineHeightComputed; } dt, dd { line-height: $lineHeightBase; } dt { font-weight: bold; } dd { margin-left: 0; // Undo browser default } // Horizontal description lists // // Defaults to being stacked without any of the below styles applied, until the // grid breakpoint is reached (default of ~768px). @media screen and (min-width: $gridFloatBreakpoint) { .dl-horizontal { dt { float: left; width: ($componentOffsetHorizontal - 20); clear: left; text-align: right; /*.text-overflow();*/ } dd { margin-left: $componentOffsetHorizontal; /*&:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present*/ } } } // MISC // ---- hr { margin: $lineHeightBase 0; border: 0; border-top: 1px solid $hrBorder; border-bottom: 1px solid $white; } // Abbreviations and acronyms abbr[title], // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257 abbr[data-original-title] { cursor: help; border-bottom: 1px dotted $abbrBorderColor; } .initialism { font-size: 90%; text-transform: uppercase; } // Blockquotes blockquote { padding: ($lineHeightComputed / 2) $lineHeightComputed; margin: 0 0 $lineHeightComputed; font-size: $blockquoteFontSize; border-left: 5px solid $blockquoteBorderColor; p, ul, ol { &:last-child { margin-bottom: 0; } } // Note: Deprecated small and .small as of v3.1.0 // Context: https://github.com/twbs/bootstrap/issues/11660 footer, small, .small { display: block; font-size: 80%; // back to default font-size line-height: $lineHeightBase; color: $blockquoteSmallColor; &:before { content: '\2014 \00A0'; // em dash, nbsp } } } // Opposite alignment of blockquote // // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0. .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid $blockquoteBorderColor; border-left: 0; text-align: right; // Account for citation footer, small, .small { &:before { content: ''; } &:after { content: '\00A0 \2014'; // nbsp, em dash } } } // Quotes blockquote:before, blockquote:after { content: ""; } // Addresses address { display: block margin-bottom: $lineHeightComputed; font-style: normal; line-height: $lineHeightBase; }