Skip to content

Commit

Permalink
选中块本身有背景色的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Oct 4, 2024
1 parent b51c4ed commit ec2f8ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/src/assets/scss/protyle/_wysiwyg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,14 @@
@for $i from 1 through $count {
$bg-variable: if($count == 1, var(--b3-#{$key}), var(--b3-#{$key}#{$i}));
$bg-select-variable: if($count == 1, var(--b3-#{$key}-select), var(--b3-#{$key}#{$i}-select));

[data-node-id] {
&[style*="background-color: #{$bg-variable}"] {
transition: var(--b3-background-transition);
background-color: #{$bg-select-variable} !important;
}
}
&[data-node-id] {
&[style*="background-color: #{$bg-variable}"] {
background-color: #{$bg-select-variable} !important;
}
}
Expand Down Expand Up @@ -522,6 +526,12 @@
background-color: #{$bg-select-variable} !important;
}
}
&[data-node-id] {
&[style*="background-color: #{$bg-variable}"] {
transition: var(--b3-background-transition);
background-color: #{$bg-select-variable} !important;
}
}
}
}
}
Expand Down

0 comments on commit ec2f8ed

Please sign in to comment.