diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 1a7f3deec3..44978573ef 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -5137,13 +5137,14 @@ a.list-group-item.active > .badge, .carousel-caption { position: absolute; - right: 20%; + right: 15%; bottom: 20px; - left: 20%; - display: none; + left: 15%; + z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; + text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } @@ -5160,14 +5161,7 @@ a.list-group-item.active > .badge, font-size: 30px; } .carousel-caption { - right: 0; - left: 0; - z-index: 10; - display: block; - max-width: 60%; - padding: 30px; - margin-right: 0; - margin-left: 0; + padding-bottom: 30px; } } diff --git a/docs/docs.html b/docs/docs.html index 561fad88fe..f0086c5835 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -6304,21 +6304,21 @@ $('#myCollapsible').on('hidden', function () {
diff --git a/docs/examples/carousel.html b/docs/examples/carousel.html index e86029221c..792949fb06 100644 --- a/docs/examples/carousel.html +++ b/docs/examples/carousel.html @@ -27,11 +27,10 @@ body { left: 0; right: 0; z-index: 10; - margin-top: 20px; - margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */ } + /* CUSTOMIZE THE CAROUSEL -------------------------------------------------- */ @@ -39,12 +38,12 @@ body { .carousel { margin-bottom: 60px; } - -.carousel .container { - position: relative; - z-index: 9; +/* Since positioning the image, we need to help out the caption */ +.carousel-caption { + z-index: 10; } +/* Declare heights because of positioning of img element */ .carousel .item { height: 500px; } @@ -56,26 +55,21 @@ body { height: 500px; } -.carousel-caption { - background-color: transparent; - position: static; - max-width: 550px; - padding: 0 20px; - margin-top: 200px; -} - -.carousel-caption .btn { - margin-top: 10px; -} - /* MARKETING CONTENT -------------------------------------------------- */ +/* Pad the edges of the mobile views a bit */ +.marketing { + padding-left: 15px; + padding-right: 15px; +} + /* Center align the text within the three columns below the carousel */ .marketing .col-span-4 { text-align: center; + margin-bottom: 20px; } .marketing h2 { font-weight: normal; @@ -121,7 +115,35 @@ body { /* RESPONSIVE CSS -------------------------------------------------- */ -@media (max-width: 979px) { +@media (min-width: 768px) { + + /* Remve the edge padding needed for mobile */ + .marketing { + padding-left: 0; + padding-right: 0; + } + + /* Navbar positioning foo */ + .navbar-wrapper { + margin-top: 20px; + margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */ + } + /* The navbar becomes detached from the top, so we round the corners */ + .navbar-wrapper .navbar { + border-radius: 4px; + } + + /* Bump up size of carousel content */ + .carousel-caption p { + margin-bottom: 20px; + font-size: 21px; + line-height: 1.4; + } + +} + + +/*@media (max-width: 979px) { .container.navbar-wrapper { margin-bottom: 0; @@ -189,7 +211,7 @@ body { font-size: 18px; line-height: 1.5; } - + .navbar-wrapper { margin-top: 0; } @@ -197,12 +219,12 @@ body { .navbar { border-radius: 0; } - + #myCarousel { margin-top: 54px; } -} +}*/ @@ -212,7 +234,7 @@ body {