carousel.css 2.5 KB

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