Skip to content

Commit 31f44a5

Browse files
committed
more
1 parent 5dd7f5c commit 31f44a5

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

packages/repl/src/lib/Editor/codemirror.css

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,29 @@
5757
.cm-gutterElement {
5858
position: relative;
5959

60-
&:where(:has([title='Fold line']), :has([title='Unfold line']))::after {
61-
content: '';
62-
position: absolute;
63-
width: 100%;
64-
right: 0;
65-
top: 0;
66-
height: 2.4rem;
67-
background: url($lib/icons/chevron.svg) no-repeat 50% 50%;
68-
background-size: contain;
69-
transition: transform 0.2s;
70-
cursor: pointer;
60+
&:where(:has([title='Fold line']), :has([title='Unfold line'])) {
61+
&::after {
62+
content: '';
63+
position: absolute;
64+
width: 100%;
65+
right: 0;
66+
top: 0;
67+
height: 2.4rem;
68+
background: #666;
69+
mask: url(icons/chevron) no-repeat 50% 50%;
70+
mask-size: contain;
71+
transition: transform 0.2s;
72+
cursor: pointer;
73+
rotate: 180deg;
74+
}
75+
76+
:root.dark &::after {
77+
background: #d4d4d4;
78+
}
7179
}
7280

7381
&:has([title='Unfold line'])::after {
74-
transform: rotate(-90deg);
82+
transform: rotate(90deg);
7583
}
7684

7785
span {

0 commit comments

Comments
 (0)