2024-04-25 20:19:53 +00:00
|
|
|
/**
|
|
|
|
* Dark theme mixin
|
|
|
|
* Dark theme needs a mixin because it is being used by the auto theme as well
|
|
|
|
*/
|
2024-05-07 22:58:15 +00:00
|
|
|
.theme-dark() {
|
2024-04-25 20:19:53 +00:00
|
|
|
--color-primary__l: 60%;
|
|
|
|
|
2024-05-28 17:58:43 +00:00
|
|
|
--color-surface-0__s: 20%;
|
2024-10-06 02:39:07 +00:00
|
|
|
--color-surface-0__l: 6%;
|
2024-05-28 17:58:43 +00:00
|
|
|
|
|
|
|
--color-surface-1__s: 25%;
|
2024-10-06 02:39:07 +00:00
|
|
|
--color-surface-1__l: 8%;
|
2024-05-28 17:58:43 +00:00
|
|
|
|
|
|
|
--color-surface-2__s: 25%;
|
2024-10-06 02:39:07 +00:00
|
|
|
--color-surface-2__l: 11%;
|
2024-05-28 17:58:43 +00:00
|
|
|
|
2024-10-28 20:31:48 +00:00
|
|
|
--color-surface-3__s: 28%;
|
2024-10-06 02:39:07 +00:00
|
|
|
--color-surface-3__l: 16%;
|
2024-05-28 17:58:43 +00:00
|
|
|
|
2024-10-28 20:31:48 +00:00
|
|
|
--color-surface-4__s: 31%;
|
2024-10-06 02:39:07 +00:00
|
|
|
--color-surface-4__l: 21%;
|
2024-05-28 17:58:43 +00:00
|
|
|
|
2024-10-22 21:39:01 +00:00
|
|
|
--color-destructive__l: 50%;
|
2024-10-22 21:35:28 +00:00
|
|
|
--color-success__l: 35%;
|
|
|
|
--color-warning__l: 60%;
|
|
|
|
--background-color-subtle__s: 85%;
|
|
|
|
--background-color-subtle__l: 10%;
|
|
|
|
|
2024-06-30 05:04:30 +00:00
|
|
|
--color-emphasized: ~'hsl( var( --color-primary__h ), 80%, 95% )';
|
2024-10-17 06:40:04 +00:00
|
|
|
--color-base: ~'hsl( var( --color-primary__h ), 45%, 80% )';
|
|
|
|
--color-subtle: ~'hsl( var( --color-primary__h ), 35%, 65% )';
|
2024-04-25 20:19:53 +00:00
|
|
|
|
2024-10-23 21:40:13 +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;
|
|
|
|
|
2024-07-01 00:41:31 +00:00
|
|
|
--background-color-button-quiet--hover: rgba( 255, 255, 255, 0.04 );
|
|
|
|
--background-color-button-quiet--active: rgba( 255, 255, 255, 0.08 );
|
|
|
|
--background-color-icon: ~'rgba( 255, 255, 255, var( --opacity-icon-base ) )';
|
|
|
|
--background-color-icon--hover: ~'rgba( 255, 255, 255, var( --opacity-icon-base--hover ) )';
|
|
|
|
--background-color-icon--active: ~'rgba( 255, 255, 255, var( --opacity-icon-base--active ) )';
|
2024-04-25 20:19:53 +00:00
|
|
|
|
2024-05-07 22:57:25 +00:00
|
|
|
--border-color-base: rgba( 255, 255, 255, 0.05 );
|
|
|
|
--border-color-subtle: rgba( 255, 255, 255, 0.02 );
|
|
|
|
--border-color-interactive: rgba( 255, 255, 255, 0.08 );
|
2024-04-25 20:19:53 +00:00
|
|
|
|
2024-10-19 05:15:31 +00:00
|
|
|
--shadow-color: var( --color-primary__h ), 50%, 3%;
|
2024-10-19 07:36:38 +00:00
|
|
|
--shadow-opacity: 0.3;
|
2024-04-25 20:19:53 +00:00
|
|
|
|
|
|
|
--filter-invert: invert( 1 ) hue-rotate( 180deg );
|
|
|
|
|
|
|
|
--font-grade: -25;
|
|
|
|
|
|
|
|
// FIXME: Browsers seem to treat GRAD differently, disabling for now
|
|
|
|
// Dark theme usually have an illusion of thicker fonts
|
|
|
|
// So we have to tune it back
|
|
|
|
// font-variation-settings: 'GRAD' -90;
|
|
|
|
|
|
|
|
color-scheme: dark;
|
|
|
|
}
|
|
|
|
|
2024-04-25 20:24:09 +00:00
|
|
|
.feature-pure-black() {
|
2024-05-28 17:58:43 +00:00
|
|
|
--color-surface-0__l: 0%;
|
|
|
|
--color-surface-1__s: 20%;
|
2024-10-19 07:37:31 +00:00
|
|
|
--color-surface-1__l: 3%;
|
|
|
|
--color-surface-2__l: 5%;
|
|
|
|
--color-surface-3__l: 8%;
|
|
|
|
--color-surface-4__l: 12%;
|
2024-10-19 08:34:04 +00:00
|
|
|
--color-emphasized: ~'hsl( var( --color-primary__h ), 0%, 95% )';
|
|
|
|
--color-base: ~'hsl( var( --color-primary__h ), 0%, 85% )';
|
|
|
|
--color-subtle: ~'hsl( var( --color-primary__h ), 0%, 65% )';
|
2024-10-06 02:33:09 +00:00
|
|
|
--border-color-base: rgba( 255, 255, 255, 0.07 );
|
|
|
|
--border-color-subtle: rgba( 255, 255, 255, 0.04 );
|
|
|
|
--border-color-interactive: rgba( 255, 255, 255, 0.1 );
|
2024-10-19 07:41:36 +00:00
|
|
|
--shadow-opacity: 0.2;
|
2024-04-25 20:24:09 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 08:25:56 +00:00
|
|
|
// T365102 invert class specifically for image related element
|
|
|
|
.skin-invert-image img,
|
|
|
|
.skin-invert {
|
|
|
|
filter: var( --filter-invert );
|
|
|
|
}
|
|
|
|
|
2024-04-25 20:19:53 +00:00
|
|
|
.skin-theme-clientpref-night {
|
|
|
|
:root& {
|
|
|
|
.theme-dark();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-theme-clientpref-os {
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
:root& {
|
|
|
|
.theme-dark();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-font-size-clientpref-small {
|
2024-07-05 17:39:37 +00:00
|
|
|
:root& {
|
|
|
|
--font-size-base: 0.875rem;
|
2024-04-25 21:03:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-font-size-clientpref-large {
|
2024-07-05 17:39:37 +00:00
|
|
|
:root& {
|
|
|
|
--font-size-base: 1.125rem;
|
2024-04-25 21:03:23 +00:00
|
|
|
}
|
|
|
|
}
|
2024-04-25 21:41:22 +00:00
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-width-clientpref-standard {
|
2024-04-25 21:41:22 +00:00
|
|
|
:root& {
|
|
|
|
--width-layout: 1080px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-width-clientpref-wide {
|
2024-04-25 21:41:22 +00:00
|
|
|
:root& {
|
|
|
|
--width-layout: 1600px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-width-clientpref-full {
|
2024-04-25 21:41:22 +00:00
|
|
|
:root& {
|
|
|
|
--width-layout: 100vw;
|
|
|
|
}
|
|
|
|
}
|
2024-07-10 17:59:03 +00:00
|
|
|
|
|
|
|
.citizen-feature-pure-black-clientpref-1 {
|
|
|
|
:root.skin-theme-clientpref-night& {
|
|
|
|
.feature-pure-black();
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
:root.skin-theme-clientpref-os& {
|
|
|
|
.feature-pure-black();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-feature-autohide-navigation-clientpref-1 {
|
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2024-10-19 04:48:20 +00:00
|
|
|
.citizen-header {
|
|
|
|
transition-timing-function: var( --transition-timing-function-ease-out );
|
|
|
|
transition-duration: var( --transition-duration-medium );
|
|
|
|
transition-property: transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide sticky header on scroll down on smaller screens
|
2024-11-08 00:12:26 +00:00
|
|
|
.citizen-sticky-header-visible {
|
2024-10-19 04:48:20 +00:00
|
|
|
.citizen-page-header,
|
|
|
|
.citizen-page-heading {
|
|
|
|
transition-timing-function: var( --transition-timing-function-ease-out );
|
|
|
|
transition-duration: var( --transition-duration-medium );
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-page-header {
|
|
|
|
transition-property: transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-page-heading {
|
|
|
|
transition-property: opacity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 17:59:03 +00:00
|
|
|
.citizen-scroll--down {
|
2024-07-19 21:08:03 +00:00
|
|
|
--height-sticky-header: 0 !important;
|
|
|
|
|
2024-07-10 17:59:03 +00:00
|
|
|
.citizen-header {
|
2024-10-19 04:48:20 +00:00
|
|
|
transition-timing-function: var( --transition-timing-function-ease-in );
|
|
|
|
transition-duration: var( --transition-duration-base );
|
2024-07-10 17:59:03 +00:00
|
|
|
transform: translateY( 100% );
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-toc {
|
|
|
|
bottom: var( --space-xs );
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-actions {
|
|
|
|
box-shadow: none;
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY( 250% );
|
|
|
|
}
|
|
|
|
|
2024-11-08 00:12:26 +00:00
|
|
|
&.citizen-sticky-header-visible {
|
2024-10-19 04:48:20 +00:00
|
|
|
.citizen-page-header,
|
|
|
|
.citizen-page-heading {
|
|
|
|
transition-timing-function: var( --transition-timing-function-ease-in );
|
|
|
|
transition-duration: var( --transition-duration-base );
|
|
|
|
}
|
|
|
|
|
2024-07-10 17:59:03 +00:00
|
|
|
.citizen-page-header {
|
|
|
|
transform: translateY( -150% );
|
2024-10-19 04:48:20 +00:00
|
|
|
}
|
2024-07-10 17:59:03 +00:00
|
|
|
|
2024-10-19 04:48:20 +00:00
|
|
|
.citizen-page-heading {
|
|
|
|
opacity: 0;
|
2024-07-10 17:59:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-scroll--up {
|
|
|
|
// Page actions needed to have a scroll up handler to avoid clipping issue
|
|
|
|
.page-actions {
|
|
|
|
opacity: 1;
|
2024-10-22 18:54:02 +00:00
|
|
|
transition: opacity var( --transition-duration-medium ) var( --transition-timing-function-ease-out ) var( --transition-duration-medium ), transform var( --transition-duration-medium ) var( --transition-timing-function-ease-out ) var( --transition-duration-medium );
|
2024-07-10 17:59:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|