Files
Trilium/apps/client/src/widgets/note_title.css
T
2025-12-13 11:51:57 +02:00

95 lines
2.0 KiB
CSS

.note-title-widget {
flex-grow: 1000;
height: 100%;
}
.note-title-widget input.note-title {
font-size: 110%;
border: 0;
margin: 2px 0px;
min-width: 5em;
width: 100%;
padding: 1px 12px;
}
.note-title-widget input.note-title[readonly] {
background: inherit;
outline: none;
}
.note-title-widget input.note-title.protected {
text-shadow: 4px 4px 4px var(--muted-text-color);
}
body.mobile .note-title-widget input.note-title {
padding: 0;
}
body.desktop .note-title-widget input.note-title {
font-size: 180%;
}
body.experimental-feature-new-layout {
.title-row {
container-type: size;
@container (max-width: 700px) {
.note-icon-widget .note-icon {
font-size: 1.3em;
}
.note-title-widget {
display: flex;
align-items: center;
.note-title {
font-size: 1em;
}
}
.note-title-widget:focus-within + .note-badges,
.breadcrumb-badge .text {
display: none;
}
}
&.collapse {
.note-icon-widget,
.note-title-widget {
visibility: hidden;
}
}
}
}
body.experimental-feature-floating-titlebar {
.title-row {
max-width: var(--max-content-width);
padding: 0;
padding-inline-start: 24px;
}
.note-icon-widget {
padding: 0;
width: 41px;
}
.note-split.type-code:not(.mime-text-x-sqlite) .title-row {
background-color: var(--main-background-color);
}
.scrolling-container:has(> :is(.note-detail.full-height, .note-list-widget.full-height)),
.note-split.type-book {
.title-row {
width: 100%;
max-width: unset;
padding-inline-start: 15px;
padding-bottom: 0.2em;
font-size: 0.8em;
}
}
&.prefers-centered-content .title-row {
margin-inline: auto;
}
}