From fc7fb1b7d74f753b203a0c28dc0ba62413d01d94 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Fri, 9 Jul 2021 11:38:07 +0200 Subject: [PATCH] Fixes #1446 Dark mode for add user popin done + focus on input --- admin/themes/default/js/user_list.js | 1 + admin/themes/default/template/user_list.tpl | 10 ---------- admin/themes/default/theme.css | 17 +++++++++++++++++ admin/themes/roma/theme.css | 17 +++++++++++++++++ 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/admin/themes/default/js/user_list.js b/admin/themes/default/js/user_list.js index 4d0b3a06e..7e8b769c9 100644 --- a/admin/themes/default/js/user_list.js +++ b/admin/themes/default/js/user_list.js @@ -739,6 +739,7 @@ function add_user_close() { function add_user_open() { $('#AddUser .AddUserInput').val(''); $("#AddUser").fadeIn(); + $(".AddUserInput").first().focus(); } /*------------------ diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl index 27f116b25..90bb90b1f 100644 --- a/admin/themes/default/template/user_list.tpl +++ b/admin/themes/default/template/user_list.tpl @@ -1701,7 +1701,6 @@ $(".icon-help-circled").tipTip({ top: 50%; transform:translate(-50%, -48%); text-align:left; - background-color:white; padding:40px; flex-direction:column; border-radius:15px; @@ -1721,7 +1720,6 @@ $(".icon-help-circled").tipTip({ .AddIconTitle { font-size:1.7em; font-weight:bold; - color: #000000; margin-bottom:20px; margin-top:15px; } @@ -1735,23 +1733,15 @@ $(".icon-help-circled").tipTip({ .AddUserLabel { display:block; - color: #3E3E3E; font-size:1.3em; } .AddUserInput { display:block; - background-color:white; - border: solid 1px #D4D4D4; font-size:1.3em; padding: 10px 5px; } -.AddUserInput[type="password"], -.AddUserInput[type="text"] { - background-color:white; -} - .AddUserPasswordWrapper { display:flex; justify-content:space-between; diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index 8ce3be664..9af141b4c 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -5261,3 +5261,20 @@ color:#FF7B00; background: #aaaaaa; color: black; } + +.AddUserPopInContainer { + background-color: white; +} + +.AddUserPopInContainer .AddIconTitle { + color: #000000; +} + +.AddUserPopInContainer .AddUserLabel { + color: #3E3E3E; +} + +.AddUserPopInContainer .AddUserInput { + background-color:white; + border: solid 2px #D4D4D4; +} diff --git a/admin/themes/roma/theme.css b/admin/themes/roma/theme.css index 752237e34..346a2f7e6 100644 --- a/admin/themes/roma/theme.css +++ b/admin/themes/roma/theme.css @@ -1484,4 +1484,21 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important; .selectedAlbum span { background-color: #333333 +} + +.AddUserPopInContainer { + background-color: #333; +} + +.AddUserPopInContainer .AddIconTitle { + color: #c1c1c1; +} + +.AddUserPopInContainer .AddUserLabel { + color: #777; +} + +.AddUserPopInContainer .AddUserInput { + background-color:#333; + border: solid 2px #151515; } \ No newline at end of file