mirror of
https://github.com/Nezumi-2711/loi-phan-internship.git
synced 2026-09-22 13:38:31 +00:00
Implement style for menu section
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
.menu {
|
||||
&__container {
|
||||
padding-top: 150px;
|
||||
max-width: 424px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
&__heading {
|
||||
font-size: $fs-x-lg;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
max-width: 363px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
&__list-category {
|
||||
@extend %d-flex;
|
||||
@include flex-layout($gap: 30px);
|
||||
|
||||
margin-top: 62px;
|
||||
padding-left: 50px;
|
||||
overflow-x: auto;
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&__category-item:focus {
|
||||
font-size: $fs-md;
|
||||
color: $white;
|
||||
background-color: $primary-color;
|
||||
border: 2px solid $primary-color;
|
||||
padding: 8px 18px;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
&__category-item {
|
||||
font-size: $fs-md;
|
||||
color: $gray;
|
||||
background-color: transparent;
|
||||
border: 2px solid $black;
|
||||
padding: 8px 18px;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
&__card-list {
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: 100%;
|
||||
column-gap: 18px;
|
||||
margin-top: 43px;
|
||||
margin-inline: 59px;
|
||||
overflow-x: auto;
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 840px) {
|
||||
.menu {
|
||||
&__container {
|
||||
max-width: $max-width;
|
||||
}
|
||||
|
||||
&__heading {
|
||||
max-width: 653px;
|
||||
}
|
||||
|
||||
&__list-category {
|
||||
max-width: 1018px;
|
||||
margin-inline: 59px;
|
||||
}
|
||||
|
||||
&__card-list {
|
||||
grid-auto-columns: unset;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
row-gap: 66px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1200px) {
|
||||
.menu {
|
||||
&__list-category {
|
||||
max-width: 1018px;
|
||||
margin-inline: auto;
|
||||
padding-left: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,3 +19,4 @@
|
||||
@import "./layouts/welcome";
|
||||
@import "./layouts/offer";
|
||||
@import "./layouts/service";
|
||||
@import "./layouts/menu";
|
||||
|
||||
Reference in New Issue
Block a user