File tree Expand file tree Collapse file tree 7 files changed +30
-21
lines changed Expand file tree Collapse file tree 7 files changed +30
-21
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,6 @@ class USBWorkflow extends Workflow {
124
124
device = await navigator . serial . requestPort ( ) ;
125
125
console . log ( device ) ;
126
126
}
127
-
128
- // TODO: Make it more obvious to user that something happened for smaller screens
129
- // Perhaps providing checkmarks by adding a css class when a step is complete would be helpful
130
- // This would help with other workflows as well
131
127
} else {
132
128
console . log ( 'Requesting any serial device...' ) ;
133
129
try {
@@ -171,7 +167,7 @@ class USBWorkflow extends Workflow {
171
167
btnSelectHostFolder . disabled = true ;
172
168
let serialConnect = async ( event ) => {
173
169
try {
174
- await this . showBusy ( this . connectToSerial ( ) ) ;
170
+ await this . connectToSerial ( ) ;
175
171
} catch ( e ) {
176
172
//console.log(e);
177
173
//alert(e.message);
@@ -291,7 +287,7 @@ class USBWorkflow extends Workflow {
291
287
292
288
// At this point we should see if we should init the file client and check if have a saved dir handle
293
289
let fileops = new FileOps ( this . repl , false ) ;
294
- if ( await fileops . isReadOnly ( ) ) {
290
+ if ( await this . showBusy ( fileops . isReadOnly ( ) ) ) {
295
291
// UID Only needed for matching the CIRCUITPY drive with the Serial Terminal
296
292
await this . showBusy ( this . _getDeviceUid ( ) ) ;
297
293
let modal = this . connectDialog . getModal ( ) ;
Original file line number Diff line number Diff line change
1
+ @use " ../base/variables" as * ;
2
+ @use " sass:color" ;
3
+
1
4
html {
2
5
box-sizing : border-box ;
3
6
}
64
67
}
65
68
66
69
& :hover {
67
- background-color : darken ($purple , 15% );
70
+ background-color : color . adjust ($purple , $lightness : - 15% );
68
71
}
69
72
70
73
& .hidden {
77
80
background-color : $gray ;
78
81
79
82
& :hover {
80
- background-color : darken ($gray , 15% );
83
+ background-color : color . adjust ($gray , $lightness : - 15% );
81
84
}
82
85
}
83
86
Original file line number Diff line number Diff line change
1
+ @use " ../base/variables" as * ;
2
+
1
3
.container {
2
4
width : 100% ;
3
5
margin : 0 auto ;
Original file line number Diff line number Diff line change
1
+ @use " ../base/variables" as * ;
2
+ @use " ../base/mixins" as * ;
3
+
1
4
#site-header {
2
5
display : grid ;
3
6
grid-template-rows : 1fr 3px ;
Original file line number Diff line number Diff line change
1
+ @use " ../base/variables" as * ;
2
+
1
3
#mobile-header {
2
4
display : none ;
3
5
background-color : #333 ;
Original file line number Diff line number Diff line change
1
+ @use " ../base/variables" as * ;
2
+ @use " sass:color" ;
3
+
1
4
.layout {
2
5
height : 100vh ;
3
6
height : calc (var (--vh , 1vh ) * 100 );
170
173
background-color : $gray ;
171
174
172
175
& :hover {
173
- background-color : darken ($gray , 15% );
176
+ background-color : color . adjust ($gray , $lightness : - 15% );
174
177
}
175
178
176
179
& .active {
Original file line number Diff line number Diff line change 1
1
@charset " utf-8" ;
2
2
3
- @import ' /node_modules/@fortawesome/fontawesome-free/css/all.min.css' ;
4
- @import ' /node_modules/@xterm/xterm/css/xterm.css' ;
3
+ @use ' /node_modules/@fortawesome/fontawesome-free/css/all.min.css' ;
4
+ @use ' /node_modules/@xterm/xterm/css/xterm.css' ;
5
5
6
- @import ' ./ vendors/normalize' ;
6
+ @use ' vendors/normalize' ;
7
7
8
- @import ' ./ base/variables' ;
9
- @import ' ./ base/typography' ;
10
- @import ' ./ base/mixins' ;
11
- @import ' ./ base/base' ;
8
+ @use ' base/variables' ;
9
+ @use ' base/typography' ;
10
+ @use ' base/mixins' ;
11
+ @use ' base/base' ;
12
12
13
- @import ' ./ layout/layout' ;
14
- @import ' ./ layout/grid' ;
15
- @import ' ./ layout/editor' ;
16
- @import ' ./ layout/header' ;
17
- @import ' ./ layout/header_mobile' ;
13
+ @use ' layout/layout' ;
14
+ @use ' layout/grid' ;
15
+ @use ' layout/editor' ;
16
+ @use ' layout/header' ;
17
+ @use ' layout/header_mobile' ;
You can’t perform that action at this time.
0 commit comments