Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 129: Line 129:
}
}
.invslot-item-image a.new:first-child {
.invslot-item-image a.new:first-child {
   background-image: url("/resources/assets/images/Grid_Unknown.png");
   background-image: url("images/3/35/Grid_Unknown.png");
   background-repeat: no-repeat;
   background-repeat: no-repeat;
   background-size: cover;
   background-size: cover;

Revision as of 02:45, 30 June 2025

:root {
    color-scheme: dark !important;
}

/* All CSS here will be loaded for users of the Citizen skin */
:root.skin-theme-clientpref-dark {
    --color-surface-0: #050e1b;
    --color-surface-1: #0d1014;
    --color-base: #fff;
    --color-base--emphasized: #808080;
    --color-base--subtle: #162132;
    --color-subtle: #e8eaed;
}
:root.skin-theme-clientpref-os {
    --color-surface-0: #050e1b;
    --color-surface-1: #0d1014;
    --color-base: #fff;
    --color-base--emphasized: #808080;
    --color-base--subtle: #162132;
}

:root.skin-theme-clientpref-night {
   --color-emphasized: #fff;
   --color-base: #e8eaed;
   --color-subtle: #ffffff75;
   --color-link: #ffa800;
   --color-link--hover: #fcb326;
   --color-link--active: #fcb326;
   --color-progressive: #ffa800;
   --color-progressive--hover: #fcb326;
   --color-progressive--active: #fcb326;
}

.citizen-page-container {
    position: relative;
    background-image: url("resources/assets/hero.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    z-index: 0;
    overflow: hidden;
}

.citizen-page-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.citizen-page-container > * {
    position: relative;
    z-index: 2;
}

.citizen-body {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

h1, h2 {
   margin-block-start: 0;
}

.mw-logo-wordmark {
   height: 4rem !important;
   filter: none !important;
}

#footer-icons a {
   background: none;
   border: none;
}
@font-face {
	font-family: Minecraft;
	src: url('/resources/assets/fonts/Minecraft.woff2') format('woff2'),
	     url('/resources/assets/fonts/Minecraft.woff') format('woff');
}
.content a > img, .content span > img, .content noscript > img {
    max-width: 100% !important;
    height: auto !important;
}
.invslot {
  position: relative;
  display: inline-block;
  border: 2px solid;
  width: 36px;
  height: 36px;
  font-size: 16px;
  line-height: 1;
  text-align: left;
  vertical-align: bottom;
  background: #333333;
  border-color: #262626 #6b6b6b #6b6b6b #262626;
}
.invslot::before,
.invslot::after {
  content: "";
  position: absolute;
  background-color: #8b8b8b;
  height: 2px;
  width: 2px;
  pointer-events: none;
}
.invslot::before { bottom: -2px; left: -2px; }
.invslot::after { top: -2px; right: -2px; }

.invslot-item,
.invslot-item a:first-child {
  position: relative;
  display: block;
  margin: -2px;
  padding: 2px;
  width: 36px;
  height: 36px;
}
.invslot-item img {
  width: 32px;
  height: auto;
}
.invslot-item-image a.new:first-child {
  background-image: url("images/3/35/Grid_Unknown.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 32px;
  height: 32px;
  text-indent: -9999px;
  overflow: hidden;
}
.invslot-stacksize {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: Minecraft, sans-serif !important;
  font-weight: normal !important;
  color: #fff !important;
  text-shadow: 2px 2px 0 #3f3f3f;
  filter: dropshadow(color=#3F3F3F, offx=2, offy=2);
  z-index: 2;
}
.invslot-plain {
  background-color: transparent;
  border: 0;
}
.invslot-plain::before,
.invslot-plain::after {
  content: none;
}
.invslot-plain > .invslot-item,
.invslot-plain > .invslot-item a:first-child {
  margin: 0;
  padding: 0;
}

.mc-hearts::before { content: " ("; }
.mc-hearts::after { content: ")"; }

.mcui {
  display: inline-block;
  position: relative;
  border: 2px solid;
  padding: 6px;
  text-align: left;
  white-space: nowrap;
  vertical-align: bottom;
  background-color: #535353;
  border-color: #6b6b6b #333333 #333333 #6b6b6b;
}

.mw-body-content .animated > *:not(.animated-active),
.mw-body-content .animated > .animated-subframe > *:not(.animated-active) {
    display: none;
}
.mw-body-content span.animated,
.mw-body-content span.animated.animated-visible > *,
.mw-body-content span.animated.animated-visible > .animated-subframe > * {
    display: inline-block;
}
.mw-body-content div.animated.animated-visible > *,
.mw-body-content div.animated.animated-visible > .animated-subframe > * {
    display: block;
}

#minetip-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  color: #fbfbfb;
  text-shadow: 0.125em 0.125em 0 #3e3e3e;
  background-color: rgba(16, 0, 16, 0.94);
  padding: 0.375em;
  font-family: Minecraft, sans-serif;
  font-size: 16px;
  word-spacing: 4px;
  white-space: nowrap;
  line-height: 1.25em;
  margin: 0.125em 0.25em;
  pointer-events: none;
  z-index: 9999;
}
#minetip-tooltip::before {
  content: "";
  position: absolute;
  top: 0.125em;
  right: -0.125em;
  bottom: 0.125em;
  left: -0.125em;
  border-style: none solid;
  border-color: rgba(16, 0, 16, 0.94);
}
#minetip-tooltip::after {
  content: "";
  position: absolute;
  top: 0.125em;
  right: 0;
  bottom: 0.125em;
  left: 0;
  border: 0.125em solid #2d0a63;
  border-image: linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
}
#minetip-tooltip > .description,
#minetip-tooltip > .minetip-description {
  display: block;
  margin-top: 0.25em;
}