diff options
| author | Mark Otto <[email protected]> | 2018-04-09 09:00:23 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-09 09:00:23 -0700 |
| commit | 8f7bd419935adfcd53c471a0202083464800619e (patch) | |
| tree | d0e6ab018a0f41b59a1206cf72ffc79a474e69b9 /docs/4.1/examples/carousel/carousel.css | |
| parent | 91730a644f107ca80a747a6f7f0c173eca5708fa (diff) | |
| download | bootstrap-4.1.0.tar.xz bootstrap-4.1.0.zip | |
Ship v4.1.0 (#26218)v4.1.0
* update docs path from docs/4.0/ to docs/4.1/
* bump version to 4.1.0
* Update redirects to work for 4.1 docs move
* Update docs version switcher to include latest and link to 4.0 docs
* re-run dist
* Update package-lock.json
* Update docs-navbar.html
Diffstat (limited to 'docs/4.1/examples/carousel/carousel.css')
| -rw-r--r-- | docs/4.1/examples/carousel/carousel.css | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/docs/4.1/examples/carousel/carousel.css b/docs/4.1/examples/carousel/carousel.css new file mode 100644 index 000000000..f9b5a7e49 --- /dev/null +++ b/docs/4.1/examples/carousel/carousel.css @@ -0,0 +1,91 @@ +/* GLOBAL STYLES +-------------------------------------------------- */ +/* Padding below the footer and lighter body text */ + +body { + padding-top: 3rem; + padding-bottom: 3rem; + color: #5a5a5a; +} + + +/* CUSTOMIZE THE CAROUSEL +-------------------------------------------------- */ + +/* Carousel base class */ +.carousel { + margin-bottom: 4rem; +} +/* Since positioning the image, we need to help out the caption */ +.carousel-caption { + bottom: 3rem; + z-index: 10; +} + +/* Declare heights because of positioning of img element */ +.carousel-item { + height: 32rem; + background-color: #777; +} +.carousel-item > img { + position: absolute; + top: 0; + left: 0; + min-width: 100%; + height: 32rem; +} + + +/* MARKETING CONTENT +-------------------------------------------------- */ + +/* Center align the text within the three columns below the carousel */ +.marketing .col-lg-4 { + margin-bottom: 1.5rem; + text-align: center; +} +.marketing h2 { + font-weight: 400; +} +.marketing .col-lg-4 p { + margin-right: .75rem; + margin-left: .75rem; +} + + +/* Featurettes +------------------------- */ + +.featurette-divider { + margin: 5rem 0; /* Space out the Bootstrap <hr> more */ +} + +/* Thin out the marketing headings */ +.featurette-heading { + font-weight: 300; + line-height: 1; + letter-spacing: -.05rem; +} + + +/* RESPONSIVE CSS +-------------------------------------------------- */ + +@media (min-width: 40em) { + /* Bump up size of carousel content */ + .carousel-caption p { + margin-bottom: 1.25rem; + font-size: 1.25rem; + line-height: 1.4; + } + + .featurette-heading { + font-size: 50px; + } +} + +@media (min-width: 62em) { + .featurette-heading { + margin-top: 7rem; + } +} |
