Template:Stakeholder count widget/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Layout: center the whole widget block */ | ||
.stakeholder-count-widget { | .stakeholder-count-widget { | ||
display: flex; | display: flex; | ||
gap: | justify-content: center; /* center the row */ | ||
align-items: flex-start; | |||
gap: 1.5em; | |||
flex-wrap: wrap; | flex-wrap: wrap; | ||
margin: | margin: 1.5em 0; | ||
} | } | ||
/* Make each tile | /* Make each tile uniform + flex-centered */ | ||
.stakeholder-count-widget-tile { | .stakeholder-count-widget-tile { | ||
width: 220px; /* consistent width */ | |||
height: 160px; /* consistent height */ | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; /* spread content vertically */ | |||
align-items: center; /* center horizontally */ | |||
padding: 12px 0; | |||
text-align: center; | text-align: center; | ||
} | } | ||
/* Count styling */ | /* Count styling */ | ||
.stakeholder-count-widget-tile .count { | .stakeholder-count-widget-tile .count { | ||
font-size: 1.4em; | |||
font-size: 1. | |||
font-weight: 700; | font-weight: 700; | ||
margin: | margin: 8px 0; | ||
} | } | ||
/* "See ___" | /* "See ___" link styling */ | ||
.stakeholder-count-widget-tile a { | .stakeholder-count-widget-tile a { | ||
font-size: 0.9em; | font-size: 0.9em; | ||
} | } | ||