Skip to content

Build your personal knowledge base with Trilium Notes

style/alert bars: use a global style, tweak spacing

Adorian Doranc06435046ba6
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index 69f77569db..9e39b2f002 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -800,3 +800,18 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
background: var(--hover-item-background-color);
color: var(--hover-item-text-color);
}
+
+/*
+ * Alert bars
+ */
+
+div.alert {
+ margin-bottom: 8px;
+ background: var(--alert-bar-background) !important;
+ border-radius: 8px;
+ font-size: .85em;
+}
+
+div.alert p + p {
+ margin-block: 1em 0;
+}
\ No newline at end of file
diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css
index a5041cd553..42a831bae7 100644
--- a/apps/client/src/stylesheets/theme-next/pages.css
+++ b/apps/client/src/stylesheets/theme-next/pages.css
@@ -265,13 +265,6 @@ body.desktop .options-section:not(.tn-no-card) {
margin-bottom: 6px;
}
-.options-section .alert {
- margin-bottom: 8px;
- background: var(--alert-bar-background) !important;
- border-radius: 8px;
- font-size: .85em;
-}
-
nav.options-section-tabs {
min-width: var(--options-card-min-width);
max-width: var(--options-card-max-width);