Skip to content

Build your personal knowledge base with Trilium Notes

style/inline title: tweak appearance

Adorian Doran143b1827e66a
diff --git a/apps/client/src/widgets/layout/InlineTitle.css b/apps/client/src/widgets/layout/InlineTitle.css
index afe2066f21..7b81da51e2 100644
--- a/apps/client/src/widgets/layout/InlineTitle.css
+++ b/apps/client/src/widgets/layout/InlineTitle.css
@@ -8,9 +8,14 @@
.inline-title {
max-width: var(--max-content-width);
+ container-type: inline-size;
padding-inline-start: 24px;
& > .inline-title-row {
+ --icon-size: 35px;
+ --icon-padding-size: 10px;
+ --title-size: 1.8em;
+
display: flex;
align-items: center;
gap: 16px;
@@ -20,29 +25,41 @@
opacity: 0;
pointer-events: none;
}
- }
- &.hidden {
- display: none;
- }
+ .note-icon-widget {
+ --note-icon-size: 35px;
+ --note-icon-container-padding-size: 10px;
+ }
- .note-icon-widget {
- --note-icon-size: 35px;
- }
+ .note-title-caption {
+ flex-grow: 1;
+ }
- .note-title-caption {
- flex-grow: 1;
- }
+ .note-title-widget {
+ --note-title-size: 1.8em;
+ --note-title-padding-inline: 0;
+ }
- .note-title-widget {
- --note-title-size: 1.8em;
- --note-title-padding-inline: 0;
+ @container (max-width: 500px) {
+ .note-icon-widget {
+ --note-icon-size: 25px;
+ --note-icon-container-padding-size: 6px;
+ }
- input {
- line-height: 1;
+ .note-title-widget {
+ --note-title-size: 1.5em;
+ }
+
+ .title-details {
+ display: none;
+ }
}
}
+ &.hidden {
+ display: none;
+ }
+
}
.title-row {
@@ -70,11 +87,14 @@ body.prefers-centered-content .inline-title {
display: flex;
gap: 0.25em;
margin: 0;
+ margin-top: .2rem;
list-style-type: none;
opacity: .5;
flex-wrap: wrap;
font-size: .85rem;
line-height: 1;
+ flex-wrap: nowrap;
+ white-space: nowrap;
span.value {
font-weight: 500;
diff --git a/apps/client/src/widgets/note_title.css b/apps/client/src/widgets/note_title.css
index 39338e9f42..09548692d0 100644
--- a/apps/client/src/widgets/note_title.css
+++ b/apps/client/src/widgets/note_title.css
@@ -12,8 +12,10 @@ div.note-title-widget {
.note-title-widget input.note-title {
font-size: var(--note-title-size);
border: 0;
+ border-radius: 0;
min-width: 5em;
width: 100%;
+ line-height: 1;
padding-block: 0;
padding-inline: var(--note-title-padding-inline);
}