diff options
| author | Mark Otto <[email protected]> | 2013-09-01 09:33:11 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-09-01 09:33:11 +0200 |
| commit | f29ec45715d33c7667682517bbab4ec285716bde (patch) | |
| tree | 67f82cc5df0578ed9685f876447b31776c9cea51 /examples/carousel/carousel.css | |
| parent | 5491d53b99c3dfa54622ca0d0bba52206c883a14 (diff) | |
| parent | e47ebf3686440df07a83a9d2643b70087ec4fb81 (diff) | |
| download | bootstrap-f29ec45715d33c7667682517bbab4ec285716bde.tar.xz bootstrap-f29ec45715d33c7667682517bbab4ec285716bde.zip | |
Merge branch 'master' into deprecate_screen_containers
Diffstat (limited to 'examples/carousel/carousel.css')
| -rw-r--r-- | examples/carousel/carousel.css | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/examples/carousel/carousel.css b/examples/carousel/carousel.css index 164f306ea..a728bd899 100644 --- a/examples/carousel/carousel.css +++ b/examples/carousel/carousel.css @@ -14,8 +14,21 @@ body { /* Special class on .container surrounding .navbar, used for positioning it into place. */ .navbar-wrapper { - position: relative; - z-index: 15; + position: absolute; + top: 0; + left: 0; + right: 0; + z-index: 20; +} + +/* Flip around the padding for proper display in narrow viewports */ +.navbar-wrapper .container { + padding-left: 0; + padding-right: 0; +} +.navbar-wrapper .navbar { + padding-left: 15px; + padding-right: 15px; } @@ -24,10 +37,8 @@ body { /* Carousel base class */ .carousel { + height: 500px; margin-bottom: 60px; - - /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */ - margin-top: -90px; } /* Since positioning the image, we need to help out the caption */ .carousel-caption { @@ -103,6 +114,15 @@ body { .navbar-wrapper { margin-top: 20px; } + .navbar-wrapper .container { + padding-left: 15px; + padding-right: 15px; + } + .navbar-wrapper .navbar { + padding-left: 0; + padding-right: 0; + } + /* The navbar becomes detached from the top, so we round the corners */ .navbar-wrapper .navbar { border-radius: 4px; |
