uppdate
This commit is contained in:
166
assets/script/miq-homepage.css
Normal file
166
assets/script/miq-homepage.css
Normal file
@@ -0,0 +1,166 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Roboto", sans-serif;
|
||||
}
|
||||
|
||||
.font-inter {
|
||||
font-family: "Inter", sans-serif;
|
||||
}
|
||||
|
||||
.layout-container {
|
||||
width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media (min-width: 1920px) {
|
||||
.layout-container {
|
||||
width: 1600px;
|
||||
}
|
||||
}
|
||||
|
||||
.cat-item {
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
|
||||
.cat-item:hover,
|
||||
.cat-item.cat-active {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.cat-item .cat-label {
|
||||
color: #1a1a1a;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.cat-item.cat-active .cat-label {
|
||||
color: #90004b;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.cat-item .cat-chevron {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cat-item:hover .cat-chevron,
|
||||
.cat-item.cat-active .cat-chevron {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-subcat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
row-gap: 20px;
|
||||
padding: 18px 24px 0;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.menu-subcat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: opacity 0.15s ease;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menu-subcat-item:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.menu-subcat-item span {
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.menu-brand-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 16px 24px 0;
|
||||
border-top: 1px solid #d3d7df;
|
||||
flex-shrink: 0;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.menu-brand-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: #fff;
|
||||
border-radius: 6px;
|
||||
height: 36px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.menu-brand-num {
|
||||
font-weight: 700;
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
line-height: 1;
|
||||
text-shadow: 1px 1px 2.1px #0067c7;
|
||||
}
|
||||
|
||||
.menu-rp-panel {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
flex-direction: column;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.menu-rp-title {
|
||||
border-bottom: 1px solid #d3d7df;
|
||||
padding: 12px 24px 10px;
|
||||
flex-shrink: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #000;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@media (max-width: 1599px) {
|
||||
.layout-container {
|
||||
width: calc(100% - 32px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1279px) {
|
||||
.menu-subcat-grid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.menu-rp-panel {
|
||||
position: static;
|
||||
min-height: unset;
|
||||
}
|
||||
|
||||
.menu-subcat-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.layout-container {
|
||||
width: calc(100% - 24px);
|
||||
}
|
||||
|
||||
.menu-subcat-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
.menu-rp-title,
|
||||
.menu-brand-row {
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user