Layout von Websiten mit Bootstrap und Foundation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

style.css 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');
  2. html, body {
  3. height: 100%;
  4. width: 100%;
  5. font-family: 'Poppins', sans-serif;
  6. color: #222;
  7. }
  8. .navbar {
  9. padding: .8rem; // rem is based on font size so if base font size is 16px 1 rem is 16px
  10. background-color: green;
  11. }
  12. .navbar-dark {
  13. background-color: blue;
  14. }
  15. .navbar-light {
  16. background-color: green;
  17. }
  18. .navbar-nav li {
  19. padding-right: 20px;
  20. }
  21. .nav-link {
  22. font-size: 1.1em;
  23. }
  24. .carousel-inner img {
  25. width: 100%;
  26. height: 100%;
  27. }
  28. .carousel-caption {
  29. position: absolute;
  30. top: 50%;
  31. transform: translateY(-50%);
  32. }
  33. .carousel-caption h1 {
  34. font-size: 500%;
  35. text-transform: uppercase;
  36. text-shadow: 1px 1px 15px #000;
  37. }
  38. .carousel-caption h3 {
  39. font-size: 200%;
  40. font-weight: 500;
  41. text-shadow: 1px 1px 10px #000;
  42. padding-bottom: 1rem;
  43. }
  44. .btn-primary {
  45. background-color: #6648b1;
  46. border: 1px solid #563d7c;
  47. }
  48. .btn-primary:hover {
  49. background-color: #563d7c;
  50. border: 1px solid #563d7c;
  51. }
  52. .jumbotron {
  53. padding: 1rem;
  54. border-radius: 0;
  55. }
  56. .padding {
  57. padding-bottom: 2rem;
  58. }
  59. .welcome {
  60. width: 75%;
  61. margin: 0 auto;
  62. padding-top: 2rem;
  63. }
  64. .welcome hr {
  65. border-top: 2px solid #b4b4b4;
  66. width: 95%;
  67. margin-top: .3rem;
  68. margin-bottom: 1rem;
  69. }
  70. .fa-code {
  71. color: #e54d26;
  72. }
  73. .fa-bookmark {
  74. color: #563d72;
  75. }
  76. .fa-css3 {
  77. color: #2163af;
  78. }
  79. .fa-code, .fa-bookmark, .fa-css3 {
  80. font-size: 4em;
  81. margin: 1rem;
  82. }
  83. .fun {
  84. width: 100%;
  85. margin-bottom: 2rem;
  86. }
  87. .gif {
  88. max-width: 100%
  89. }
  90. .social a {
  91. font-size: 4.5em;
  92. padding: 3rem;
  93. }
  94. .fa-facebook {
  95. color: #3b5998;
  96. }
  97. .fa-twitter {
  98. color: #00aced;
  99. }
  100. .fa-instagram {
  101. color: #517fa4;
  102. }
  103. .fa-google-plus-g {
  104. color: #dd4b39;
  105. }
  106. .fa-youtube {
  107. color: #bb0000;
  108. }
  109. .fa-facebook:hover,
  110. .fa-twitter:hover,
  111. .fa-instagram:hover,
  112. .fa-google-plus-g:hover,
  113. .fa-youtube:hover {
  114. color: #d5d5d5;
  115. }
  116. footer {
  117. padding-top: 2rem;
  118. background: #3f3f3f;
  119. color: #d5d5d5;
  120. }
  121. hr.light {
  122. border-top: 1px solid #d5d5d5;
  123. width: 75%;
  124. margin-top: .8rem;
  125. margin-bottom: 1rem;
  126. }
  127. footer a {
  128. color: #d5d5d5
  129. }
  130. hr.light-100 {
  131. border-top: 1px solid #d5d5d5;
  132. width: 100%;
  133. margin-top: .8rem;
  134. margin-bottom: 1rem;
  135. }
  136. /*---Media Queries --*/
  137. @media (max-width: 992px) {
  138. .social a {
  139. font-size: 4em;
  140. padding: 2rem;
  141. }
  142. }
  143. @media (max-width: 768px) {
  144. .carousel-caption {
  145. top: 45%;
  146. }
  147. .carousel-caption h1 {
  148. font-size: 350%;
  149. }
  150. .carousel-caption h3 {
  151. font-size: 140%;
  152. font-weight: 400;
  153. padding-bottom: .2rem;
  154. }
  155. .carousel-caption .btn {
  156. font-size: 95%;
  157. padding: 8px 14px;
  158. }
  159. .display-4 {
  160. font-size: 200%;
  161. }
  162. .social a {
  163. font-size: 2.5em;
  164. padding: 1.4rem;
  165. }
  166. }
  167. @media (max-width: 576px) {
  168. .carousel-caption {
  169. top: 40%;
  170. }
  171. .carousel-caption h1 {
  172. font-size: 250%;
  173. }
  174. .carousel-caption h3 {
  175. font-size: 110%;
  176. }
  177. .carousel-caption .btn {
  178. font-size: 90%;
  179. padding: 4px 8px;
  180. }
  181. .carousel-indicators {
  182. display: none;
  183. }
  184. .social a {
  185. font-size: 2em;
  186. padding: .7rem;
  187. }
  188. }
  189. /*---Firefox Bug Fix --*/
  190. .carousel-item {
  191. transition: -webkit-transform 0.5s ease;
  192. transition: transform 0.5s ease;
  193. transition: transform 0.5s ease, -webkit-transform 0.5s ease;
  194. -webkit-backface-visibility: visible;
  195. backface-visibility: visible;
  196. }
  197. /*--- Fixed Background Image --*/
  198. figure {
  199. position: relative;
  200. width: 100%;
  201. height: 60%;
  202. margin: 0!important;
  203. }
  204. .fixed-wrap {
  205. clip: rect(0, auto, auto, 0);
  206. position: absolute;
  207. top: 0;
  208. left: 0;
  209. width: 100%;
  210. height: 100%;
  211. }
  212. #fixed {
  213. background-image: url('img/mac.png');
  214. position: fixed;
  215. display: block;
  216. top: 0;
  217. left: 0;
  218. width: 100%;
  219. height: 100%;
  220. background-size: cover;
  221. background-position: center center;
  222. -webkit-transform: translateZ(0);
  223. transform: translateZ(0);
  224. will-change: transform;
  225. }
  226. /*--- Bootstrap Padding Fix --*/
  227. [class*="col-"] {
  228. padding: 1rem;
  229. }
  230. /*
  231. Extra small (xs) devices (portrait phones, less than 576px)
  232. No media query since this is the default in Bootstrap
  233. Small (sm) devices (landscape phones, 576px and up)
  234. @media (min-width: 576px) { ... }
  235. Medium (md) devices (tablets, 768px and up)
  236. @media (min-width: 768px) { ... }
  237. Large (lg) devices (desktops, 992px and up)
  238. @media (min-width: 992px) { ... }
  239. Extra (xl) large devices (large desktops, 1200px and up)
  240. @media (min-width: 1200px) { ... }
  241. */