Template:Stakeholder count widget/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
| (23 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* | /* Layout container */ | ||
.stakeholder-count-widget { | .stakeholder-count-widget { | ||
display: flex; | display: flex; | ||
justify-content: center; | |||
flex-wrap: wrap; | align-items: flex-start; | ||
margin: | flex-wrap: wrap; /* enables wrapping */ | ||
gap: 1.2em; | |||
margin: 1.5em 0; | |||
width: 100%; | |||
} | } | ||
/* | /* Cards automatically size evenly */ | ||
.stakeholder- | .stakeholder-card { | ||
display: | flex: 1 1 140px; /* grow, shrink, starting width */ | ||
max-width: 240px; /* prevents giant stretching on huge screens */ | |||
min-width: 120px; /* below this, wrap instead of squishing */ | |||
padding: 14px 12px; | |||
border: 1px solid #000001; | |||
border-radius: 2px; | |||
background-color: #f9f9f9; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
align-items: center; | |||
text-align: center; | text-align: center; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
font-weight: 500; | |||
gap: 8px; | |||
transition: | transition: | ||
| Line 29: | Line 37: | ||
} | } | ||
/* | /* Count */ | ||
.stakeholder-count | .stakeholder-card .count { | ||
font-size: 1.7em; | |||
font-weight: 700; | |||
} | } | ||
/* | /* Links */ | ||
.stakeholder- | .stakeholder-card a { | ||
font-size: 0.9em; | |||
font-weight: 500; | |||
/* color: #b30000; */ | |||
text-decoration: none; | |||
. | |||
font- | |||
} | } | ||
.stakeholder-card a:hover { | |||
.stakeholder- | text-decoration: underline; | ||
} | } | ||