Skip to content

Commit

Permalink
Fix selection background
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Oct 27, 2023
1 parent b03ef27 commit fd8bfdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions app/assets/stylesheets/theme/codemirror.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@

/* stylelint-disable selector-class-pattern */
.cm-activeLine, .cm-activeLineGutter {
background-color: var(--d-surface);

&::selection, ::selection {
background-color: var(--d-surface-variant) !important;
}
background-color: rgba(var(--d-surface-variant-rgb), 0.3);
}

&.cm-focused {
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/theme/m3-theme-dark.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
// neutral
--d-surface: #{$neutral-20};
--d-surface-variant: #{$neutral-variant-30};
--d-surface-variant-rgb: #{color.red($neutral-variant-30)}, #{color.green($neutral-variant-30)}, #{color.blue($neutral-variant-30)};
--d-background: #{$neutral-25};
--d-on-surface: #{$neutral-90};
--d-on-surface-variant: #{$neutral-variant-80};
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/theme/m3-theme-light.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
// neutral
--d-surface: #{$neutral-99};
--d-surface-variant: #{$neutral-variant-90};
--d-surface-variant-rgb: #{color.red($neutral-variant-90)}, #{color.green($neutral-variant-90)}, #{color.blue($neutral-variant-90)};
--d-background: #{$neutral-98};
--d-on-surface: #{$neutral-10};
--d-on-surface-variant: #{$neutral-variant-30};
Expand Down

0 comments on commit fd8bfdf

Please sign in to comment.