Advertisement
ptownhero

The CSS

Sep 6th, 2021
2,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.40 KB | None | 0 0
  1. /* Nav Styles*/
  2.  
  3. #logo {
  4.     display: inline-block;
  5.     margin: 15px 0 0;
  6.     left: 50%;
  7.     font-size: 1.5rem;
  8.     font-weight: 700;
  9.     text-transform: uppercase;
  10.     transform: skew(-5deg, -5deg) rotate(5deg);
  11.     transform-origin: center center;
  12.     letter-spacing: 1.5px;
  13. }
  14.  
  15. .nav-bar {
  16.     background-color: silver;
  17.     /* opacity: 0.75; */
  18.     position: absolute;
  19.     width: 100%;
  20.     top: 0;
  21.     z-index: 10;
  22.     float: left;
  23.     margin: 0;
  24.     overflow: hidden;
  25. }
  26.  
  27. .nav-bar ul {
  28.     list-style: none;
  29.     position: relative;
  30.     float: left;
  31.     display: block;
  32.     left: 50%;
  33.     max-width: 1200px;
  34.     margin: 0;
  35.     padding: 0;
  36. }
  37.  
  38. .nav-bar ul li {
  39.     position: relative;
  40.     right: 50%;
  41. }
  42.  
  43. .nav-bar li a {
  44.     display: block;
  45.     padding: 1em;
  46.     text-decoration: none;
  47.     color: #000000;
  48. }
  49.  
  50. .nav-bar li a:hover {
  51.     background-color: #B5B5B5;
  52. }
  53.  
  54. .nav-bar .menu-icon {
  55.     cursor: pointer;
  56.     display: inline-block;
  57.     float: right;
  58.     padding: 28px 20px;
  59.     position: relative;
  60.     user-select: none;
  61. }
  62.  
  63. .nav-bar .menu {
  64.     clear: both;
  65.     max-height: 0;
  66.     transition: max-height .2s ease-out;
  67. }
  68.  
  69. .nav-bar .menu-icon .navicon {
  70.     background: #333;
  71.     display: block;
  72.     height: 2px;
  73.     position: relative;
  74.     transition: background .2s ease-out;
  75.     width: 18px;
  76. }
  77.  
  78. .nav-bar .menu-icon .navicon:before, .nav-bar .menu-icon .navicon:after {
  79.     background: #333;
  80.     content: '';
  81.     display: block;
  82.     height: 100%;
  83.     position: absolute;
  84.     transition: all .2s ease-out;
  85.     width: 100%;
  86. }
  87.  
  88. .nav-bar .menu-icon .navicon:before {
  89.     top: 5px;
  90. }
  91.  
  92. .nav-bar .menu-icon .navicon:after {
  93.     top: -5px;
  94. }
  95.  
  96. .nav-bar .menu-btn {
  97.     display: none;
  98. }
  99.  
  100. .nav-bar .menu-btn:checked~.menu {
  101.     max-height: 248px;
  102. }
  103.  
  104. .nav-bar .menu-btn:checked~.menu-icon .navicon {
  105.     background: transparent;
  106. }
  107.  
  108. .nav-bar .menu-btn:checked~.menu-icon .navicon:before {
  109.     transform: rotate(-45deg);
  110. }
  111.  
  112. .nav-bar .menu-btn:checked~.menu-icon .navicon:after {
  113.     transform: rotate(45deg);
  114. }
  115.  
  116. .nav-bar .menu-btn:checked~.menu-icon:not(.steps) .navicon:before, .nav-bar .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  117.     top: 0;
  118. }
  119.  
  120. .active {
  121.     background-color: rgba(212, 212, 212, 0.986);
  122.     color: white;
  123. }
  124.  
  125. #active-nav, footer section {
  126.     background-color: rgba(212, 212, 212, 0.986);
  127.     padding: 15px 0;
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement