Skip to content

Build your personal knowledge base with Trilium Notes

style(templates): nest the template dropdown styles under their root classes

Elian Doran4427cd0cc5d6
diff --git a/apps/client/src/widgets/react/TemplateDropdown.css b/apps/client/src/widgets/react/TemplateDropdown.css
index 7bdec6af22..d26d0a1f43 100644
--- a/apps/client/src/widgets/react/TemplateDropdown.css
+++ b/apps/client/src/widgets/react/TemplateDropdown.css
@@ -1,33 +1,37 @@
-.template-dropdown .template-dropdown-name {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
+.template-dropdown {
+ .template-dropdown-name {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
-.template-dropdown .template-dropdown-button {
- display: flex;
- align-items: center;
- gap: 0.4em;
- max-width: 100%;
- text-align: start;
+ .template-dropdown-button {
+ display: flex;
+ align-items: center;
+ gap: 0.4em;
+ max-width: 100%;
+ text-align: start;
+ }
}
-.template-pill .template-pill-button {
- display: flex;
- align-items: center;
- gap: 0.3em;
- max-width: 100%;
- height: 1.6em;
- border: 1px solid var(--main-border-color);
- border-radius: 999px;
- padding-inline: 0.5em;
- background-color: transparent;
- color: var(--muted-text-color);
- font-size: 0.85em;
- line-height: 1;
-}
+.template-pill {
+ .template-pill-button {
+ display: flex;
+ align-items: center;
+ gap: 0.3em;
+ max-width: 100%;
+ height: 1.6em;
+ border: 1px solid var(--main-border-color);
+ border-radius: 999px;
+ padding-inline: 0.5em;
+ background-color: transparent;
+ color: var(--muted-text-color);
+ font-size: 0.85em;
+ line-height: 1;
-.template-pill .template-pill-button:hover {
- border-color: var(--main-text-color);
- color: var(--main-text-color);
+ &:hover {
+ border-color: var(--main-text-color);
+ color: var(--main-text-color);
+ }
+ }
}