Skip to content

Commit

Permalink
fix(cut): fixed open state styles (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin authored Feb 12, 2025
1 parent f18510a commit f80fe92
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/extensions/yfm/YfmCut/index.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
@use '../../../styles/mixins.scss';

.ProseMirror.yfm .yfm-cut {
@include mixins.block-border-hover();
.ProseMirror.yfm {
.yfm-cut {
@include mixins.block-border-hover();

&.yfm-cut-active {
border-color: var(--g-color-line-generic);
&.yfm-cut-active {
border-color: var(--g-color-line-generic);
}
.yfm-cut-title:focus {
outline: 0;
}
}
.yfm-cut-title:focus {
outline: 0;
.yfm-cut.open .yfm-cut-title:before {
transform: translateY(-50%);
}
}

0 comments on commit f80fe92

Please sign in to comment.