Skip to content

Build your personal knowledge base with Trilium Notes

style(next): update the colors of combo boxes

Adorian Doran99a6e65d1523
diff --git a/src/public/stylesheets/theme-next-dark.css b/src/public/stylesheets/theme-next-dark.css
index 6bac8f85df..59937d1bb4 100644
--- a/src/public/stylesheets/theme-next-dark.css
+++ b/src/public/stylesheets/theme-next-dark.css
@@ -46,6 +46,10 @@
--input-action-button-color: #c6c6c6;
--input-action-button-hover: white;
+ --select-focus-background: #333;
+ --select-focus-text-color: var(--input-text-color);
+ --select-dropdown-text-color: var(--input-text-color);
+
--hover-item-text-color: #efefef;
--hover-item-background-color: #ffffff24;
--hover-item-border-color: transparent;
diff --git a/src/public/stylesheets/theme-next-light.css b/src/public/stylesheets/theme-next-light.css
index 9d9ce38957..64a0101efa 100644
--- a/src/public/stylesheets/theme-next-light.css
+++ b/src/public/stylesheets/theme-next-light.css
@@ -46,6 +46,10 @@
--input-action-button-color: #575757;
--input-action-button-hover: black;
+ --select-focus-background: white;
+ --select-focus-text-color: var(--input-text-color);
+ --select-dropdown-text-color: var(--input-text-color);
+
--hover-item-text-color: black;
--hover-item-background-color: #0000001a;
--hover-item-border-color: transparent;
diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css
index 163b934fe7..fd75614393 100644
--- a/src/public/stylesheets/theme-next/forms.css
+++ b/src/public/stylesheets/theme-next/forms.css
@@ -121,4 +121,33 @@ input::selection,
.input-group .input-clearer-button {
background: transparent !important;
+}
+
+/* Combo boxes */
+
+select, select.form-select {
+ outline: 3px solid transparent;
+ outline-offset: 6px;
+ background-color: var(--input-background-color);
+ color: var(--input-text-color);
+ border: unset;
+}
+
+select:hover, select.form-select:hover {
+ background-color: var(--input-hover-background);
+ color: var(--input-hover-color);
+}
+
+select:focus, select.form-select:focus {
+ box-shadow: unset;
+ outline: 3px solid var(--input-focus-outline-color);
+ outline-offset: 0;
+ background-color: var(--select-focus-background);
+ color: var(--select-focus-text-color);
+ transition: outline-color 50ms linear,
+ outline-offset 200ms ease-out;
+}
+
+option {
+ color: var(--select-dropdown-text-color);
}
\ No newline at end of file