Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.71 KB | None | 0 0
  1. :root {
  2.     --main-color: #dadfd3;
  3.     --header1-color: #69D2E7;
  4.     --header2-color: #F38630;
  5.     --header3-color: #E9AEAF;
  6. }
  7.  
  8. html, body, p {
  9.     margin: 0;
  10.     padding: 0;
  11.     height: 100%;
  12. }
  13.  
  14. * {
  15.     box-sizing: border-box;
  16. }
  17.  
  18. body {
  19.     display: flex;
  20.     flex-direction: column;
  21.     font-family: 'Arial', Sans-serif;
  22.     font-size: 16px;
  23. }
  24.  
  25. a {
  26.     color: inherit;
  27.     text-decoration: none;
  28. }
  29.  
  30. header {
  31.     display: flex;
  32.     align-items: center;
  33.     padding: 25px;
  34. }
  35.  
  36. .navigation {
  37.     display: flex;
  38.     justify-content: flex-end;
  39.     flex-grow: 2;
  40.     align-self: flex-start;
  41. }
  42.  
  43. .navigation > a {
  44.     width: 75px;
  45.     font-size: 1.2em;
  46.     text-align: center;
  47. }
  48.  
  49. .page-title {
  50.     position: relative;
  51.     top: 50%;
  52.     left: 60px;
  53.     margin-left: 15px;
  54.     font-family: "Book Antiqua", serif;
  55.     font-size: 2em;
  56.     font-weight: 200;
  57. }
  58.  
  59. .page-logo {
  60.     position: relative;
  61.     top: 50%;
  62.     width: 75px;
  63.     height: 75px;
  64.     text-align: center;
  65.     line-height: 40px;
  66.     font-size: 4em;
  67.     font-family: 'Parisienne', cursive;
  68.     font-weight: bold;
  69. }
  70.  
  71. .hamburger-menu {
  72.     display: none;
  73.     flex-direction: column;
  74.     justify-content: space-evenly;
  75.     align-items: center;
  76.     width: 50px;
  77.     height: 50px;
  78.     background: var(--main-color);
  79.     border: 2px solid black;
  80.     border-radius: 8px;
  81. }
  82.  
  83. .hamburger-menu > div {
  84.     position: relative;
  85.     display: flex;
  86.     align-items: center;
  87.     justify-content: center;
  88.     width: 60%;
  89.     height: 2px;
  90.     background-color: black;
  91. }
  92.  
  93. .hamburger-menu > div:before,
  94. .hamburger-menu > div:after {
  95.     content: '';
  96.     position: absolute;
  97.     z-index: 1;
  98.     top: -8px;
  99.     width: 100%;
  100.     height: 2px;
  101.     background: inherit;
  102. }
  103.  
  104. .hamburger-menu > div:after {
  105.     top: 8px;
  106. }
  107.  
  108. .main {
  109.     display: flex;
  110.     padding: 15px;
  111. }
  112.  
  113. .section {
  114.     display: flex;
  115.     flex-direction: column;
  116.     flex: 0 1 auto;
  117.     margin: 15px;
  118.     width: 100%;
  119.     border: 2px solid black;
  120.     background: var(--main-color);
  121. }
  122.  
  123. .section-header {
  124.     display: flex;
  125.     justify-content: center;
  126.     align-items: center;
  127.     align-self: flex-end;
  128.     height: 50px;
  129.     width: 50%;
  130.     font-size: 1.5em;
  131.     border-bottom: 2px solid black;
  132.     border-left: 2px solid black;
  133.     background: var(--header1-color);
  134. }
  135.  
  136. .section:nth-child(2) .section-header {
  137.     background: var(--header2-color);
  138. }
  139. .section:nth-child(3) .section-header {
  140.     background: var(--header3-color);
  141. }
  142.  
  143. .section > p {
  144.     padding: 20px;
  145.     padding-top: 40px;
  146.     padding-bottom: 30px;
  147.     text-align: justify;
  148. }
  149.  
  150. footer {
  151.     display: flex;
  152.     flex-direction: column;
  153.     flex-shrink: 0;
  154.     align-items: center;
  155.     height: 100px;
  156.     background: var(--main-color);
  157.     border-top: 3px solid black;
  158. }
  159.  
  160. .wrapper {
  161.     flex: 1 0 auto;
  162. }
  163.  
  164. .signature {
  165.     font-weight: bold;
  166.     margin-top: -30px;
  167. }
  168.  
  169. footer > p {
  170.     display: flex;
  171.     height: 50%;
  172.     position: relative;
  173.     top: 30%
  174. }
  175.  
  176. @media all and (min-width: 600px) and (max-width: 1024px ) {
  177.     .main {
  178.         flex-wrap: wrap;
  179.     }
  180.     header {
  181.         justify-content: flex-start;
  182.     }
  183.  
  184.     .section:nth-child(1) {
  185.         flex-basis: 100%;
  186.     }
  187.  
  188.     .section:not(:nth-child(1)) {
  189.         flex-basis: calc(50% - 30px);
  190.     }
  191.  
  192.     .hamburger-menu {
  193.         margin-left: auto;
  194.         display: flex;
  195.     }
  196.  
  197.     .navigation {
  198.         display: none;
  199.     }
  200. }
  201.  
  202. @media all and (max-width: 600px) {
  203.     .main {
  204.         flex-wrap: wrap;
  205.     }
  206.     header {
  207.         justify-content: space-between;
  208.     }
  209.     .page-title, .navigation {
  210.         display: none;
  211.     }
  212.     .hamburger-menu {
  213.         display: flex;
  214.     }
  215. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement