mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
container illustrations
This commit is contained in:
parent
1624c5b594
commit
28bcf047c8
@ -5981,6 +5981,66 @@ button.close {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-xs-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xs-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xs-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 34em) {
|
||||||
|
.text-sm-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-sm-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-sm-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 48em) {
|
||||||
|
.text-md-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-md-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-md-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 62em) {
|
||||||
|
.text-lg-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-lg-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-lg-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 75em) {
|
||||||
|
.text-xl-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-xl-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-xl-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.text-lowercase {
|
.text-lowercase {
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
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
2
docs/assets/css/docs.min.css
vendored
2
docs/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -16,6 +16,43 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Container illustrations
|
||||||
|
//
|
||||||
|
|
||||||
|
.bd-example-container {
|
||||||
|
max-width: 50%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-example-container-header {
|
||||||
|
height: 3rem;
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
background-color: lighten($brand-primary, 50%);
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-example-container-sidebar {
|
||||||
|
float: right;
|
||||||
|
width: 4rem;
|
||||||
|
height: 8rem;
|
||||||
|
background-color: lighten($brand-warning, 25%);
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-example-container-body {
|
||||||
|
height: 8rem;
|
||||||
|
margin-right: 4.5rem;
|
||||||
|
background-color: lighten($bd-purple, 25%);
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-example-container-fluid {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Docs examples
|
// Docs examples
|
||||||
//
|
//
|
||||||
|
@ -5981,6 +5981,66 @@ button.close {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-xs-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xs-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xs-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 34em) {
|
||||||
|
.text-sm-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-sm-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-sm-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 48em) {
|
||||||
|
.text-md-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-md-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-md-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 62em) {
|
||||||
|
.text-lg-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-lg-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-lg-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 75em) {
|
||||||
|
.text-xl-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.text-xl-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.text-xl-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.text-lowercase {
|
.text-lowercase {
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
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
@ -12,6 +12,14 @@ Containers are the most basic layout element in Bootstrap and are **required whe
|
|||||||
|
|
||||||
While containers *can* be nested, most layouts do not require a nested container.
|
While containers *can* be nested, most layouts do not require a nested container.
|
||||||
|
|
||||||
|
<div class="bd-example">
|
||||||
|
<div class="bd-example-container">
|
||||||
|
<div class="bd-example-container-header"></div>
|
||||||
|
<div class="bd-example-container-sidebar"></div>
|
||||||
|
<div class="bd-example-container-body"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Content here -->
|
<!-- Content here -->
|
||||||
@ -20,6 +28,14 @@ While containers *can* be nested, most layouts do not require a nested container
|
|||||||
|
|
||||||
Use `.container-fluid` for a full width container, spanning the entire width of the viewport.
|
Use `.container-fluid` for a full width container, spanning the entire width of the viewport.
|
||||||
|
|
||||||
|
<div class="bd-example">
|
||||||
|
<div class="bd-example-container bd-example-container-fluid">
|
||||||
|
<div class="bd-example-container-header"></div>
|
||||||
|
<div class="bd-example-container-sidebar"></div>
|
||||||
|
<div class="bd-example-container-body"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user