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 { | |||
display: flex; | |||
justify-content: center; /* centers the row */ | |||
align-items: flex-start; | |||
gap: 1.5em; /* spacing between cards */ | |||
flex-wrap: wrap; | |||
margin: 1.5em 0; | |||
} | |||
/* Individual cards: equal size, centered content, outline style */ | |||
.stakeholder-card { | .stakeholder-card { | ||
width: 220px; | width: 220px; /* fixed width */ | ||
height: 160px; | height: 160px; /* fixed height */ | ||
padding: 12px 10px; | padding: 12px 10px; | ||
| Line 10: | Line 21: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | justify-content: center; /* vertically center content */ | ||
align-items: center; | align-items: center; /* horizontally center */ | ||
text-align: center; | text-align: center; | ||
| Line 18: | Line 29: | ||
letter-spacing: 0.01em; | letter-spacing: 0.01em; | ||
gap: 8px; | gap: 8px; /* spacing between title, count, and link */ | ||
transition: | transition: | ||
| Line 24: | Line 35: | ||
border-color 0.15s ease, | border-color 0.15s ease, | ||
background-color 0.2s ease; | background-color 0.2s ease; | ||
} | |||
/* Hover effect: subtle lift + grey fill */ | |||
.stakeholder-card:hover { | |||
border-color: #000; | |||
background-color: #f2f2f2; | |||
transform: translateY(-1px); | |||
} | |||
/* Active/pressed state */ | |||
.stakeholder-card:active { | |||
transform: translateY(0); | |||
} | |||
/* Count styling */ | |||
.stakeholder-card .count { | |||
font-size: 1.4em; | |||
font-weight: 700; | |||
} | |||
/* Link styling ("See startups →") */ | |||
.stakeholder-card a { | |||
font-size: 0.9em; | |||
font-weight: 500; | |||
color: #b30000; /* light red to match your theme */ | |||
text-decoration: none; | |||
} | |||
.stakeholder-card a:hover { | |||
text-decoration: underline; | |||
} | } | ||