Difference between revisions of "MediaWiki:Keybinds.css"
Jump to navigation
Jump to search
m |
m |
||
Line 12: | Line 12: | ||
} | } | ||
.SB-keybind-key:hover { | .SB-keybind-key:hover { | ||
filter:brightness(1.5); | filter:brightness(1.5); | ||
} | } | ||
Line 36: | Line 35: | ||
font-variant: petite-caps; | font-variant: petite-caps; | ||
} | } | ||
Revision as of 13:33, 19 July 2021
.SB-keybind-key {
border: 1px solid #ffffff36;
display: inline-block;
margin: 0.25em;
border-radius: 0.25em;
position: relative;
line-height: 1.3em;
font-size: 1em;
height: 5em;
cursor: pointer;
transition: border-color, 0.1s ease-in-out;
}
.SB-keybind-key:hover {
filter:brightness(1.5);
}
.SB-keybind-key::before {
content: attr(data-keycap);
display: block;
position: absolute;
top: 0.25em;
left: 0.5em;
font-size: 1.1em;
text-transform: uppercase;
white-space: pre;
}
.SB-keybind-key::after {
content: attr(data-keybind);
display: block;
position: absolute;
bottom: 0;
left: 0;
text-align: center;
margin: 0 0.25em 0.25em 0;
font-size: 1.2em;
font-variant: petite-caps;
}