2019-08-15 17:40:13 +00:00
|
|
|
/*
|
2023-11-16 22:55:23 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* All LESS variables used in the skin must be defined here
|
2024-10-23 21:54:26 +00:00
|
|
|
* Use CSS variables from tokens.less is preferrable
|
2023-11-16 22:55:23 +00:00
|
|
|
* Only import this stylesheet when LESS variables is nessecary
|
|
|
|
*
|
|
|
|
* Related files:
|
2024-10-23 21:54:26 +00:00
|
|
|
* - Citizen tokens: skins.citizen.styles/tokens.less
|
2023-11-16 22:55:23 +00:00
|
|
|
* - Override MW skin default variables: mediawiki.less/mediawiki.skin.variables.less
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Imports */
|
2023-11-16 22:56:34 +00:00
|
|
|
/*
|
2023-11-16 22:55:23 +00:00
|
|
|
* MediaWiki mixins
|
2023-11-16 23:23:24 +00:00
|
|
|
* @see https://github.com/wikimedia/mediawiki/blob/master/resources/src/mediawiki.less/mediawiki.mixins.less
|
2023-06-08 19:44:22 +00:00
|
|
|
*/
|
2019-12-26 10:21:50 +00:00
|
|
|
@import 'mediawiki.mixins';
|
2023-11-16 22:56:34 +00:00
|
|
|
/*
|
2023-11-16 22:55:23 +00:00
|
|
|
* MediaWiki skin variables
|
2023-11-16 23:23:24 +00:00
|
|
|
* mediawiki.less/mediawiki.skin.variables.less
|
|
|
|
* @see https://github.com/wikimedia/mediawiki/blob/master/resources/src/mediawiki.less/mediawiki.skin.defaults.less
|
2021-01-18 20:18:39 +00:00
|
|
|
*/
|
2023-11-16 22:55:23 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2021-01-18 20:18:39 +00:00
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
/* == Spacing == */
|
|
|
|
@space-unit: 1rem;
|
|
|
|
|
2022-10-23 23:40:19 +00:00
|
|
|
/* == Fonts == */
|
2023-12-13 22:09:57 +00:00
|
|
|
/*
|
2023-12-15 20:07:43 +00:00
|
|
|
* --font-family-citizen-base-xx are default fonts prioritized by Citizen.
|
2023-12-13 22:09:57 +00:00
|
|
|
* --font-family-language-xx are language-specific fonts from language RL module.
|
|
|
|
* It is empty by default but populated by Citizen language modules such as the CJK one.
|
2023-02-16 17:58:51 +00:00
|
|
|
*/
|
2023-12-13 22:09:57 +00:00
|
|
|
// Citizen sans-serif fonts
|
2023-12-15 20:07:43 +00:00
|
|
|
@font-family-base: var( --font-family-citizen-base ), var( --font-family-language-base ), system-ui, -apple-system, sans-serif;
|
2023-12-13 22:09:57 +00:00
|
|
|
// Citizen serif fonts
|
2023-12-15 20:07:43 +00:00
|
|
|
@font-family-serif: var( --font-family-citizen-serif ), var( --font-family-language-serif ), 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif;
|
2023-12-13 22:09:57 +00:00
|
|
|
// Citizen monospace fonts
|
2023-12-15 20:07:43 +00:00
|
|
|
@font-family-monospace: var( --font-family-citizen-monospace ), var( --font-family-language-monospace ), 'Menlo', 'Consolas', 'Liberation Mono', 'Fira Code', 'Courier New', monospace;
|
2022-10-23 23:40:19 +00:00
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
/* == Colors == */
|
2021-07-25 23:16:05 +00:00
|
|
|
/* Base theme */
|
2021-07-27 19:49:12 +00:00
|
|
|
@color-primary__h: 220;
|
|
|
|
@color-primary__s: 60%;
|
|
|
|
@color-primary__l: 50%;
|
|
|
|
|
2021-08-26 16:11:52 +00:00
|
|
|
/*
|
|
|
|
* Syntax highlight colors
|
|
|
|
* Based on Material Theme Lighter
|
|
|
|
* https://material-theme.site
|
|
|
|
*/
|
|
|
|
@color-syntax-red: #e53935;
|
|
|
|
@color-syntax-orange: #f76d47;
|
|
|
|
@color-syntax-yellow: #e2931d;
|
|
|
|
@color-syntax-green: #91b859;
|
|
|
|
@color-syntax-cyan: #39adb5;
|
|
|
|
@color-syntax-blue: #6182b8;
|
|
|
|
@color-syntax-paleblue: #8796b0;
|
|
|
|
@color-syntax-purple: #9c3eda;
|
|
|
|
@color-syntax-brown: #916b53;
|
|
|
|
@color-syntax-pink: #ff5370;
|
|
|
|
@color-syntax-violet: #945eb8;
|
|
|
|
@color-syntax-grey: #90a4ae;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Syntax highlight colors
|
|
|
|
* Based on Material Theme Palenight
|
|
|
|
* https://material-theme.site
|
|
|
|
*/
|
|
|
|
@color-syntax-red-dark: #f07178;
|
|
|
|
@color-syntax-orange-dark: #f78c6c;
|
|
|
|
@color-syntax-yellow-dark: #ffcb6b;
|
|
|
|
@color-syntax-green-dark: #c3e88d;
|
|
|
|
@color-syntax-cyan-dark: #89ddff;
|
|
|
|
@color-syntax-blue-dark: #82aaff;
|
|
|
|
@color-syntax-paleblue-dark: #b2ccd6;
|
|
|
|
@color-syntax-purple-dark: #c792ea;
|
|
|
|
@color-syntax-brown-dark: #916b53;
|
|
|
|
@color-syntax-pink-dark: #ff9cac;
|
|
|
|
@color-syntax-violet-dark: #bb80b3;
|
|
|
|
@color-syntax-grey-dark: #676E95;
|
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/* == Box model properties == */
|
2021-01-16 00:56:59 +00:00
|
|
|
/* `--*size` variables are used for `*width` & `*height` properties. */
|
2022-05-11 23:04:52 +00:00
|
|
|
@size-icon: 1.25rem;
|
2021-05-04 17:27:47 +00:00
|
|
|
// Not in the header section it is also used outside of header
|
2022-09-29 23:12:56 +00:00
|
|
|
@header-size: 3.5rem;
|
2022-12-14 20:05:08 +00:00
|
|
|
// 67.5rem at 16px font size
|
|
|
|
// We use px because it would be frustrating if max-width changes with font size
|
|
|
|
@width-layout: 1080px;
|
2022-10-06 20:31:55 +00:00
|
|
|
// TODO: Revise this number, fixed value isn't great but we need it for b
|
|
|
|
@width-toc: 240px;
|
2021-01-16 00:56:59 +00:00
|
|
|
|
|
|
|
/* Paddings */
|
2022-11-16 23:45:45 +00:00
|
|
|
@padding-page: 16px;
|
2021-08-05 15:24:52 +00:00
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/* Transitions */
|
2024-10-19 04:48:20 +00:00
|
|
|
@transition-hover: var( --transition-duration-base ) var( --transition-timing-function-ease );
|
|
|
|
@transition-menu: var( --transition-duration-medium ) var( --transition-timing-function-ease-out );
|
2021-04-11 22:24:48 +00:00
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
/*
|
|
|
|
* Framework
|
|
|
|
*/
|
|
|
|
@html-font-size: 100%;
|
2022-05-10 00:23:42 +00:00
|
|
|
@icon-size: 1.125rem; // 18px, TODO: Replace this var
|
2019-08-15 17:40:13 +00:00
|
|
|
@icon-box-size: @icon-size + @icon-margin * 2;
|
|
|
|
@icon-margin: 3px;
|
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/*
|
|
|
|
* Legacy colors
|
2022-05-01 23:09:00 +00:00
|
|
|
*
|
|
|
|
* They are used by the SMW skinstyles and a few MW UI stuff.
|
|
|
|
* Those styles should be updated to the new standard.
|
|
|
|
* After that we can remove all theses LESS variables.
|
2021-04-11 22:24:48 +00:00
|
|
|
*/
|
2024-07-01 03:50:21 +00:00
|
|
|
@color-base: #54595d;
|
|
|
|
@color-base--emphasized: #202122;
|
|
|
|
@color-base--subtle: #72777d;
|
|
|
|
|
|
|
|
@color-primary: #36c;
|
|
|
|
@color-primary--hover: #5b84d6;
|
|
|
|
@color-primary--active: #2a4b8d;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
2019-12-02 21:05:23 +00:00
|
|
|
@dark-bg-10: #1d2129;
|
|
|
|
@dark-bg-20: #22262d;
|
|
|
|
@dark-bg-30: #24272f;
|
|
|
|
@dark-bg-40: #2b2f36;
|
|
|
|
@dark-bg-50: #33363d;
|
|
|
|
@dark-bg-60: #34383f;
|
2023-06-08 19:44:22 +00:00
|
|
|
|
|
|
|
/*
|
2023-06-08 19:45:07 +00:00
|
|
|
* Used by Math and WikiHiero for recolor
|
2023-06-08 19:44:22 +00:00
|
|
|
* TODO: Figure out a way to do recolor with CSS variable
|
|
|
|
* e.g. If the primary color is changed on wiki, it won't be reflected here.
|
|
|
|
*/
|
|
|
|
@dark-color-base: hsl( @color-primary__h, 25%, 80% );
|
|
|
|
@dark-color-base--emphasized: hsl( @color-primary__h, 80%, 95% );
|
|
|
|
@dark-color-base--subtle: hsl( @color-primary__h, 25%, 65% );
|