generated from muhtadeetaron/nextjs-template
585 lines
11 KiB
CSS
585 lines
11 KiB
CSS
.header {
|
|
display: block;
|
|
position: relative;
|
|
background-color: var(--background-color);
|
|
padding-top: 22px;
|
|
padding-bottom: 12px;
|
|
z-index: 100;
|
|
font-size: 20px;
|
|
line-height: 100%;
|
|
font-family: var(--font2);
|
|
overflow-x: clip;
|
|
}
|
|
|
|
.navbar-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.navbar-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: relative;
|
|
padding-bottom: 22px;
|
|
}
|
|
|
|
.socials {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 22px;
|
|
flex: 2;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.social {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 1;
|
|
}
|
|
|
|
.social:hover .social-inner {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.social-inner {
|
|
width: 22px;
|
|
min-width: 22px;
|
|
height: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all .2s ease;
|
|
transform: translateY(0px);
|
|
will-change: transform;
|
|
}
|
|
|
|
.social-inner-smaller {
|
|
width: 21px;
|
|
min-width: 21px;
|
|
}
|
|
|
|
#instagram,
|
|
#linkedin,
|
|
#pinterest {
|
|
display: none;
|
|
}
|
|
|
|
.navbar-account-links {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 26px;
|
|
flex: 2;
|
|
}
|
|
|
|
.account-button-wrapper {
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.account-icon-wrapper {
|
|
margin-top: 1px;
|
|
width: 19px;
|
|
min-width: 19px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.account-buttons-separator {
|
|
width: 1px;
|
|
height: 21px;
|
|
background-color: var(--text-color);
|
|
}
|
|
|
|
.subscribe-button {
|
|
padding: 4px 26px;
|
|
font-family: var(--font2);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.logo-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logo-image {
|
|
height: calc(37px * var(--logo-scale));
|
|
width: auto;
|
|
}
|
|
|
|
.navbar-logo-text {
|
|
font-family: var(--font4);
|
|
line-height: 80%;
|
|
letter-spacing: -0.02em;
|
|
font-size: 46px;
|
|
}
|
|
|
|
.navbar-links-outer {
|
|
padding-top: 13px;
|
|
padding-bottom: 13px;
|
|
border-top: 1px solid var(--text-color);
|
|
border-bottom: 1px solid var(--text-color);
|
|
min-height: 50px;
|
|
}
|
|
|
|
.navbar-links-inner {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nav {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
column-gap: 30px;
|
|
row-gap: 12px;
|
|
}
|
|
|
|
.nav li {
|
|
list-style-type: none;
|
|
display: flex;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-link, .links-label {
|
|
line-height: 100%;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.secondary-links .nav-link {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--text-color);
|
|
transition: color 0.2s ease, background-color 0.2s ease;
|
|
}
|
|
|
|
.secondary-links-inner:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.links-label {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav li:hover .secondary-links, .nav .secondary-links:focus-within {
|
|
opacity: 1;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.dropdown-arrow-svg {
|
|
width: 8px;
|
|
min-width: 8px;
|
|
height: 5px;
|
|
min-height: 5px;
|
|
margin-left: 7px;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.secondary-links {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
left: -17px;
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition-duration: 0.15s;
|
|
transition-property: opacity;
|
|
min-width: 168px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.secondary-links-inner {
|
|
margin-top: 13px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--background-color);
|
|
border: 1px solid var(--text-color);
|
|
}
|
|
|
|
.secondary-links-inner .nav-link:hover {
|
|
color: var(--background-color);
|
|
background-color: var(--text-color);
|
|
}
|
|
|
|
.menu-button-wrapper {
|
|
display: none;
|
|
}
|
|
|
|
.subscribe-button-mobile-wrapper {
|
|
display: none;
|
|
}
|
|
|
|
.desktop-navbar {
|
|
display: block !important;
|
|
opacity: 1 !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
/* Styles for extra large desktop */
|
|
@media (min-width: 1920px) {
|
|
.nav {
|
|
column-gap: calc(3vw * var(--scale));
|
|
}
|
|
}
|
|
|
|
/* Styles for large desktop */
|
|
@media (min-width: 1439px) {
|
|
.header {
|
|
padding-top: calc(1.53vw * var(--scale));
|
|
padding-bottom: calc(0.83vw * var(--scale));
|
|
font-size: calc(1.39vw * var(--scale));
|
|
}
|
|
|
|
.navbar-top {
|
|
padding-bottom: calc(1.53vw * var(--scale));
|
|
}
|
|
|
|
.socials {
|
|
gap: calc(1.53vw * var(--scale));
|
|
margin-top: calc(0.28vw * var(--scale));
|
|
}
|
|
|
|
.social-inner {
|
|
width: calc(1.53vw * var(--scale));
|
|
min-width: calc(1.53vw * var(--scale));
|
|
}
|
|
|
|
.social-inner-smaller {
|
|
width: calc(1.46vw * var(--scale));
|
|
min-width: calc(1.46vw * var(--scale));
|
|
}
|
|
|
|
.navbar-account-links {
|
|
gap: calc(1.81vw * var(--scale));
|
|
}
|
|
|
|
.account-button-wrapper {
|
|
gap: calc(0.42vw * var(--scale));
|
|
}
|
|
|
|
.account-icon-wrapper {
|
|
margin-top: 1px;
|
|
width: calc(1.32vw * var(--scale));
|
|
min-width: calc(1.32vw * var(--scale));
|
|
}
|
|
|
|
.account-buttons-separator {
|
|
height: calc(1.46vw * var(--scale));
|
|
}
|
|
|
|
.subscribe-button {
|
|
padding: calc(0.28vw * var(--scale)) calc(1.81vw * var(--scale));
|
|
font-size: calc(1.39vw * var(--scale));
|
|
}
|
|
|
|
.logo-wrapper {
|
|
margin-bottom: calc(0.28vw * var(--scale));
|
|
}
|
|
|
|
.logo-image {
|
|
height: calc(2.57vw * var(--scale) * var(--logo-scale));
|
|
}
|
|
|
|
.navbar-logo-text {
|
|
font-size: calc(3.19vw * var(--scale));
|
|
}
|
|
|
|
.navbar-links-outer {
|
|
padding-top: calc(0.9vw * var(--scale));
|
|
padding-bottom: calc(0.9vw * var(--scale));
|
|
min-height: calc(3.47vw * var(--scale));
|
|
}
|
|
|
|
.nav {
|
|
column-gap: calc(2.08vw * var(--scale));
|
|
row-gap: calc(0.83vw * var(--scale));
|
|
}
|
|
|
|
.secondary-links .nav-link {
|
|
padding: calc(0.97vw * var(--scale)) calc(1.11vw * var(--scale));
|
|
|
|
}
|
|
|
|
.dropdown-arrow-svg {
|
|
width: calc(0.56vw * var(--scale));
|
|
min-width: calc(0.56vw * var(--scale));
|
|
height: calc(0.35vw * var(--scale));
|
|
min-height: calc(0.35vw * var(--scale));
|
|
margin-left: calc(0.49vw * var(--scale));
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.secondary-links {
|
|
left: calc(-1.18vw * var(--scale));
|
|
min-width: calc(11.8vw * var(--scale));
|
|
}
|
|
|
|
.secondary-links-inner {
|
|
margin-top: calc(1.08vw * var(--scale));
|
|
}
|
|
}
|
|
|
|
/* Styles for tablet */
|
|
@media (max-width: 991px) {
|
|
.account-button-text,
|
|
.account-buttons-separator,
|
|
.subscribe-button,
|
|
.socials {
|
|
display: none;
|
|
}
|
|
|
|
.header {
|
|
padding-top: 22px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.navbar-top {
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.navbar-account-links {
|
|
gap: 16px;
|
|
flex: 1;
|
|
}
|
|
|
|
.account-icon-wrapper {
|
|
margin-top: 1px;
|
|
width: 28px;
|
|
min-width: 28px;
|
|
}
|
|
|
|
.logo-wrapper {
|
|
flex: 2;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.navbar-logo-text {
|
|
font-size: 38px;
|
|
}
|
|
|
|
.menu-button-wrapper {
|
|
flex: 1;
|
|
display: block;
|
|
}
|
|
|
|
.menu-button {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
row-gap: 7px;
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
.menu-line {
|
|
width: 30px;
|
|
height: 2px;
|
|
background-color: var(--text-color);
|
|
pointer-events: none;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.navbar-links-outer {
|
|
text-align: center;
|
|
position: absolute;
|
|
background-color: var(--background-color);
|
|
height: calc(100dvh);
|
|
transform: translateY(100%);
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0px;
|
|
display: none;
|
|
opacity: 0;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
margin-left: 0;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
padding-top: 0px;
|
|
padding-bottom: 0px;
|
|
}
|
|
|
|
.navbar-links-inner {
|
|
padding-top: 15vh;
|
|
padding-bottom: 16vh;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
row-gap: 23px;
|
|
overflow-y: auto;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.nav {
|
|
flex-direction: column;
|
|
row-gap: 23px;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.nav-link, .links-label {
|
|
line-height: 120%;
|
|
font-size: 24px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.dropdown-arrow-svg {
|
|
width: 10px;
|
|
min-width: 10px;
|
|
height: 6px;
|
|
position: absolute;
|
|
right: -8px;
|
|
transform: translateX(100%);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.secondary-links {
|
|
min-width: 100%;
|
|
position: static;
|
|
transform: unset;
|
|
opacity: 1;
|
|
pointer-events: none;
|
|
transition-duration: 0.15s;
|
|
transition-property: height;
|
|
height: 0px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.secondary-links-inner {
|
|
align-items: center;
|
|
padding-top: 23px;
|
|
margin-top: 25px;
|
|
padding-bottom: 23px;
|
|
border: none;
|
|
row-gap: 14px;
|
|
border-top: 1px solid var(--text-color);
|
|
border-bottom: 1px solid var(--text-color) !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nav li {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.secondary-links .nav-link {
|
|
font-size: 20px;
|
|
font-weight: 400;
|
|
line-height: 150%;
|
|
color: var(--text-color);
|
|
padding: 0px;
|
|
border-bottom: none;
|
|
width: fit-content;
|
|
}
|
|
|
|
.secondary-links-inner .nav-link:hover {
|
|
color: unset;
|
|
background-color: unset;
|
|
}
|
|
|
|
.subscribe-button-mobile-wrapper {
|
|
display: flex;
|
|
min-width: 280px;
|
|
padding-top: 30px;
|
|
border-top: 1px solid var(--text-color);
|
|
}
|
|
|
|
.subscribe-button-mobile {
|
|
display: block;
|
|
font-size: 22px;
|
|
padding: 5px 30px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.logo-image {
|
|
height: calc(30px * var(--logo-scale));
|
|
}
|
|
|
|
.social:hover .social-inner {
|
|
transform: translateY(-2px);
|
|
}
|
|
}
|
|
|
|
/* Styles for mobile */
|
|
@media (max-width: 479px) {
|
|
.header {
|
|
padding-top: 18px;
|
|
}
|
|
|
|
.navbar-top {
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.navbar-account-links {
|
|
gap: 14px;
|
|
}
|
|
|
|
.account-icon-wrapper {
|
|
width: 26px;
|
|
min-width: 26px;
|
|
}
|
|
|
|
|
|
.navbar-logo-text {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.menu-button {
|
|
height: 28px;
|
|
width: 28px;
|
|
}
|
|
|
|
.menu-line {
|
|
width: 28px;
|
|
height: 2px;
|
|
}
|
|
|
|
.nav {
|
|
row-gap: 18px;
|
|
min-width: 58vw;
|
|
}
|
|
|
|
.nav-link, .links-label {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.secondary-links-inner {
|
|
padding-top: 18px;
|
|
margin-top: 22px;
|
|
padding-bottom: 18px;
|
|
row-gap: 8px;
|
|
}
|
|
|
|
.subscribe-button-mobile-wrapper {
|
|
min-width: 58vw;
|
|
padding-top: 32px;
|
|
}
|
|
|
|
.subscribe-button-mobile {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.logo-image {
|
|
height: calc(26px * var(--logo-scale));
|
|
}
|
|
} |