Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @media(min-width: 768px) {
- .header {
- padding: 1.2rem 2rem;
- background: transparent;
- font-size: var(--xs-font-size);
- transition: padding 1.8s ease, font-size 1.8s ease;
- top: 0;
- z-index: 1000;
- }
- .header::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: transparent;
- transition: background-color 0.1s ease;
- z-index: -1;
- }
- .header::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: transparent;
- transition: background-color 1.8s ease;
- z-index: -2;
- }
- .header .logo {
- width: calc(var(--l-font-size) + 12px);
- height: calc(var(--l-font-size) + 12px);
- transition: width 1.8s ease, height 1.8s ease;
- }
- .header.sticky {
- position: sticky;
- padding: 1rem 2rem;
- font-size: var(--xs-font-size);
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- }
- .header.sticky::before {
- background-color: rgba(0, 0, 0, 0.8);
- }
- .header.sticky::after {
- background-color: rgba(0, 0, 0, 0.8);
- }
- .header.sticky .logo {
- width: var(--l-font-size);
- height: var(--l-font-size);
- }
- .menu-icon {
- display: none;
- }
- .nav-links {
- display: flex;
- flex-direction: row;
- align-items: center;
- position: static;
- background-color: transparent;
- width: auto;
- margin-left: 1rem;
- flex-grow: 1;
- }
- .nav-links a {
- padding: 2rem 1rem;
- position: relative;
- font-size: inherit;
- }
- .nav-links a.active {
- text-decoration: underline var(--bg-blue);
- text-underline-offset: 10px;
- }
- .nav-links a:hover,
- .nav-links a.active {
- color: var(--bg-blue);
- transition: all 0.3s ease;
- z-index: 10;
- }
- .nav-links .dropdown:hover .dropdown-content {
- padding-top: 1rem;
- display: block;
- }
- .nav-links .dropdown-content a:hover {
- text-decoration: underline var(--bg-blue);
- opacity: 0.6;
- transition: all 0.3s ease;
- }
- .header .right {
- display: flex;
- gap: 1rem;
- text-transform: uppercase;
- z-index: 100;
- }
- .mobile-buttons {
- display: none;
- }
- .header .btn {
- max-width: 100%;
- white-space: nowrap;
- margin-left: 0 0.5rem 0 0.5rem;
- margin-bottom: 0;
- }
- .nav-links a:active {
- color: var(--bg-blue);
- }
- .nav-links .dropdown {
- position: relative;
- }
- .nav-links .dropdown:hover>a {
- background-color: var(--bg-black);
- box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5);
- transition: background 0.3s ease, box-shadow 0.3s ease;
- }
- .nav-links .dropdown:hover>a {
- border-radius: 10px 10px 0 0;
- }
- .nav-links .dropdown-content {
- display: none;
- position: absolute;
- top: 120%;
- left: 5px;
- background: var(--linear-gradient);
- width: 100%;
- border-radius: 0 10px 10px 10px;
- z-index: 10;
- padding: 0;
- min-width: 30rem;
- background-size: cover;
- background-position: top left;
- transition: background 0.3s ease;
- }
- .nav-links .dropdown:hover .dropdown-content {
- display: block;
- transition: background 0.3s ease;
- }
- .nav-links .dropdown-content a {
- padding: 1rem;
- display: block;
- color: var(--bg-white);
- text-decoration: none;
- text-align: start;
- margin: 0;
- font-size: 0.875rem;
- transition: background 0.3s ease;
- background: transparent;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement