From 776613b961cb33bed8df6d81be745b242fe2b090 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 24 Feb 2021 18:34:07 +0100 Subject: [PATCH] Disable darkmode for gallery in fullscreen mode --- pixelegg/css/mobile.css | 3 ++- pixelegg/css/monochrome.css | 3 ++- pixelegg/css/pixelegg.css | 3 ++- pixelegg/less/darkmode.less | 3 ++- pixelegg/mobile/fw_mobile.css | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pixelegg/css/mobile.css b/pixelegg/css/mobile.css index 92f3059b87..f5d00411a8 100644 --- a/pixelegg/css/mobile.css +++ b/pixelegg/css/mobile.css @@ -79,7 +79,8 @@ filter: invert(1) hue-rotate(180deg) brightness(0.7); } html[data-darkmode='1'] img, - html[data-darkmode='1'] #blueimp-gallery, + html[data-darkmode='1'] #blueimp-gallery:not(:fullscreen), + html[data-darkmode='1'] #blueimp-gallery ol, html[data-darkmode='1'] iframe, html[data-darkmode='1'] #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, html[data-darkmode='1'] video, diff --git a/pixelegg/css/monochrome.css b/pixelegg/css/monochrome.css index ac17132aa7..bbe5b29a51 100644 --- a/pixelegg/css/monochrome.css +++ b/pixelegg/css/monochrome.css @@ -57,7 +57,8 @@ filter: invert(1) hue-rotate(180deg) brightness(0.7); } html[data-darkmode='1'] img, - html[data-darkmode='1'] #blueimp-gallery, + html[data-darkmode='1'] #blueimp-gallery:not(:fullscreen), + html[data-darkmode='1'] #blueimp-gallery ol, html[data-darkmode='1'] iframe, html[data-darkmode='1'] #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, html[data-darkmode='1'] video, diff --git a/pixelegg/css/pixelegg.css b/pixelegg/css/pixelegg.css index c16da39111..0ba31bb6d9 100644 --- a/pixelegg/css/pixelegg.css +++ b/pixelegg/css/pixelegg.css @@ -68,7 +68,8 @@ filter: invert(1) hue-rotate(180deg) brightness(0.7); } html[data-darkmode='1'] img, - html[data-darkmode='1'] #blueimp-gallery, + html[data-darkmode='1'] #blueimp-gallery:not(:fullscreen), + html[data-darkmode='1'] #blueimp-gallery ol, html[data-darkmode='1'] iframe, html[data-darkmode='1'] #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, html[data-darkmode='1'] video, diff --git a/pixelegg/less/darkmode.less b/pixelegg/less/darkmode.less index c4d8b2953d..5936f6a73c 100644 --- a/pixelegg/less/darkmode.less +++ b/pixelegg/less/darkmode.less @@ -30,11 +30,12 @@ background: #000; position: fixed; // ATM Firefox doesn't like filter:invert on none fixed html filter: invert(1) hue-rotate(180deg) brightness(0.7); - img, #blueimp-gallery, + img, #blueimp-gallery:not(:fullscreen), #blueimp-gallery ol, iframe, #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, video, #loginMainDiv, .et2_taglist_tags_icon { filter: invert(1) hue-rotate(180deg) !important; } + #loginMainDiv div#centerBox{filter: invert(1) hue-rotate(180deg) !important;} div.dhtmlxMenu_egw_SubLevelArea_Polygon,.egw_tooltip, body .egw_message_wrapper,#egw_fw_header #egw_fw_topmenu,.ui-dialog, .box_shadow, diff --git a/pixelegg/mobile/fw_mobile.css b/pixelegg/mobile/fw_mobile.css index b5d695b181..9b496789d3 100644 --- a/pixelegg/mobile/fw_mobile.css +++ b/pixelegg/mobile/fw_mobile.css @@ -42,7 +42,8 @@ filter: invert(1) hue-rotate(180deg) brightness(0.7); } html[data-darkmode='1'] img, - html[data-darkmode='1'] #blueimp-gallery, + html[data-darkmode='1'] #blueimp-gallery:not(:fullscreen), + html[data-darkmode='1'] #blueimp-gallery ol, html[data-darkmode='1'] iframe, html[data-darkmode='1'] #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, html[data-darkmode='1'] video,