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 1616 "highlight.js" : " ^11.9.0" ,
1717 "hono" : " ^4.0.10" ,
1818 "jdomjs" : " 3.1.11" ,
19- "petrel" : " 1.0.8 " ,
19+ "petrel" : " 1.1.0 " ,
2020 "sass" : " ^1.71.1"
2121 }
2222}
Original file line number Diff line number Diff line change 1313 margin : 0px ;
1414 line-height : inherit;
1515 background : transparent;
16- min-height : 100% ;
16+ /* min-height: 100%; */
1717 overflow : hidden;
1818 border : none;
1919 outline : none;
2424 caret-color : # 989898 ;
2525 overflow-wrap : normal;
2626 white-space : pre;
27- min-width : 100% ;
27+ /* min-width: 100%;*/
2828 padding-left : 0 ;
2929 position : absolute;
3030 top : 0 ;
3131 font-size : inherit;
3232 left : 0px ;
33+
34+ opacity : 0 ;
3335}
3436
3537.petrel-code-editor textarea ::-moz-selection , .petrel-code-editor textarea ::selection {
4951 pointer-events : none;
5052 font-family : inherit;
5153 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+ }
52117}
53118
54119.petrel-code-editor .petrel-code-editor-line-numbering {
73138
74139
75140.petrel-code-editor .petrel-code-editor-line-numbering span div {
76- height : 22 px ;
141+ height : 23 px ;
77142 width : 100% ;
78143 left : 0px ;
79144 position : absolute;
90155 position : absolute;
91156 left : 92px ;
92157 background : # FFF ;
158+ z-index : 11 ;
93159}
94160
95161
96162.petrel-code-editor .petrel-code-editor-autocompletion a {
97163 cursor : pointer;
98164 display : block;
165+ font-size : 12px ;
99166}
100167
101168.petrel-code-editor .petrel-code-editor-autocompletion a .selected {
Original file line number Diff line number Diff line change 11@import url ('./base.css' );
2+ @import url (https://fonts.intera.dev/_/dm+mono);
23
34.petrel-code-editor {
45 background : # 212531 ;
910 resize : vertical;
1011 min-height : 140px ;
1112 border-radius : 10px ;
13+ font-family : 'DM Mono' ;
1214}
1315
1416.petrel-code-editor ::-webkit-resizer {
5961 overflow : auto;
6062}
6163.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 ;
6466 border-radius : 6px ;
65- font-size : 16px ;
6667}
6768.petrel-code-editor .petrel-code-editor-autocompletion a : hover {
6869 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 ;
6992}
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ api.promiseInterceptor = r => r.json()
2020initUser ( )
2121
2222html `< ${ App } router =${ router } /> `
23- . appendTo ( document ) ;
23+ . appendTo ( document )
2424
2525router . init ( ) ;
You can’t perform that action at this time.
0 commit comments