Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css?family=Montserrat:500');
  2. * {
  3. box-sizing: border-box;
  4. margin: 0;
  5. padding: 0;
  6. }
  7.  
  8. header {
  9. display: flex;
  10. justify-content: space-between;
  11. align-items: center;
  12. padding: 30px 10%;
  13. background-color: #24252a;
  14. }
  15.  
  16. .logo {
  17. cursor: pointer;
  18. }
  19.  
  20. .nav__links a,
  21. .cta,
  22. .overlay__content a {
  23. font-family: "Montserrat", sans-serif;
  24. font-weight: 500;
  25. color: #edf0f1;
  26. text-decoration: none;
  27. }
  28.  
  29. .nav__links {
  30. list-style: none;
  31. display: flex;
  32. }
  33.  
  34. .nav__links li {
  35. padding: 0px 20px;
  36. }
  37.  
  38. .nav__links li a {
  39. transition: all 0.3s ease 0s;
  40. }
  41.  
  42. .nav__links li a:hover {
  43. color: #0088a9;
  44. }
  45.  
  46. .cta {
  47. padding: 9px 25px;
  48. background-color: rgba(0, 136, 169, 1);
  49. border: none;
  50. border-radius: 50px;
  51. cursor: pointer;
  52. transition: all 0.3s ease 0s;
  53. }
  54.  
  55. .cta:hover {
  56. background-color: rgba(0, 136, 169, 0.8);
  57. }
  58.  
  59.  
  60. /* Mobile Nav */
  61.  
  62. .menu {
  63. display: none;
  64. }
  65.  
  66. .overlay {
  67. height: 100%;
  68. width: 0;
  69. position: fixed;
  70. z-index: 1;
  71. left: 0;
  72. top: 0;
  73. background-color: #24252a;
  74. overflow-x: hidden;
  75. transition: all 0.5s ease 0s;
  76. }
  77.  
  78. .overlay__content {
  79. display: flex;
  80. height: 100%;
  81. flex-direction: column;
  82. align-items: center;
  83. justify-content: center;
  84. }
  85.  
  86. .overlay a {
  87. padding: 15px;
  88. font-size: 36px;
  89. display: block;
  90. transition: all 0.3s ease 0s;
  91. }
  92.  
  93. .overlay a:hover,
  94. .overlay a:focus {
  95. color: #0088a9;
  96. }
  97.  
  98. .overlay .close {
  99. position: absolute;
  100. top: 20px;
  101. right: 45px;
  102. font-size: 60px;
  103. color: #edf0f1;
  104. }
  105.  
  106. @media screen and (max-height: 450px) {
  107. .overlay a {
  108. font-size: 20px;
  109. }
  110. .overlay .close {
  111. font-size: 40px;
  112. top: 15px;
  113. right: 35px;
  114. }
  115. }
  116.  
  117. @media only screen and (max-width: 800px) {
  118. .nav__links,
  119. .cta {
  120. display: none;
  121. }
  122. .menu {
  123. display: initial;
  124. }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement