Template:CS button/styles.css: Difference between revisions
Content deleted Content added
Created page with ".capsach-btn { display:inline-block; width: 278px; padding:.2em 1.5em; font-weight:700; color:#202122; background-color:#FEE330; border:1px solid; border-color: #a2a9b1 #72777d #72777d #a2a9b1; box-sizing:border-box; text-align:center; white-space:nowrap; transition:background-color .15s, border-color .15s, transform .05s; } .capsach-btn:hover { background-color:#FFDD00; border-color:#a2a9b1 #72777d #72777d #a2a9b1; } .capsach-btn:active { back..." |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
Line 1:
/* The wrapper controls width; child link gets button styling */
.capsach-btn {
display:inline-block;
width:
max-width:100%;
box-sizing:border-box;▼
margin:0.5em 0; /* added: space above and below */
}
/* Button appearance on inner anchor/span */
.capsach-btn > a,
.capsach-btn > .capsach-btn__inner {
display:block;
padding:.2em 1.5em;
font: inherit; /* use CapSach site font */
color:#202122;
background-color:#FEE330;
text-decoration:none;
border
border-radius:9999px;
▲ box-sizing:border-box;
text-align:center;
white-space:nowrap;
transition:background
cursor:pointer;
}
.capsach-btn > a:hover,
.capsach-btn > .capsach-btn__inner:hover {
background-color:#FFDD00;
}
.capsach-btn > a:active,
.capsach-btn > .capsach-btn__inner:active {
background-color:#F0C800;
transform:translateY(1px);
}
/* Mobile-only full width (opt-in) */
@media (max-width:720px){
.capsach-btn--mobile { display:block; width:100% !important; }
}
/* alignment helpers */
.capsach-align { text-align:
.capsach-align-right { text-align:
.capsach-align-center { text-align:
.capsach-align-left { text-align:
| |||