Template:Stakeholder count widget/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Center the whole widget and lay out cards in a row */ | ||
.stakeholder-count-widget { | .stakeholder-count-widget { | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: flex-start; | align-items: flex-start; | ||
gap: 1.5em; | gap: 1.5em; | ||
| Line 9: | Line 9: | ||
} | } | ||
/* | /* Individual cards: same size, outline, minimal look */ | ||
.stakeholder- | .stakeholder-card { | ||
width: 220px; | width: 220px; | ||
height: 160px; | height: 160px; | ||
padding: 12px 10px; | |||
border: 1.5px solid #000001; | |||
border-radius: 2px; | |||
background-color: #f9f9f9; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center | align-items: center; | ||
text-align: center; | text-align: center; | ||
font-size: 0.95em; | |||
font-weight: 600; | |||
letter-spacing: 0.01em; | |||
transition: | |||
transform 0.15s ease, | |||
border-color 0.15s ease, | |||
background-color 0.2s ease; | |||
} | |||
/* Hover effect, similar to your create button */ | |||
.stakeholder-card:hover { | |||
border-color: #000; | |||
background-color: #f2f2f2; | |||
transform: translateY(-1px); | |||
} | } | ||
/* Count styling */ | /* Count styling */ | ||
.stakeholder- | .stakeholder-card .count { | ||
font-size: 1. | font-size: 1.3em; | ||
font-weight: 700; | font-weight: 700; | ||
margin: | margin: 4px 0; | ||
} | } | ||
/* "See ___" link styling */ | /* "See ___" link styling */ | ||
.stakeholder- | .stakeholder-card a { | ||
font-size: 0.9em; | font-size: 0.9em; | ||
font-weight: 500; | |||
} | } | ||