subnav responsive

This commit is contained in:
VividTruthKeeper 2023-02-09 19:53:49 +05:00
parent 9aa3f0fa48
commit 5a0b141ff0
2 changed files with 14 additions and 8 deletions

View File

@ -1,7 +1,7 @@
export const linkMotion = {
rest: {
fontWeight: "normal",
background: "rgba(56,163,157, 0)",
background: "rgba(241,241, 241, 1)",
type: "tween",
},
active: {

View File

@ -113,8 +113,10 @@
li {
color: $black;
width: 100%;
border-radius: 0.4rem;
}
a {
border-radius: 0.4rem;
text-align: center;
text-transform: capitalize;
display: block;
@ -148,12 +150,16 @@
}
}
.subnav-slider {
.swiper-wrapper {
padding: 0;
gap: 2.4rem;
}
.swiper-slide {
max-width: fit-content !important;
// Media
@media screen and (max-width: 800px) {
.subnav-inner {
gap: 0.8rem;
padding: 2.4rem 0 0.8rem 0;
a {
padding: 0.8rem;
font-size: 1.4rem;
}
}
}