mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 01:21:49 +02:00
remove hella vars from the jumbotron
This commit is contained in:
@@ -589,7 +589,7 @@ hr {
|
|||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-top: .0625rem solid #eceeef;
|
border-top: .0625rem solid rgba(0, 0, 0, .1);
|
||||||
}
|
}
|
||||||
|
|
||||||
small,
|
small,
|
||||||
@@ -4578,15 +4578,10 @@ a.label:hover {
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: 2rem 1rem;
|
padding: 2rem 1rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
color: inherit;
|
|
||||||
background-color: #eceeef;
|
background-color: #eceeef;
|
||||||
border-radius: .3rem;
|
border-radius: .3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-heading {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.jumbotron-hr {
|
.jumbotron-hr {
|
||||||
border-top-color: #d0d5d8;
|
border-top-color: #d0d5d8;
|
||||||
}
|
}
|
||||||
@@ -4595,9 +4590,6 @@ a.label:hover {
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: 4rem 2rem;
|
padding: 4rem 2rem;
|
||||||
}
|
}
|
||||||
.jumbotron-heading {
|
|
||||||
font-size: 4.5rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-fluid {
|
.jumbotron-fluid {
|
||||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
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
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -10,9 +10,13 @@ A lightweight, flexible component that can optionally extend the entire viewport
|
|||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<h1 class="jumbotron-heading">Hello, world!</h1>
|
<h1 class="display-3">Hello, world!</h1>
|
||||||
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
|
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
|
||||||
<p class="lead"><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
|
<hr class="m-y-md">
|
||||||
|
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
|
||||||
|
<p class="lead">
|
||||||
|
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
@@ -21,19 +25,8 @@ To make the jumbotron full width, and without rounded corners, add the `.jumbotr
|
|||||||
{% example html %}
|
{% example html %}
|
||||||
<div class="jumbotron jumbotron-fluid">
|
<div class="jumbotron jumbotron-fluid">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="jumbotron-heading">Fluid jumbotron</h1>
|
<h1 class="display-3">Fluid jumbotron</h1>
|
||||||
<p class="lead">This is a modified jumbotron that occupies the entire horizontal space of it's parent.</p>
|
<p class="lead">This is a modified jumbotron that occupies the entire horizontal space of it's parent.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
Jumbotrons also come with an adaptive `hr`—just add `.jumbotron-hr` to the element and the `border-top-color` will be tinted based on the jumbotron background.
|
|
||||||
|
|
||||||
{% example html %}
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1 class="jumbotron-heading">Jumbotron <code>hr</code></h1>
|
|
||||||
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
|
|
||||||
<hr class="jumbotron-hr">
|
|
||||||
<p class="lead"><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
|
|
||||||
</div>
|
|
||||||
{% endexample %}
|
|
||||||
|
@@ -589,7 +589,7 @@ hr {
|
|||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-top: .0625rem solid #eceeef;
|
border-top: .0625rem solid rgba(0, 0, 0, .1);
|
||||||
}
|
}
|
||||||
|
|
||||||
small,
|
small,
|
||||||
@@ -4578,15 +4578,10 @@ a.label:hover {
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: 2rem 1rem;
|
padding: 2rem 1rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
color: inherit;
|
|
||||||
background-color: #eceeef;
|
background-color: #eceeef;
|
||||||
border-radius: .3rem;
|
border-radius: .3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-heading {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.jumbotron-hr {
|
.jumbotron-hr {
|
||||||
border-top-color: #d0d5d8;
|
border-top-color: #d0d5d8;
|
||||||
}
|
}
|
||||||
@@ -4595,9 +4590,6 @@ a.label:hover {
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: 4rem 2rem;
|
padding: 4rem 2rem;
|
||||||
}
|
}
|
||||||
.jumbotron-heading {
|
|
||||||
font-size: 4.5rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-fluid {
|
.jumbotron-fluid {
|
||||||
|
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
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
2
docs/dist/css/bootstrap.min.css.map
vendored
2
docs/dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -6,15 +6,10 @@
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: $jumbotron-padding ($jumbotron-padding / 2);
|
padding: $jumbotron-padding ($jumbotron-padding / 2);
|
||||||
margin-bottom: $jumbotron-padding;
|
margin-bottom: $jumbotron-padding;
|
||||||
color: $jumbotron-color;
|
|
||||||
background-color: $jumbotron-bg;
|
background-color: $jumbotron-bg;
|
||||||
@include border-radius($border-radius-lg);
|
@include border-radius($border-radius-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-heading {
|
|
||||||
color: $jumbotron-heading-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.jumbotron-hr {
|
.jumbotron-hr {
|
||||||
border-top-color: darken($jumbotron-bg, 10%);
|
border-top-color: darken($jumbotron-bg, 10%);
|
||||||
}
|
}
|
||||||
@@ -23,10 +18,6 @@
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: ($jumbotron-padding * 2) $jumbotron-padding;
|
padding: ($jumbotron-padding * 2) $jumbotron-padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-heading {
|
|
||||||
font-size: $jumbotron-heading-font-size;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jumbotron-fluid {
|
.jumbotron-fluid {
|
||||||
|
@@ -420,11 +420,7 @@ $pager-disabled-color: $pagination-disabled-color !default;
|
|||||||
// Jumbotron
|
// Jumbotron
|
||||||
|
|
||||||
$jumbotron-padding: 2rem !default;
|
$jumbotron-padding: 2rem !default;
|
||||||
$jumbotron-color: inherit !default;
|
|
||||||
$jumbotron-bg: $gray-lighter !default;
|
$jumbotron-bg: $gray-lighter !default;
|
||||||
$jumbotron-heading-color: inherit !default;
|
|
||||||
$jumbotron-heading-font-size: ($font-size-base * 4.5) !default;
|
|
||||||
// $jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
|
|
||||||
|
|
||||||
|
|
||||||
// Form states and alerts
|
// Form states and alerts
|
||||||
@@ -632,4 +628,4 @@ $headings-small-color: $gray-light !default;
|
|||||||
$blockquote-small-color: $gray-light !default;
|
$blockquote-small-color: $gray-light !default;
|
||||||
$blockquote-font-size: ($font-size-base * 1.25) !default;
|
$blockquote-font-size: ($font-size-base * 1.25) !default;
|
||||||
$blockquote-border-color: $gray-lighter !default;
|
$blockquote-border-color: $gray-lighter !default;
|
||||||
$hr-border: $gray-lighter !default;
|
$hr-border: rgba(0,0,0,.1) !default;
|
||||||
|
Reference in New Issue
Block a user