index.css (view raw)
1body {
2 padding-top: 3rem;
3 padding-bottom: 3rem;
4 color: #5a5a5a;
5}
6
7
8/* CUSTOMIZE THE CAROUSEL
9-------------------------------------------------- */
10
11/* Carousel base class */
12.carousel {
13 margin-bottom: 4rem;
14}
15/* Since positioning the image, we need to help out the caption */
16.carousel-caption {
17 bottom: 3rem;
18 z-index: 10;
19 background-color: rgba(0,0,0,.5);
20 border-radius: 0.25rem;
21}
22
23/* Declare heights because of positioning of img element */
24.carousel-item {
25 height: 32rem;
26 background-color: rgb(180,180,180);
27}
28
29.carousel-image {
30 width: 100%;
31 height:100%;
32 background-position: center;
33 background-repeat: no-repeat;
34}
35
36.carousel-element {
37 margin: 1rem .5rem !important;
38}
39
40/* RESPONSIVE CSS
41-------------------------------------------------- */
42
43@media (min-width: 40em) {
44 .carousel-caption p {
45 margin-bottom: 1.25rem;
46 font-size: 1.25rem;
47 line-height: 1.4;
48 }
49}