RogerDodger (talk | contribs) No edit summary |
RogerDodger (talk | contribs) No edit summary |
||
Line 90: | Line 90: | ||
:root { | :root { | ||
--white: #fff; | |||
--blue-05: #e7f2ff; | --blue-05: #e7f2ff; | ||
--blue-15: #b2d8ff; | --blue-15: #b2d8ff; | ||
Line 106: | Line 108: | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:root { | :root { | ||
--white: #111111; | |||
--blue-05: #001e2f; | --blue-05: #001e2f; | ||
--blue-15: #00344e; | --blue-15: #00344e; | ||
Line 118: | Line 122: | ||
--teal: #004d40; | --teal: #004d40; | ||
--purple: #40004d; | --purple: #40004d; | ||
} | } | ||
} | } | ||
body.skin-citizen { | |||
background-color: var(--white); | |||
} | |||
.bg-blue { background-color: var(--blue); } | .bg-blue { background-color: var(--blue); } | ||
Line 137: | Line 140: | ||
.border-left-blue-15 { border-left-color: var(--blue-15); } | .border-left-blue-15 { border-left-color: var(--blue-15); } | ||
.hover-bg-grey-03:hover { background-color: var(--grey-03); } | .hover-bg-grey-03:hover { background-color: var(--grey-03); } | ||
/* Patterns for color blind assistance */ | |||
.bg-blue.pattern { | |||
background-image: repeating-linear-gradient(135deg, | |||
var(--white), var(--white) 1px, | |||
transparent 0, transparent 6px | |||
); | |||
} | |||
.bg-red.pattern { | |||
background: | |||
repeating-linear-gradient(135deg, | |||
var(--red) 0, var(--red) 6px, | |||
transparent 6px, transparent 8px | |||
), | |||
repeating-linear-gradient(45deg, | |||
var(--red) 0, var(--red) 6px, | |||
transparent 6px, transparent 8px | |||
); | |||
} | |||
.bg-teal.pattern { | |||
background-image: repeating-linear-gradient(45deg, | |||
transparent, | |||
transparent 10px, | |||
var(--white) 10px, | |||
var(--white) 11px | |||
); | |||
} | |||
.bg-purple.pattern { | |||
background-image: | |||
repeating-radial-gradient(circle at center, | |||
var(--white), var(--white) 1px, | |||
transparent 0, transparent 7px | |||
); | |||
} | |||
.bg-green.pattern { | |||
background-image: | |||
repeating-radial-gradient(circle at 0 100%, | |||
var(--white), var(--white) 1px, | |||
transparent 0, transparent 8px | |||
); | |||
} | |||
.bg-orange.pattern { | |||
background-image: | |||
repeating-radial-gradient(circle at 50% -25%, | |||
var(--white), var(--white) 2px, | |||
transparent 0, transparent 8px | |||
); | |||
} |
Revision as of 12:19, 22 December 2020
/*
* CSS placed here will be applied to all skins
*/
/* for Template:CharSelect, since this doesn't pass the css-sanitizer */
.char-select-img img {
background-image: url('/w/skins/Tekken/character-select-spritesheet-v2-602w.webp');
}
/* less table padding, and not wasting space in cells without a sort button */
.skin-citizen table.wikitable tr td,
.skin-citizen table.wikitable tr th {
padding: 5px;
}
.skin-citizen table.wikitable tr th.headerSort {
padding-right: 21px;
}
/* helper classes to change alignment of columns in table */
.col-1-center td:nth-child(1) { text-align: center; }
.col-2-center td:nth-child(2) { text-align: center; }
.col-3-center td:nth-child(3) { text-align: center; }
.col-4-center td:nth-child(4) { text-align: center; }
.col-5-center td:nth-child(5) { text-align: center; }
.col-6-center td:nth-child(6) { text-align: center; }
.col-7-center td:nth-child(7) { text-align: center; }
.col-8-center td:nth-child(8) { text-align: center; }
.col-9-center td:nth-child(9) { text-align: center; }
.col-1-end td:nth-child(1) { text-align: end; }
.col-2-end td:nth-child(2) { text-align: end; }
.col-3-end td:nth-child(3) { text-align: end; }
.col-4-end td:nth-child(4) { text-align: end; }
.col-5-end td:nth-child(5) { text-align: end; }
.col-6-end td:nth-child(6) { text-align: end; }
.col-7-end td:nth-child(7) { text-align: end; }
.col-8-end td:nth-child(8) { text-align: end; }
.col-9-end td:nth-child(9) { text-align: end; }
/* font based on in-game Tekken symbols */
@font-face {
font-family: IronFist;
src: url('/w/skins/Tekken/Iron-Fist.woff');
font-weight: normal;
font-style: normal;
font-display: block;
}
.ironfist {
font-family: IronFist;
}
/**
* Colors intended for figures use HSV color space, as it's more vibrant, and
* uniform perceived lightness isn't essential since the lightness is fixed and
* values of S and V are chosen such that contrast remains good.
*
* == hues ==
* red 0
* orange 30
* yellow 60
* green 120
* teal 160
* blue 200
* purple 290
*
* Colors with a number use https://www.hsluv.org/ color space
*
* Light mode bg: hsluv(0, 0, 100)
* Dark mode bg: hsluv(0, 0, 5)
*
* == hue
* blue 240
*
* == saturation
* 100
* grey 0
*
* == lightness
* 100 - {n}
*
* == lightness (dark mode)
* 5 + {n}
*/
:root {
--white: #fff;
--blue-05: #e7f2ff;
--blue-15: #b2d8ff;
--grey-03: #f6f6f6;
/* HSV S=30 V=100 */
--red: #ffb3b3;
--orange: #ffd9b3;
--yellow: #ffffb3;
--green: #b3ffb3;
--teal: #b3ffe6;
--blue: #b3e5ff;
--purple: #d9b3ff;
}
@media (prefers-color-scheme: dark) {
:root {
--white: #111111;
--blue-05: #001e2f;
--blue-15: #00344e;
--grey-03: #181818;
/* HSV S=100 V=30 */
--red: #4d0000;
--orange: #4d2600;
--yellow: #4d4d00;
--green: #004d00;
--blue: #00334d;
--teal: #004d40;
--purple: #40004d;
}
}
body.skin-citizen {
background-color: var(--white);
}
.bg-blue { background-color: var(--blue); }
.bg-green { background-color: var(--green); }
.bg-red { background-color: var(--red); }
.bg-yellow { background-color: var(--yellow); }
.bg-purple { background-color: var(--purple); }
.bg-teal { background-color: var(--teal); }
.bg-orange { background-color: var(--orange); }
.bg-blue-05 { background-color: var(--blue-05); }
.border-left-blue-15 { border-left-color: var(--blue-15); }
.hover-bg-grey-03:hover { background-color: var(--grey-03); }
/* Patterns for color blind assistance */
.bg-blue.pattern {
background-image: repeating-linear-gradient(135deg,
var(--white), var(--white) 1px,
transparent 0, transparent 6px
);
}
.bg-red.pattern {
background:
repeating-linear-gradient(135deg,
var(--red) 0, var(--red) 6px,
transparent 6px, transparent 8px
),
repeating-linear-gradient(45deg,
var(--red) 0, var(--red) 6px,
transparent 6px, transparent 8px
);
}
.bg-teal.pattern {
background-image: repeating-linear-gradient(45deg,
transparent,
transparent 10px,
var(--white) 10px,
var(--white) 11px
);
}
.bg-purple.pattern {
background-image:
repeating-radial-gradient(circle at center,
var(--white), var(--white) 1px,
transparent 0, transparent 7px
);
}
.bg-green.pattern {
background-image:
repeating-radial-gradient(circle at 0 100%,
var(--white), var(--white) 1px,
transparent 0, transparent 8px
);
}
.bg-orange.pattern {
background-image:
repeating-radial-gradient(circle at 50% -25%,
var(--white), var(--white) 2px,
transparent 0, transparent 8px
);
}