Advertisement
Guest User

css

a guest
Jun 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.34 KB | None | 0 0
  1. html, body
  2. {
  3.   margin: 0;
  4.   padding: 0;
  5.   height: 100%;
  6.   text-align: center;
  7. }
  8. section
  9. {
  10.   min-height: 100%;
  11. }
  12. a
  13. {
  14.   text-decoration: none;
  15. }
  16. li
  17. {
  18.   list-style-type: none;
  19. }
  20. h1, h2, h3, a
  21. {
  22.   font-family: 'Roboto', sans-serif;
  23.   font-weight: 500;
  24.   color: #494949;
  25.   text-transform: uppercase;
  26. }
  27. h2
  28. {
  29.   color: #5D7177;
  30. }
  31. h3
  32. {
  33.   font-size: 40px;
  34.   padding-top: 8%;
  35.   margin: 0;
  36.   margin-bottom: 5px;
  37. }
  38. h4, p
  39. {
  40.   font-family: 'Roboto Slab', serif;
  41.   color: #494949;
  42. }
  43. hr
  44. {
  45.   width: 30px;
  46.   height: 3px;
  47.   background: #494949;
  48.   border: 0;
  49.   margin: 0 auto 40px auto;
  50. }
  51. #logo, li, img, .button, .fa-bars
  52. {
  53.   transition: all 300ms;
  54.   -webkit-transition: all 300ms;
  55.   -moz-transition: all 300ms;
  56.   -o-transition: all 300ms;
  57. }
  58. .fa-bars
  59. {
  60.   display: none;
  61. }
  62.  
  63. /* HEADER */
  64.  
  65. header
  66. {
  67.   width: 98%;
  68.   height: 65px;
  69.   position: fixed;
  70.   top: 1%;
  71.   left: 1%;
  72.   right: 1%;
  73.   border-radius: 10px;
  74.   background: #fff;
  75.   box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  76.   z-index: 1;
  77. }
  78. #logo
  79. {
  80.   width: 140px;
  81.   float: left;
  82.   margin: 10px 0 0 50px;
  83. }
  84. #logo:hover
  85. {
  86.   opacity: 0.5;
  87. }
  88. #logo img
  89. {
  90.   width: 100%;
  91. }
  92. header nav
  93. {
  94.   float: right;
  95.   margin: 10px 50px 0 0;
  96. }
  97. header nav ul li
  98. {
  99.   float: left;
  100.   margin-left: 25px;
  101. }
  102. header nav ul li a
  103. {
  104.   font-size: 16px;
  105. }
  106. header nav ul li:hover
  107. {
  108.   padding-top: 5px;
  109. }
  110.  
  111. /* HOME */
  112.  
  113. #home
  114. {
  115.   background: url(../img/fensterrahmen1.jpg);
  116.   background-position: center center;
  117.   background-size: cover;
  118.   background-attachment: fixed;
  119. }
  120. #home h1
  121. {
  122.   margin: 240px auto 0 auto;
  123.   font-size: 110px;
  124. }
  125. #home h2
  126. {
  127.   margin: 0 auto 0 auto;
  128.   font-size: 25px;
  129. }
  130. #home img
  131. {
  132.   width: 32px;
  133.   margin-top: 150px;
  134.   opacity: 0.7;
  135. }
  136. #home img:hover
  137. {
  138.   opacity: 1;
  139. }
  140.  
  141. /* ABOUT */
  142.  
  143. #about img
  144. {
  145.   width: 240px;
  146. }
  147. #about img:hover
  148. {
  149.   transform: scale(1.1);
  150.   -webkit-transform: scale(1.1);
  151.   -moz-transform: scale(1.1);
  152.   -o-transform: scale(1.1);
  153. }
  154. #about h4
  155. {
  156.   font-size: 25px;
  157. }
  158. #about p
  159. {
  160.   width: 700px;
  161.   margin: 0 auto 0 auto;
  162. }
  163.  
  164. /* WORK */
  165.  
  166. #work
  167. {
  168.   background-color: #f0f0f0;
  169. }
  170. #projects
  171. {
  172.   width: 900px;
  173.   margin: 0 auto 0 auto;
  174. }
  175. #projects ul
  176. {
  177.   padding: 0;
  178. }
  179. #projects ul li
  180. {
  181.   width: 33.3%;
  182.   float: left;
  183.   margin-bottom: 15px;
  184. }
  185. #projects img
  186. {
  187.   width: 280px;
  188.   height: 170px;
  189.   border-radius: 5px;
  190. }
  191. #projects img:hover
  192. {
  193.   transform: scale(1.1);
  194.   -webkit-transform: scale(1.1);
  195.   -moz-transform: scale(1.1);
  196.   -o-transform: scale(1.1);
  197.   box-shadow: 0 5px 5px rgba(0, 0, 0, .3);
  198. }
  199.  
  200. /* CONTACT */
  201.  
  202. form input, textarea
  203. {
  204.   font-family: 'Roboto Slab', serif;
  205.   font-size: 15px;
  206.   margin-bottom: 10px;
  207.   border-radius: 2px;
  208.   border: 2px solid #494949;
  209.   outline: none;
  210. }
  211. form input:first-child
  212. {
  213.   margin-top: 10px;
  214. }
  215. form input
  216. {
  217.   width: 552px;
  218.   height: 30px;
  219. }
  220. form textarea
  221. {
  222.   width: 552px;
  223.   height: 200px;
  224.   resize: none;
  225. }
  226. .input_text
  227. {
  228.   color: #494949;
  229.   padding-left: 10px;
  230. }
  231. ::-webkit-input-placeholder
  232. {
  233.   color: #999999;
  234. }
  235. ::-moz-placeholder
  236. {
  237.   color: #999999;
  238. }
  239. :-ms-input-placeholder
  240. {
  241.   color: #999999;
  242. }
  243. :-moz-placeholder
  244. {
  245.   color: #999999;
  246. }
  247. .button
  248. {
  249.   background-color: #f0f0f0;
  250.   color: #494949;
  251.   width: 566px;
  252.   height: 50px;
  253. }
  254. .button:hover
  255. {
  256.   background-color: #494949;
  257.   color: #f0f0f0;
  258. }
  259.  
  260. /* FOOTER */
  261.  
  262. footer
  263. {
  264.   width: 100%;
  265.   height: 70px;
  266.   background-color: #3f3f3f;
  267. }
  268. footer p
  269. {
  270.   font-size: 12px;
  271.   color: #f0f0f0;
  272.   padding-top: 30px;
  273. }
  274.  
  275. /* MEDIA QUERIES */
  276.  
  277. /* TABLETS */
  278.  
  279. @media screen and (max-width: 1024px)
  280. {
  281.   header
  282.   {
  283.     height: auto;
  284.   }
  285.   #logo
  286.   {
  287.     width: 100px;
  288.     margin-top: 5px;
  289.   }
  290.   header nav
  291.   {
  292.     margin-top: 0;
  293.   }
  294.   header nav ul li
  295.   {
  296.     font-size: 12px;
  297.   }
  298.   #home h1
  299.   {
  300.     font-size: 90px;
  301.     margin-top: 200px;
  302.   }
  303.   #home h2
  304.   {
  305.     font-size: 22px;
  306.   }
  307.   h3
  308.   {
  309.     padding-top: 12%;
  310.   }
  311.   #about p
  312.   {
  313.     width: 80%;
  314.   }
  315.   #projects
  316.   {
  317.     width: auto;
  318.   }
  319.   #projects ul li
  320.   {
  321.     width: 100%;
  322.     float: none;
  323.   }
  324.   #projects ul li:last-child
  325.   {
  326.     padding-bottom: 20%;
  327.   }
  328.   #projects img
  329.   {
  330.     width: 55%;
  331.     height: auto;
  332.   }
  333.   form input, form textarea
  334.   {
  335.     width: 60%;
  336.   }
  337.   .button
  338.   {
  339.     width: 62%;
  340.   }
  341. }
  342.  
  343.  /* MOBILES */
  344.  
  345. @media screen and (max-width: 640px)
  346. {
  347.   #logo
  348.   {
  349.     width: 90px;
  350.     margin-left: 30px;
  351.   }
  352.   header
  353.   {
  354.     height: 50px;
  355.   }
  356.   header nav
  357.   {
  358.     margin: 0;
  359.     float: none;
  360.   }
  361.   .fa-bars
  362.   {
  363.     font-size: 17px;
  364.     display: inline-block;
  365.     width: 100%;
  366.     cursor: pointer;
  367.     text-align: right;
  368.     float: right;
  369.     margin: -25px 30px 0 0;
  370.   }
  371.   .fa-bars:hover
  372.   {
  373.     opacity: 0.5;
  374.   }
  375.   header nav ul
  376.   {
  377.     height: 0;
  378.     overflow: hidden;
  379.     margin: 0;
  380.     padding: 0;
  381.     width: 100%;
  382.   }
  383.   header nav ul.open
  384.   {
  385.     height: auto;
  386.   }
  387.   header nav ul li
  388.   {
  389.     width: 100%;
  390.     padding: 5px 0;
  391.     margin: 0;
  392.     font-size: 11px;
  393.     border-top: 1px solid #dddddd;
  394.     background-color: #fff;
  395.   }
  396.   header nav ul li:hover
  397.   {
  398.     background-color: #eeeeee;
  399.   }
  400.   #home h1
  401.   {
  402.     font-size: 60px;
  403.     margin-top: 100px;
  404.   }
  405.   #projects img
  406.   {
  407.     width: 70%;
  408.     height: auto;
  409.   }
  410.   form input, form textarea
  411.   {
  412.     width: 70%;
  413.   }
  414.   .button
  415.   {
  416.     width: 72%;
  417.   }
  418. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement