Content added Content deleted
m (Protected "Template:Main Page/Navigation/styles.css": Protect main page templates ([Edit=Allow only autoconfirmed users] (indefinite))) |
(moving navbutton css to navbutton) |
||
(6 intermediate revisions by the same user not shown) | |||
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)); |
||
} |
|||
/* |
|||
* Different screen sizes |
|||
*/ |
|||
@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; |
|||
} |
|||
} |
} |
Latest revision as of 02:32, 6 February 2023
.mp-navigation {
margin-bottom: 1.5em;
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(12em, auto));
}
/*
* Different screen sizes
*/
@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;
}
}