Skip to content

Commit

Permalink
Update box-shadow for menus in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
albinazs committed Jul 6, 2023
1 parent ec417a3 commit cfb0a4b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/scss/components/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@

.w-dialog__box {
pointer-events: auto;
@include dark-theme() {
box-shadow: theme('boxShadow.lg');
}
box-shadow: theme('boxShadow.md');
}

Expand Down
3 changes: 3 additions & 0 deletions client/scss/layouts/_login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
float: none;
padding: theme('spacing.10') theme('spacing.12');
background: theme('colors.surface-page');
@include dark-theme() {
box-shadow: theme('boxShadow.lg');
}
box-shadow: theme('boxShadow.md');
border-radius: theme('borderRadius.md');
margin-bottom: 15vh; // should appear slightly above centre
Expand Down
3 changes: 3 additions & 0 deletions client/src/components/ComboBox/ComboBox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ $spacing-sm: theme('spacing.5');
color: theme('colors.text-context');
border-radius: theme('borderRadius.DEFAULT');
font-size: theme('fontSize.18');
@include dark-theme() {
box-shadow: theme('boxShadow.lg');
}
box-shadow: theme('boxShadow.md');
outline: 10px solid transparent;
}
Expand Down
1 change: 1 addition & 0 deletions client/src/tokens/objectStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const borderWidth = {
const boxShadow = {
DEFAULT: '5px 5px 20px rgba(0, 0, 0, 0.05)',
md: '5px 5px 30px rgba(0, 0, 0, 0.25)',
lg: '5px 5px 30px rgba(0, 0, 0, 0.5)',
};

module.exports = {
Expand Down

0 comments on commit cfb0a4b

Please sign in to comment.