Exclude login background from darkmode filter

This commit is contained in:
Hadi Nategh 2021-01-28 17:41:03 +01:00
parent 779f2691bd
commit 5e73271df4
2 changed files with 17 additions and 2 deletions

View File

@ -51,6 +51,12 @@
background: #000; background: #000;
filter: invert(1) hue-rotate(180deg); filter: invert(1) hue-rotate(180deg);
} }
html[data-darkmode='2'] #loginMainDiv {
filter: invert(1) hue-rotate(180deg) !important;
}
html[data-darkmode='2'] #loginMainDiv div#centerBox {
filter: invert(1) hue-rotate(180deg) !important;
}
} }
/** /**
* DARK THEME * DARK THEME
@ -63,7 +69,11 @@
} }
html[data-darkmode='1'] img, html[data-darkmode='1'] img,
html[data-darkmode='1'] #blueimp-gallery, html[data-darkmode='1'] #blueimp-gallery,
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'] #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'] #loginMainDiv {
filter: invert(1) hue-rotate(180deg) !important;
}
html[data-darkmode='1'] #loginMainDiv div#centerBox {
filter: invert(1) hue-rotate(180deg) !important; filter: invert(1) hue-rotate(180deg) !important;
} }
html[data-darkmode='1'] div.dhtmlxMenu_egw_SubLevelArea_Polygon, html[data-darkmode='1'] div.dhtmlxMenu_egw_SubLevelArea_Polygon,

View File

@ -14,6 +14,10 @@
html[data-darkmode='2'] { html[data-darkmode='2'] {
background: #000; background: #000;
filter: invert(1) hue-rotate(180deg); filter: invert(1) hue-rotate(180deg);
#loginMainDiv {
filter: invert(1) hue-rotate(180deg) !important;
}
#loginMainDiv div#centerBox{filter: invert(1) hue-rotate(180deg) !important;}
} }
} }
/** /**
@ -27,9 +31,10 @@
position: fixed; // ATM Firefox doesn't like filter:invert on none fixed html position: fixed; // ATM Firefox doesn't like filter:invert on none fixed html
filter: invert(1) hue-rotate(180deg); filter: invert(1) hue-rotate(180deg);
img, #blueimp-gallery, img, #blueimp-gallery,
#egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active { #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, #loginMainDiv {
filter: invert(1) hue-rotate(180deg) !important; filter: invert(1) hue-rotate(180deg) !important;
} }
#loginMainDiv div#centerBox{filter: invert(1) hue-rotate(180deg) !important;}
div.dhtmlxMenu_egw_SubLevelArea_Polygon,.egw_tooltip, div.dhtmlxMenu_egw_SubLevelArea_Polygon,.egw_tooltip,
body .egw_message_wrapper,#egw_fw_header #egw_fw_topmenu,.ui-dialog, .box_shadow body .egw_message_wrapper,#egw_fw_header #egw_fw_topmenu,.ui-dialog, .box_shadow
{ {