diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 4955f7fe8f..30666a67e3 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -10,39 +10,26 @@ // Document // -// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`. -// 2. Change the default font family in all browsers. -// 3. Correct the line height in all browsers. -// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. -// 5. Change the default tap highlight to be completely transparent in iOS. - +// Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`. *, *::before, *::after { - box-sizing: border-box; // 1 + box-sizing: border-box; } -html { - font-family: sans-serif; // 2 - line-height: 1.15; // 3 - -webkit-text-size-adjust: 100%; // 4 - -webkit-tap-highlight-color: rgba($black, 0); // 5 -} - -// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers) -// TODO: remove in v5 -// stylelint-disable-next-line selector-list-comma-newline-after -article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { +// Shim for IE11 +main { display: block; } // Body // // 1. Remove the margin in all browsers. -// 2. As a best practice, apply a default `background-color`. -// 3. Set an explicit initial text-align value so that we can later use +// 2. Set an explicit initial text-align value so that we can later use // the `inherit` value on things like `
`s get reset. However, we also reset the @@ -159,7 +189,7 @@ strong { } small { - @include font-size(80%); // Add the correct font size in all browsers + @include font-size($small-font-size); // Add the correct font size in all browsers } // @@ -426,6 +456,11 @@ legend { white-space: normal; // 1 } +mark { + padding: $mark-padding; + background-color: $mark-bg; +} + progress { vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera. } diff --git a/scss/_type.scss b/scss/_type.scss index f8ed09065e..bc8249f438 100644 --- a/scss/_type.scss +++ b/scss/_type.scss @@ -3,22 +3,30 @@ // // Headings // - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - margin-bottom: $headings-margin-bottom; - font-family: $headings-font-family; - font-weight: $headings-font-weight; - line-height: $headings-line-height; - color: $headings-color; +.h1 { + @extend h1; +} + +.h2 { + @extend h2; +} + +.h3 { + @extend h3; +} + +.h4 { + @extend h4; +} + +.h5 { + @extend h5; +} + +.h6 { + @extend h6; } -h1, .h1 { @include font-size($h1-font-size); } -h2, .h2 { @include font-size($h2-font-size); } -h3, .h3 { @include font-size($h3-font-size); } -h4, .h4 { @include font-size($h4-font-size); } -h5, .h5 { @include font-size($h5-font-size); } -h6, .h6 { @include font-size($h6-font-size); } .lead { @include font-size($lead-font-size); @@ -47,36 +55,17 @@ h6, .h6 { @include font-size($h6-font-size); } line-height: $display-line-height; } - -// -// Horizontal rules -// - -hr { - margin-top: $hr-margin-y; - margin-bottom: $hr-margin-y; - border: 0; - border-top: $hr-border-width solid $hr-border-color; -} - - // // Emphasis // - -small, .small { - @include font-size($small-font-size); - font-weight: $font-weight-normal; + @extend small; } -mark, .mark { - padding: $mark-padding; - background-color: $mark-bg; + @extend mark; } - // // Lists // diff --git a/scss/_variables.scss b/scss/_variables.scss index aea16fc644..bfa5e385f8 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -323,8 +323,9 @@ $blockquote-small-color: $gray-600 !default; $blockquote-small-font-size: $small-font-size !default; $blockquote-font-size: $font-size-base * 1.25 !default; -$hr-border-color: rgba($black, .1) !default; -$hr-border-width: $border-width !default; +$hr-color: inherit !default; +$hr-height: $border-width !default; +$hr-opacity: .25 !default; $mark-padding: .2em !default;