mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-28 10:10:24 +00:00
introduce display heading classes
This commit is contained in:
parent
44fe355ec2
commit
7a50a2cbe8
23 changed files with 136 additions and 4 deletions
20
dist/css/bootstrap-flex.css
vendored
20
dist/css/bootstrap-flex.css
vendored
|
|
@ -560,6 +560,26 @@ h6, .h6 {
|
|||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-2 {
|
||||
font-size: 4.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
font-size: 5.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-4 {
|
||||
font-size: 6rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
|
|
|||
BIN
dist/css/bootstrap-flex.css.map
vendored
BIN
dist/css/bootstrap-flex.css.map
vendored
Binary file not shown.
2
dist/css/bootstrap-flex.min.css
vendored
2
dist/css/bootstrap-flex.min.css
vendored
File diff suppressed because one or more lines are too long
BIN
dist/css/bootstrap-flex.min.css.map
vendored
BIN
dist/css/bootstrap-flex.min.css.map
vendored
Binary file not shown.
BIN
dist/css/bootstrap-reboot.css.map
vendored
BIN
dist/css/bootstrap-reboot.css.map
vendored
Binary file not shown.
BIN
dist/css/bootstrap-reboot.min.css.map
vendored
BIN
dist/css/bootstrap-reboot.min.css.map
vendored
Binary file not shown.
|
|
@ -560,6 +560,26 @@ h6, .h6 {
|
|||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-2 {
|
||||
font-size: 4.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
font-size: 5.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-4 {
|
||||
font-size: 6rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
|
|
|||
BIN
dist/css/bootstrap.css.map
vendored
BIN
dist/css/bootstrap.css.map
vendored
Binary file not shown.
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
BIN
dist/css/bootstrap.min.css.map
vendored
BIN
dist/css/bootstrap.min.css.map
vendored
Binary file not shown.
|
|
@ -102,6 +102,30 @@ Create lighter, secondary text in any heading with a generic `<small>` tag or th
|
|||
<h6>h6. Bootstrap heading <small>Secondary text</small></h6>
|
||||
{% endhighlight %}
|
||||
|
||||
## Display headings
|
||||
|
||||
Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a **display heading**—a larger, slightly more opinionated heading style.
|
||||
|
||||
<div class="bd-example bd-example-type">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><h1 class="display-4">Display 4</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h1 class="display-3">Display 3</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h1 class="display-2">Display 2</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h1 class="display-1">Display 1</h1></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
## Lead
|
||||
|
||||
Make a paragraph stand out by adding `.lead`.
|
||||
|
|
|
|||
20
docs/dist/css/bootstrap-flex.css
vendored
20
docs/dist/css/bootstrap-flex.css
vendored
|
|
@ -560,6 +560,26 @@ h6, .h6 {
|
|||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-2 {
|
||||
font-size: 4.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
font-size: 5.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-4 {
|
||||
font-size: 6rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
|
|
|||
BIN
docs/dist/css/bootstrap-flex.css.map
vendored
BIN
docs/dist/css/bootstrap-flex.css.map
vendored
Binary file not shown.
2
docs/dist/css/bootstrap-flex.min.css
vendored
2
docs/dist/css/bootstrap-flex.min.css
vendored
File diff suppressed because one or more lines are too long
BIN
docs/dist/css/bootstrap-flex.min.css.map
vendored
BIN
docs/dist/css/bootstrap-flex.min.css.map
vendored
Binary file not shown.
BIN
docs/dist/css/bootstrap-reboot.css.map
vendored
BIN
docs/dist/css/bootstrap-reboot.css.map
vendored
Binary file not shown.
BIN
docs/dist/css/bootstrap-reboot.min.css.map
vendored
BIN
docs/dist/css/bootstrap-reboot.min.css.map
vendored
Binary file not shown.
|
|
@ -560,6 +560,26 @@ h6, .h6 {
|
|||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-2 {
|
||||
font-size: 4.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
font-size: 5.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.display-4 {
|
||||
font-size: 6rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
|
|
|||
BIN
docs/dist/css/bootstrap.css.map
vendored
BIN
docs/dist/css/bootstrap.css.map
vendored
Binary file not shown.
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
BIN
docs/dist/css/bootstrap.min.css.map
vendored
BIN
docs/dist/css/bootstrap.min.css.map
vendored
Binary file not shown.
|
|
@ -55,6 +55,24 @@ h6, .h6 { font-size: $font-size-h6; }
|
|||
font-weight: 300;
|
||||
}
|
||||
|
||||
// Type display classes
|
||||
.display-1 {
|
||||
font-size: $display1-size;
|
||||
font-weight: $display1-weight;
|
||||
}
|
||||
.display-2 {
|
||||
font-size: $display2-size;
|
||||
font-weight: $display2-weight;
|
||||
}
|
||||
.display-3 {
|
||||
font-size: $display3-size;
|
||||
font-weight: $display3-weight;
|
||||
}
|
||||
.display-4 {
|
||||
font-size: $display4-size;
|
||||
font-weight: $display4-weight;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Horizontal rules
|
||||
|
|
|
|||
|
|
@ -78,6 +78,16 @@ $font-size-h4: 1.5rem !default;
|
|||
$font-size-h5: 1.25rem !default;
|
||||
$font-size-h6: 1rem !default;
|
||||
|
||||
$display1-size: 3.5rem !default;
|
||||
$display2-size: 4.5rem !default;
|
||||
$display3-size: 5.5rem !default;
|
||||
$display4-size: 6rem !default;
|
||||
|
||||
$display1-weight: 300 !default;
|
||||
$display2-weight: 300 !default;
|
||||
$display3-weight: 300 !default;
|
||||
$display4-weight: 300 !default;
|
||||
|
||||
$line-height: 1.5 !default;
|
||||
|
||||
$headings-font-family: inherit !default;
|
||||
|
|
|
|||
Loading…
Reference in a new issue