Difference between revisions of "MediaWiki:Keybinds.css"
Jump to navigation
Jump to search
m |
m |
||
(11 intermediate revisions by the same user not shown) | |||
Line 95: | Line 95: | ||
opacity: 1; | opacity: 1; | ||
pointer-events: auto; | pointer-events: auto; | ||
} | |||
.SB-keybind-info pre { | |||
background: none; | |||
border: none; | |||
padding: 0; | |||
margin: 0; | |||
font-family: sans-serif; | |||
color: #b9b9b9; | |||
white-space: normal; | |||
} | } | ||
.SB-keybind-active { | .SB-keybind-active { | ||
Line 108: | Line 117: | ||
right: 0; | right: 0; | ||
pointer-events: none; | pointer-events: none; | ||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
padding: 0 0.2em; | |||
white-space: pre; | |||
} | } | ||
.SB-keybind-info-group > div { | .SB-keybind-info-group > div { | ||
Line 188: | Line 201: | ||
width: calc(var(--u-size) * 7.045); | width: calc(var(--u-size) * 7.045); | ||
} | } | ||
.mouse-left, .mouse-right { | |||
width: calc(var(--u-size) * 1.25); | |||
height: 6em; | |||
} | |||
.mouse-wheel { | |||
width: 1em; | |||
top: 1em; | |||
} | |||
.mouse-left { | |||
border-top-left-radius: 5em; | |||
} | |||
.mouse-right { | |||
border-top-right-radius: 5em; | |||
} | |||
.mouse-body { | |||
width: calc(var(--u-size) * 3 + 0.25em); | |||
height: 14em; | |||
border-bottom-left-radius: 100%; | |||
border-bottom-right-radius: 100%; | |||
} | |||
.hidden { | .hidden { | ||
display: none; | display: none; | ||
Line 222: | Line 257: | ||
#ship:checked ~ .SB-keybind-layer-row .label-ship, | #ship:checked ~ .SB-keybind-layer-row .label-ship, | ||
#shipEditor:checked ~ .SB-keybind-layer-row .label-shipEditor, | #shipEditor:checked ~ .SB-keybind-layer-row .label-shipEditor, | ||
# | #sharedDesignerControls:checked ~ .SB-keybind-layer-row .label-sharedDesignerControls { | ||
background: #316163; | background: #316163; | ||
border: 1px solid #608a8b; | border: 1px solid #608a8b; | ||
Line 236: | Line 270: | ||
#shipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-label-shipEditor, | #shipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-label-shipEditor, | ||
#shipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-shipEditor, | #shipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-shipEditor, | ||
# | #sharedDesignerControls:checked ~ .SB-keybind-superwrap .SB-keybind-label-sharedDesignerControls, | ||
# | #sharedDesignerControls:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-sharedDesignerControls { | ||
display: block; | display: block; | ||
} | } |
Latest revision as of 12:47, 9 November 2021
.hidden {
display: none;
}
.SB-keybind-superwrap {
display: flex;
flex-wrap: wrap;
grid-gap: 3em;
}
.SB-keybind-wrap {
width: min-content;
}
.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: var(--u-size);
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: 1em;
text-transform: uppercase;
white-space: pre;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: anywhere;
width: 80%;
}
.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: 1em;
font-variant: petite-caps;
overflow:hidden;
text-overflow: ellipsis;
}
.SB-keybind-row {
display: flex;
}
.SB-keybind-gap {
display: inline-block;
margin: calc(0.25em + 1px);
height: var(--u-size);
}
.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: 15em;
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-info pre {
background: none;
border: none;
padding: 0;
margin: 0;
font-family: sans-serif;
color: #b9b9b9;
white-space: normal;
}
.SB-keybind-active {
z-index: 2;
border-color: #ffffff40;
}
.SB-keybind-label-group div {
display: none;
text-align: center;
position: absolute;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 0.2em;
white-space: pre;
}
.SB-keybind-info-group > div {
display: none;
}
.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));
}
.SB-keybind-wrap {
--u-size: 4em;
}
.size-qu {
width: calc(var(--u-size) / 12 + 0.06275em);
}
.size-1u {
width: var(--u-size);
}
.size-line {
width:calc(var(--u-size) * 1.07);
}
.size-1-25u {
width: calc(var(--u-size) * 1.25 + 0.125em);
}
.size-1-5u {
width: calc(var(--u-size) * 1.5 + 0.125em);
}
.size-1-75u {
width: calc(var(--u-size) * 1.75 + 0.125em);
}
.size-2u {
width: calc(var(--u-size) * 2 + 0.25em);
}
.size-2-25u {
width: calc(var(--u-size) * 2.25 + 0.25em);
}
.size-2-5u {
width: calc(var(--u-size) * 2.5 + 0.25em);
}
.size-2-75u {
width: calc(var(--u-size) * 2.75 + 0.25em);
}
.size-6-25u {
width: calc(var(--u-size) * 6.25);
}
.size-7u {
width: calc(var(--u-size) * 7.045);
}
.mouse-left, .mouse-right {
width: calc(var(--u-size) * 1.25);
height: 6em;
}
.mouse-wheel {
width: 1em;
top: 1em;
}
.mouse-left {
border-top-left-radius: 5em;
}
.mouse-right {
border-top-right-radius: 5em;
}
.mouse-body {
width: calc(var(--u-size) * 3 + 0.25em);
height: 14em;
border-bottom-left-radius: 100%;
border-bottom-right-radius: 100%;
}
.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,
#inf:checked ~ .SB-keybind-layer-row .label-inf,
#ship:checked ~ .SB-keybind-layer-row .label-ship,
#shipEditor:checked ~ .SB-keybind-layer-row .label-shipEditor,
#sharedDesignerControls:checked ~ .SB-keybind-layer-row .label-sharedDesignerControls {
background: #316163;
border: 1px solid #608a8b;
}
#inf:checked ~ .SB-keybind-superwrap .SB-keybind-label-inf,
#inf:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-inf,
#gp:checked ~ .SB-keybind-superwrap .SB-keybind-label-gp,
#gp:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-gp,
#ship:checked ~ .SB-keybind-superwrap .SB-keybind-label-ship,
#ship:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-ship,
#shipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-label-shipEditor,
#shipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-shipEditor,
#sharedDesignerControls:checked ~ .SB-keybind-superwrap .SB-keybind-label-sharedDesignerControls,
#sharedDesignerControls:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-sharedDesignerControls {
display: block;
}