File tree Expand file tree Collapse file tree 5 files changed +98
-8
lines changed Expand file tree Collapse file tree 5 files changed +98
-8
lines changed Original file line number Diff line number Diff line change 16
16
"highlight.js" : " ^11.9.0" ,
17
17
"hono" : " ^4.0.10" ,
18
18
"jdomjs" : " 3.1.11" ,
19
- "petrel" : " 1.0.8 " ,
19
+ "petrel" : " 1.1.0 " ,
20
20
"sass" : " ^1.71.1"
21
21
}
22
22
}
Original file line number Diff line number Diff line change 13
13
margin : 0px ;
14
14
line-height : inherit;
15
15
background : transparent;
16
- min-height : 100% ;
16
+ /* min-height: 100%; */
17
17
overflow : hidden;
18
18
border : none;
19
19
outline : none;
24
24
caret-color : # 989898 ;
25
25
overflow-wrap : normal;
26
26
white-space : pre;
27
- min-width : 100% ;
27
+ /* min-width: 100%;*/
28
28
padding-left : 0 ;
29
29
position : absolute;
30
30
top : 0 ;
31
31
font-size : inherit;
32
32
left : 0px ;
33
+
34
+ opacity : 0 ;
33
35
}
34
36
35
37
.petrel-code-editor textarea ::-moz-selection , .petrel-code-editor textarea ::selection {
49
51
pointer-events : none;
50
52
font-family : inherit;
51
53
font-size : inherit;
54
+ z-index : 3 ;
55
+ }
56
+
57
+
58
+
59
+ .petrel-code-editor .petrel-code-editor-overlay {
60
+ position : absolute;
61
+ pointer-events : none;
62
+ top : 15px ;
63
+ left : 20px ;
64
+ }
65
+
66
+ .petrel-code-editor .petrel-code-editor-overlay-line-indicator {
67
+ position : absolute;
68
+ background : # FFFFFF11 ;
69
+ z-index : 1 ;
70
+ }
71
+
72
+ .petrel-code-editor .petrel-code-editor-overlay-bracket-indicator {
73
+ position : absolute;
74
+ background : # FFFFFF11 ;
75
+ border : # FFFFFF22 1px solid;
76
+ box-sizing : border-box;
77
+ z-index : 4 ;
78
+ }
79
+
80
+ .petrel-code-editor .petrel-code-editor-overlay-cursor {
81
+ position : absolute;
82
+ background : # FFFFFF ;
83
+ animation : 1s cursor infinite linear;
84
+ width : 2px ;
85
+ z-index : 10 ;
86
+ }
87
+
88
+ .petrel-code-editor .petrel-code-editor-selection {
89
+ position : absolute;
90
+ background : # 3B74F133 ;
91
+ z-index : 2 ;
92
+ }
93
+ .petrel-code-editor .petrel-code-editor-selection-single {
94
+ border-radius : 4px ;
95
+ }
96
+ .petrel-code-editor .petrel-code-editor-selection-first {
97
+ border-radius : 4px 0 0 0 ;
98
+ }
99
+ .petrel-code-editor .petrel-code-editor-selection-last {
100
+ border-radius : 0 0 4px 0 ;
101
+ }
102
+
103
+ @keyframes cursor {
104
+ 0% {
105
+ opacity : 1 ;
106
+ }
107
+
108
+ 50% {
109
+ opacity : 1 ;
110
+ }
111
+ 51% {
112
+ opacity : 0 ;
113
+ }
114
+ 100% {
115
+ opacity : 0 ;
116
+ }
52
117
}
53
118
54
119
.petrel-code-editor .petrel-code-editor-line-numbering {
73
138
74
139
75
140
.petrel-code-editor .petrel-code-editor-line-numbering span div {
76
- height : 22 px ;
141
+ height : 23 px ;
77
142
width : 100% ;
78
143
left : 0px ;
79
144
position : absolute;
90
155
position : absolute;
91
156
left : 92px ;
92
157
background : # FFF ;
158
+ z-index : 11 ;
93
159
}
94
160
95
161
96
162
.petrel-code-editor .petrel-code-editor-autocompletion a {
97
163
cursor : pointer;
98
164
display : block;
165
+ font-size : 12px ;
99
166
}
100
167
101
168
.petrel-code-editor .petrel-code-editor-autocompletion a .selected {
Original file line number Diff line number Diff line change 1
1
@import url ('./base.css' );
2
+ @import url (https://fonts.intera.dev/_/dm+mono);
2
3
3
4
.petrel-code-editor {
4
5
background : # 212531 ;
9
10
resize : vertical;
10
11
min-height : 140px ;
11
12
border-radius : 10px ;
13
+ font-family : 'DM Mono' ;
12
14
}
13
15
14
16
.petrel-code-editor ::-webkit-resizer {
59
61
overflow : auto;
60
62
}
61
63
.petrel-code-editor .petrel-code-editor-autocompletion a {
62
- padding : 4 px 6 px ;
63
- margin : 5px ;
64
+ padding : 3 px 5 px ;
65
+ margin : 0 5px ;
64
66
border-radius : 6px ;
65
- font-size : 16px ;
66
67
}
67
68
.petrel-code-editor .petrel-code-editor-autocompletion a : hover {
68
69
background : # FFFFFF21 ;
70
+ }
71
+
72
+
73
+ .petrel-code-editor .petrel-code-editor-overlay-bracket-indicator {
74
+ background : # FFFFFF11 ;
75
+ border-color : # FFFFFF22 ;
76
+ }
77
+
78
+ .petrel-code-editor .petrel-code-editor-line-numbering span div {
79
+ background : # FFFFFF11 ;
80
+ }
81
+
82
+ .petrel-code-editor .petrel-code-editor-overlay-line-indicator {
83
+ background : # FFFFFF11 ;
84
+ }
85
+
86
+ .petrel-code-editor .petrel-code-editor-overlay-cursor {
87
+ background : # FFFFFF ;
88
+ }
89
+
90
+ .petrel-code-editor .petrel-code-editor-selection {
91
+ background : # 3B74F166 ;
69
92
}
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ api.promiseInterceptor = r => r.json()
20
20
initUser ( )
21
21
22
22
html `< ${ App } router =${ router } /> `
23
- . appendTo ( document ) ;
23
+ . appendTo ( document )
24
24
25
25
router . init ( ) ;
You can’t perform that action at this time.
0 commit comments