Template:Home/Actions.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Created page with "→Actions bar: .lw-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px 0; } .lw-actions a { display: inline-block; padding: 8px 12px; border: 1px solid #dfe5da; border-radius: 8px; background: #fff; color: #2d5016; font-weight: 600; text-decoration: none; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }..." |
Eloise Zomia (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* Actions bar */ | /* Actions bar container */ | ||
.lw-actions { | .lw-actions { | ||
display: flex; | display: flex; | ||
Line 5: | Line 5: | ||
align-items: center; | align-items: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 10px; | ||
margin: | margin: 14px 0 30px 0; | ||
} | } | ||
/* Button-style links */ | |||
.lw-actions a { | .lw-actions a { | ||
display: inline- | display: inline-flex; | ||
padding: | align-items: center; | ||
border: 1px solid # | justify-content: center; | ||
border-radius: | padding: 10px 14px; | ||
background: # | min-width: 12ch; | ||
border: 1px solid #cfd7c9; | |||
border-radius: 999px; /* pill */ | |||
background: #ffffff; | |||
background-image: linear-gradient(180deg, #ffffff 0%, #f6faf3 100%); | |||
color: #2d5016; | color: #2d5016; | ||
font-weight: 600; | font-weight: 600; | ||
line-height: 1.1; | |||
text-decoration: none; | text-decoration: none; | ||
box-shadow: | |||
transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; | 0 1px 0 rgba(255,255,255,.9) inset, | ||
0 1px 2px rgba(0,0,0,.06); | |||
transition: | |||
background-color .15s ease, | |||
color .15s ease, | |||
border-color .15s ease, | |||
box-shadow .15s ease, | |||
transform .08s ease; | |||
} | } | ||
/* Hover/active */ | /* Hover / active */ | ||
.lw-actions a:hover { | .lw-actions a:hover { | ||
background: #2d5016; | background: #2d5016; | ||
color: # | color: #ffffff; | ||
border-color: #2d5016; | border-color: #2d5016; | ||
box-shadow: 0 2px 8px rgba(45,80,22,.18); | |||
transform: translateY(-1px); | |||
} | |||
.lw-actions a:active { | |||
transform: translateY(0); | |||
box-shadow: | |||
0 0 0 rgba(0,0,0,0), | |||
0 1px 3px rgba(0,0,0,.10) inset; | |||
} | } | ||
/* | /* Keep visited links styled as buttons */ | ||
.lw-actions a | .lw-actions a:visited { color: #2d5016; } | ||
.lw-actions a | .lw-actions a:hover:visited { color: #ffffff; } | ||
/* Keyboard focus ring */ | |||
.lw-actions a:focus { | |||
outline: 2px solid #98c28b; | |||
outline-offset: 2px; | |||
} |
Revision as of 08:04, 24 August 2025
/* Actions bar container */ .lw-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 30px 0; } /* Button-style links */ .lw-actions a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; min-width: 12ch; border: 1px solid #cfd7c9; border-radius: 999px; /* pill */ background: #ffffff; background-image: linear-gradient(180deg, #ffffff 0%, #f6faf3 100%); color: #2d5016; font-weight: 600; line-height: 1.1; text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(0,0,0,.06); transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease; } /* Hover / active */ .lw-actions a:hover { background: #2d5016; color: #ffffff; border-color: #2d5016; box-shadow: 0 2px 8px rgba(45,80,22,.18); transform: translateY(-1px); } .lw-actions a:active { transform: translateY(0); box-shadow: 0 0 0 rgba(0,0,0,0), 0 1px 3px rgba(0,0,0,.10) inset; } /* Keep visited links styled as buttons */ .lw-actions a:visited { color: #2d5016; } .lw-actions a:hover:visited { color: #ffffff; } /* Keyboard focus ring */ .lw-actions a:focus { outline: 2px solid #98c28b; outline-offset: 2px; }