Content added Content deleted
m (Protected "Template:Main Page/Navigation/styles.css": Protect main page templates ([Edit=Allow only autoconfirmed users] (indefinite))) |
(make responsive for all skins) |
||
Line 4: | Line 4: | ||
grid-gap: 20px; |
grid-gap: 20px; |
||
grid-template-columns: repeat(auto-fill, minmax(12em, auto)); |
grid-template-columns: repeat(auto-fill, minmax(12em, auto)); |
||
} |
|||
@media only screen and (max-width: 576px) { |
|||
.mp-navigation { |
|||
grid-template-columns: repeat(3, 12em) !important; |
|||
grid-template-rows: repeat(5, 3em); |
|||
overflow-x: scroll; |
|||
} |
|||
} |
} |
Revision as of 21:41, 20 December 2021
.mp-navigation {
margin-bottom: 1.5em;
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(12em, auto));
}
@media only screen and (max-width: 576px) {
.mp-navigation {
grid-template-columns: repeat(3, 12em) !important;
grid-template-rows: repeat(5, 3em);
overflow-x: scroll;
}
}