Template:Button/styles.css: Difference between revisions
Jump to navigation
Jump to search
AgentMuffin (talk | contribs) mNo edit summary |
AgentMuffin (talk | contribs) No edit summary |
||
| Line 214: | Line 214: | ||
} | } | ||
.stick.up .grip { | |||
transform: rotateX(30deg); | background-position: 0 -1px; | ||
/* transform: rotateX(30deg); */ | |||
} | } | ||
.stick.down .grip { | .stick.down .grip { | ||
transform: rotateX(-30deg); | background-position: 0 1px; | ||
/* transform: rotateX(-30deg); */ | |||
} | } | ||
.stick.left .grip { | .stick.left .grip { | ||
transform: rotateY(-30deg); | background-position: -1px 0; | ||
/* transform: rotateY(-30deg); */ | |||
} | } | ||
.stick.right .grip { | .stick.right .grip { | ||
transform: rotateY(30deg); | background-position: 1px 0; | ||
} | /* transform: rotateY(30deg); */ | ||
} | |||
Revision as of 06:00, 25 May 2026
.button {
background: #eaecf0;
border: 1px solid #a2a9b1;
border-radius: 50%;
display: inline-block;
font-size: smaller;
height: 1rem;
line-height: 1rem;
text-align: center;
/* vertical-align: center; */
width: 1rem;
}
.button + .button,
.button-label + .button {
margin-left: 0.25em;
}
.button-label {
color: #54595d;
display: inline-block;
font-size: smaller;
height: 1rem;
line-height: 1rem;
/* vertical-align: center; */
}
.button.d,
.button.l,
.button.r,
.button.z {
border-radius: 0;
}
.button.d.up {
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.button.d.down {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
.button.d.left {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
.button.d.right {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
.button.l,
.button.r {
margin-bottom: calc(1rem/6);
height: calc(5rem/6);
width: calc(4rem / 3);
}
.button.l {
border-top-left-radius: 0.5rem;
}
.button.r {
border-top-right-radius: 0.5rem;
}
.button.n64 {
background: #72777d;
border-color: #27292d;
color: #fff;
}
.button.n64.a {
background: #36c;
border-color: #1b223d;
color: #fff;
}
.button.n64.b,
.button.gcn.a {
background: #1f7a39;
border-color: #142817;
color: #fff;
}
.button.n64.c {
background: #ffcf4f;
border-color: #ab7f2a;
color: unset;
}
.button.n64.start,
.button.gcn.b {
background: #f54739;
border-color: #9f3526;
color: #fff;
}
.button.n64.start {
font-size: calc(1rem / 3);
font-weight: bolder;
text-transform: uppercase;
}
.button.n64.l {
border-top-left-radius: 100% 25%;
}
.button.n64.r {
border-top-right-radius: 100% 25%;
}
.button.gcn.l,
.button.gcn.r {
border-top-left-radius: 50% 25%;
border-top-right-radius: 50% 25%;
}
.button.n64.z {
margin: 0 calc(1rem / 6);
width: calc(2rem / 3);
}
.button.cc {
background: #f8f9fa;
border-color: #c8ccd1;
}
.button.cc.a,
.button.cc.b {
box-shadow:
inset 0 4px 4px 0 rgba(0, 0, 0, 0.06),
inset 0 0 8px 0 rgba(0, 0, 0, 0.06);
}
.button.cc.l,
.button.cc.r {
border-radius: 0.5rem;
}
.button.wii-u.l {
border-top-left-radius: 75% 50%;
border-top-right-radius: 25% 100%;
}
.button.wii-u.r {
border-top-left-radius: 25% 100%;
border-top-right-radius: 75% 50%;
}
.stick {
display: inline-block;
position: relative;
height: calc(4rem / 3);
width: calc(4rem / 3);
text-align: center;
/* vertical-align: center; */
}
.stick.n64 .gate {
background: #72777d;
/* background: radial-gradient(
circle,
#a2a9b1 0% 25%,
#72777d 25% 100%
); */
clip-path: polygon(
50% 0%,
85.355% 14.645%,
100% 50%,
85.355% 85.355%,
50% 100%,
14.645% 85.355%,
0% 50%,
14.645% 14.645%
);
border: none;
border-radius: 0;
color: transparent;
display: inline-block;
line-height: 1rem;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.stick.n64 .grip {
background: #eaecf0;
/* background: radial-gradient(
circle,
#a2a9b1 0% 12.5%,
#eaecf0 12.5% 25%,
#f8f9fa 25% 37.5%,
#eaecf0 37.5% 50%,
#f8f9fa 50% 62.5%,
#eaecf0 62.5% 75%,
#f8f9fa 75% 87.5%,
#eaecf0 87.5% 100%
); */
border: 1px solid #a2a9b1;
border-radius: 50%;
display: inline-block;
position: absolute;
top: calc(1rem / 6);
left: calc(1rem / 6);
right: calc(1rem / 6);
bottom: calc(1rem / 6);
transform-origin: center center calc(-2rem / 3);
}
.stick.up .grip {
background-position: 0 -1px;
/* transform: rotateX(30deg); */
}
.stick.down .grip {
background-position: 0 1px;
/* transform: rotateX(-30deg); */
}
.stick.left .grip {
background-position: -1px 0;
/* transform: rotateY(-30deg); */
}
.stick.right .grip {
background-position: 1px 0;
/* transform: rotateY(30deg); */
}