From 4c81215a60c495a0ef75e62f85ce427111e98f52 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Fri, 14 Jun 2024 21:50:54 +0900 Subject: [PATCH] fix theme-disrespecting text colorizing --- public/css/select2-overrides.css | 15 +++++++++++++-- public/style.css | 15 +++++++++++---- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/public/css/select2-overrides.css b/public/css/select2-overrides.css index 9598acb51..4e0e2d27c 100644 --- a/public/css/select2-overrides.css +++ b/public/css/select2-overrides.css @@ -23,6 +23,14 @@ opacity: 0.8; } +.select2-selection--single .select2-selection__placeholder { + color: var(--SmartThemeEmColor); +} + +.select2-container--classic .select2-selection--single .select2-selection__placeholder { + color: var(--SmartThemeEmColor); +} + .select2-container .select2-selection--single .select2-selection__rendered { color: var(--SmartThemeBodyColor); line-height: revert; @@ -194,6 +202,7 @@ span.select2.select2-container .select2-selection__choice__remove:hover { .select2_choice_clickable+span.select2-container .select2-selection__choice__display { cursor: pointer; } + .select2_choice_clickable_buttonstyle+span.select2-container .select2-selection__choice__display { cursor: pointer; transition: background-color 0.3s; @@ -211,7 +220,9 @@ span.select2.select2-container .select2-selection__choice__remove:hover { .select2_multi_sameline+span.select2-container .select2-selection--multiple { display: flex; flex-wrap: wrap; -}.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-search--inline { +} + +.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-search--inline { /* Allow search placeholder to take up all space if needed */ flex-grow: 1; } @@ -255,4 +266,4 @@ span.select2.select2-container .select2-selection__choice__remove:hover { .select2_multi_sameline+span.select2-container.select2-container--focus .select2-selection--multiple .select2-search--inline { height: unset; -} +} \ No newline at end of file diff --git a/public/style.css b/public/style.css index 2696255b1..45ee4c5e4 100644 --- a/public/style.css +++ b/public/style.css @@ -381,7 +381,8 @@ table.responsiveTable { } small { - color: var(--grey70); + color: var(--SmartThemeBodyColor); + opacity: 0.7; } .mes.smallSysMes { @@ -2037,11 +2038,17 @@ body[data-stscript-style] .hljs.language-stscript { } .text_pole::placeholder { - color: rgb(139, 139, 139); + color: var(--SmartThemeEmColor) !important; + opacity: 0.7; +} + +textarea::placeholder { + color: var(--SmartThemeEmColor) !important; + opacity: 0.7; } #send_textarea::placeholder { - color: var(--SmartThemeEmColor); + color: var(--SmartThemeEmColor) !important; text-align: center; white-space: nowrap; } @@ -5167,4 +5174,4 @@ body:not(.movingUI) .drawer-content.maximized { color: #FAF8F6; } -/* Pastel White */ +/* Pastel White */ \ No newline at end of file