Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 257: Line 257:
   Wide image cards use separate classes and are intentionally unaffected.
   Wide image cards use separate classes and are intentionally unaffected.
   ========================================================================== */
   ========================================================================== */
.skin-citizen .wizlords-mainpage-items,
.skin-citizen .wizlords-mainpage-items {
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext),
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
Line 270: Line 268:
margin-left: auto;
margin-left: auto;
text-align: center;
text-align: center;
}
/* MediaWiki may place introductory text in the same .center wrapper as the
  icon links. Keep that text above the grid instead of treating it as an icon
  cell. */
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext) > p,
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) > p {
flex: 0 0 100%;
width: 100%;
margin: 0 0 8px;
text-align: center;
}
/* MediaWiki sometimes wraps the first block-style icon link in a paragraph.
  Flatten only those icon wrappers so every icon participates in the same
  homepage grid/flex row. Plain text paragraphs keep their normal layout. */
.skin-citizen
:is(.wizlords-mainpage-left, .wizlords-mainpage-right)
> .center
> p:has(.wizlords-imagetext) {
display: contents;
}
}


Line 361: Line 338:
   sparse before the full desktop Vector layout takes over. */
   sparse before the full desktop Vector layout takes over. */
@media screen and (min-width: 900px) and (max-width: 1199px) {
@media screen and (min-width: 900px) and (max-width: 1199px) {
.skin-citizen .wizlords-mainpage-items,
.skin-citizen .wizlords-mainpage-items {
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext),
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) {
gap: 20px 16px;
gap: 20px 16px;
}
}
Line 386: Line 361:
   keeps Citizen tidy if it is tested manually on a wide screen. */
   keeps Citizen tidy if it is tested manually on a wide screen. */
@media screen and (min-width: 1200px) {
@media screen and (min-width: 1200px) {
.skin-citizen .wizlords-mainpage-items,
.skin-citizen .wizlords-mainpage-items {
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext),
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) {
gap: 16px 12px;
gap: 16px 12px;
}
}
Line 561: Line 534:
}
}


.skin-citizen .wizlords-mainpage-items,
.skin-citizen .wizlords-mainpage-items {
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext),
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) {
display: grid;
display: grid;
grid-template-columns: repeat(4, minmax(0, 78px));
grid-template-columns: repeat(4, minmax(0, 78px));
Line 570: Line 541:
justify-items: center;
justify-items: center;
align-items: start;
align-items: start;
}
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext) > p,
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) > p {
grid-column: 1 / -1;
width: 100%;
margin-bottom: 4px;
}
}


Line 602: Line 566:
  while flex only lays out real icon items. */
  while flex only lays out real icon items. */
@media screen and (min-width: 800px) {
@media screen and (min-width: 800px) {
.skin-citizen .wizlords-mainpage-items,
.skin-citizen .wizlords-mainpage-items {
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext),
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
Line 610: Line 572:
justify-content: center;
justify-content: center;
align-items: flex-start;
align-items: flex-start;
}
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext) > p,
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) > p {
flex: 0 0 100%;
width: 100%;
}
}