Skip to content

Commit

Permalink
feat(prefs): ✨ change theme toggle to 3 col
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Apr 25, 2024
1 parent fce2726 commit 316798d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
form {
display: grid;
// This is not the best because it does not adapt to the text length but will revisit later
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat( 2, 1fr );
gap: var( --space-xxs );
text-align: center;
}
Expand Down Expand Up @@ -150,6 +150,10 @@
}

#skin-client-prefs-skin-theme {
form {
grid-template-columns: repeat( 3, 1fr );
}

.citizen-client-prefs-radio__label {
background: var( --color-surface-0 );

Expand Down
18 changes: 9 additions & 9 deletions resources/skins.citizen.styles/common/features.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@
color-scheme: dark;
}

.feature-pure-black() {
--color-surface-0: #000;
--color-surface-1: ~'hsl( var( --color-primary__h ), 20%, 10% )';
--color-surface-2: ~'hsl( var( --color-primary__h ), 25%, 12% )';
--color-surface-3: ~'hsl( var( --color-primary__h ), 25%, 15% )';
--color-surface-4: ~'hsl( var( --color-primary__h ), 15%, 20% )';
--shadow-strength: 0.04;
}

.skin-theme-clientpref-night {
:root& {
.theme-dark();
Expand All @@ -57,15 +66,6 @@
}
}

.feature-pure-black() {
--color-surface-0: #000;
--color-surface-1: ~'hsl( var( --color-primary__h ), 20%, 10% )';
--color-surface-2: ~'hsl( var( --color-primary__h ), 25%, 12% )';
--color-surface-3: ~'hsl( var( --color-primary__h ), 25%, 15% )';
--color-surface-4: ~'hsl( var( --color-primary__h ), 15%, 20% )';
--shadow-strength: 0.04;
}

.citizen-feature-pure-black-clientpref-1 {
:root.skin-theme-clientpref-night& {
.feature-pure-black();
Expand Down

0 comments on commit 316798d

Please sign in to comment.