Template:CS button/styles.css: Difference between revisions

From New wiki
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 via |width= */
width:278px; /* default; override via |width= */
max-width:100%; /* avoids overflow in tight containers */
max-width:100%;
padding:.2em 1.5em;
padding:.2em 1.5em;
font-weight:600;
font-weight:600;
color:#202122;
color:#202122;
background-color:#FEE330; /* flat color */
background-color:#FEE330; /* flat color */
background-image:none; /* ensure no gradient */
background-image:none;
border:none; /* remove border */
border:none;
border-radius:9999px; /* round (pill) corners */
border-radius:9999px; /* pill */
text-decoration:none; /* kill underline on links */
box-sizing:border-box;
box-sizing:border-box;
text-align:center;
text-align:center;
white-space:nowrap;
white-space:nowrap;
transition:background-color .15s, transform .05s;
transition:background-color .15s, transform .05s;
cursor:pointer;
}
}
.capsach-btn:link,
.capsach-btn:visited { color:#202122; text-decoration:none; }

.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) */
/* Mobile-only full-width (opt-in via |mobile=full) */
@media (max-width:720px){
@media (max-width:720px){
.capsach-btn--mobile { display:block; width:100% !important; }
.capsach-btn--mobile { display:block; width:100% !important; }

Revision as of 03:09, 13 October 2025

.capsach-btn {
  display:inline-block;
  width:278px;                  /* default; override via |width= */
  max-width:100%;
  padding:.2em 1.5em;
  font-weight:600;
  color:#202122;
  background-color:#FEE330;     /* flat color */
  background-image:none;
  border:none;
  border-radius:9999px;         /* pill */
  text-decoration:none;         /* kill underline on links */
  box-sizing:border-box;
  text-align:center;
  white-space:nowrap;
  transition:background-color .15s, transform .05s;
  cursor:pointer;
}
.capsach-btn:link,
.capsach-btn:visited { color:#202122; text-decoration:none; }

.capsach-btn:hover  { background-color:#FFDD00; }
.capsach-btn:active { background-color:#F0C800; transform:translateY(1px); }

/* Mobile-only full-width (opt-in via |mobile=full) */
@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; }