Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(toast): relocate styles into own file
Elian Doranb46850e86e99
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex ade2687fb0..f2f5546296 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -1135,54 +1135,6 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[hrefmargin: 0 12px;}-.toast {- --bs-toast-bg: var(--accented-background-color);- --bs-toast-color: var(--main-text-color);- z-index: 9999999999 !important;- pointer-events: all;- overflow: hidden;-}--.toast-header {- background-color: var(--more-accented-background-color) !important;- color: var(--main-text-color) !important;-}--.toast-body {- white-space: preserve-breaks;- overflow: hidden;-}--.toast.no-title {- display: flex;- flex-direction: row;-}--.toast.no-title .toast-icon {- display: flex;- align-items: center;- padding: var(--bs-toast-padding-y) var(--bs-toast-padding-x);-}--.toast.no-title .toast-body {- padding-inline-start: 0;- padding-inline-end: 0;-}--.toast.no-title .toast-header {- background-color: unset !important;-}--.toast .toast-progress {- position: absolute;- bottom: 0;- inset-inline-start: 0;- inset-inline-end: 0;- background-color: var(--toast-text-color) !important;- height: 4px;- transition: width 0.1s linear;-}-.ck-mentions .ck-button {font-size: var(--detail-font-size) !important;padding: 5px;diff --git a/apps/client/src/widgets/Toast.css b/apps/client/src/widgets/Toast.cssindex 720a5c0d4d..6431ceea22 100644--- a/apps/client/src/widgets/Toast.css+++ b/apps/client/src/widgets/Toast.css@@ -9,3 +9,51 @@pointer-events: none;contain: none;}++.toast {+ --bs-toast-bg: var(--accented-background-color);+ --bs-toast-color: var(--main-text-color);+ z-index: 9999999999 !important;+ pointer-events: all;+ overflow: hidden;+}++.toast-header {+ background-color: var(--more-accented-background-color) !important;+ color: var(--main-text-color) !important;+}++.toast-body {+ white-space: preserve-breaks;+ overflow: hidden;+}++.toast.no-title {+ display: flex;+ flex-direction: row;+}++.toast.no-title .toast-icon {+ display: flex;+ align-items: center;+ padding: var(--bs-toast-padding-y) var(--bs-toast-padding-x);+}++.toast.no-title .toast-body {+ padding-inline-start: 0;+ padding-inline-end: 0;+}++.toast.no-title .toast-header {+ background-color: unset !important;+}++.toast .toast-progress {+ position: absolute;+ bottom: 0;+ inset-inline-start: 0;+ inset-inline-end: 0;+ background-color: var(--toast-text-color) !important;+ height: 4px;+ transition: width 0.1s linear;+}