diff --git a/carousel.html b/carousel.html index e86029221c..792949fb06 100644 --- a/carousel.html +++ b/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 {