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;
|
|
|
|
|
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;
|
2024-09-27 02:53:13 +00:00
|
|
|
--header-card-maxheight: 80vh;
|
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;
|
2024-04-26 21:41:27 +00:00
|
|
|
--toolbar-size: 2.5rem;
|
2021-01-16 21:14:04 +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 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 {
|
2024-10-16 19:04:39 +00:00
|
|
|
--padding-page: ~'calc( @{padding-page} * 1.5 )';
|
2022-11-16 23:45:45 +00:00
|
|
|
}
|
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 {
|
2024-10-16 19:04:39 +00:00
|
|
|
--padding-page: ~'calc( @{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;
|
|
|
|
}
|
|
|
|
}
|