From 7ad080b8a240ff4a18c68c8998bea6529f6bc6c3 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 25 Jan 2017 17:16:41 +0100 Subject: [PATCH] Move the folder icon style to the less file --- www/drive/file.css | 7 +++++++ www/drive/file.less | 10 ++++++++++ www/drive/main.js | 4 ++-- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/www/drive/file.css b/www/drive/file.css index 3fc4967fe..370d220c0 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -56,6 +56,13 @@ li { color: #eee; margin: -1px; } +span.fa-folder { + color: #FEDE8B; + text-shadow: -1px 0 #000000, 0 1px #000000, 1px 0 #000000, 0 -1px #000000; +} +span.fa { + min-width: 20px; +} /* TREE */ #tree { border-right: 1px solid #ccc; diff --git a/www/drive/file.less b/www/drive/file.less index b1c2ca558..8f246eb05 100644 --- a/www/drive/file.less +++ b/www/drive/file.less @@ -65,6 +65,16 @@ li { margin: -1px; } +span { + &.fa-folder { + color: #FEDE8B; + text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; + } + &.fa { + min-width: 20px; + } +} + /* TREE */ diff --git a/www/drive/main.js b/www/drive/main.js index 6b7fe7849..50c851e44 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -183,9 +183,9 @@ define([ // Icons - var $folderIcon = $('', {"class": "fa fa-folder folder", style:"color:#FEDE8B;text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;"}); + var $folderIcon = $('', {"class": "fa fa-folder folder"}); var $folderEmptyIcon = $folderIcon.clone(); - var $folderOpenedIcon = $('', {"class": "fa fa-folder-open folder", style:"color:#FEDE8B;text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;"}); + var $folderOpenedIcon = $('', {"class": "fa fa-folder-open folder"); var $folderOpenedEmptyIcon = $folderOpenedIcon.clone(); var $fileIcon = $('', {"class": "fa fa-file-text-o file"}); var $padIcon = $('', {"class": "fa fa-file-word-o file"});