file-browser: custom icon for files
This commit is contained in:
parent
efb128147a
commit
248ddd9625
2 changed files with 10 additions and 8 deletions
|
|
@ -283,7 +283,7 @@ module.exports = {
|
|||
list.appendChild(html`
|
||||
<div class="file">
|
||||
<input type="radio" value="${file.name}" name="file" class="${file.folder ? 'folder' : 'file'}"/>
|
||||
<div class="label"><span>${raw(module.exports.icon(file.folder ? 'folder' : 'file-alt'))} ${file.name}</span></div>
|
||||
<div class="label"><span>${raw(module.exports.icon(file.folder ? 'folder' : 'osc'))} ${file.name}</span></div>
|
||||
</div>
|
||||
`)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
@import 'sidepanel';
|
||||
@import 'widgets';
|
||||
|
||||
|
||||
input,
|
||||
textarea,
|
||||
{
|
||||
|
|
@ -596,12 +595,13 @@ body {
|
|||
color: #ff00ff;
|
||||
}
|
||||
|
||||
@import 'themes/default';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.fa-osc:before {
|
||||
content:"\f111";
|
||||
color: transparent;
|
||||
background-image: url(../assets/logo.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.file-browser {
|
||||
width: 540px;
|
||||
|
|
@ -688,3 +688,5 @@ body {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import 'themes/default';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue