mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
4efc1c462d
- Convert to Sass map - Consolidate font-weights into single option (matching line-height for them) - Add two new sizes and create a new scale - Update migration docs Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
100 lines
1.2 KiB
SCSS
100 lines
1.2 KiB
SCSS
//
|
|
// 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
|
|
@each $display, $font-size in $display-font-sizes {
|
|
.display-#{$display} {
|
|
@include font-size($font-size);
|
|
font-weight: $display-font-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($initialism-font-size);
|
|
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
|
|
}
|
|
}
|