From 95056315cf3040f790dc5214ca2310d46e6fe4ed 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 | 8 ++++++++ www/drive/file.less | 10 ++++++++++ www/drive/main.js | 4 ++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/www/drive/file.css b/www/drive/file.css index 3fc4967fe..87d951ccb 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -56,6 +56,14 @@ li { color: #eee; margin: -1px; } +span.fa-folder, +span.fa-folder-open { + 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..f450be3da 100644 --- a/www/drive/file.less +++ b/www/drive/file.less @@ -65,6 +65,16 @@ li { margin: -1px; } +span { + &.fa-folder, &.fa-folder-open { + 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"});