Advertisement
bebo231312312321

Untitled

Sep 16th, 2024
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.97 KB | None | 0 0
  1. @media(min-width: 768px) {
  2.     .header {
  3.         padding: 1.2rem 2rem;
  4.         background: transparent;
  5.         font-size: var(--xs-font-size);
  6.         transition: padding 1.8s ease, font-size 1.8s ease;
  7.         top: 0;
  8.         z-index: 1000;
  9.     }
  10.  
  11.     .header::before {
  12.         content: '';
  13.         position: absolute;
  14.         top: 0;
  15.         left: 0;
  16.         right: 0;
  17.         bottom: 0;
  18.         background-color: transparent;
  19.         transition: background-color 0.1s ease;
  20.         z-index: -1;
  21.     }
  22.  
  23.     .header::after {
  24.         content: '';
  25.         position: absolute;
  26.         top: 0;
  27.         left: 0;
  28.         right: 0;
  29.         bottom: 0;
  30.         background-color: transparent;
  31.         transition: background-color 1.8s ease;
  32.         z-index: -2;
  33.     }
  34.  
  35.     .header .logo {
  36.         width: calc(var(--l-font-size) + 12px);
  37.         height: calc(var(--l-font-size) + 12px);
  38.         transition: width 1.8s ease, height 1.8s ease;
  39.     }
  40.  
  41.     .header.sticky {
  42.         position: sticky;
  43.         padding: 1rem 2rem;
  44.         font-size: var(--xs-font-size);
  45.         box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  46.     }
  47.  
  48.     .header.sticky::before {
  49.         background-color: rgba(0, 0, 0, 0.8);
  50.     }
  51.  
  52.     .header.sticky::after {
  53.         background-color: rgba(0, 0, 0, 0.8);
  54.     }
  55.  
  56.     .header.sticky .logo {
  57.         width: var(--l-font-size);
  58.         height: var(--l-font-size);
  59.     }
  60.     .menu-icon {
  61.         display: none;
  62.     }
  63.  
  64.     .nav-links {
  65.         display: flex;
  66.         flex-direction: row;
  67.         align-items: center;
  68.         position: static;
  69.         background-color: transparent;
  70.         width: auto;
  71.         margin-left: 1rem;
  72.         flex-grow: 1;
  73.     }
  74.  
  75.     .nav-links a {
  76.         padding: 2rem 1rem;
  77.         position: relative;
  78.         font-size: inherit;
  79.     }
  80.  
  81.     .nav-links a.active {
  82.         text-decoration: underline var(--bg-blue);
  83.         text-underline-offset: 10px;
  84.     }
  85.  
  86.     .nav-links a:hover,
  87.     .nav-links a.active {
  88.         color: var(--bg-blue);
  89.         transition: all 0.3s ease;
  90.         z-index: 10;
  91.     }
  92.  
  93.     .nav-links .dropdown:hover .dropdown-content {
  94.         padding-top: 1rem;
  95.         display: block;
  96.     }
  97.  
  98.     .nav-links .dropdown-content a:hover {
  99.         text-decoration: underline var(--bg-blue);
  100.         opacity: 0.6;
  101.         transition: all 0.3s ease;
  102.     }
  103.  
  104.     .header .right {
  105.         display: flex;
  106.         gap: 1rem;
  107.         text-transform: uppercase;
  108.         z-index: 100;
  109.     }
  110.  
  111.     .mobile-buttons {
  112.         display: none;
  113.     }
  114.  
  115.     .header .btn {
  116.         max-width: 100%;
  117.         white-space: nowrap;
  118.         margin-left: 0 0.5rem 0 0.5rem;
  119.         margin-bottom: 0;
  120.     }
  121.  
  122.     .nav-links a:active {
  123.         color: var(--bg-blue);
  124.     }
  125.  
  126.     .nav-links .dropdown {
  127.         position: relative;
  128.     }
  129.  
  130.     .nav-links .dropdown:hover>a {
  131.         background-color: var(--bg-black);
  132.         box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5);
  133.         transition: background 0.3s ease, box-shadow 0.3s ease;
  134.     }
  135.  
  136.     .nav-links .dropdown:hover>a {
  137.         border-radius: 10px 10px 0 0;
  138.     }
  139.  
  140.     .nav-links .dropdown-content {
  141.         display: none;
  142.         position: absolute;
  143.         top: 120%;
  144.         left: 5px;
  145.         background: var(--linear-gradient);
  146.         width: 100%;
  147.         border-radius: 0 10px 10px 10px;
  148.         z-index: 10;
  149.         padding: 0;
  150.         min-width: 30rem;
  151.         background-size: cover;
  152.         background-position: top left;
  153.         transition: background 0.3s ease;
  154.     }
  155.  
  156.     .nav-links .dropdown:hover .dropdown-content {
  157.         display: block;
  158.         transition: background 0.3s ease;
  159.     }
  160.  
  161.     .nav-links .dropdown-content a {
  162.         padding: 1rem;
  163.         display: block;
  164.         color: var(--bg-white);
  165.         text-decoration: none;
  166.         text-align: start;
  167.         margin: 0;
  168.         font-size: 0.875rem;
  169.         transition: background 0.3s ease;
  170.         background: transparent;
  171.     }
  172. }
  173.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement