Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. /* CSS Document */
  2.  
  3. /* Mobile first approach, meaning all styling without a media query aims at the mobile view */
  4.  
  5. html {
  6. scroll-behavior: smooth;
  7. }
  8.  
  9. body {
  10. font: 15px/1.5 Arial, Helvetica, sans-serif;
  11. background: #f4f4f4;
  12. margin: 0;
  13. padding: 0;
  14. }
  15.  
  16. header {
  17. position: relative;
  18. border-bottom: 1px solid #EAEAEB;
  19. margin: 1%;
  20. }
  21.  
  22. footer {
  23. text-align: center;
  24. border-top: 1px solid #EAEAEB;
  25. background: gray;
  26. }
  27.  
  28. footer svg {
  29. color: black;
  30. margin-top: 1%;
  31. }
  32.  
  33. .container {
  34. width: 100%;
  35. margin: auto;
  36. }
  37.  
  38. .hamburger {
  39. font-size: 30px;
  40. cursor: pointer;
  41. position: relative;
  42. left: 80%;
  43.  
  44. }
  45.  
  46. .logo {
  47. float: left;
  48. font-family: 'Rock Salt', cursive;
  49. font-size: 1.5rem;
  50. color: lightgray;
  51. }
  52.  
  53. .logo a {
  54. text-decoration: none;
  55. color: black;
  56.  
  57. }
  58.  
  59. .logo span {
  60. font-weight: bolder;
  61. }
  62.  
  63.  
  64. .me {
  65. display: block;
  66. min-width: 100%;
  67. height: 300px;
  68. object-fit: cover;
  69.  
  70.  
  71. }
  72.  
  73. .overlay {
  74. height: 0%;
  75. width: 100%;
  76. position: fixed;
  77. z-index: 1;
  78. top: 0;
  79. left: 0;
  80. background-color: rgb(0, 0, 0);
  81. background-color: rgba(0, 0, 0, 0.9);
  82. overflow-y: hidden;
  83. transition: 0.5s;
  84. }
  85.  
  86. .overlay-content {
  87. position: relative;
  88. top: 25%;
  89. width: 100%;
  90. text-align: center;
  91. margin-top: 30px;
  92. }
  93.  
  94. .overlay a {
  95. padding: 8px;
  96. text-decoration: none;
  97. font-size: 36px;
  98. color: #818181;
  99. display: block;
  100. transition: 0.3s;
  101. }
  102.  
  103. .overlay a:hover,
  104. .overlay a:focus {
  105. color: #f1f1f1;
  106. }
  107.  
  108. .overlay .closebtn {
  109. position: absolute;
  110. top: 20px;
  111. right: 45px;
  112. font-size: 60px;
  113. }
  114.  
  115.  
  116. /* When the screen exceeds 800px the desktop version styling is applied */
  117.  
  118. @media only screen and (min-width:800px) {
  119.  
  120. .grid {
  121. display: grid;
  122. grid-template-columns: repeat(6, 1fr);
  123. grid-template-rows: 1fr 2fr 10%;
  124. column-gap: 4px;
  125. grid-row-gap: 4px;
  126. margin: 0;
  127. height: 100%;
  128.  
  129. }
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement