Template:Main Page/styles.css: Difference between revisions
From VNDev Wiki
Initial |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.mp_header{ | |||
border: 1px solid red; | |||
border-radius: 10px; | |||
background-color: #efe; | |||
width: auto; | |||
margin: 10px auto; | |||
padding: 10px; | |||
text-align: center; | |||
} | |||
.mp_grid{ | .mp_grid{ | ||
display: grid; | display: grid; | ||
Line 6: | Line 16: | ||
.mp_grid_box{ | .mp_grid_box{ | ||
background-color: #f4f4f4; | |||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
border-radius: 10px; | border-radius: 10px; | ||
padding:10px; | padding:10px; | ||
} | |||
.mp_grid .stretch{ | |||
grid-column-start: 1; | |||
grid-column-end: 3; | |||
} | } | ||
Line 19: | Line 35: | ||
.mp_grid{ | .mp_grid{ | ||
grid-template-columns: 100%; | grid-template-columns: 100%; | ||
} | |||
.mp_grid .stretch{ | |||
grid-column-start: 1; | |||
grid-column-end: 2; | |||
} | } | ||
} | } |
Latest revision as of 19:59, 23 June 2022
.mp_header{ border: 1px solid red; border-radius: 10px; background-color: #efe; width: auto; margin: 10px auto; padding: 10px; text-align: center; } .mp_grid{ display: grid; grid-template-columns: 50% 50%; gap: 10px; } .mp_grid_box{ background-color: #f4f4f4; border: 1px solid #ccc; border-radius: 10px; padding:10px; } .mp_grid .stretch{ grid-column-start: 1; grid-column-end: 3; } .mp_grid h2{ margin-top: 10px; } /* Small screens (mobile) */ @media screen and (max-width: 850px) { .mp_grid{ grid-template-columns: 100%; } .mp_grid .stretch{ grid-column-start: 1; grid-column-end: 2; } }