Difference between revisions of "MediaWiki:Keybinds.css"
Jump to navigation
Jump to search
m |
m |
||
Line 216: | Line 216: | ||
} | } | ||
#inf:checked ~ .SB-keybind-wrap .SB-keybind-label-inf { | .SB-keybind-label-group div { | ||
display: none; | |||
text-align: center; | |||
position: absolute; | |||
bottom: 0; | |||
pointer-events: none; | |||
} | |||
.SB-keybind-info-group > div { | |||
display: none; | |||
} | |||
#inf:checked ~ .SB-keybind-wrap .SB-keybind-label-inf, #inf:checked ~ .SB-keybind-wrap .SB-keybind-info-body-inf { | |||
display: block; | display: block; | ||
} | } |
Revision as of 13:25, 21 July 2021
.hidden {
display: none;
}
.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::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;
right: 0;
text-align: center;
margin: auto;
font-size: 1.1em;
font-variant: petite-caps;
overflow:hidden;
text-overflow: ellipsis;
}
.SB-keybind-row {
display: flex;
}
.SB-keybind-gap {
display: inline-block;
}
.SB-keybind-info-title {
display: block;
margin-bottom: 0.5em;
font-family: kenneyfuture;
font-size: 1.3em;
color: #edcd50;
}
.SB-keybind-info {
position: absolute;
top: 110%;
background: #193b3bcc;
padding: 1em;
border-radius: 0.5em;
text-align: center;
transition: opacity 0.15s ease-in-out;
font-size: 1.25em;
box-shadow: 2px 2px 4px 2px black;
border: 1px solid #3a80809e;
cursor: auto;
opacity: 0;
transition: opacity 0.15s ease-in-out;
pointer-events: none;
max-width: 25em;
min-width: 10em;
left: 0;
right: 0;
margin: auto;
}
.SB-keybind-active::after, .SB-keybind-active::before {
color: #edcd50;
}
.SB-keybind-active .SB-keybind-info {
opacity: 1;
pointer-events: auto;
}
.SB-keybind-active {
z-index: 2;
border-color: #ffffff40;
}
/* Keybind row colors linear-gradient(to bottom,#1e2949,#0a1c2a,#0b2732)*/
.SB-keybind-row {
--key-color-1: #37515c78;
--key-color-2: #384a5a70;
--key-color-3: #38445873;
--key-color-4: #393d5691;
--key-color-5: #3d3f5fb0;
--key-color-6: #424169ba;
--key-color-7: #464373a1;
--key-color-8: #4d4682bd;
}
.SB-keybind-row:nth-of-type(1) .SB-keybind-key {
background: linear-gradient(var(--key-color-1), var(--key-color-2));
}
.SB-keybind-row:nth-of-type(2) .SB-keybind-key {
background: linear-gradient(var(--key-color-2), var(--key-color-3));
}
.SB-keybind-row:nth-of-type(3) .SB-keybind-key {
background: linear-gradient(var(--key-color-3), var(--key-color-4));
}
.SB-keybind-row:nth-of-type(4) .SB-keybind-key {
background: linear-gradient(var(--key-color-4), var(--key-color-5));
}
.SB-keybind-row:nth-of-type(5) .SB-keybind-key {
background: linear-gradient(var(--key-color-5), var(--key-color-6));
}
.SB-keybind-row:nth-of-type(6) .SB-keybind-key {
background: linear-gradient(var(--key-color-7), var(--key-color-8));
}
/* Keybind unit sizes */
.SB-keybind-wrap {
--u-size: 5em;
}
.size-qu {
width: calc(var(--u-size) / 4);
}
.size-1u {
width: var(--u-size);
}
.size-line {
width: 5.35em;
}
.size-1-25u {
width: calc(var(--u-size) * 1.25);
}
.size-1-5u {
width: calc(var(--u-size) * 1.5);
}
.size-1-75u {
width: calc(var(--u-size) * 1.75);
}
.size-2u {
width: calc(var(--u-size) * 2);
}
.size-2-25u {
width: calc(var(--u-size) * 2.25);
}
.size-2-5u {
width: calc(var(--u-size) * 2.5);
}
.size-2-75u {
width: calc(var(--u-size) * 2.75);
}
.size-6-25u {
width: calc(var(--u-size) * 6.25);
}
.size-7u {
width: calc(var(--u-size) * 7);
}
.hidden {
display: none;
}
.SB-keybind-layer-row {
margin: 0 0.25em;
display: flex;
}
.SB-keybind-layer-label {
display: inline-block;
margin: 0 0.1em;
padding: 0 .5em;
background: #18232c;
border: 1px solid #8faaaa36;
border-top-left-radius: 0.25em;
border-top-right-radius: 0.25em;
font-family:kenneyfuture;
font-size:1.4em;
white-space: pre;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
transition: border-color, background-color 0.15s ease-in-out;
}
.SB-keybind-layer-label:hover {
background: #233442;
border: 1px solid #ffffff4f;
}
#gp:checked ~ .SB-keybind-layer-row .label-gp {
background: #316163;
border: 1px solid #608a8b;
}
#inf:checked ~ .SB-keybind-layer-row .label-inf {
background: #316163;
border: 1px solid #608a8b;
}
#ship:checked ~ .SB-keybind-layer-row .label-ship {
background: #316163;
border: 1px solid #608a8b;
}
#shipEditor:checked ~ .SB-keybind-layer-row .label-shipEditor {
background: #316163;
border: 1px solid #608a8b;
}
#capitalShipEditor:checked ~ .SB-keybind-layer-row .label-capitalShipEditor {
background: #316163;
border: 1px solid #608a8b;
}
#stationEditor:checked ~ .SB-keybind-layer-row .label-stationEditor {
background: #316163;
border: 1px solid #608a8b;
}
.SB-keybind-label-group div {
display: none;
text-align: center;
position: absolute;
bottom: 0;
pointer-events: none;
}
.SB-keybind-info-group > div {
display: none;
}
#inf:checked ~ .SB-keybind-wrap .SB-keybind-label-inf, #inf:checked ~ .SB-keybind-wrap .SB-keybind-info-body-inf {
display: block;
}