mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
09c99fe6e7
- Line height & font family from html were directly overridden by body, so they were redundant thus removed - The remaining properties are moved to body - Shim for IE10 tags removed - hr cleanup - Combined styles from reboot & type - Changed from borders to background - This allows us to keep the color inherited. - Opacity can be used to change the intensity - Size attribute will not change the height instead of making the hr look like an input field - Better variable names - headings cleanup - Moved all element styling to reboot - Type will now extend the element styling. This way we will save some redundant code - small & mark are also moved to reboot. type does not contain any element styling anymore - font weight removed from small, this did not really made sense
115 lines
1.5 KiB
SCSS
115 lines
1.5 KiB
SCSS
// stylelint-disable declaration-no-important, selector-list-comma-newline-after
|
|
|
|
//
|
|
// Headings
|
|
//
|
|
.h1 {
|
|
@extend h1;
|
|
}
|
|
|
|
.h2 {
|
|
@extend h2;
|
|
}
|
|
|
|
.h3 {
|
|
@extend h3;
|
|
}
|
|
|
|
.h4 {
|
|
@extend h4;
|
|
}
|
|
|
|
.h5 {
|
|
@extend h5;
|
|
}
|
|
|
|
.h6 {
|
|
@extend h6;
|
|
}
|
|
|
|
|
|
.lead {
|
|
@include font-size($lead-font-size);
|
|
font-weight: $lead-font-weight;
|
|
}
|
|
|
|
// Type display classes
|
|
.display-1 {
|
|
@include font-size($display1-size);
|
|
font-weight: $display1-weight;
|
|
line-height: $display-line-height;
|
|
}
|
|
.display-2 {
|
|
@include font-size($display2-size);
|
|
font-weight: $display2-weight;
|
|
line-height: $display-line-height;
|
|
}
|
|
.display-3 {
|
|
@include font-size($display3-size);
|
|
font-weight: $display3-weight;
|
|
line-height: $display-line-height;
|
|
}
|
|
.display-4 {
|
|
@include font-size($display4-size);
|
|
font-weight: $display4-weight;
|
|
line-height: $display-line-height;
|
|
}
|
|
|
|
//
|
|
// Emphasis
|
|
//
|
|
.small {
|
|
@extend small;
|
|
}
|
|
|
|
.mark {
|
|
@extend mark;
|
|
}
|
|
|
|
//
|
|
// Lists
|
|
//
|
|
|
|
.list-unstyled {
|
|
@include list-unstyled;
|
|
}
|
|
|
|
// Inline turns list items into inline-block
|
|
.list-inline {
|
|
@include list-unstyled;
|
|
}
|
|
.list-inline-item {
|
|
display: inline-block;
|
|
|
|
&:not(:last-child) {
|
|
margin-right: $list-inline-padding;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Misc
|
|
//
|
|
|
|
// Builds on `abbr`
|
|
.initialism {
|
|
@include font-size(90%);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
// Blockquotes
|
|
.blockquote {
|
|
margin-bottom: $spacer;
|
|
@include font-size($blockquote-font-size);
|
|
}
|
|
|
|
.blockquote-footer {
|
|
display: block;
|
|
@include font-size($blockquote-small-font-size);
|
|
color: $blockquote-small-color;
|
|
|
|
&::before {
|
|
content: "\2014\00A0"; // em dash, nbsp
|
|
}
|
|
}
|