2019-08-15 17:40:13 +00:00
|
|
|
/*
|
2021-01-12 19:31:35 +00:00
|
|
|
* Citizen - LESS variables
|
2019-08-15 17:40:13 +00:00
|
|
|
* https://starcitizen.tools
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Import MediaWiki-supplied mixins
|
2019-12-26 10:21:50 +00:00
|
|
|
@import 'mediawiki.mixins';
|
2019-08-15 17:40:13 +00:00
|
|
|
|
2021-01-18 20:18:39 +00:00
|
|
|
/* == Breakpoints == */
|
|
|
|
/**
|
|
|
|
* Minimum available screen width at which a device can be considered a mobile device
|
|
|
|
* Many older feature phones have screens smaller than this value.
|
|
|
|
*/
|
|
|
|
@width-breakpoint-mobile: 320px;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Minimum available screen width at which a device can be considered a tablet
|
|
|
|
* The number is currently based on the device width of a Samsung Galaxy S5 mini and is low
|
|
|
|
* enough to cover iPad (768px).
|
|
|
|
*/
|
|
|
|
@width-breakpoint-tablet: 720px;
|
|
|
|
|
|
|
|
/* Minimum available screen width at which a device can be considered a desktop. */
|
|
|
|
@width-breakpoint-desktop: 1000px;
|
|
|
|
|
|
|
|
/* Wider desktop breakpoint */
|
|
|
|
@width-breakpoint-desktop-wide: 1300px;
|
|
|
|
|
|
|
|
/* Extra wide desktop breakpoint */
|
|
|
|
@width-breakpoint-desktop-extrawide: 2000px;
|
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
/* == Spacing == */
|
|
|
|
@space-unit: 1rem;
|
2022-10-25 20:42:19 +00:00
|
|
|
@line-height-xs: 1.25;
|
|
|
|
@line-height-sm: 1.375;
|
|
|
|
@line-height-md: 1.6;
|
2022-09-29 23:12:56 +00:00
|
|
|
|
2022-10-23 23:40:19 +00:00
|
|
|
/* == Fonts == */
|
|
|
|
/**
|
2023-02-16 17:58:51 +00:00
|
|
|
* Citizen sans-serif fonts
|
2022-10-23 23:40:19 +00:00
|
|
|
*/
|
2023-02-16 17:58:51 +00:00
|
|
|
@font-family-base: 'Roboto', 'Noto Sans CJK', system-ui, -apple-system, sans-serif;
|
2022-10-23 23:40:19 +00:00
|
|
|
/**
|
2023-02-16 17:58:51 +00:00
|
|
|
* Citizen serif fonts
|
|
|
|
*/
|
|
|
|
@font-family-serif: 'Roboto Serif', 'Noto Serif CJK', 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif;
|
|
|
|
/**
|
|
|
|
* Citizen monospace fonts
|
2022-10-23 23:40:19 +00:00
|
|
|
*/
|
2023-02-16 17:58:51 +00:00
|
|
|
@font-family-monospace: 'Roboto Mono', '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 06:13:22 +00:00
|
|
|
@diff-hoverstate: 2;
|
|
|
|
|
2021-07-27 19:49:12 +00:00
|
|
|
@color-primary__h: 220;
|
|
|
|
@color-primary__s: 60%;
|
|
|
|
@color-primary__l: 50%;
|
|
|
|
|
2021-07-27 06:13:22 +00:00
|
|
|
@color-surface-0: ~'hsl( 0, 0%, 100% )';
|
|
|
|
@color-surface-1: ~'hsl( 0, 0%, 100% )';
|
|
|
|
@color-surface-2: ~'hsl( 210, 17%, 98% )';
|
|
|
|
@color-surface-3: ~'hsl( 220, 17%, 93% )';
|
|
|
|
@color-surface-4: ~'hsl( 213, 9%, 80% )';
|
|
|
|
|
|
|
|
@color-surface-2--hover: ~'hsl( 210, 17%, 'unit( 98 + @diff-hoverstate, % )~' )';
|
|
|
|
@color-surface-2--active: ~'hsl( 210, 17%, 'unit( 98 - @diff-hoverstate, % )~' )';
|
2021-07-25 23:16:05 +00:00
|
|
|
|
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-01-12 19:31:35 +00:00
|
|
|
/**
|
|
|
|
* Based WikimediaUI (`wmui`) color palette
|
|
|
|
* See https://design.wikimedia.org/style-guide/visual-style_colors.html
|
|
|
|
* Don't use those variables directly, instead define your vars
|
|
|
|
* referring to them as applied further below.
|
|
|
|
*/
|
|
|
|
|
2022-12-14 17:59:38 +00:00
|
|
|
// @color-base0: #000; // = HSB 0°, 0%, 0%
|
2021-01-12 19:31:35 +00:00
|
|
|
@color-base10: #202122; // = HSB 210°, 6%, 13%
|
|
|
|
@color-base20: #54595d; // = HSB 207°, 10%, 36%; WCAG 2.0 level AAA 7.09:1 contrast ratio on `#fff`
|
|
|
|
@color-base30: #72777d; // = HSB 210°, 9%, 49%; WCAG 2.0 level AA at 4.52:1 contrast ratio on `#fff`
|
|
|
|
@color-base50: #a2a9b1; // = HSB 212°, 8%, 69%
|
|
|
|
@color-base70: #c8ccd1; // = HSB 213°, 4%, 82%
|
|
|
|
@color-base80: #eaecf0; // = HSB 220°, 3%, 94%
|
|
|
|
@color-base90: #f8f9fa; // = HSB 210°, 1%, 98%
|
|
|
|
@color-base100: #fff; // = HSB 0°, 0%, 100%
|
|
|
|
|
|
|
|
@color-accent30: #2a4b8d; // = HSB 220°, 70%, 55%
|
|
|
|
@color-accent50: #36c; // = HSB 220°, 75%, 80%
|
|
|
|
@color-accent90: #eaf3ff; // = HSB 214°, 8%, 100%
|
|
|
|
|
|
|
|
@color-red30: #b32424; // = HSB 360°, 80%, 70%
|
|
|
|
@color-red50: #d33; // = HSB 360°, 77%, 87%
|
|
|
|
@color-red90: #fee7e6; // = HSB 3°, 9%, 100%
|
|
|
|
|
|
|
|
@color-yellow30: #ac6600; // = HSB 36°, 100%, 67%
|
|
|
|
@color-yellow50: #fc3; // = HSB 45°, 80%, 100%
|
|
|
|
@color-yellow90: #fef6e7; // = HSB 39°, 9%, 100%
|
|
|
|
|
|
|
|
@color-green30: #14866d; // = HSB 167°, 85%, 53%
|
|
|
|
@color-green50: #00af89; // = HSB 167°, 100%, 69%
|
|
|
|
@color-green90: #d5fdf4; // = HSB 166°, 16%, 99%
|
|
|
|
|
|
|
|
@color-accent50--lighten: #5b84d6;
|
|
|
|
@color-red50--lighten: #e35b5b;
|
2021-01-12 22:13:00 +00:00
|
|
|
|
|
|
|
@color-accent-30--darken: #26437f;
|
|
|
|
|
2021-01-29 16:47:33 +00:00
|
|
|
@background-color-overlay: rgba( 255, 255, 255, 0.95 ); //base100 95% opacity
|
2021-03-09 17:07:39 +00:00
|
|
|
@background-color-overlay--lighter: rgba( 255, 255, 255, 0.6 );
|
2021-01-29 16:47:33 +00:00
|
|
|
|
2021-08-11 03:55:54 +00:00
|
|
|
@background-color-icon: rgba( 0, 0, 0, 0.6 );
|
|
|
|
@background-color-icon--hover: rgba( 0, 0, 0, 0.8 );
|
|
|
|
@background-color-icon--active: rgba( 0, 0, 0, 1 );
|
2021-01-12 19:31:35 +00:00
|
|
|
@background-color-quiet: transparent;
|
2021-05-04 17:27:47 +00:00
|
|
|
@background-color-quiet--hover: rgba( 0, 0, 0, 0.07 );
|
2021-05-11 16:08:27 +00:00
|
|
|
@background-color-quiet--active: rgba( 0, 0, 0, 0.09 );
|
2021-01-12 19:31:35 +00:00
|
|
|
|
2021-01-12 22:03:52 +00:00
|
|
|
@background-color-primary--hover: @color-accent90;
|
|
|
|
@background-color-primary--active: rgba( 41, 98, 204, 0.1 );
|
2021-01-12 20:46:40 +00:00
|
|
|
@background-color-destructive: @color-red90;
|
2021-01-14 20:27:06 +00:00
|
|
|
@background-color-warning: @color-yellow90;
|
|
|
|
@background-color-success: @color-green90;
|
2021-01-12 19:31:35 +00:00
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/* Foreground colors */
|
2021-01-12 19:31:35 +00:00
|
|
|
@color-base: @color-base20;
|
|
|
|
@color-base--emphasized: @color-base10;
|
|
|
|
@color-base--subtle: @color-base30;
|
|
|
|
|
2021-01-12 20:13:24 +00:00
|
|
|
@color-primary: @color-accent50;
|
|
|
|
@color-primary--hover: @color-accent50--lighten;
|
|
|
|
@color-primary--active: @color-accent30;
|
|
|
|
|
2021-01-14 17:53:29 +00:00
|
|
|
@color-destructive: @color-red50;
|
|
|
|
@color-destructive--hover: @color-red50--lighten;
|
|
|
|
@color-destructive--active: @color-red30;
|
|
|
|
|
2021-01-14 20:27:06 +00:00
|
|
|
@color-warning: @color-yellow50;
|
|
|
|
@color-success: @color-green50;
|
|
|
|
|
2021-03-18 16:59:48 +00:00
|
|
|
@color-link: @color-accent50;
|
|
|
|
@color-link--hover: @color-accent50--lighten;
|
|
|
|
@color-link--active: @color-accent30;
|
|
|
|
@color-link-new: @color-red50;
|
|
|
|
@color-link-new--hover: @color-red50--lighten;
|
|
|
|
@color-link-new--active: @color-red30;
|
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
/* Opacity */
|
2021-08-11 03:55:54 +00:00
|
|
|
@opacity-base--disabled: 0.3;
|
|
|
|
@opacity-icon-base: 0.6;
|
|
|
|
@opacity-icon-base--hover: 0.8;
|
|
|
|
@opacity-icon-base--active: 1;
|
2021-01-14 17:20:15 +00:00
|
|
|
|
2022-05-23 19:11:41 +00:00
|
|
|
/* Z-Index */
|
|
|
|
// @z-index-base: 0; - WMUI
|
|
|
|
@z-index-page-header: 11;
|
|
|
|
@z-index-site-header: 91;
|
|
|
|
@z-index-overlay: 101; // WMUI
|
|
|
|
|
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-01-16 00:56:59 +00:00
|
|
|
/* Border */
|
2021-04-11 22:24:48 +00:00
|
|
|
/* Border colors */
|
2021-01-12 19:31:35 +00:00
|
|
|
@border-color-base: rgba( 0, 0, 0, 0.05 );
|
|
|
|
@border-color-base--lighter: rgba( 0, 0, 0, 0.02 );
|
|
|
|
@border-color-base--darker: rgba( 0, 0, 0, 0.08 );
|
2021-01-15 00:09:15 +00:00
|
|
|
// To blend better with OOUI styles
|
|
|
|
@border-color-input: @border-color-base;
|
2021-01-14 21:49:41 +00:00
|
|
|
@border-color-input--hover: rgba( 0, 0, 0, 0.4 );
|
2021-01-12 19:31:35 +00:00
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/* Border radius */
|
2021-05-27 14:35:21 +00:00
|
|
|
@border-radius--small: 4px;
|
|
|
|
@border-radius--medium: @border-radius--small * 2;
|
|
|
|
@border-radius--large: @border-radius--small * 3;
|
2022-11-15 16:21:04 +00:00
|
|
|
@border-radius--pill: 9999px;
|
|
|
|
@border-radius--circle: 100%;
|
2021-04-11 22:24:48 +00:00
|
|
|
|
|
|
|
/* Transitions */
|
2022-05-01 23:25:32 +00:00
|
|
|
@transition-timing-fast: 100ms;
|
|
|
|
@transition-timing-slow: 250ms;
|
|
|
|
|
|
|
|
@transition-color: color @transition-timing-fast ease;
|
|
|
|
@transition-background: background @transition-timing-fast ease;
|
|
|
|
@transition-border-color: border-color @transition-timing-fast ease;
|
|
|
|
@transition-opacity: opacity @transition-timing-fast ease;
|
|
|
|
|
|
|
|
@transition-transform: transform @transition-timing-slow cubic-bezier(0.215,0.61,0.355,1);
|
2022-05-02 00:17:06 +00:00
|
|
|
// Only used with transform
|
|
|
|
@transition-opacity--transform: opacity @transition-timing-slow ease;
|
2022-05-02 01:46:30 +00:00
|
|
|
// Execute after every transition is done
|
|
|
|
// Need to use with transition-delay: 0ms
|
|
|
|
@transition-visibility--transform: visibility 0ms linear @transition-timing-slow;
|
2022-10-19 19:24:02 +00:00
|
|
|
@transition-height: height @transition-timing-slow ease;
|
2021-04-11 22:24:48 +00:00
|
|
|
|
2022-12-01 02:42:28 +00:00
|
|
|
/* Shadow */
|
2022-04-24 19:24:09 +00:00
|
|
|
/* Box shadow */
|
|
|
|
// Based on https://web.dev/building-a-color-scheme/#rad-shadow
|
2022-12-01 02:42:28 +00:00
|
|
|
// TODO: Refactor this to support filter drop-shadow
|
2022-04-24 19:34:43 +00:00
|
|
|
@box-shadow-card: 0 2.8px 2.2px -4px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .03))', 0 6.7px 5.3px -4px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .01))', 0 12.5px 10px -4px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .02))', 0 22.3px 17.9px -4px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .02))', 0 41.8px 33.4px -4px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .03))', 0 100px 80px -4px ~'hsl(var(--surface-shadow) / var(--shadow-strength))';
|
|
|
|
@box-shadow-dialog: 0 2.8px 2.2px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .03))', 0 6.7px 5.3px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .01))', 0 12.5px 10px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .02))', 0 22.3px 17.9px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .02))', 0 41.8px 33.4px ~'hsl(var(--surface-shadow) / calc(var(--shadow-strength) + .03))', 0 100px 80px ~'hsl(var(--surface-shadow) / var(--shadow-strength))';
|
2022-04-24 19:24:09 +00:00
|
|
|
|
2021-08-11 03:55:54 +00:00
|
|
|
@dark-background-color-icon: rgba( 255, 255, 255, 0.6 );
|
|
|
|
@dark-background-color-icon--hover: rgba( 255, 255, 255, 0.8 );
|
|
|
|
@dark-background-color-icon--active: rgba( 255, 255, 255, 0.4 );
|
2021-01-12 19:31:35 +00:00
|
|
|
// @dark-background-color-quiet: transparent;
|
2021-05-04 17:27:47 +00:00
|
|
|
@dark-background-color-quiet--hover: rgba( 255, 255, 255, 0.07 );
|
2021-05-11 16:08:27 +00:00
|
|
|
@dark-background-color-quiet--active: rgba( 255, 255, 255, 0.03 );
|
2021-01-12 19:31:35 +00:00
|
|
|
|
2021-01-12 22:03:52 +00:00
|
|
|
@dark-background-color-primary--hover: @color-accent30;
|
2021-01-12 22:13:00 +00:00
|
|
|
@dark-background-color-primary--active: @color-accent-30--darken;
|
2021-01-12 22:03:52 +00:00
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
@dark-background-color-destructive: @color-red30;
|
2021-01-14 20:27:06 +00:00
|
|
|
@dark-background-color-warning: @color-yellow30;
|
|
|
|
@dark-background-color-success: @color-green30;
|
2021-01-12 19:31:35 +00:00
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/* Foreground colors */
|
2021-03-18 16:59:48 +00:00
|
|
|
@dark-color-link: @color-accent50--lighten;
|
|
|
|
@dark-color-link--hover: @color-accent90;
|
|
|
|
@dark-color-link--active: @color-accent30;
|
|
|
|
@dark-color-link-new: @color-red50--lighten;
|
|
|
|
@dark-color-link-new--hover: @color-red90;
|
|
|
|
@dark-color-link-new--active: @color-red30;
|
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
/* Opacity */
|
|
|
|
// @dark-opacity-icon-base: 0.4;
|
|
|
|
// @dark-opacity-icon-base--hover: 0.6;
|
2021-08-11 03:55:54 +00:00
|
|
|
@dark-opacity-icon-base--active: 0.4;
|
2021-01-14 17:20:15 +00:00
|
|
|
|
2021-04-11 22:24:48 +00:00
|
|
|
/* Border colors */
|
2021-01-12 19:31:35 +00:00
|
|
|
@dark-border-color-base: rgba( 255, 255, 255, 0.05 );
|
|
|
|
@dark-border-color-base--lighter: rgba( 255, 255, 255, 0.02 );
|
|
|
|
@dark-border-color-base--darker: rgba( 255, 255, 255, 0.08 );
|
2021-01-15 00:09:15 +00:00
|
|
|
@dark-border-color-input: @dark-border-color-base;
|
2021-01-14 20:27:06 +00:00
|
|
|
@dark-border-color-input--hover: rgba( 255, 255, 255, 0.5 );
|
2021-01-12 19:31:35 +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
|
|
|
*/
|
2019-08-15 17:40:13 +00:00
|
|
|
|
2022-12-14 19:06:06 +00:00
|
|
|
@dark-color-base: rgba( 255, 255, 255, 0.6 );
|
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;
|