From c4ad86ba57ef3ca2278a7950a35bbd4298224b9c Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 29 Sep 2021 11:29:41 +0200 Subject: [PATCH] related to #1490 fixed dark mode line albums --- admin/themes/default/js/cat_list.js | 6 +++--- admin/themes/roma/theme.css | 14 +++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/admin/themes/default/js/cat_list.js b/admin/themes/default/js/cat_list.js index db38063a2..ab25aa9aa 100644 --- a/admin/themes/default/js/cat_list.js +++ b/admin/themes/default/js/cat_list.js @@ -15,7 +15,7 @@ function setDisplayCompact() { color : "#848484", }); }); - + $(".categoryBox").removeClass("line_cat"); $(".categoryBox").css({ minWidth: "230px", maxWidth: "350px", @@ -163,7 +163,7 @@ function setDisplayLine() { }); /************************************/ - + $(".categoryBox").addClass("line_cat"); $(".categoryBox").css({ minWidth: "90%", maxWidth: "100%", @@ -287,7 +287,7 @@ function setDisplayTile() { $(".addAlbum.input-mode form").css({ transitionDelay: "0s", }); - + $(".categoryBox").removeClass("line_cat"); $(".categoryBox").css({ minWidth: "220px", maxWidth: "280px", diff --git a/admin/themes/roma/theme.css b/admin/themes/roma/theme.css index 5bf4bbba6..46a09c362 100644 --- a/admin/themes/roma/theme.css +++ b/admin/themes/roma/theme.css @@ -829,7 +829,19 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important; .addFilesButtonChanged {background-color: #888;} .addFilesButtonChanged:hover {background-color: #777;} .categoryBox, .addAlbum {background-color: #333 !important; box-shadow: -1px 1px 2px #1a1a1a;} - +.categoryBox.line_cat:hover { + background: #ffa500 !important; + color: #333 !important; + transition: 0.2s linear; +} +.categoryBox.line_cat:hover .albumInfos { + color: #333 !important; + transition: 0.2s linear; +} +.categoryBox.line_cat:hover .albumActions a span { + color: #333; + transition: 0.2s linear; +} .albumActions a:hover span { color: #fff !important; }