Template:Home/Actions.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* Actions bar — escape inherited box styles and force full-width row */ | |||
/* Actions | |||
.lw-actions { | .lw-actions { | ||
/* | /* hard reset */ | ||
background: transparent !important; | background: transparent !important; | ||
border: 0 !important; | border: 0 !important; | ||
Line 9: | Line 7: | ||
padding: 0 !important; | padding: 0 !important; | ||
/* | /* layout */ | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
Line 17: | Line 15: | ||
width: 100%; | width: 100%; | ||
max-width: 1080px; | max-width: 1080px; | ||
margin: 18px auto 32px auto; | |||
margin: | |||
clear: both; | clear: both; | ||
} | } | ||
/* Enhanced | /* Enhanced pill buttons */ | ||
.lw-actions a { | .lw-actions a { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 10px 16px; | |||
min-width: 13ch; | |||
padding: 10px | border: 1px solid #c1d1bb; | ||
min-width: | border-radius: 999px; | ||
background: #fff; | |||
color: #2d5016; | |||
border: 1px solid # | |||
border-radius: | |||
background: # | |||
color: # | |||
font-weight: 600; | font-weight: 600; | ||
font-size: 13px; | font-size: 13px; | ||
line-height: 1. | line-height: 1.1; | ||
text-decoration: none; | text-decoration: none; | ||
box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04); | |||
transition: | |||
background-color .15s ease, | |||
box-shadow: 0 1px | color .15s ease, | ||
border-color .15s ease, | |||
box-shadow .15s ease, | |||
transform .08s ease; | |||
} | } | ||
/* Hover | /* Hover / active */ | ||
.lw-actions a:hover { | .lw-actions a:hover { | ||
background: # | background: #2d5016; | ||
color: #fff; | |||
color: #2d5016; | border-color: #2d5016; | ||
box-shadow: 0 2px | box-shadow: 0 2px 8px rgba(45,80,22,.18); | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
} | } | ||
.lw-actions a:active { | .lw-actions a:active { | ||
transform: translateY(0); | transform: translateY(0); | ||
box-shadow: 0 1px | box-shadow: 0 1px 3px rgba(0,0,0,.10) inset; | ||
} | } | ||
/* | /* Keep visited links styled as buttons */ | ||
.lw-actions a:visited { | .lw-actions a:visited { color: #2d5016; } | ||
.lw-actions a:hover:visited { color: #fff; } | |||
} | |||
.lw-actions a:hover:visited { | |||
} | |||
/* | /* Keyboard focus */ | ||
.lw-actions a:focus { | .lw-actions a:focus { | ||
outline: 2px solid # | outline: 2px solid #98c28b; | ||
outline-offset: 2px; | outline-offset: 2px; | ||
} | } | ||
/* | /* Neutralize MediaWiki redlink styling */ | ||
.lw-actions a.new, | .lw-actions a.new, | ||
.lw-actions a.new:visited { | .lw-actions a.new:visited { color: #2d5016; } | ||
.lw-actions a.new:hover { color: #fff; } | |||
} | |||
.lw-actions a.new:hover { | |||
} | |||
/* Make the primary | /* Make the first action a subtle primary */ | ||
.lw-actions a:first-child { | .lw-actions a:first-child { | ||
background: #2d5016; | background: #2d5016; | ||
color: # | color: #fff; | ||
border-color: #2d5016; | border-color: #2d5016; | ||
} | } | ||
Line 103: | Line 81: | ||
background: #3d6b1f; | background: #3d6b1f; | ||
border-color: #3d6b1f; | border-color: #3d6b1f; | ||
} | } | ||
/* | /* Responsive wrap */ | ||
@media (max-width: | @media (max-width: 720px) { | ||
.lw-actions { | .lw-actions { gap: 10px; } | ||
.lw-actions a { | .lw-actions a { | ||
flex: | flex: 1 1 calc(50% - 10px); | ||
width: | min-width: auto; | ||
padding: 12px 14px; | |||
text-align: center; | text-align: center; | ||
} | } | ||
} | } | ||
Revision as of 09:07, 24 August 2025
/* Actions bar — escape inherited box styles and force full-width row */ .lw-actions { /* hard reset */ background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; /* layout */ display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 1080px; margin: 18px auto 32px auto; clear: both; } /* Enhanced pill buttons */ .lw-actions a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; min-width: 13ch; border: 1px solid #c1d1bb; border-radius: 999px; background: #fff; color: #2d5016; font-weight: 600; font-size: 13px; line-height: 1.1; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04); 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: #fff; 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 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: #fff; } /* Keyboard focus */ .lw-actions a:focus { outline: 2px solid #98c28b; outline-offset: 2px; } /* Neutralize MediaWiki redlink styling */ .lw-actions a.new, .lw-actions a.new:visited { color: #2d5016; } .lw-actions a.new:hover { color: #fff; } /* Make the first action a subtle primary */ .lw-actions a:first-child { background: #2d5016; color: #fff; border-color: #2d5016; } .lw-actions a:first-child:hover { background: #3d6b1f; border-color: #3d6b1f; } /* Responsive wrap */ @media (max-width: 720px) { .lw-actions { gap: 10px; } .lw-actions a { flex: 1 1 calc(50% - 10px); min-width: auto; padding: 12px 14px; text-align: center; } }