2021-01-12 19:31:35 +00:00
|
|
|
/*
|
|
|
|
* Citizen - CSS variables
|
|
|
|
* https://starcitizen.tools
|
|
|
|
*/
|
|
|
|
|
|
|
|
@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
|
|
|
--background-color-destructive: @background-color-destructive;
|
2021-01-14 20:27:06 +00:00
|
|
|
--background-color-warning: @background-color-warning;
|
|
|
|
--background-color-success: @background-color-success;
|
2021-01-12 19:31:35 +00:00
|
|
|
|
|
|
|
/* Foreground Colors */
|
|
|
|
--color-base: @color-base;
|
|
|
|
--color-base--emphasized: @color-base--emphasized;
|
|
|
|
--color-base--subtle: @color-base--subtle;
|
|
|
|
|
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;
|
|
|
|
|
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;
|
|
|
|
|
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 */
|
|
|
|
--font-family-base: @fonts;
|
|
|
|
--font-family-serif: @fonts-serif;
|
|
|
|
--font-family-monospace: @fonts-monospace;
|
2022-10-23 23:40:19 +00:00
|
|
|
|
2022-11-08 18:19:23 +00:00
|
|
|
--font-size-h1: 1.75rem;
|
|
|
|
--font-size-h2: 1.375rem;
|
|
|
|
--font-size-h3: 1.125rem;
|
|
|
|
--font-size-h4: 1rem;
|
|
|
|
--font-size-h5: 1rem;
|
|
|
|
--font-size-h6: 1rem;
|
|
|
|
|
2022-10-28 03:01:23 +00:00
|
|
|
--font-weight-normal: 400;
|
|
|
|
--font-weight-medium: 500;
|
|
|
|
--font-weight-semibold: 600;
|
|
|
|
--font-weight-bold: 700;
|
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;
|
|
|
|
|
|
|
|
--background-color-destructive: @dark-background-color-destructive;
|
2021-01-14 20:27:06 +00:00
|
|
|
--background-color-warning: @dark-background-color-warning;
|
|
|
|
--background-color-success: @dark-background-color-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;
|
|
|
|
|
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
|
|
|
|
2022-11-08 18:19:23 +00:00
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
:root {
|
|
|
|
--font-size-h1: 2rem;
|
|
|
|
--font-size-h2: 1.5rem;
|
|
|
|
--font-size-h3: 1.25rem;
|
|
|
|
--font-size-h4: 1.125rem;
|
|
|
|
}
|
2022-11-16 23:45:45 +00:00
|
|
|
|
|
|
|
html {
|
|
|
|
--padding-page: @padding-page * 1.5;
|
|
|
|
}
|
2022-11-08 18:19:23 +00:00
|
|
|
}
|
|
|
|
|
2022-10-20 01:09:50 +00:00
|
|
|
@media ( min-width: @width-breakpoint-desktop ) {
|
|
|
|
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 )';
|
|
|
|
}
|
|
|
|
}
|