selfprivacy.org/_vendor/github.com/twbs/bootstrap/scss/_type.scss

107 lines
1.4 KiB
SCSS
Raw Normal View History

2024-04-21 23:04:16 +00:00
//
// Headings
//
2024-04-25 22:15:39 +00:00
.h1 {
@extend h1;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
.h2 {
@extend h2;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
.h3 {
@extend h3;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
.h4 {
@extend h4;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
.h5 {
@extend h5;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
.h6 {
@extend h6;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
.lead {
@include font-size($lead-font-size);
font-weight: $lead-font-weight;
2024-04-21 23:04:16 +00:00
}
2024-04-25 22:15:39 +00:00
// Type display classes
@each $display, $font-size in $display-font-sizes {
.display-#{$display} {
@include font-size($font-size);
font-family: $display-font-family;
font-style: $display-font-style;
font-weight: $display-font-weight;
line-height: $display-line-height;
}
}
2024-04-21 23:04:16 +00:00
//
// Emphasis
//
.small {
2024-04-25 22:15:39 +00:00
@extend small;
2024-04-21 23:04:16 +00:00
}
.mark {
2024-04-25 22:15:39 +00:00
@extend mark;
2024-04-21 23:04:16 +00:00
}
//
// 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 {
2024-04-25 22:15:39 +00:00
@include font-size($initialism-font-size);
2024-04-21 23:04:16 +00:00
text-transform: uppercase;
}
// Blockquotes
.blockquote {
2024-04-25 22:15:39 +00:00
margin-bottom: $blockquote-margin-y;
2024-04-21 23:04:16 +00:00
@include font-size($blockquote-font-size);
2024-04-25 22:15:39 +00:00
> :last-child {
margin-bottom: 0;
}
2024-04-21 23:04:16 +00:00
}
.blockquote-footer {
2024-04-25 22:15:39 +00:00
margin-top: -$blockquote-margin-y;
margin-bottom: $blockquote-margin-y;
@include font-size($blockquote-footer-font-size);
color: $blockquote-footer-color;
2024-04-21 23:04:16 +00:00
&::before {
content: "\2014\00A0"; // em dash, nbsp
}
}