File tree Expand file tree Collapse file tree 9 files changed +21
-25
lines changed
routes/tutorial/[...slug] Expand file tree Collapse file tree 9 files changed +21
-25
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 122
122
[data-file],
123
123
.filename {
124
124
cursor: pointer ;
125
- background-image : url ($lib/icons/file.svg );
126
- background-repeat : no-repeat ;
127
125
128
- :root.dark & {
129
- background-image: url ($lib/icons/file-dark.svg );
126
+ &::before {
127
+ position: relative ;
128
+ content : ' ' ;
129
+ display : inline-block ;
130
+ width : 1rem ;
131
+ height : 1rem ;
132
+ top : 0.1rem ;
133
+ margin-right : 0.5rem ;
134
+ background : #676778 ;
135
+ mask : url (icons/file ) 50% 50% no-repeat ;
136
+ mask-size : 100% ;
130
137
}
131
- }
132
-
133
- [data-file ] {
134
- background-position : 0.5rem 50% ;
135
- background-size : 1rem 1rem ;
136
- padding-left : 2rem ;
137
- }
138
138
139
- .filename {
140
- background-position : 0 54% ;
141
- background-size : 1rem 1rem ;
142
- padding-left : 1.5rem !important ;
139
+ :root .dark &::before {
140
+ background : #d4d4d4 ;
141
+ }
143
142
}
144
143
145
144
.desktop {
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import * as context from ' ./context.js' ;
3
3
import Item from ' ./Item.svelte' ;
4
- import file_icon from ' $lib/ icons/file.svg ' ;
4
+ import file_icon from ' icons/file' ;
5
5
import { solution } from ' ../state.svelte' ;
6
6
import type { MenuItem } from ' $lib/tutorial' ;
7
7
import type { File } from ' @sveltejs/repl/workspace' ;
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
"name" : " icons" ,
3
3
"private" : true ,
4
4
"exports" : {
5
- "./*" : " ./icons/*.svg"
5
+ "./*" : {
6
+ "types" : " ./types.d.ts" ,
7
+ "default" : " ./icons/*.svg"
8
+ }
6
9
}
7
10
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ declare const svg : string ;
2
+ export default svg ;
You can’t perform that action at this time.
0 commit comments