Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.64 KB | None | 0 0
  1. :root {
  2.     --article-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. header nav {
  37.     display: flex;
  38.     justify-content: flex-end;
  39.     flex-grow: 2;
  40.     align-self: flex-start;
  41. }
  42.  
  43. header nav 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: 'Lora', 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.     letter-spacing: -5px;
  70.     transform: rotate();
  71. }
  72.  
  73. .hamburger-menu {
  74.     display: none;
  75.     flex-direction: column;
  76.     justify-content: space-evenly;
  77.     align-items: center;
  78.     width: 50px;
  79.     height: 50px;
  80.     background: var(--article-color);
  81.     border: 2px solid black;
  82.     border-radius: 7px;
  83. }
  84.  
  85. .hamburger-menu > div {
  86.     position: relative;
  87.     display: flex;
  88.     align-items: center;
  89.     justify-content: center;
  90.     width: 60%;
  91.     height: 2px;
  92.     background-color: black;
  93. }
  94.  
  95. .hamburger-menu > div:before,
  96. .hamburger-menu > div:after {
  97.     content: '';
  98.     position: absolute;
  99.     z-index: 1;
  100.     top: -8px;
  101.     width: 100%;
  102.     height: 2px;
  103.     background: inherit;
  104. }
  105.  
  106. .hamburger-menu > div:after {
  107.     top: 8px;
  108. }
  109.  
  110. main {
  111.     display: flex;
  112.     padding: 15px;
  113. }
  114.  
  115. article {
  116.     display: flex;
  117.     flex-direction: column;
  118.     flex: 0 1 auto;
  119.     margin: 15px;
  120.     width: 100%;
  121.     border: 2px solid black;
  122.     background: var(--article-color);
  123. }
  124.  
  125. article:nth-child(2) .article-header {
  126.     background: var(--header2-color);
  127. }
  128. article:nth-child(3) .article-header {
  129.     background: var(--header3-color);
  130. }
  131.  
  132. .article-header {
  133.     display: flex;
  134.     justify-content: center;
  135.     align-items: center;
  136.     align-self: flex-end;
  137.     height: 50px;
  138.     width: 50%;
  139.     font-size: 1.5em;
  140.     border-bottom: 2px solid black;
  141.     border-left: 2px solid black;
  142.     background: var(--header1-color);
  143. }
  144.  
  145. article > p {
  146.     padding: 15px;
  147.     text-align: justify;
  148. }
  149.  
  150. footer {
  151.     display: flex;
  152.     flex-direction: column;
  153.     flex-shrink: 0;
  154.     align-items: center;
  155.     justify-content: center;
  156.     height: 100px;
  157.     background: var(--article-color);
  158.     border-top: 2px solid black;
  159.     margin-top: 15px;
  160. }
  161.  
  162. .wrapper {
  163.     flex: 1 0 auto;
  164. }
  165.  
  166. .signature {
  167.     font-weight: bold;
  168. }
  169.  
  170. @media all and (min-width: 600px) and (max-width: 1024px ) {
  171.     main {
  172.         flex-wrap: wrap;
  173.     }
  174.     header {
  175.         justify-content: flex-start;
  176.     }
  177.  
  178.     article:nth-child(1) {
  179.         flex-basis: 100%;
  180.     }
  181.  
  182.     article:not(:nth-child(1)) {
  183.         flex-basis: calc(50% - 30px);
  184.     }
  185.  
  186.     .hamburger-menu {
  187.         margin-left: auto;
  188.         display: flex;
  189.     }
  190.  
  191.     header nav {
  192.         display: none;
  193.     }
  194. }
  195.  
  196. @media all and (max-width: 600px) {
  197.     main {
  198.         flex-wrap: wrap;
  199.     }
  200.     header {
  201.         justify-content: space-between;
  202.     }
  203.     .page-title, header nav {
  204.         display: none;
  205.     }
  206.     .hamburger-menu {
  207.         display: flex;
  208.     }
  209. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement