File tree Expand file tree Collapse file tree 1 file changed +19
-33
lines changed Expand file tree Collapse file tree 1 file changed +19
-33
lines changed Original file line number Diff line number Diff line change 46
46
}
47
47
48
48
.cm-activeLineGutter {
49
- position : relative;
50
-
51
49
/* this must be translucent, or it will obscure the selection */
52
50
background : hsl (0 , 0% , 0% , 0.04 );
53
51
54
52
: root .dark & {
55
53
background : hsl (0 , 0% , 100% , 0.04 );
56
54
}
55
+ }
57
56
58
- span {
57
+ .cm-gutterElement {
58
+ position : relative;
59
+
60
+ & : where (: has ([title = 'Fold line' ]), : has ([title = 'Unfold line' ]))::after {
61
+ content : '' ;
59
62
position : absolute;
60
- display : block;
61
63
width : 100% ;
62
- height : 100% ;
63
64
right : 0 ;
64
- color : transparent;
65
- user-select : none;
66
-
67
- & ::after {
68
- content : '' ;
69
- position : absolute;
70
- top : 0.1rem ;
71
- left : 0 ;
72
- width : 100% ;
73
- height : 100% ;
74
- background : url($lib/ icons/chevron.svg) no-repeat 50% 50% ;
75
- background-size : contain;
76
- rotate : -90deg ;
77
- }
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
+ }
78
71
79
- & [title = 'Fold line' ]::after {
80
- rotate : 0deg ;
81
- }
72
+ & : has ([title = 'Unfold line' ])::after {
73
+ transform : rotate (-90deg );
74
+ }
75
+
76
+ span {
77
+ color : transparent;
82
78
}
83
79
}
84
80
113
109
}
114
110
115
111
.cm-content {
116
- /* ensure no gap between top of editor and highlighted first/last line */
117
- padding-top : 0 ;
118
- padding-bottom : 0 ;
119
-
120
- .cm-line : first-child {
121
- padding-top : 4px ;
122
- }
123
-
124
- .cm-line : last-child {
125
- padding-bottom : 4px ;
126
- }
112
+ padding : 0.4rem 0 ;
127
113
}
128
114
129
115
.cm-line {
You can’t perform that action at this time.
0 commit comments