MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1,479: | Line 1,479: | ||
transform: translate(1px,-1px); | transform: translate(1px,-1px); | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
OOO External Link Grid | OOO External Link Grid | ||
| Line 1,485: | Line 1,487: | ||
.ooo-extlinks-grid { | .ooo-extlinks-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(4, minmax(0,1fr)); /* setting for how many columns links space into */ | ||
gap: | gap: 8px 14px; | ||
margin: 16px | margin: 16px auto; | ||
justify-items: | justify-items: center; | ||
} | } | ||
| Line 1,500: | Line 1,502: | ||
} | } | ||
@media (max-width: | /* tablet */ | ||
@media (max-width: 900px) { | |||
.ooo-extlinks-grid { | .ooo-extlinks-grid { | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, minmax(0,1fr)); /* setting for how many columns links space into */ | ||
} | } | ||
} | } | ||
@media (max-width: | /* mobile */ | ||
@media (max-width: 600px) { | |||
.ooo-extlinks-grid { | .ooo-extlinks-grid { | ||
grid-template-columns: 1fr; | grid-template-columns: repeat(2, minmax(0,1fr)); /* setting for how many columns links space into */ | ||
} | } | ||
} | } | ||