Template:CS button/styles.css: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
.capsach-btn { |
.capsach-btn { |
||
display:inline-block; |
display:inline-block; |
||
width:278px; /* default width; can be overridden |
width:278px; /* default width; can be overridden via |width= */ |
||
max-width:100%; /* avoids overflow in tight containers */ |
|||
padding:.2em 1.5em; |
padding:.2em 1.5em; |
||
font-weight:600; |
font-weight:600; |
||
| Line 16: | Line 17: | ||
.capsach-btn:hover { background-color:#FFDD00; } |
.capsach-btn:hover { background-color:#FFDD00; } |
||
.capsach-btn:active { background-color:#F0C800; transform:translateY(1px); } |
.capsach-btn:active { background-color:#F0C800; transform:translateY(1px); } |
||
/* Mobile-only full-width variant (opt-in via class) */ |
|||
@media (max-width:720px){ |
|||
.capsach-btn--mobile { display:block; width:100% !important; } |
|||
} |
|||
.capsach-align { text-align:left; } /* default */ |
.capsach-align { text-align:left; } /* default */ |
||
Revision as of 02:56, 13 October 2025
.capsach-btn {
display:inline-block;
width:278px; /* default width; can be overridden via |width= */
max-width:100%; /* avoids overflow in tight containers */
padding:.2em 1.5em;
font-weight:600;
color:#202122;
background-color:#FEE330; /* flat color */
background-image:none; /* ensure no gradient */
border:none; /* remove border */
border-radius:9999px; /* round (pill) corners */
box-sizing:border-box;
text-align:center;
white-space:nowrap;
transition:background-color .15s, transform .05s;
}
.capsach-btn:hover { background-color:#FFDD00; }
.capsach-btn:active { background-color:#F0C800; transform:translateY(1px); }
/* Mobile-only full-width variant (opt-in via class) */
@media (max-width:720px){
.capsach-btn--mobile { display:block; width:100% !important; }
}
.capsach-align { text-align:left; } /* default */
.capsach-align-right { text-align:right; }
.capsach-align-center { text-align:center; }
.capsach-align-left { text-align:left; }