Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 1rem 2rem;
- background: var(--linear-gradient);
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 10;
- transition: all 0.5s ease;
- font-size: 1.8rem;
- }
- .sticky-container {
- position: sticky;
- top: 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
- z-index: 100;
- }
- .header.hide-on {
- display: none;
- }
- .logo-container {
- display: flex;
- align-items: center;
- }
- .logo {
- font-size: 1.5rem;
- width: var(--l-font-size);
- height: var(--l-font-size);
- border-radius: 50%;
- }
- .menu-icon {
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- width: 40px;
- height: 40px;
- cursor: pointer;
- transition: all 0.3s ease;
- background-color: transparent;
- padding: 2px;
- border-radius: 5px;
- }
- .menu-icon .bar {
- width: 100%;
- height: 4px;
- background-color: var(--bg-blue);
- transition: all 0.8s ease;
- border-radius: 5px;
- }
- .menu-icon:hover .bar {
- background-color: var(--bg-white);
- }
- .header .right {
- display: none;
- }
- .nav-links {
- display: none;
- flex-direction: column;
- position: absolute;
- top: 100%;
- right: 0;
- background-color: var(--bg-black);
- width: 100%;
- z-index: 1;
- }
- .nav-links.open {
- display: flex;
- }
- .nav-links a {
- color: var(--bg-white);
- padding: 1rem;
- text-decoration: none;
- transition: background-color 0.3s ease;
- cursor: pointer;
- text-transform: uppercase;
- font-size: x-large;
- }
- .nav-links a.active {
- color: var(--bg-blue);
- text-decoration: underline var(--bg-blue);
- text-underline-offset: 5px;
- transition: all 0.3s ease;
- }
- .header .btn {
- padding: 0.5rem 1rem;
- color: var(--bg-white);
- border: none;
- border-radius: var(--radius);
- text-decoration: none;
- cursor: pointer;
- transition: background-color 0.3s ease;
- margin-bottom: 1rem;
- z-index: 100;
- align-content: center;
- }
- .header .btn-dark-gray {
- background-color: var(--bg-dark-gray);
- }
- .header .btn-blue {
- background-color: var(--bg-blue);
- }
- .header .btn:hover {
- opacity: 0.8;
- }
- .mobile-buttons {
- display: flex;
- flex-direction: row;
- justify-content: center;
- flex-wrap: wrap;
- gap: 0.5rem;
- margin-top: 1rem;
- }
- .mobile-buttons a {
- font-size: var(--xxs-font-size);
- }
- .menu-icon.open .bar:nth-child(1) {
- transform: rotate(45deg) translate(8px, 8px);
- }
- .menu-icon.open .bar:nth-child(2) {
- opacity: 0;
- }
- .menu-icon.open .bar:nth-child(3) {
- transform: rotate(-45deg) translate(8px, -8.9px);
- }
- .nav-links .dropdown {
- padding-top: 1rem;
- }
- .nav-links .dropdown-content {
- display: flex;
- flex-direction: column;
- padding: 0.5rem 1rem;
- }
- .nav-links .dropdown-content a {
- font-size: initial;
- justify-content: flex-start;
- }
- .body-no-scroll {
- overflow: hidden;
- }
- /* Sticky header за мобилни устройства */
- @media (max-width: 767px) {
- .header {
- position: sticky;
- top: 0;
- z-index: 100;
- background: rgba(0, 0, 0, 0.8); /* Фон за sticky header */
- padding: 1rem 2rem;
- transition: background-color 0.3s ease, padding 0.3s ease;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .sticky-container{
- width: 100%;
- }
- .nav-links {
- display: none;
- flex-direction: column;
- position: fixed;
- top: 80px;
- right: 0;
- left: 0;
- background-color: var(--bg-black);
- width: 100%;
- height: calc(100vh - 80px);
- overflow-y: auto;
- z-index: 10;
- }
- .nav-links.open {
- display: flex;
- }
- .menu-icon {
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- width: 40px;
- height: 40px;
- cursor: pointer;
- background-color: transparent;
- padding: 2px;
- border-radius: 5px;
- }
- .menu-icon .bar {
- width: 100%;
- height: 4px;
- background-color: var(--bg-blue);
- transition: all 0.8s ease;
- border-radius: 5px;
- }
- }
- @media(min-width: 768px) {
- .header {
- padding: 2rem 2rem;
- background: transparent;
- font-size: var(--xs-font-size);
- transition: background-color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
- }
- .header .logo {
- width: calc(var(--l-font-size) + 12px);
- height: calc(var(--l-font-size) + 12px);
- }
- .header.sticky {
- position: sticky;
- top: 0;
- background: rgba(0, 0, 0, 0.8);
- padding: 1rem 2rem;
- font-size: var(--xs-font-size);
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- transition: background-color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
- }
- .header.sticky .logo {
- width: var(--l-font-size);
- height: var(--l-font-size);
- transition: width 0.3s ease, height 0.3s ease;
- }
- .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;
- }
- }
- @media (min-width: 768px) and (max-width: 900px) {
- .header {
- font-size: var(--xxs-font-size);
- }
- .header .right {
- gap: 0.5rem;
- }
- .header .btn {
- padding: 0.3rem 0.8rem;
- font-size: 0.875rem;
- }
- .nav-links a {
- padding: 1rem 0.5rem;
- }
- .mobile-buttons {
- display: none;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement