Advertisement
Guest User

Untitled

a guest
Apr 13th, 2020
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.43 KB | None | 0 0
  1. /* GLOBAL STYLES */
  2. @import url('https://fonts.googleapis.com/css2?family=Poppins&family=Righteous&display=swap');
  3. * {
  4.     top: 0;
  5.     left: 0;
  6.     margin: 0;
  7.     padding: 0;
  8.     box-sizing: inherit;
  9. }
  10. html {
  11.     font-family: 'Poppins', sans-serif;
  12.     font-size: 10px;
  13. }
  14. .container {
  15.     height: 500px;
  16.     width: 90%;
  17.     margin: 30px auto;
  18.     text-align: center;
  19. }
  20. .container h1 {
  21.     font-size: 5em;
  22. }
  23. .container h2 {
  24.     font-size: 3em;
  25. }
  26. .container p {
  27.     font-size: 2em;
  28. }
  29. /* HEADER STYLES */
  30. header {
  31.     position: fixed;
  32.     display: flex;
  33.     justify-content: space-between;
  34.     align-content: center;
  35.     width: 100%;
  36.     height: 50px;
  37.     z-index: 3;
  38.     transition: .5s;
  39. }
  40. #header-img {
  41.     width: 30px;
  42.     padding: 5px;
  43. }
  44. #nav-bar {
  45.     background: linear-gradient(rgb(111, 135, 202), rgb(100, 174, 180));
  46.     width: 50%;
  47.     height: 100vh;
  48.     transform: translateX(100%);
  49.     transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
  50. }
  51. .nav-list {
  52.     position: relative;
  53.     display: flex;
  54.     flex-direction: column;
  55.     justify-content: space-around;
  56.     align-items: center;
  57.     top: 75px;
  58.     height: 80vh;
  59. }
  60. .nav-item {
  61.     position: relative;
  62.     width:100%;
  63.     height: 100px;
  64.     list-style: none;
  65.     text-shadow: 1px 1px 2px black;
  66. }
  67. .nav-link {
  68.     position: relative;
  69.     display: block;
  70.     text-align: center;
  71.     top: 30%;
  72.     text-decoration: none;
  73.     font-size: 2.2em;
  74.     color: white;
  75.     transition: .1s;
  76. }
  77. .nav-link:hover {
  78.     font-size: 2.5em
  79. }
  80. .nav-link:active {
  81.     transform: translateY(3px);
  82.     color: rgba(220,220,220)
  83. }
  84.  
  85. /* NAVIGATION BUTTON */
  86.  
  87. .nav-btn-container {
  88.     position: absolute;
  89.     top: 10px;
  90.     left: calc(100% - 50px);
  91.     width: 30px;
  92.     height: 30px;
  93.     background: none;
  94.     border: none;
  95.     outline: none;
  96.     padding-left: .2rem;
  97.     transition: .2s;
  98.     z-index: 4;
  99. }
  100. .nav-btn,
  101. .nav-btn::before,
  102. .nav-btn::after {
  103.     position: relative;
  104.     display: block;
  105.     width: 2.8rem;
  106.     height: 5px;
  107.     background: white;
  108.     box-shadow: .4px .4px 1px;
  109.     transition: .5s;
  110. }
  111. .nav-btn::before {
  112.     content: '';
  113.     bottom: 9px;
  114. }
  115. .nav-btn::after {
  116.     content: '';
  117.     top: 4px;
  118. }
  119. .nav-btn-container:hover {
  120.     cursor: pointer;
  121.     transform: translateY(2px);
  122. }
  123. .nav-btn-container:hover .nav-btn,
  124. .nav-btn-container:hover .nav-btn::before,
  125. .nav-btn-container:hover .nav-btn::after {
  126.     background: rgba(220,220,220);
  127. }
  128. .nav-btn-container.active .nav-btn {
  129.     background: none;
  130.     box-shadow: none;
  131.     left: -3px;
  132. }
  133. .nav-btn-container.active .nav-btn::before {
  134.     top: 1px;
  135.     width: 2.5em;
  136.     transform: rotate(45deg);
  137.     box-shadow: none;
  138. }
  139. .nav-btn-container.active .nav-btn::after {
  140.     top: -4px;
  141.     width: 2.5em;
  142.     transform: rotate(-45deg);
  143.     box-shadow: none;
  144. }
  145. .nav-btn-container.active + #nav-bar{
  146.     transform: translateX(0);
  147.     box-shadow: -5px 0 20px rgba(0,0,0, .4);
  148. }
  149.  
  150.         /* SECTION #1 - HERO */
  151.  
  152. .hero {
  153.     background: linear-gradient(135deg, rgb(78, 109, 192), rgba(37, 124, 73, 0.8)), url(hero-bg.jpg);
  154.     background-attachment: fixed;
  155.     padding-top: 75px;
  156.     color: white;
  157. }
  158. .hero::after {
  159.     content: '';
  160.     position: absolute;
  161.     width: 100%;
  162.     height: 300px;
  163.     background: url(wave-small.png);
  164.     background-size: cover;
  165.     bottom: 30px;
  166.     z-index: 1;
  167. }
  168.  
  169.         /* SECTION #2 - FEATURES */
  170.  
  171. .features {
  172.     color: #333;
  173. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement