makispaiktis

Codecademy - 16th Course (CSS Example)

Oct 19th, 2019 (edited)
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.36 KB | None | 0 0
  1. /* Universal Styles */
  2.  
  3. @font-face {
  4.   font-family: "Glegoo";
  5.   src: url(../fonts/Glegoo-Regular.ttf) format('truetype');
  6. }
  7.  
  8. @font-face {
  9.   font-family: 'Space Mono';
  10.   font-style: normal;
  11.   font-weight: 400;
  12.   src: local('Space Mono'), local('SpaceMono-Regular'), url(https://fonts.gstatic.com/s/spacemono/v1/adVweg3BJhE6r8jYmXseHQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
  13.   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
  14. }
  15.  
  16. @font-face {
  17.   font-family: 'Space Mono';
  18.   font-style: normal;
  19.   font-weight: 700;
  20.   src: local('Space Mono Bold'), local('SpaceMono-Bold'), url(https://fonts.gstatic.com/s/spacemono/v1/vdpMRWfyjfCvDYTz00NEPGaVI6zN22yiurzcBKxPjFE.woff2) format('woff2');
  21.   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
  22. }
  23.  
  24. html {
  25.   font-size: 16px;
  26.   font-family: "Arial", sans-serif;
  27. }
  28.  
  29. body {
  30.   background-color: #F2F2F2;
  31. }
  32.  
  33. h1 {
  34.   color: white;
  35.   font-size: 28px;
  36.   font-family: Georgia;
  37.   text-transform: uppercase;
  38. }
  39.  
  40. h2 {
  41.   font-size: 24px;
  42.   font-weight: 700;
  43.   line-height: 2.5;
  44.   font-family: Georgia;
  45.   word-spacing: 0.05em;
  46.   letter-spacing: 0.02em;
  47. }
  48.  
  49. a {
  50.   text-decoration: none;
  51. }
  52.  
  53. p {
  54.   margin: 16px 0;
  55.   font-family: Helvetica;
  56. }
  57.  
  58. strong {
  59.   font-weight: bold;
  60. }
  61.  
  62. #serif, /* Offset linked sections to account for header. */
  63. #sans,
  64. #mono {
  65.   padding-top: 77px;
  66.   margin-top: -77px;
  67. }
  68.  
  69. /* Header */
  70.  
  71. .header {
  72.   font-family: "Arial", sans-serif;
  73.   font-size: 14px;
  74.   line-height: 1.25;
  75.   background-color: #fff;
  76.   position: fixed;
  77.   top: 0;
  78.   width: 100%;
  79.   font-weight: 900;
  80. }
  81.  
  82. .header li {
  83.   display: inline-block;
  84. }
  85.  
  86. .header a {
  87.   display: block;
  88.   color: #4A4A4A;
  89.   padding: 30px 20px;
  90. }
  91.  
  92. a.home {
  93.   color: #4D00FF;
  94. }
  95.  
  96.  
  97. /* Banner Section */
  98.  
  99. .banner {
  100.   background-color: #4D00FF;
  101.   padding: 100px 0;
  102.   margin-top: 77px;
  103.   text-align: center;
  104. }
  105.  
  106. .banner p {
  107.   border-top: 1px solid #fff;
  108.   border-bottom: 1px solid #fff;
  109.   padding: 10px;
  110.   color: #ffffff;
  111.   font-weight: bold;
  112.   line-height: 1.4;
  113.   font-family: "Glegoo";
  114.   font-size: 20px;
  115. }
  116.  
  117. /* Editorial Sections */
  118.  
  119. .editorial {
  120.   padding: 20px;
  121.   margin: 20px 0;
  122.   text-align: center;
  123.   color: #4C4C4C;
  124. }
  125.  
  126. /* Font Card Sections */
  127.  
  128. .font-card {
  129.   background-color: #ffffff;
  130.   margin: 50px 0;
  131.   padding: 20px 50px;
  132. }
  133.  
  134. .font-card .creator {
  135.   font-size: 20px;
  136.   line-height: 1.25;
  137.   font-style: italic;
  138. }
  139.  
  140. .sample {
  141.   display: inline-block;
  142.   padding: 0 20px;
  143.   margin: 20px;
  144. }
  145.  
  146. .sample h2 {
  147.   line-height: 1.5;
  148. }
  149.  
  150. .sample .text {
  151.   color: #4D00FF;
  152.   font-size: 100px;
  153. }
  154.  
  155. /* Add styles for the Garamond font here */
  156.  
  157. .garamond .sample .text {
  158.   font-family: Garamond, serif;
  159. }
  160.  
  161. /* Add styles for the Helvetica font here */
  162.  
  163. .helvetica .sample .text {
  164.   font-family: Helvetica, sans-serif;
  165. }
  166.  
  167. /* Add styles for the Space Mono font here */
  168.  
  169. .space .sample .text {
  170.   font-family: "Space Mono", monospace;
  171. }
  172.  
  173. .bold {
  174.   font-weight: 900;
  175. }
  176.  
  177. .regular {
  178.   font-weight: normal;
  179. }
  180.  
  181. .italic {
  182.   font-weight: normal;
  183.   font-style: italic;
  184. }
  185.  
  186. /* Media Queries */
  187.  
  188. @media only screen and (max-width: 535px) {
  189.   .header {
  190.     font-size: 14px;
  191.   }
  192.  
  193.   .header a {
  194.     padding: 30px 20px;
  195.   }
  196.  
  197.   a.home {
  198.     display: none;
  199.   }
  200. }
Add Comment
Please, Sign In to add comment