Template:Main Page navigation/styles.css: Difference between revisions
(Created page with ".mp-navigation { margin-bottom: 1.5em; display: grid; grid-gap: 20px; grid-template-columns: repeat(auto-fill, minmax(12em, auto)); } .mp-nav-button { border: 1px solid var(--theme-primary-0); background-color: rgba(47, 217, 227, 0.1); } .mp-link { border: 1px solid var(--theme-primary-0); background-color: rgba(47, 217, 227, 0.1); } →* Different screen sizes: @media only screen and (max-width: 576px) { .mp-navigation { grid-template-colu...") |
No edit summary Tag: Reverted |
||
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)); | ||
} | } | ||
Line 25: | Line 15: | ||
overflow-x: scroll; | overflow-x: scroll; | ||
} | } | ||
} | } |
Revision as of 20:25, 29 October 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; } }