Skip to content

Build your personal knowledge base with Trilium Notes

style/refactor: make the current badge style to be global

Adorian Doran88d1af7210c7
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 0bf0588b05..ecff3636ef 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -26,6 +26,10 @@
--bs-body-color: var(--main-text-color) !important;
--bs-body-bg: var(--main-background-color) !important;
--ck-mention-list-max-height: 500px;
+
+ --tn-bs-badge-background: var(--accented-background-color);
+ --bs-badge-color: var(--menu-text-color);
+ --bs-badge-font-weight: normal;
}
.table {
@@ -192,6 +196,11 @@ samp {
font-family: var(--monospace-font-family) !important;
}
+.badge {
+ margin-left: 8px;
+ background: var(--tn-bs-badge-background);
+}
+
.input-group-text {
background-color: var(--accented-background-color) !important;
color: var(--muted-text-color) !important;
diff --git a/apps/client/src/widgets/note_type.ts b/apps/client/src/widgets/note_type.ts
index 055cdf5650..747e4c3f90 100644
--- a/apps/client/src/widgets/note_type.ts
+++ b/apps/client/src/widgets/note_type.ts
@@ -63,13 +63,6 @@ const TPL = /*html*/`
overflow-y: auto;
overflow-x: hidden;
}
-
- .note-type-dropdown .badge {
- margin-left: 8px;
- background: var(--accented-background-color);
- font-weight: normal;
- color: var(--menu-text-color);
- }
</style>
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle select-button note-type-button">
<span class="note-type-desc"></span>