From f720ffdf1dc277d96dfe9552ef949f3cdc69c4af Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 9 Apr 2019 11:02:02 +0200 Subject: [PATCH] Fix favorites styles inside sidebar menu --- pixelegg/css/mobile.css | 32 +++-- pixelegg/css/monochrome.css | 32 +++-- pixelegg/css/pixelegg.css | 32 +++-- pixelegg/images/favorites.svg | 2 +- pixelegg/less/etemplate2.less | 154 +++++++++++------------ pixelegg/less/layout_raster_sidebar.less | 5 +- pixelegg/mobile/fw_mobile.css | 32 +++-- 7 files changed, 128 insertions(+), 161 deletions(-) diff --git a/pixelegg/css/mobile.css b/pixelegg/css/mobile.css index d13d639bc2..788e4d19d0 100644 --- a/pixelegg/css/mobile.css +++ b/pixelegg/css/mobile.css @@ -750,25 +750,26 @@ min-height: 16px; padding: 3px 0px; margin-bottom: 0.2em; - background-color: #ece2f7; + } + .sidebox-favorites ul.favorites li.ui-menu-item a { + color: #000000; } .sidebox-favorites ul.favorites li.ui-menu-item:hover { color: #000000; - background-color: #9B6AD6; + background-color: rgba(153, 204, 255, 0.4); padding: 3px 0; } .sidebox-favorites ul.favorites li.ui-menu-item:hover a { - color: #FFFFFF; + color: #000000; } - .sidebox-favorites ul.favorites li.ui-menu-item:first-of-type { - background-color: #FFFFFF; + .sidebox-favorites ul.favorites li.ui-menu-item:hover a .ui-icon-trash { + background-image: url(../images/delete.svg); + background-size: 12px 12px; + background-position: center 4px; } .sidebox-favorites ul.favorites li.ui-menu-item:first-of-type a { color: #000000; } - .sidebox-favorites ul.favorites li.ui-menu-item:last-of-type { - background-color: #FFFFFF; - } .sidebox-favorites ul.favorites li.ui-menu-item:last-of-type a { color: #000000; } @@ -777,7 +778,7 @@ padding: 2px 0px; } .sidebox-favorites ul.favorites li.ui-menu-item a div.ui-icon-heart { - background-image: url(../images/personal.png); + background-image: url(../images/favorites.svg); background-size: 12px 12px; background-position: 0 0; margin-right: 9px; @@ -801,26 +802,23 @@ margin-top: -3px; } .sidebox-favorites ul.favorites li.ui-menu-item [data-id="blank"] div.ui-icon-heart { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } .sidebox-favorites ul.favorites li.ui-menu-item.ui-state-highlight { color: #000000; - background: #9B6AD6; + background: rgba(102, 153, 204, 0.7); padding: 3px 0; border: none; } - .sidebox-favorites ul.favorites li.ui-menu-item.ui-state-highlight a { - color: #FFFFFF; - } .sidebox-favorites ul.favorites li:first-child a div.ui-icon-heart { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } .sidebox-favorites ul.favorites li:first-child a div.sideboxstar { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } @@ -4800,8 +4798,6 @@ td.message span.message { text-decoration: none; min-width: 5em; vertical-align: bottom; -} -.egw_fw_ui_sidemenu_listitem a:hover { color: #000000; } .egw_fw_ui_sidemenu_listitem a:active { diff --git a/pixelegg/css/monochrome.css b/pixelegg/css/monochrome.css index 0625626c9c..b26ba23903 100644 --- a/pixelegg/css/monochrome.css +++ b/pixelegg/css/monochrome.css @@ -739,25 +739,26 @@ min-height: 16px; padding: 3px 0px; margin-bottom: 0.2em; - background-color: #ece2f7; + } + .sidebox-favorites ul.favorites li.ui-menu-item a { + color: #000000; } .sidebox-favorites ul.favorites li.ui-menu-item:hover { color: #000000; - background-color: #9B6AD6; + background-color: rgba(153, 204, 255, 0.4); padding: 3px 0; } .sidebox-favorites ul.favorites li.ui-menu-item:hover a { - color: #FFFFFF; + color: #000000; } - .sidebox-favorites ul.favorites li.ui-menu-item:first-of-type { - background-color: #FFFFFF; + .sidebox-favorites ul.favorites li.ui-menu-item:hover a .ui-icon-trash { + background-image: url(../images/delete.svg); + background-size: 12px 12px; + background-position: center 4px; } .sidebox-favorites ul.favorites li.ui-menu-item:first-of-type a { color: #000000; } - .sidebox-favorites ul.favorites li.ui-menu-item:last-of-type { - background-color: #FFFFFF; - } .sidebox-favorites ul.favorites li.ui-menu-item:last-of-type a { color: #000000; } @@ -766,7 +767,7 @@ padding: 2px 0px; } .sidebox-favorites ul.favorites li.ui-menu-item a div.ui-icon-heart { - background-image: url(../images/personal.png); + background-image: url(../images/favorites.svg); background-size: 12px 12px; background-position: 0 0; margin-right: 9px; @@ -790,26 +791,23 @@ margin-top: -3px; } .sidebox-favorites ul.favorites li.ui-menu-item [data-id="blank"] div.ui-icon-heart { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } .sidebox-favorites ul.favorites li.ui-menu-item.ui-state-highlight { color: #000000; - background: #9B6AD6; + background: rgba(102, 153, 204, 0.7); padding: 3px 0; border: none; } - .sidebox-favorites ul.favorites li.ui-menu-item.ui-state-highlight a { - color: #FFFFFF; - } .sidebox-favorites ul.favorites li:first-child a div.ui-icon-heart { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } .sidebox-favorites ul.favorites li:first-child a div.sideboxstar { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } @@ -4789,8 +4787,6 @@ td.message span.message { text-decoration: none; min-width: 5em; vertical-align: bottom; -} -.egw_fw_ui_sidemenu_listitem a:hover { color: #000000; } .egw_fw_ui_sidemenu_listitem a:active { diff --git a/pixelegg/css/pixelegg.css b/pixelegg/css/pixelegg.css index ced099e4d7..3156043f9c 100644 --- a/pixelegg/css/pixelegg.css +++ b/pixelegg/css/pixelegg.css @@ -750,25 +750,26 @@ min-height: 16px; padding: 3px 0px; margin-bottom: 0.2em; - background-color: #ece2f7; + } + .sidebox-favorites ul.favorites li.ui-menu-item a { + color: #000000; } .sidebox-favorites ul.favorites li.ui-menu-item:hover { color: #000000; - background-color: #9B6AD6; + background-color: rgba(153, 204, 255, 0.4); padding: 3px 0; } .sidebox-favorites ul.favorites li.ui-menu-item:hover a { - color: #FFFFFF; + color: #000000; } - .sidebox-favorites ul.favorites li.ui-menu-item:first-of-type { - background-color: #FFFFFF; + .sidebox-favorites ul.favorites li.ui-menu-item:hover a .ui-icon-trash { + background-image: url(../images/delete.svg); + background-size: 12px 12px; + background-position: center 4px; } .sidebox-favorites ul.favorites li.ui-menu-item:first-of-type a { color: #000000; } - .sidebox-favorites ul.favorites li.ui-menu-item:last-of-type { - background-color: #FFFFFF; - } .sidebox-favorites ul.favorites li.ui-menu-item:last-of-type a { color: #000000; } @@ -777,7 +778,7 @@ padding: 2px 0px; } .sidebox-favorites ul.favorites li.ui-menu-item a div.ui-icon-heart { - background-image: url(../images/personal.png); + background-image: url(../images/favorites.svg); background-size: 12px 12px; background-position: 0 0; margin-right: 9px; @@ -801,26 +802,23 @@ margin-top: -3px; } .sidebox-favorites ul.favorites li.ui-menu-item [data-id="blank"] div.ui-icon-heart { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } .sidebox-favorites ul.favorites li.ui-menu-item.ui-state-highlight { color: #000000; - background: #9B6AD6; + background: rgba(102, 153, 204, 0.7); padding: 3px 0; border: none; } - .sidebox-favorites ul.favorites li.ui-menu-item.ui-state-highlight a { - color: #FFFFFF; - } .sidebox-favorites ul.favorites li:first-child a div.ui-icon-heart { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } .sidebox-favorites ul.favorites li:first-child a div.sideboxstar { - background-image: url(../images/trash.png); + background-image: url(../images/delete.svg); background-size: 12px 12px; background-position: 0 0; } @@ -4800,8 +4798,6 @@ td.message span.message { text-decoration: none; min-width: 5em; vertical-align: bottom; -} -.egw_fw_ui_sidemenu_listitem a:hover { color: #000000; } .egw_fw_ui_sidemenu_listitem a:active { diff --git a/pixelegg/images/favorites.svg b/pixelegg/images/favorites.svg index 2e940b979a..0708b16ea0 100644 --- a/pixelegg/images/favorites.svg +++ b/pixelegg/images/favorites.svg @@ -1,7 +1,7 @@ - +