Skip to content

Build your personal knowledge base with Trilium Notes

style(next): create a style for dropdown buttons to mimic combo boxes

Adorian Doran0339d83434b1
diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css
index bf3cfe7b63..f64187c4d3 100644
--- a/src/public/stylesheets/theme-next/forms.css
+++ b/src/public/stylesheets/theme-next/forms.css
@@ -126,24 +126,41 @@ input::selection,
background: transparent !important;
}
-/* Combo boxes */
+/* Combo box-like dropdown buttons */
-select, select.form-select {
+.select-button.dropdown-toggle {
+ padding-right: 40px;
+}
+
+.select-button.dropdown-toggle::after {
+ /* Remove the original arrow */
+ content: unset;
+}
+
+/* Combo boxes and combo box-like dropdown buttons */
+
+select,
+select.form-select,
+.select-button.dropdown-toggle,
+.select-button.dropdown-toggle.btn {
outline: 3px solid transparent;
outline-offset: 6px;
- background: unset;
background: var(--input-background-color)
var(--select-arrow-svg) right 0.75rem center/15px 20px no-repeat;
color: var(--input-text-color);
border: unset;
}
-select:hover, select.form-select:hover {
+select:hover,
+select.form-select:hover,
+.select-button.dropdown-toggle:hover {
background-color: var(--input-hover-background);
color: var(--input-hover-color);
}
-select:focus, select.form-select:focus {
+select:focus,
+select.form-select:focus,
+.select-button.dropdown-toggle:focus {
box-shadow: unset;
outline: 3px solid var(--input-focus-outline-color);
outline-offset: 0;