2021-01-12 19:31:35 +00:00
|
|
|
/*
|
|
|
|
* Citizen - CSS variables
|
|
|
|
* https://starcitizen.tools
|
2023-06-08 19:44:22 +00:00
|
|
|
*/
|
2021-01-12 19:31:35 +00:00
|
|
|
|
|
|
|
@import '../../variables.less';
|
|
|
|
|
2021-01-12 23:23:58 +00:00
|
|
|
/**
|
|
|
|
* Base theme
|
|
|
|
*/
|
2021-01-12 19:31:35 +00:00
|
|
|
:root {
|
2021-01-29 16:47:33 +00:00
|
|
|
--background-color-overlay: @background-color-overlay;
|
2021-03-05 18:43:11 +00:00
|
|
|
--background-color-overlay--lighter: @background-color-overlay--lighter;
|
2021-01-29 16:47:33 +00:00
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
--background-color-icon: @background-color-icon;
|
|
|
|
--background-color-icon--hover: @background-color-icon--hover;
|
|
|
|
--background-color-icon--active: @background-color-icon--active;
|
|
|
|
--background-color-quiet--hover: @background-color-quiet--hover;
|
|
|
|
--background-color-quiet--active: @background-color-quiet--active;
|
2021-01-12 20:46:40 +00:00
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
/* Foreground Colors */
|
2021-01-14 17:53:29 +00:00
|
|
|
--color-destructive: @color-destructive;
|
|
|
|
--color-destructive--hover: @color-destructive--hover;
|
|
|
|
--color-destructive--active: @color-destructive--active;
|
|
|
|
|
2021-01-14 20:27:06 +00:00
|
|
|
--color-warning: @color-warning;
|
|
|
|
--color-success: @color-success;
|
2023-06-01 22:48:25 +00:00
|
|
|
|
2023-06-01 22:47:40 +00:00
|
|
|
--color-text-error: @color-text-error;
|
|
|
|
--color-text-warning: @color-text-warning;
|
|
|
|
--color-text-success: @color-text-success;
|
2021-01-14 20:27:06 +00:00
|
|
|
|
2021-03-18 16:59:48 +00:00
|
|
|
--color-link-new: @color-link-new;
|
|
|
|
--color-link-new--hover: @color-link-new--hover;
|
|
|
|
--color-link-new--active: @color-link-new--active;
|
|
|
|
|
2023-05-23 16:27:54 +00:00
|
|
|
--color-syntax-red: @color-syntax-red;
|
|
|
|
--color-syntax-orange: @color-syntax-orange;
|
|
|
|
--color-syntax-yellow: @color-syntax-yellow;
|
|
|
|
--color-syntax-green: @color-syntax-green;
|
|
|
|
--color-syntax-cyan: @color-syntax-cyan;
|
|
|
|
--color-syntax-blue: @color-syntax-blue;
|
|
|
|
--color-syntax-paleblue: @color-syntax-paleblue;
|
|
|
|
--color-syntax-purple: @color-syntax-purple;
|
|
|
|
--color-syntax-brown: @color-syntax-brown;
|
|
|
|
--color-syntax-pink: @color-syntax-pink;
|
|
|
|
--color-syntax-violet: @color-syntax-violet;
|
|
|
|
--color-syntax-grey: @color-syntax-grey;
|
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
/* Opacity */
|
2021-01-14 20:27:06 +00:00
|
|
|
--opacity-base--disabled: @opacity-base--disabled;
|
2021-01-14 17:20:15 +00:00
|
|
|
--opacity-icon-base: @opacity-icon-base;
|
|
|
|
--opacity-icon-base--hover: @opacity-icon-base--hover;
|
|
|
|
--opacity-icon-base--active: @opacity-icon-base--active;
|
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
/* Size */
|
|
|
|
--size-icon: @size-icon;
|
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
/* Border Colors */
|
|
|
|
--border-color-base: @border-color-base;
|
|
|
|
--border-color-base--lighter: @border-color-base--lighter;
|
|
|
|
--border-color-base--darker: @border-color-base--darker;
|
2021-01-14 20:27:06 +00:00
|
|
|
--border-color-input: @border-color-input;
|
|
|
|
--border-color-input--hover: @border-color-input--hover;
|
2021-03-09 18:13:49 +00:00
|
|
|
|
2021-05-27 14:35:21 +00:00
|
|
|
/* Border radius */
|
|
|
|
--border-radius--small: @border-radius--small;
|
|
|
|
--border-radius--medium: @border-radius--medium;
|
|
|
|
--border-radius--large: @border-radius--large;
|
2022-11-15 16:21:04 +00:00
|
|
|
--border-radius--pill: @border-radius--pill;
|
2021-05-27 14:35:21 +00:00
|
|
|
|
2021-03-09 18:13:49 +00:00
|
|
|
/* Fonts */
|
2023-02-16 17:58:51 +00:00
|
|
|
--font-family-base: @font-family-base;
|
|
|
|
--font-family-serif: @font-family-serif;
|
|
|
|
--font-family-monospace: @font-family-monospace;
|
2023-12-15 20:07:43 +00:00
|
|
|
--font-family-citizen-base: 'Roboto';
|
|
|
|
--font-family-citizen-serif: 'Roboto Serif';
|
|
|
|
--font-family-citizen-monospace: 'Roboto Mono';
|
2023-12-13 22:09:57 +00:00
|
|
|
--font-family-language-base: '';
|
|
|
|
--font-family-language-serif: '';
|
|
|
|
--font-family-language-monospace: '';
|
2022-10-23 23:40:19 +00:00
|
|
|
|
2024-02-26 21:54:58 +00:00
|
|
|
--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;
|
2022-11-08 18:19:23 +00:00
|
|
|
|
2022-10-28 03:01:23 +00:00
|
|
|
--font-weight-normal: 400;
|
2023-08-03 21:41:54 +00:00
|
|
|
--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)';
|
2023-07-07 20:36:27 +00:00
|
|
|
|
|
|
|
/* Transitions */
|
|
|
|
--transition-hover: @transition-hover;
|
2021-01-12 19:31:35 +00:00
|
|
|
}
|
|
|
|
|
2021-01-16 21:14:04 +00:00
|
|
|
html {
|
|
|
|
/* Size */
|
2022-09-29 23:12:56 +00:00
|
|
|
--header-size: @header-size;
|
2022-10-20 01:09:50 +00:00
|
|
|
--header-card-maxheight: 70vh;
|
2021-01-16 21:14:04 +00:00
|
|
|
--width-layout: @width-layout;
|
2022-10-01 19:06:57 +00:00
|
|
|
--width-layout--extended: ~'calc( var( --width-layout ) * 1.5 )';
|
2022-10-06 20:31:55 +00:00
|
|
|
--width-toc: @width-toc;
|
2022-10-25 20:42:19 +00:00
|
|
|
--line-height: @line-height-md;
|
|
|
|
--line-height-xs: @line-height-xs;
|
|
|
|
--line-height-sm: @line-height-sm;
|
2021-01-16 21:14:04 +00:00
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
/* Spacing */
|
|
|
|
--space-unit: @space-unit;
|
2022-11-01 00:34:00 +00:00
|
|
|
--space-xxs: ~'calc( 0.25 * var( --space-unit ) )';
|
|
|
|
--space-xs: ~'calc( 0.5 * var( --space-unit ) )';
|
|
|
|
--space-sm: ~'calc( 0.75 * var( --space-unit ) )';
|
2022-09-29 23:12:56 +00:00
|
|
|
--space-md: ~'var( --space-unit )';
|
2022-11-01 00:34:00 +00:00
|
|
|
--space-lg: ~'calc( 1.25 * var( --space-unit ) )';
|
|
|
|
--space-xl: ~'calc( 1.5 * var( --space-unit ) )';
|
|
|
|
--space-xxl: ~'calc( 2 * var( --space-unit ) )';
|
2022-09-29 23:12:56 +00:00
|
|
|
|
2021-03-18 17:39:13 +00:00
|
|
|
/* Margin */
|
|
|
|
--margin-layout: ~'calc( ( 100vw - var( --width-layout ) ) / 2 )';
|
2021-01-16 21:14:04 +00:00
|
|
|
|
2021-03-18 17:39:13 +00:00
|
|
|
/* Padding */
|
|
|
|
--padding-page: @padding-page;
|
2021-02-04 15:38:29 +00:00
|
|
|
}
|
|
|
|
|
2021-01-12 23:23:58 +00:00
|
|
|
/**
|
|
|
|
* Dark theme
|
|
|
|
*/
|
2021-01-12 19:31:35 +00:00
|
|
|
:root.skin-citizen-dark {
|
|
|
|
--background-color-icon: @dark-background-color-icon;
|
|
|
|
--background-color-icon--hover: @dark-background-color-icon--hover;
|
|
|
|
--background-color-icon--active: @dark-background-color-icon--active;
|
|
|
|
--background-color-quiet--hover: @dark-background-color-quiet--hover;
|
|
|
|
--background-color-quiet--active: @dark-background-color-quiet--active;
|
|
|
|
|
2023-06-01 22:47:40 +00:00
|
|
|
--color-text-error: @dark-color-text-error;
|
|
|
|
--color-text-warning: @dark-color-text-warning;
|
|
|
|
--color-text-success: @dark-color-text-success;
|
2021-01-12 19:31:35 +00:00
|
|
|
|
2021-03-18 16:59:48 +00:00
|
|
|
--color-link-new: @dark-color-link-new;
|
|
|
|
--color-link-new--hover: @dark-color-link-new--hover;
|
|
|
|
--color-link-new--active: @dark-color-link-new--active;
|
|
|
|
|
2023-05-23 16:27:54 +00:00
|
|
|
--color-syntax-red: @color-syntax-red-dark;
|
|
|
|
--color-syntax-orange: @color-syntax-orange-dark;
|
|
|
|
--color-syntax-yellow: @color-syntax-yellow-dark;
|
|
|
|
--color-syntax-green: @color-syntax-green-dark;
|
|
|
|
--color-syntax-cyan: @color-syntax-cyan-dark;
|
|
|
|
--color-syntax-blue: @color-syntax-blue-dark;
|
|
|
|
--color-syntax-paleblue: @color-syntax-paleblue-dark;
|
|
|
|
--color-syntax-purple: @color-syntax-purple-dark;
|
|
|
|
--color-syntax-brown: @color-syntax-brown-dark;
|
|
|
|
--color-syntax-pink: @color-syntax-pink-dark;
|
|
|
|
--color-syntax-violet: @color-syntax-violet-dark;
|
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
/* Opacity */
|
|
|
|
--opacity-icon-base--active: @dark-opacity-icon-base--active;
|
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
/* Border Colors */
|
|
|
|
--border-color-base: @dark-border-color-base;
|
|
|
|
--border-color-base--lighter: @dark-border-color-base--lighter;
|
|
|
|
--border-color-base--darker: @dark-border-color-base--darker;
|
2021-01-14 20:27:06 +00:00
|
|
|
--border-color-input: @dark-border-color-input;
|
|
|
|
--border-color-input--hover: @dark-border-color-input--hover;
|
2021-01-12 19:31:35 +00:00
|
|
|
}
|
2022-10-20 01:09:50 +00:00
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-tablet ) {
|
2022-11-08 18:19:23 +00:00
|
|
|
:root {
|
2024-02-26 22:14:19 +00:00
|
|
|
--font-size-x-small: 0.8125rem;
|
2024-02-26 21:54:58 +00:00
|
|
|
--font-size-large: 1.125rem;
|
|
|
|
--font-size-x-large: 1.25rem;
|
|
|
|
--font-size-xx-large: 1.5rem;
|
|
|
|
--font-size-xxx-large: 2rem;
|
2022-11-08 18:19:23 +00:00
|
|
|
}
|
2022-11-16 23:45:45 +00:00
|
|
|
|
|
|
|
html {
|
|
|
|
--padding-page: @padding-page * 1.5;
|
|
|
|
}
|
2022-11-08 18:19:23 +00:00
|
|
|
}
|
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2022-10-20 01:09:50 +00:00
|
|
|
html {
|
2022-11-16 23:45:45 +00:00
|
|
|
--padding-page: @padding-page * 2;
|
2022-10-20 01:09:50 +00:00
|
|
|
--header-card-maxheight: ~'calc( 100vh - var( --space-sm ) * 2 )';
|
|
|
|
}
|
|
|
|
}
|
2023-07-07 21:02:27 +00:00
|
|
|
|
2023-08-03 21:41:54 +00:00
|
|
|
@media ( prefers-contrast: more ) {
|
|
|
|
:root {
|
|
|
|
--font-weight-normal: 500;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-contrast: less ) {
|
|
|
|
:root {
|
|
|
|
--font-weight-normal: 300;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-07 21:02:27 +00:00
|
|
|
.citizen-animations-ready {
|
|
|
|
/* Only apply transition when page is ready for it */
|
|
|
|
--transition-menu: @transition-menu;
|
|
|
|
}
|