carousel.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /* GLOBAL STYLES
  2. -------------------------------------------------- */
  3. /* Padding below the footer and lighter body text */
  4. body {
  5. padding-bottom: 40px;
  6. color: #5a5a5a;
  7. }
  8. /* CUSTOMIZE THE NAVBAR
  9. -------------------------------------------------- */
  10. /* Special class on .container surrounding .navbar, used for positioning it into place. */
  11. .navbar-wrapper {
  12. position: absolute;
  13. top: 0;
  14. left: 0;
  15. right: 0;
  16. z-index: 20;
  17. }
  18. /* Flip around the padding for proper display in narrow viewports */
  19. .navbar-wrapper .container {
  20. padding-left: 0;
  21. padding-right: 0;
  22. }
  23. .navbar-wrapper .navbar {
  24. padding-left: 15px;
  25. padding-right: 15px;
  26. }
  27. /* CUSTOMIZE THE CAROUSEL
  28. -------------------------------------------------- */
  29. /* Carousel base class */
  30. .carousel {
  31. height: 500px;
  32. margin-bottom: 60px;
  33. }
  34. /* Since positioning the image, we need to help out the caption */
  35. .carousel-caption {
  36. z-index: 10;
  37. }
  38. /* Declare heights because of positioning of img element */
  39. .carousel .item {
  40. height: 500px;
  41. background-color: #777;
  42. }
  43. .carousel-inner > .item > img {
  44. position: absolute;
  45. top: 0;
  46. left: 0;
  47. min-width: 100%;
  48. height: 500px;
  49. }
  50. /* MARKETING CONTENT
  51. -------------------------------------------------- */
  52. /* Pad the edges of the mobile views a bit */
  53. .marketing {
  54. padding-left: 15px;
  55. padding-right: 15px;
  56. }
  57. /* Center align the text within the three columns below the carousel */
  58. .marketing .col-lg-4 {
  59. text-align: center;
  60. margin-bottom: 20px;
  61. }
  62. .marketing h2 {
  63. font-weight: normal;
  64. }
  65. .marketing .col-lg-4 p {
  66. margin-left: 10px;
  67. margin-right: 10px;
  68. }
  69. /* Featurettes
  70. ------------------------- */
  71. .featurette-divider {
  72. margin: 80px 0; /* Space out the Bootstrap <hr> more */
  73. }
  74. /* Thin out the marketing headings */
  75. .featurette-heading {
  76. font-weight: 300;
  77. line-height: 1;
  78. letter-spacing: -1px;
  79. }
  80. /* RESPONSIVE CSS
  81. -------------------------------------------------- */
  82. @media (min-width: 768px) {
  83. /* Remove the edge padding needed for mobile */
  84. .marketing {
  85. padding-left: 0;
  86. padding-right: 0;
  87. }
  88. /* Navbar positioning foo */
  89. .navbar-wrapper {
  90. margin-top: 20px;
  91. }
  92. .navbar-wrapper .container {
  93. padding-left: 15px;
  94. padding-right: 15px;
  95. }
  96. .navbar-wrapper .navbar {
  97. padding-left: 0;
  98. padding-right: 0;
  99. }
  100. /* The navbar becomes detached from the top, so we round the corners */
  101. .navbar-wrapper .navbar {
  102. border-radius: 4px;
  103. }
  104. /* Bump up size of carousel content */
  105. .carousel-caption p {
  106. margin-bottom: 20px;
  107. font-size: 21px;
  108. line-height: 1.4;
  109. }
  110. .featurette-heading {
  111. font-size: 50px;
  112. }
  113. }
  114. @media (min-width: 992px) {
  115. .featurette-heading {
  116. margin-top: 120px;
  117. }
  118. }