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 {
|
2024-04-25 20:19:53 +00:00
|
|
|
--font-grade: 0;
|
|
|
|
|
2021-01-12 19:31:35 +00:00
|
|
|
/* Foreground Colors */
|
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-16 00:56:59 +00:00
|
|
|
/* Size */
|
|
|
|
--size-icon: @size-icon;
|
|
|
|
|
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
|
|
|
|
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;
|
2024-06-14 16:24:02 +00:00
|
|
|
|
|
|
|
/* Filter */
|
|
|
|
--filter-invert-primary: invert( 1 ) hue-rotate( 180deg );
|
|
|
|
--filter-invert-fixed: invert( 1 ) hue-rotate( 180deg );
|
2024-06-27 22:15:32 +00:00
|
|
|
|
|
|
|
--overflow-gradient-size: 2rem;
|
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;
|
2024-04-26 21:41:27 +00:00
|
|
|
--toolbar-size: 2.5rem;
|
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
|
|
|
}
|
|
|
|
|
2024-04-19 20:26:48 +00:00
|
|
|
:lang( ja ),
|
|
|
|
:lang( ko ),
|
|
|
|
:lang( zh ) {
|
2024-04-19 20:24:41 +00:00
|
|
|
/* CJK languages need increased line-height for readability */
|
|
|
|
--line-height: 1.75;
|
|
|
|
}
|
|
|
|
|
2024-04-25 20:19:53 +00:00
|
|
|
a {
|
2024-06-30 05:04:30 +00:00
|
|
|
--color-link: ~'var( --color-progressive )';
|
|
|
|
--color-link--hover: ~'var( --color-progressive--hover )';
|
|
|
|
--color-link--active: ~'var( --color-progressive--active )';
|
2024-04-25 20:19:53 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 00:48:43 +00:00
|
|
|
.theme-dark-old() {
|
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-12 19:31:35 +00:00
|
|
|
}
|
2024-04-25 00:48:43 +00:00
|
|
|
/**
|
|
|
|
* Dark theme
|
|
|
|
*/
|
|
|
|
:root.skin-theme-clientpref-night {
|
2024-04-25 00:49:51 +00:00
|
|
|
.theme-dark-old();
|
2024-04-25 19:50:36 +00:00
|
|
|
}
|
2024-04-25 00:48:43 +00:00
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
:root.skin-theme-clientpref-os {
|
|
|
|
.theme-dark-old();
|
|
|
|
}
|
|
|
|
}
|
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-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;
|
|
|
|
}
|