Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

MediaWiki:Keybinds.css

From Starbase wiki
Revision as of 13:11, 22 July 2021 by DustyFB (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
.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: 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;
  margin: calc(0.25em + 1px);
  height: 5em;
}

.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-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;
}
.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: 5em;
}
.size-qu {
  width: calc(var(--u-size) / 8);
}
.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.045);
}
.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,
#capitalShipEditor:checked ~ .SB-keybind-layer-row .label-capitalShipEditor,
#stationEditor:checked ~ .SB-keybind-layer-row .label-stationEditor {
  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,
#capitalShipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-label-capitalShipEditor,
#capitalShipEditor:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-capitalShipEditor,
#stationEditor:checked ~ .SB-keybind-superwrap .SB-keybind-label-stationEditor,
#stationEditor:checked ~ .SB-keybind-superwrap .SB-keybind-info-body-stationEditor {
  display: block;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.