MediaWiki:Vector.css: различия между версиями
Aylong (обсуждение | вклад) (Больше цветов в палитру (Это пиздец)) |
Aylong (обсуждение | вклад) (Надо бы векторную тему вообще снести к хуям) |
||
(не показано 6 промежуточных версий этого же участника) | |||
Строка 2: | Строка 2: | ||
:root { | :root { | ||
--primary-hue: 210; | |||
/* TGUI Elements Colors */ | |||
--color-primary: hsl(var(--primary-hue), 37.5%, var(--primary-lightness)); | |||
--color-secondary: ~'hsl(var(--primary-hue), 57.5%, 50%)'; | |||
--color-red: hsl(0, 70%, 50%); | |||
--color-orange: hsl(35, 90%, 50%); | |||
--color-yellow: hsl(50, 95%, 50%); | |||
--color-olive: hsl(70, 80%, 45%); | |||
--color-green: hsl(95, 65%, 40%); | |||
--color-teal: hsl(175, 100%, 35%); | |||
--color-blue: hsl(205, 70%, 45%); | |||
--color-violet: hsl(260, 60%, 50%); | |||
--color-purple: hsl(285, 60%, 50%); | |||
--color-pink: hsl(325, 75%, 55%); | |||
--color-brown: hsl(25, 45%, 45%); | |||
--color-grey: hsl(0, 0%, 45%); | |||
--color-label: hsl(215, 20%, 55%); | |||
--color-black: hsl(0, 0%, 0%); | |||
--color-white: hsl(0, 0%, 100%); | |||
--color-translucent: hsla(0, 0%, 100%, 0.5); | |||
--color-gray: var(--color-grey); | |||
/* TGUI Elements Colors (Light or Hover) */ | |||
--color-primary-light: hsl(var(--primary-hue), 32.5%, calc(var(--primary-lightness) + 10%)); | |||
--color-secondary-light: hsl(var(--primary-hue), 100%, 60%); | |||
--color-red-light: hsl(0, 85%, 65%); | |||
--color-orange-light: hsl(35, 100%, 60%); | |||
--color-yellow-light: hsl(50, 100%, 60%); | |||
--color-olive-light: hsl(70, 80%, 55%); | |||
--color-green-light: hsl(95, 65%, 50%); | |||
--color-teal-light: hsl(175, 100%, 45%); | |||
--color-blue-light: hsl(205, 100%, 65%); | |||
--color-violet-light: hsl(260, 100%, 65%); | |||
--color-purple-light: hsl(285, 100%, 65%); | |||
--color-pink-light: hsl(325, 100%, 65%); | |||
--color-brown-light: hsl(25, 45%, 55%); | |||
--color-grey-light: hsl(0, 0%, 55%); | |||
--color-label-light: hsl(215, 30%, 70%); | |||
--color-black-light: hsl(0, 0%, 15%); | |||
--color-white-light: hsl(0, 0%, 85%); | |||
--color-gray-light: var(--color-grey-light); | |||
/* TGUI Elements Colors (Darken orFocus/Active) */ | |||
--color-primary-dark: hsl(var(--primary-hue), 40%, calc(var(--primary-lightness) - 5%)); | |||
--color-secondary-dark: hsl(var(--primary-hue), 70%, 40%); | |||
--color-red-dark: hsl(0, 70%, 45%); | |||
--color-orange-dark: hsl(35, 90%, 45%); | |||
--color-yellow-dark: hsl(50, 95%, 45%); | |||
--color-olive-dark: hsl(70, 80%, 40%); | |||
--color-green-dark: hsl(95, 65%, 35%); | |||
--color-teal-dark: hsl(175, 100%, 30%); | |||
--color-blue-dark: hsl(205, 100%, 35%); | |||
--color-violet-dark: hsl(260, 60%, 45%); | |||
--color-purple-dark: hsl(285, 60%, 45%); | |||
--color-pink-dark: hsl(325, 75%, 50%); | |||
--color-brown-dark: hsl(25, 45%, 40%); | |||
--color-grey-dark: hsl(0, 0%, 40%); | |||
--color-label-dark: hsl(215, 20%, 50%); | |||
--color-white-dark: hsl(0, 0%, 75%); | |||
--color-gray: var(--color-grey); | |||
/* Font sizes */ | |||
--font-size-x-small: 0.75rem; | |||
--font-size-small: 0.875rem; | |||
--font-size-medium: 1rem; | |||
--font-size-large: 1rem; | |||
--font-size-x-large: 1.125rem; | |||
--font-size-xx-large: 1.375rem; | |||
--font-size-xxx-large: 1.75rem; | |||
/* Font weight */ | |||
--font-weight-normal: 400; | |||
--font-weight-medium: calc( var( --font-weight-normal ) + 100); | |||
--font-weight-semibold: calc( var( --font-weight-normal ) + 200); | |||
--font-weight-bold: calc( var( --font-weight-normal ) + 300); | |||
/* Opacity */ | |||
--opacity-icon-base: 0.5; | |||
--opacity-icon-base-hover: 0.75; | |||
--opacity-icon-base-active: 1; | |||
/* Border Radius */ | |||
--border-radius-small: 0.275rem; | |||
--border-radius-medium: calc( var(--border-radius-small) * 2); | |||
--border-radius-large: calc( var(--border-radius-small) * 4); | |||
--border-radius-round: 9999px; | |||
/* Blur */ | |||
--blur-default: saturate(150%) blur(24px); | |||
--blur-important: saturate(150%) blur(24px); | |||
/* Transition */ | |||
--transition-time: 0.2s; | |||
--transition-time-fast: calc( var(--transition-time) / 2); | |||
--transition-delay: calc( var(--transition-time) * 2); | |||
/* z-indexes */ | |||
--index-max: 100; | |||
--index-high: 10; | |||
--index-medium: 5; | |||
--index-static: 4; | |||
--index-overlay: 3; | |||
--index-element: 2; | |||
--index-fore: 1; | |||
--index-base: 0; | |||
--index-low: -1; | |||
--index-lower: -10; | |||
/* Shortcuts */ | |||
--border-classic: 1px solid var(--color-border); | |||
--border-classic-input: 1px solid var(--color-border-input); | |||
--border-classic-input-focus: 1px solid var(--color-border-input-focus); | |||
/* Deprecated. Don't use it! */ | |||
--color-bg-section: var(--color-base); | |||
--color-bg-section-opaque: var(--color-base-fill); | |||
--color-bg-section-light: var(--color-second); | |||
--color-bg-section-light-opaque: var(--color-second-fill); | |||
/* Base Colors - Light */ | /* Base Colors - Light */ | ||
--color-bg: hsl(0, 0%, 100%); | --color-bg: hsl(0, 0%, 100%); | ||
--color-bg-hover: rgba(0, 0, 0, 0.075); | --color-bg-hover: rgba(0, 0, 0, 0.075); | ||
--color-bg-focus: rgba(0, 0, 0, 0.125); | --color-bg-focus: rgba(0, 0, 0, 0.125); | ||
--color- | |||
--color- | --color-base: rgba(204, 201, 198, 0.33); | ||
--color- | --color-base-blur: var(--color-base-blur-important); | ||
--color- | --color-base-blur-important: hsla(30, 5%, 92.5%, 0.85); | ||
--color- | --color-base-fill: hsl(30, 6%, 93%); | ||
--color-second: hsla(25, 5%, 60%, 0.15); | |||
--color-second-blur: var(--color-second-blur-important); | |||
--color-second-blur-important: hsla(25, 5%, 87.75%, 0.85); | |||
--color-second-fill: hsl(25, 5%, 88.75%); | |||
--color-text: rgba(0, 0, 0, 1); | --color-text: rgba(0, 0, 0, 1); | ||
--color-text-darker: rgba(40, 40, 40, 1); | --color-text-darker: rgba(40, 40, 40, 1); | ||
--color-text-gray: rgba(80, 80, 80, 0.75); | --color-text-gray: rgba(80, 80, 80, 0.75); | ||
--color-text-translucent: rgba(0, 0, 0, 0.5); | --color-text-translucent: rgba(0, 0, 0, 0.5); | ||
--color-text-semi-translucent: rgba(0, 0, 0, 0.75); | |||
--color-border: rgba(0, 0, 0, 0.1); | --color-border: rgba(0, 0, 0, 0.1); | ||
--color-border-input: | --color-border-input: hsl(var(--primary-hue), 100%, calc(var(--primary-lightness) + 10%)); | ||
--color-border-input-focus: var(-- | --color-border-input-focus: hsl(var(--primary-hue), 100%, var(--primary-lightness)); | ||
/* Scrollbar - Light */ | /* Scrollbar - Light */ | ||
Строка 31: | Строка 159: | ||
/* Links */ | /* Links */ | ||
--color-hyperlink: hsl(220, 100%, | --color-hyperlink: hsl(220, 100%, 30%); | ||
--color-hyperlink-visited: hsl(280, 70%, | --color-hyperlink-visited: hsl(280, 70%, 30%); | ||
--color-hyperlink-new: hsl(0, 100%, | --color-hyperlink-new: hsl(0, 100%, 30%); | ||
--color-hyperlink-new-visited: hsl( | --color-hyperlink-new-visited: hsl(35, 100%, 30%); | ||
/* Hover */ | /* Hover */ | ||
--color-hyperlink-hover: hsl( | --color-hyperlink-hover: hsl(210, 100%, 50%); | ||
--color-hyperlink-visited-hover: hsl(290, | --color-hyperlink-visited-hover: hsl(290, 70%, 50%); | ||
--color-hyperlink-new-hover: hsl(0, 100%, | --color-hyperlink-new-hover: hsl(0, 100%, 45%); | ||
--color-hyperlink-new-visited-hover: hsl( | --color-hyperlink-new-visited-hover: hsl(35, 100%, 45%); | ||
/* Links Shadow */ | /* Links Shadow */ | ||
--hyperlink-shadow-new: hsl(0, 100%, 75%) 0px 0px 0.5em; | |||
--hyperlink-shadow-new: hsl(0, 100%, 75 | |||
--hyperlink-shadow-new-hover: hsl(0, 100%, 75%) 0px 0px 0.5em; | --hyperlink-shadow-new-hover: hsl(0, 100%, 75%) 0px 0px 0.5em; | ||
/* Custom HSL */ | |||
--primary-lightness: 50%; | |||
--dark-lightness: 10%; | |||
--light-lightness: 90%; | |||
/* Invert */ | /* Invert */ | ||
Строка 58: | Строка 187: | ||
--box-shadow-big: 0px 0px 35px 5px rgba(0, 0, 0, 0.33); | --box-shadow-big: 0px 0px 35px 5px rgba(0, 0, 0, 0.33); | ||
/* | /* Template Shadows */ | ||
-- | --shadow-template--small: 0px 0px 10px rgba(0, 0, 0, 0.25); | ||
--shadow-template--medium: 0px 0px 10px rgba(0, 0, 0, 0.5); | |||
--shadow-template--large: 0px 0px 15px rgba(0, 0, 0, 0.5); | |||
-- | |||
-- | |||
/* ColorPalette */ | |||
/* Gray. Default */ | /* Gray. Default */ | ||
--gray-opaque: | --gray-opaque: hsl(0, 0%, 50%); | ||
--gray-primary: | --gray-primary: hsla(0, 0%, 50%, 0.75); | ||
--gray-secondary: | --gray-secondary: hsla(0, 0%, 50%, 0.5); | ||
--gray-light: | --gray-light: hsla(0, 0%, 50%, 0.25); | ||
--gray-transparent: | --gray-transparent: hsla(0, 0%, 50%, 0.1); | ||
--grey-opaque: var(--gray-opaque); | --grey-opaque: var(--gray-opaque); | ||
--grey-primary: var(--gray-primary); | --grey-primary: var(--gray-primary); | ||
Строка 107: | Строка 204: | ||
--grey-light: var(--gray-light); | --grey-light: var(--gray-light); | ||
--grey-transparent: var(--gray-transparent); | --grey-transparent: var(--gray-transparent); | ||
/* Black */ | /* Black */ | ||
--black-opaque: | --black-opaque: hsl(0, 0%, 0%); | ||
--black-primary: | --black-primary: hsla(0, 0%, 0%, 0.75); | ||
--black-secondary: | --black-secondary: hsla(0, 0%, 0%, 0.5); | ||
--black-light: | --black-light: hsla(0, 0%, 0%, 0.25); | ||
--black-transparent: | --black-transparent: hsla(0, 0%, 0%, 0.1); | ||
/* Cyan */ | /* Cyan */ | ||
--cyan-opaque: | --cyan-opaque: hsl(165, 55%, 60%); | ||
--cyan-primary: | --cyan-primary: hsla(165, 55%, 60%, 0.75); | ||
--cyan-secondary: | --cyan-secondary: hsla(165, 55%, 60%, 0.5); | ||
--cyan-light: | --cyan-light: hsla(165, 55%, 60%, 0.25); | ||
--cyan-transparent: | --cyan-transparent: hsla(165, 55%, 60%, 0.1); | ||
/* Aqua blue */ | /* Aqua blue */ | ||
--blue-opaque: | --blue-opaque: hsl(180, 55%, 55%); | ||
--blue-primary: | --blue-primary: hsla(180, 55%, 55%, 0.75); | ||
--blue-secondary: | --blue-secondary: hsla(180, 55%, 55%, 0.5); | ||
--blue-light: | --blue-light: hsla(180, 55%, 55%, 0.25); | ||
--blue-transparent: | --blue-transparent: hsla(180, 55%, 55%, 0.1); | ||
/* Brown */ | /* Brown */ | ||
--brown-opaque: | --brown-opaque: hsl(35, 70%, 42.5%); | ||
--brown-primary: | --brown-primary: hsla(35, 70%, 42.5%, 0.75); | ||
--brown-secondary: | --brown-secondary: hsla(35, 70%, 42.5%, 0.5); | ||
--brown-light: | --brown-light: hsla(35, 70%, 42.5%, 0.25); | ||
--brown-transparent: | --brown-transparent: hsla(35, 70%, 42.5%, 0.1); | ||
/* Green */ | /* Green */ | ||
--green-opaque: | --green-opaque: hsl(110, 60%, 55%); | ||
--green-primary: | --green-primary: hsla(110, 60%, 55%, 0.75); | ||
--green-secondary: | --green-secondary: hsla(110, 60%, 55%, 0.5); | ||
--green-light: | --green-light: hsla(110, 60%, 55%, 0.25); | ||
--green-transparent: | --green-transparent: hsla(110, 60%, 55%, 0.1); | ||
/* Yellow */ | /* Yellow */ | ||
--yellow-opaque: | --yellow-opaque: hsl(50, 75%, 55%); | ||
--yellow-primary: | --yellow-primary: hsla(50, 75%, 55%, 0.75); | ||
--yellow-secondary: | --yellow-secondary: hsla(50, 75%, 55%, 0.5); | ||
--yellow-light: | --yellow-light: hsla(50, 75%, 55%, 0.25); | ||
--yellow-transparent: | --yellow-transparent: hsla(50, 75%, 55%, 0.1); | ||
/* Light red */ | /* Light red */ | ||
--red-opaque: | --red-opaque: hsl(0, 75%, 65%); | ||
--red-primary: | --red-primary: hsla(0, 75%, 65%, 0.75); | ||
--red-secondary: | --red-secondary: hsla(0, 75%, 65%, 0.5); | ||
--red-light: | --red-light: hsla(0, 75%, 65%, 0.25); | ||
--red-transparent: | --red-transparent: hsla(0, 75%, 65%, 0.1); | ||
/* Pink */ | /* Pink */ | ||
--pink-opaque: | --pink-opaque: hsl(300, 70%, 60%); | ||
--pink-primary: | --pink-primary: hsla(300, 70%, 60%, 0.75); | ||
--pink-secondary: | --pink-secondary: hsla(300, 70%, 60%, 0.5); | ||
--pink-light: | --pink-light: hsla(300, 70%, 60%, 0.25); | ||
--pink-transparent: | --pink-transparent: hsla(300, 70%, 60%, 0.1); | ||
/* Light green */ | /* Light green */ | ||
--civilian-opaque: | --civilian-opaque: hsl(140, 50%, 50%); | ||
--civilian-primary: | --civilian-primary: hsla(140, 50%, 50%, 0.75); | ||
--civilian-secondary: | --civilian-secondary: hsla(140, 50%, 50%, 0.5); | ||
--civilian-light: | --civilian-light: hsla(140, 50%, 50%, 0.25); | ||
--civilian-transparent: | --civilian-transparent: hsla(140, 50%, 50%, 0.1); | ||
/* Blue */ | /* Blue */ | ||
--medical-opaque: | --medical-opaque: hsl(195, 65%, 55%); | ||
--medical-primary: | --medical-primary: hsla(195, 65%, 55%, 0.75); | ||
--medical-secondary: | --medical-secondary: hsla(195, 65%, 55%, 0.5); | ||
--medical-light: | --medical-light: hsla(195, 65%, 55%, 0.25); | ||
--medical-transparent: | --medical-transparent: hsla(195, 65%, 55%, 0.1); | ||
/* Light brown */ | /* Light brown */ | ||
--supply-opaque: | --supply-opaque: hsl(35, 40%, 55%); | ||
--supply-primary: | --supply-primary: hsla(35, 40%, 55%, 0.75); | ||
--supply-secondary: | --supply-secondary: hsla(35, 40%, 55%, 0.5); | ||
--supply-light: | --supply-light: hsla(35, 40%, 55%, 0.25); | ||
--supply-transparent: | --supply-transparent: hsla(35, 40%, 55%, 0.1); | ||
/* Purple */ | /* Purple */ | ||
--science-opaque: | --science-opaque: hsl(275, 60%, 65%); | ||
--science-primary: | --science-primary: hsla(275, 60%, 65%, 0.75); | ||
--science-secondary: | --science-secondary: hsla(275, 60%, 65%, 0.5); | ||
--science-light: | --science-light: hsla(275, 60%, 65%, 0.25); | ||
--science-transparent: | --science-transparent: hsla(275, 60%, 65%, 0.1); | ||
/* Orange */ | /* Orange */ | ||
--engineer-opaque: | --engineer-opaque: hsl(40, 75%, 55%); | ||
--engineer-primary: | --engineer-primary: hsla(40, 75%, 55%, 0.75); | ||
--engineer-secondary: | --engineer-secondary: hsla(40, 75%, 55%, 0.5); | ||
--engineer-light: | --engineer-light: hsla(40, 75%, 55%, 0.25); | ||
--engineer-transparent: | --engineer-transparent: hsla(40, 75%, 55%, 0.1); | ||
/* Red */ | /* Red */ | ||
--security-opaque: | --security-opaque: hsl(0, 65%, 55%); | ||
--security-primary: | --security-primary: hsla(0, 65%, 55%, 0.75); | ||
--security-secondary: | --security-secondary: hsla(0, 65%, 55%, 0.5); | ||
--security-light: | --security-light: hsla(0, 65%, 55%, 0.25); | ||
--security-transparent: | --security-transparent: hsla(0, 65%, 55%, 0.1); | ||
/* Dark red */ | /* Dark red */ | ||
--antag-opaque: | --antag-opaque: hsl(0, 55%, 45%); | ||
--antag-primary: | --antag-primary: hsla(0, 55%, 45%, 0.75); | ||
--antag-secondary: | --antag-secondary: hsla(0, 55%, 45%, 0.5); | ||
--antag-light: | --antag-light: hsla(0, 55%, 45%, 0.25); | ||
--antag-transparent: | --antag-transparent: hsla(0, 55%, 45%, 0.1); | ||
/* Magenta Pink */ | /* Magenta Pink */ | ||
--legal-opaque: | --legal-opaque: hsl(325, 70%, 60%); | ||
--legal-primary: | --legal-primary: hsla(325, 70%, 60%, 0.75); | ||
--legal-secondary: | --legal-secondary: hsla(325, 70%, 60%, 0.5); | ||
--legal-light: | --legal-light: hsla(325, 70%, 60%, 0.25); | ||
--legal-transparent: | --legal-transparent: hsla(325, 70%, 60%, 0.1); | ||
/* Blue Ribbon */ | /* Blue Ribbon */ | ||
--command-opaque: | --command-opaque: hsl(215, 80%, 60%); | ||
--command-primary: | --command-primary: hsla(215, 80%, 60%, 0.75); | ||
--command-secondary: | --command-secondary: hsla(215, 80%, 60%, 0.5); | ||
--command-light: | --command-light: hsla(215, 80%, 60%, 0.25); | ||
--command-transparent: | --command-transparent: hsla(215, 80%, 60%, 0.1); | ||
/* Blue Azure */ | /* Blue Azure */ | ||
--synthetic-opaque: | --synthetic-opaque: hsl(210, 45%, 60%); | ||
--synthetic-primary: | --synthetic-primary: hsla(210, 45%, 60%, 0.75); | ||
--synthetic-secondary: | --synthetic-secondary: hsla(210, 45%, 60%, 0.5); | ||
--synthetic-light: | --synthetic-light: hsla(210, 45%, 60%, 0.25); | ||
--synthetic-transparent: | --synthetic-transparent: hsla(210, 45%, 60%, 0.1); | ||
/* Dark Purple */ | /* Dark Purple */ | ||
--special-opaque: | --special-opaque: hsl(260, 50%, 55%); | ||
--special-primary: | --special-primary: hsla(260, 50%, 55%, 0.75); | ||
--special-secondary: | --special-secondary: hsla(260, 50%, 55%, 0.5); | ||
--special-light: | --special-light: hsla(260, 50%, 55%, 0.25); | ||
--special-transparent: | --special-transparent: hsla(260, 50%, 55%, 0.1); | ||
/* Dark Blue */ | /* Dark Blue */ | ||
--centcom-opaque: | --centcom-opaque: hsl(210, 60%, 40%); | ||
--centcom-primary: | --centcom-primary: hsla(210, 60%, 40%, 0.75); | ||
--centcom-secondary: | --centcom-secondary: hsla(210, 60%, 40%, 0.5); | ||
--centcom-light: | --centcom-light: hsla(210, 60%, 40%, 0.25); | ||
--centcom-transparent: | --centcom-transparent: hsla(210, 60%, 40%, 0.1); | ||
/* Lava orange */ | /* Lava orange */ | ||
--lavaland-opaque: | --lavaland-opaque: hsl(15, 75%, 55%); | ||
--lavaland-primary: | --lavaland-primary: hsla(15, 75%, 55%, 0.75); | ||
--lavaland-secondary: | --lavaland-secondary: hsla(15, 75%, 55%, 0.5); | ||
--lavaland-light: | --lavaland-light: hsla(15, 75%, 55%, 0.25); | ||
--lavaland-transparent: | --lavaland-transparent: hsla(15, 75%, 55%, 0.1); | ||
/* Black red */ | /* Black red */ | ||
--cult-opaque: | --cult-opaque: hsl(0, 25%, 35%); | ||
--cult-primary: | --cult-primary: hsla(0, 25%, 35%, 0.75); | ||
--cult-secondary: | --cult-secondary: hsla(0, 25%, 35%, 0.5); | ||
--cult-light: | --cult-light: hsla(0, 25%, 35%, 0.25); | ||
--cult-transparent: | --cult-transparent: hsla(0, 25%, 35%, 0.1); | ||
/* Dark orange */ | /* Dark orange */ | ||
--ratvar-opaque: | --ratvar-opaque: hsl(40, 65%, 25%); | ||
--ratvar-primary: | --ratvar-primary: hsla(40, 65%, 25%, 0.75); | ||
--ratvar-secondary: | --ratvar-secondary: hsla(40, 65%, 25%, 0.5); | ||
--ratvar-light: | --ratvar-light: hsla(40, 65%, 25%, 0.25); | ||
--ratvar-transparent: | --ratvar-transparent: hsla(40, 65%, 25%, 0.1); | ||
/* Magic purple */ | /* Magic purple */ | ||
--wizard-opaque: | --wizard-opaque: hsl(260, 90%, 60%); | ||
--wizard-primary: | --wizard-primary: hsla(260, 90%, 60%, 0.75); | ||
--wizard-secondary: | --wizard-secondary: hsla(260, 90%, 60%, 0.5); | ||
--wizard-light: | --wizard-light: hsla(260, 90%, 60%, 0.25); | ||
--wizard-transparent: | --wizard-transparent: hsla(260, 90%, 60%, 0.1); | ||
} | |||
/* Simulate link styling for JS only links */ | |||
.jslink { | |||
color: var(--color-hyperlink); | |||
user-select: none; | |||
- | outline: none; | ||
} | |||
.jslink:hover { | |||
text-decoration: underline; | |||
- | cursor: pointer; | ||
} | |||
.jslink:active { | |||
color: var(--color-hyperlink-visited); | |||
} | } | ||
Строка 324: | Строка 405: | ||
#mw-content-text .hlist li li li { | #mw-content-text .hlist li li li { | ||
font-size: x-small; | font-size: x-small; | ||
} | } | ||
Строка 388: | Строка 453: | ||
.noautonum .tocnumber { | .noautonum .tocnumber { | ||
display: none; | display: none; | ||
} | |||
/* Всплывающие окна с информацией */ | |||
.tooltip { | |||
display: inline-flex; | |||
position: relative; | |||
align-items: baseline; | |||
} | |||
.tooltiptext, | |||
.tooltiptext2 { | |||
position: absolute; | |||
display: inline; | |||
width: 250px; | |||
padding: 10px; | |||
margin-top: 0.75em; | |||
visibility: hidden; | |||
opacity: 0; | |||
white-space: normal; | |||
text-align: left; | |||
border: 1px solid var(--color-border); | |||
transition: all var(--transition-time); | |||
transition-delay: var(--transition-delay); | |||
z-index: 5; | |||
} | |||
.tooltiptext { | |||
background-color: var(--color-bg); | |||
} | |||
.tooltiptext2 { | |||
background-color: var(--color-bg-section-light-opaque); | |||
} | |||
.tooltiptable { | |||
position: absolute; | |||
display: block; | |||
z-index: 2; | |||
max-width: 600px; | |||
width: max-content; | |||
padding: 10px; | |||
top: 11pt; | |||
right: -55px; | |||
visibility: hidden; | |||
opacity: 0; | |||
white-space: normal; | |||
text-align: left; | |||
transition: all 0.2s; | |||
border: var(--border-classic); | |||
background-color: var(--color-notice-brown); | |||
} | |||
.tooltip:hover > .tooltiptext, | |||
.tooltip:hover > .tooltiptext2 { | |||
visibility: visible; | |||
opacity: 1; | |||
margin-top: 1.75em; | |||
box-shadow: var(--box-shadow-big); | |||
transition-delay: 0s; | |||
} | |||
.tooltip:hover > .tooltiptable { | |||
visibility: visible; | |||
opacity: 1; | |||
} | } |
Текущая версия от 20:03, 3 ноября 2024
/* Весь CSS будет отсюда будет загружен пользователям темы оформления «Векторная» */ :root { --primary-hue: 210; /* TGUI Elements Colors */ --color-primary: hsl(var(--primary-hue), 37.5%, var(--primary-lightness)); --color-secondary: ~'hsl(var(--primary-hue), 57.5%, 50%)'; --color-red: hsl(0, 70%, 50%); --color-orange: hsl(35, 90%, 50%); --color-yellow: hsl(50, 95%, 50%); --color-olive: hsl(70, 80%, 45%); --color-green: hsl(95, 65%, 40%); --color-teal: hsl(175, 100%, 35%); --color-blue: hsl(205, 70%, 45%); --color-violet: hsl(260, 60%, 50%); --color-purple: hsl(285, 60%, 50%); --color-pink: hsl(325, 75%, 55%); --color-brown: hsl(25, 45%, 45%); --color-grey: hsl(0, 0%, 45%); --color-label: hsl(215, 20%, 55%); --color-black: hsl(0, 0%, 0%); --color-white: hsl(0, 0%, 100%); --color-translucent: hsla(0, 0%, 100%, 0.5); --color-gray: var(--color-grey); /* TGUI Elements Colors (Light or Hover) */ --color-primary-light: hsl(var(--primary-hue), 32.5%, calc(var(--primary-lightness) + 10%)); --color-secondary-light: hsl(var(--primary-hue), 100%, 60%); --color-red-light: hsl(0, 85%, 65%); --color-orange-light: hsl(35, 100%, 60%); --color-yellow-light: hsl(50, 100%, 60%); --color-olive-light: hsl(70, 80%, 55%); --color-green-light: hsl(95, 65%, 50%); --color-teal-light: hsl(175, 100%, 45%); --color-blue-light: hsl(205, 100%, 65%); --color-violet-light: hsl(260, 100%, 65%); --color-purple-light: hsl(285, 100%, 65%); --color-pink-light: hsl(325, 100%, 65%); --color-brown-light: hsl(25, 45%, 55%); --color-grey-light: hsl(0, 0%, 55%); --color-label-light: hsl(215, 30%, 70%); --color-black-light: hsl(0, 0%, 15%); --color-white-light: hsl(0, 0%, 85%); --color-gray-light: var(--color-grey-light); /* TGUI Elements Colors (Darken orFocus/Active) */ --color-primary-dark: hsl(var(--primary-hue), 40%, calc(var(--primary-lightness) - 5%)); --color-secondary-dark: hsl(var(--primary-hue), 70%, 40%); --color-red-dark: hsl(0, 70%, 45%); --color-orange-dark: hsl(35, 90%, 45%); --color-yellow-dark: hsl(50, 95%, 45%); --color-olive-dark: hsl(70, 80%, 40%); --color-green-dark: hsl(95, 65%, 35%); --color-teal-dark: hsl(175, 100%, 30%); --color-blue-dark: hsl(205, 100%, 35%); --color-violet-dark: hsl(260, 60%, 45%); --color-purple-dark: hsl(285, 60%, 45%); --color-pink-dark: hsl(325, 75%, 50%); --color-brown-dark: hsl(25, 45%, 40%); --color-grey-dark: hsl(0, 0%, 40%); --color-label-dark: hsl(215, 20%, 50%); --color-white-dark: hsl(0, 0%, 75%); --color-gray: var(--color-grey); /* Font sizes */ --font-size-x-small: 0.75rem; --font-size-small: 0.875rem; --font-size-medium: 1rem; --font-size-large: 1rem; --font-size-x-large: 1.125rem; --font-size-xx-large: 1.375rem; --font-size-xxx-large: 1.75rem; /* Font weight */ --font-weight-normal: 400; --font-weight-medium: calc( var( --font-weight-normal ) + 100); --font-weight-semibold: calc( var( --font-weight-normal ) + 200); --font-weight-bold: calc( var( --font-weight-normal ) + 300); /* Opacity */ --opacity-icon-base: 0.5; --opacity-icon-base-hover: 0.75; --opacity-icon-base-active: 1; /* Border Radius */ --border-radius-small: 0.275rem; --border-radius-medium: calc( var(--border-radius-small) * 2); --border-radius-large: calc( var(--border-radius-small) * 4); --border-radius-round: 9999px; /* Blur */ --blur-default: saturate(150%) blur(24px); --blur-important: saturate(150%) blur(24px); /* Transition */ --transition-time: 0.2s; --transition-time-fast: calc( var(--transition-time) / 2); --transition-delay: calc( var(--transition-time) * 2); /* z-indexes */ --index-max: 100; --index-high: 10; --index-medium: 5; --index-static: 4; --index-overlay: 3; --index-element: 2; --index-fore: 1; --index-base: 0; --index-low: -1; --index-lower: -10; /* Shortcuts */ --border-classic: 1px solid var(--color-border); --border-classic-input: 1px solid var(--color-border-input); --border-classic-input-focus: 1px solid var(--color-border-input-focus); /* Deprecated. Don't use it! */ --color-bg-section: var(--color-base); --color-bg-section-opaque: var(--color-base-fill); --color-bg-section-light: var(--color-second); --color-bg-section-light-opaque: var(--color-second-fill); /* Base Colors - Light */ --color-bg: hsl(0, 0%, 100%); --color-bg-hover: rgba(0, 0, 0, 0.075); --color-bg-focus: rgba(0, 0, 0, 0.125); --color-base: rgba(204, 201, 198, 0.33); --color-base-blur: var(--color-base-blur-important); --color-base-blur-important: hsla(30, 5%, 92.5%, 0.85); --color-base-fill: hsl(30, 6%, 93%); --color-second: hsla(25, 5%, 60%, 0.15); --color-second-blur: var(--color-second-blur-important); --color-second-blur-important: hsla(25, 5%, 87.75%, 0.85); --color-second-fill: hsl(25, 5%, 88.75%); --color-text: rgba(0, 0, 0, 1); --color-text-darker: rgba(40, 40, 40, 1); --color-text-gray: rgba(80, 80, 80, 0.75); --color-text-translucent: rgba(0, 0, 0, 0.5); --color-text-semi-translucent: rgba(0, 0, 0, 0.75); --color-border: rgba(0, 0, 0, 0.1); --color-border-input: hsl(var(--primary-hue), 100%, calc(var(--primary-lightness) + 10%)); --color-border-input-focus: hsl(var(--primary-hue), 100%, var(--primary-lightness)); /* Scrollbar - Light */ --color-scrollbar-base: hsl(30, 6%, 93%); --color-scrollbar-thumb: hsl(30, 1%, 70%); /* Notices */ --color-notice: hsl(0, 0%, 60%); --color-notice-red: hsl(0, 100%, 70%); --color-notice-green: hsl(110, 50%, 50%); --color-notice-blue: hsl(200, 65%, 50%); --color-notice-brown: hsl(35, 50%, 60%); /* Links */ --color-hyperlink: hsl(220, 100%, 30%); --color-hyperlink-visited: hsl(280, 70%, 30%); --color-hyperlink-new: hsl(0, 100%, 30%); --color-hyperlink-new-visited: hsl(35, 100%, 30%); /* Hover */ --color-hyperlink-hover: hsl(210, 100%, 50%); --color-hyperlink-visited-hover: hsl(290, 70%, 50%); --color-hyperlink-new-hover: hsl(0, 100%, 45%); --color-hyperlink-new-visited-hover: hsl(35, 100%, 45%); /* Links Shadow */ --hyperlink-shadow-new: hsl(0, 100%, 75%) 0px 0px 0.5em; --hyperlink-shadow-new-hover: hsl(0, 100%, 75%) 0px 0px 0.5em; /* Custom HSL */ --primary-lightness: 50%; --dark-lightness: 10%; --light-lightness: 90%; /* Invert */ --invert-icon: invert(0.1); --invert-button-icon: invert(1); --logo-invert: none; /* Shadow */ --box-shadow-small: 0px 15px 20px 0px rgba(0, 0, 0, 0.33); --box-shadow-medium: 0px 25px 30px 5px rgba(0, 0, 0, 0.33); --box-shadow-big: 0px 0px 35px 5px rgba(0, 0, 0, 0.33); /* Template Shadows */ --shadow-template--small: 0px 0px 10px rgba(0, 0, 0, 0.25); --shadow-template--medium: 0px 0px 10px rgba(0, 0, 0, 0.5); --shadow-template--large: 0px 0px 15px rgba(0, 0, 0, 0.5); /* ColorPalette */ /* Gray. Default */ --gray-opaque: hsl(0, 0%, 50%); --gray-primary: hsla(0, 0%, 50%, 0.75); --gray-secondary: hsla(0, 0%, 50%, 0.5); --gray-light: hsla(0, 0%, 50%, 0.25); --gray-transparent: hsla(0, 0%, 50%, 0.1); --grey-opaque: var(--gray-opaque); --grey-primary: var(--gray-primary); --grey-secondary: var(--gray-secondary); --grey-light: var(--gray-light); --grey-transparent: var(--gray-transparent); /* Black */ --black-opaque: hsl(0, 0%, 0%); --black-primary: hsla(0, 0%, 0%, 0.75); --black-secondary: hsla(0, 0%, 0%, 0.5); --black-light: hsla(0, 0%, 0%, 0.25); --black-transparent: hsla(0, 0%, 0%, 0.1); /* Cyan */ --cyan-opaque: hsl(165, 55%, 60%); --cyan-primary: hsla(165, 55%, 60%, 0.75); --cyan-secondary: hsla(165, 55%, 60%, 0.5); --cyan-light: hsla(165, 55%, 60%, 0.25); --cyan-transparent: hsla(165, 55%, 60%, 0.1); /* Aqua blue */ --blue-opaque: hsl(180, 55%, 55%); --blue-primary: hsla(180, 55%, 55%, 0.75); --blue-secondary: hsla(180, 55%, 55%, 0.5); --blue-light: hsla(180, 55%, 55%, 0.25); --blue-transparent: hsla(180, 55%, 55%, 0.1); /* Brown */ --brown-opaque: hsl(35, 70%, 42.5%); --brown-primary: hsla(35, 70%, 42.5%, 0.75); --brown-secondary: hsla(35, 70%, 42.5%, 0.5); --brown-light: hsla(35, 70%, 42.5%, 0.25); --brown-transparent: hsla(35, 70%, 42.5%, 0.1); /* Green */ --green-opaque: hsl(110, 60%, 55%); --green-primary: hsla(110, 60%, 55%, 0.75); --green-secondary: hsla(110, 60%, 55%, 0.5); --green-light: hsla(110, 60%, 55%, 0.25); --green-transparent: hsla(110, 60%, 55%, 0.1); /* Yellow */ --yellow-opaque: hsl(50, 75%, 55%); --yellow-primary: hsla(50, 75%, 55%, 0.75); --yellow-secondary: hsla(50, 75%, 55%, 0.5); --yellow-light: hsla(50, 75%, 55%, 0.25); --yellow-transparent: hsla(50, 75%, 55%, 0.1); /* Light red */ --red-opaque: hsl(0, 75%, 65%); --red-primary: hsla(0, 75%, 65%, 0.75); --red-secondary: hsla(0, 75%, 65%, 0.5); --red-light: hsla(0, 75%, 65%, 0.25); --red-transparent: hsla(0, 75%, 65%, 0.1); /* Pink */ --pink-opaque: hsl(300, 70%, 60%); --pink-primary: hsla(300, 70%, 60%, 0.75); --pink-secondary: hsla(300, 70%, 60%, 0.5); --pink-light: hsla(300, 70%, 60%, 0.25); --pink-transparent: hsla(300, 70%, 60%, 0.1); /* Light green */ --civilian-opaque: hsl(140, 50%, 50%); --civilian-primary: hsla(140, 50%, 50%, 0.75); --civilian-secondary: hsla(140, 50%, 50%, 0.5); --civilian-light: hsla(140, 50%, 50%, 0.25); --civilian-transparent: hsla(140, 50%, 50%, 0.1); /* Blue */ --medical-opaque: hsl(195, 65%, 55%); --medical-primary: hsla(195, 65%, 55%, 0.75); --medical-secondary: hsla(195, 65%, 55%, 0.5); --medical-light: hsla(195, 65%, 55%, 0.25); --medical-transparent: hsla(195, 65%, 55%, 0.1); /* Light brown */ --supply-opaque: hsl(35, 40%, 55%); --supply-primary: hsla(35, 40%, 55%, 0.75); --supply-secondary: hsla(35, 40%, 55%, 0.5); --supply-light: hsla(35, 40%, 55%, 0.25); --supply-transparent: hsla(35, 40%, 55%, 0.1); /* Purple */ --science-opaque: hsl(275, 60%, 65%); --science-primary: hsla(275, 60%, 65%, 0.75); --science-secondary: hsla(275, 60%, 65%, 0.5); --science-light: hsla(275, 60%, 65%, 0.25); --science-transparent: hsla(275, 60%, 65%, 0.1); /* Orange */ --engineer-opaque: hsl(40, 75%, 55%); --engineer-primary: hsla(40, 75%, 55%, 0.75); --engineer-secondary: hsla(40, 75%, 55%, 0.5); --engineer-light: hsla(40, 75%, 55%, 0.25); --engineer-transparent: hsla(40, 75%, 55%, 0.1); /* Red */ --security-opaque: hsl(0, 65%, 55%); --security-primary: hsla(0, 65%, 55%, 0.75); --security-secondary: hsla(0, 65%, 55%, 0.5); --security-light: hsla(0, 65%, 55%, 0.25); --security-transparent: hsla(0, 65%, 55%, 0.1); /* Dark red */ --antag-opaque: hsl(0, 55%, 45%); --antag-primary: hsla(0, 55%, 45%, 0.75); --antag-secondary: hsla(0, 55%, 45%, 0.5); --antag-light: hsla(0, 55%, 45%, 0.25); --antag-transparent: hsla(0, 55%, 45%, 0.1); /* Magenta Pink */ --legal-opaque: hsl(325, 70%, 60%); --legal-primary: hsla(325, 70%, 60%, 0.75); --legal-secondary: hsla(325, 70%, 60%, 0.5); --legal-light: hsla(325, 70%, 60%, 0.25); --legal-transparent: hsla(325, 70%, 60%, 0.1); /* Blue Ribbon */ --command-opaque: hsl(215, 80%, 60%); --command-primary: hsla(215, 80%, 60%, 0.75); --command-secondary: hsla(215, 80%, 60%, 0.5); --command-light: hsla(215, 80%, 60%, 0.25); --command-transparent: hsla(215, 80%, 60%, 0.1); /* Blue Azure */ --synthetic-opaque: hsl(210, 45%, 60%); --synthetic-primary: hsla(210, 45%, 60%, 0.75); --synthetic-secondary: hsla(210, 45%, 60%, 0.5); --synthetic-light: hsla(210, 45%, 60%, 0.25); --synthetic-transparent: hsla(210, 45%, 60%, 0.1); /* Dark Purple */ --special-opaque: hsl(260, 50%, 55%); --special-primary: hsla(260, 50%, 55%, 0.75); --special-secondary: hsla(260, 50%, 55%, 0.5); --special-light: hsla(260, 50%, 55%, 0.25); --special-transparent: hsla(260, 50%, 55%, 0.1); /* Dark Blue */ --centcom-opaque: hsl(210, 60%, 40%); --centcom-primary: hsla(210, 60%, 40%, 0.75); --centcom-secondary: hsla(210, 60%, 40%, 0.5); --centcom-light: hsla(210, 60%, 40%, 0.25); --centcom-transparent: hsla(210, 60%, 40%, 0.1); /* Lava orange */ --lavaland-opaque: hsl(15, 75%, 55%); --lavaland-primary: hsla(15, 75%, 55%, 0.75); --lavaland-secondary: hsla(15, 75%, 55%, 0.5); --lavaland-light: hsla(15, 75%, 55%, 0.25); --lavaland-transparent: hsla(15, 75%, 55%, 0.1); /* Black red */ --cult-opaque: hsl(0, 25%, 35%); --cult-primary: hsla(0, 25%, 35%, 0.75); --cult-secondary: hsla(0, 25%, 35%, 0.5); --cult-light: hsla(0, 25%, 35%, 0.25); --cult-transparent: hsla(0, 25%, 35%, 0.1); /* Dark orange */ --ratvar-opaque: hsl(40, 65%, 25%); --ratvar-primary: hsla(40, 65%, 25%, 0.75); --ratvar-secondary: hsla(40, 65%, 25%, 0.5); --ratvar-light: hsla(40, 65%, 25%, 0.25); --ratvar-transparent: hsla(40, 65%, 25%, 0.1); /* Magic purple */ --wizard-opaque: hsl(260, 90%, 60%); --wizard-primary: hsla(260, 90%, 60%, 0.75); --wizard-secondary: hsla(260, 90%, 60%, 0.5); --wizard-light: hsla(260, 90%, 60%, 0.25); --wizard-transparent: hsla(260, 90%, 60%, 0.1); } /* Simulate link styling for JS only links */ .jslink { color: var(--color-hyperlink); user-select: none; outline: none; } .jslink:hover { text-decoration: underline; cursor: pointer; } .jslink:active { color: var(--color-hyperlink-visited); } /* Горизонтальный список */ #mw-content-text .hlist ul { display: inline; margin: 0; padding: 0; } #mw-content-text .hlist li { display: inline; } #mw-content-text .hlist li:not(:last-child) { padding-right: 0.285em; } #mw-content-text .hlist li:not(:last-child)::after { content: ""; display: inline-block; position: relative; left: 0.285em; bottom: 0.215em; background-color: var(--color-bg); height: 3px; width: 3px; } #mw-content-text .hlist li li:first-child::before { content: "("; font-weight: normal; } #mw-content-text .hlist li li:last-child::after { content: ")"; font-weight: normal; } #mw-content-text .hlist li li li { font-size: x-small; } /* Кнопка "Вверх": [[Файл:Scroll_top.png]] */ #scroll-top { display: none; background: url(https://wiki.ss220.space/images/f/f4/Scroll_top.gif) 0% 0%/38px 38px no-repeat; opacity: 0.3; width: 38px; height: 38px; cursor: pointer; position: fixed; left: calc(11em - 19px); bottom: 30px; z-index: 10; image-rendering: -moz-crisp-edges; image-rendering: pixelated; } #scroll-top:hover { opacity: 0.8; } /* Отступы сворачиваемого меню */ .vector-menu-portal { margin-left: 0.1em; } #mw-panel.collapsible-nav .portal .vector-menu-content { margin-left: 0.5em; } /* Прилипающий заголовок */ .sticky-head th { background-image: none !important; } .sticky-head abbr { writing-mode: vertical-rl; transform: rotate(0.5turn); display: inline-block; } .sticky-head thead { position: sticky; top: 0.1em; } .noautonum .tocnumber { display: none; } /* Всплывающие окна с информацией */ .tooltip { display: inline-flex; position: relative; align-items: baseline; } .tooltiptext, .tooltiptext2 { position: absolute; display: inline; width: 250px; padding: 10px; margin-top: 0.75em; visibility: hidden; opacity: 0; white-space: normal; text-align: left; border: 1px solid var(--color-border); transition: all var(--transition-time); transition-delay: var(--transition-delay); z-index: 5; } .tooltiptext { background-color: var(--color-bg); } .tooltiptext2 { background-color: var(--color-bg-section-light-opaque); } .tooltiptable { position: absolute; display: block; z-index: 2; max-width: 600px; width: max-content; padding: 10px; top: 11pt; right: -55px; visibility: hidden; opacity: 0; white-space: normal; text-align: left; transition: all 0.2s; border: var(--border-classic); background-color: var(--color-notice-brown); } .tooltip:hover > .tooltiptext, .tooltip:hover > .tooltiptext2 { visibility: visible; opacity: 1; margin-top: 1.75em; box-shadow: var(--box-shadow-big); transition-delay: 0s; } .tooltip:hover > .tooltiptable { visibility: visible; opacity: 1; }