Skip to content

Commit f80fe92

Browse files
authored
fix(cut): fixed open state styles (#616)
1 parent f18510a commit f80fe92

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/extensions/yfm/YfmCut/index.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
@use '../../../styles/mixins.scss';
22

3-
.ProseMirror.yfm .yfm-cut {
4-
@include mixins.block-border-hover();
3+
.ProseMirror.yfm {
4+
.yfm-cut {
5+
@include mixins.block-border-hover();
56

6-
&.yfm-cut-active {
7-
border-color: var(--g-color-line-generic);
7+
&.yfm-cut-active {
8+
border-color: var(--g-color-line-generic);
9+
}
10+
.yfm-cut-title:focus {
11+
outline: 0;
12+
}
813
}
9-
.yfm-cut-title:focus {
10-
outline: 0;
14+
.yfm-cut.open .yfm-cut-title:before {
15+
transform: translateY(-50%);
1116
}
1217
}

0 commit comments

Comments
 (0)