mirror of
https://github.com/zadam/trilium.git
synced 2026-06-28 00:28:57 +02:00
285 lines
5.4 KiB
CSS
285 lines
5.4 KiB
CSS
body.mobile .revisions-dialog {
|
|
.modal-dialog {
|
|
height: 95vh;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25em;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.modal-title {
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
}
|
|
|
|
.modal-body {
|
|
height: fit-content !important;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-footer {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.revision-list {
|
|
height: fit-content !important;
|
|
max-height: 20vh;
|
|
border-bottom: 1px solid var(--main-border-color) !important;
|
|
padding: 0 1em;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.modal-body > .revision-content-wrapper {
|
|
flex-grow: 1;
|
|
max-width: unset !important;
|
|
height: 100%;
|
|
margin: 0;
|
|
display: block !important;
|
|
}
|
|
|
|
.modal-body > .revision-content-wrapper > div:first-of-type {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.revision-title {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.revision-title-buttons {
|
|
text-align: center;
|
|
display: flex;
|
|
gap: 0.25em;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.revision-content {
|
|
padding: 0.5em;
|
|
height: fit-content;
|
|
}
|
|
}
|
|
|
|
body.desktop .revisions-dialog {
|
|
.revision-list {
|
|
width: 300px;
|
|
}
|
|
}
|
|
|
|
.revisions-dialog {
|
|
.modal-body {
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-sidebar {
|
|
background-color: var(--card-background-color);
|
|
}
|
|
|
|
.modal-sidebar .dropdown-menu.static {
|
|
background-color: transparent !important;
|
|
border-radius: 0 !important;
|
|
padding-top: 0 !important;
|
|
}
|
|
|
|
.revision-sidebar-header {
|
|
padding: 0.75rem 1rem;
|
|
flex-shrink: 0;
|
|
text-align: center;
|
|
|
|
h5 {
|
|
margin: 0;
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
.revision-toolbar {
|
|
flex-shrink: 0;
|
|
border-bottom: 1px solid var(--main-border-color);
|
|
padding: 8px 20px;
|
|
}
|
|
|
|
.revision-title {
|
|
font-size: 1.2em;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.revision-toolbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.revision-menu-header {
|
|
font-weight: bold;
|
|
font-size: 0.85em;
|
|
text-transform: uppercase;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.modal-content {
|
|
height: 80vh;
|
|
}
|
|
|
|
.revision-content-wrapper {
|
|
flex-grow: 1;
|
|
padding-inline: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.revision-content {
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
|
|
|
|
.revision-list {
|
|
flex: 1 1 0;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
|
|
.dropdown-item {
|
|
min-height: 2.5em;
|
|
|
|
>div {
|
|
padding-left: 0.25em;
|
|
min-width: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.revision-item-description {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.revision-group-header {
|
|
font-size: 0.75em;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
opacity: 0.5;
|
|
padding: 6px 12px 2px;
|
|
}
|
|
|
|
.revision-item-meta {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
|
|
.revision-description-icon {
|
|
opacity: 0.5;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.revision-description-editor {
|
|
display: flex;
|
|
gap: 5px;
|
|
align-items: center;
|
|
margin: 3px 0;
|
|
|
|
input {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
.revision-description-display {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 3px 0;
|
|
gap: 5px;
|
|
min-height: 24px;
|
|
}
|
|
|
|
.revision-description-text {
|
|
font-size: 0.9em;
|
|
|
|
&.empty {
|
|
opacity: 0.5;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
|
|
/* HTML diff styles (htmldiff-js) */
|
|
.revision-diff-content {
|
|
ins {
|
|
text-decoration: none;
|
|
|
|
&.diffins,
|
|
&.diffmod {
|
|
background-color: color-mix(in srgb, var(--bs-success) 25%, transparent);
|
|
}
|
|
}
|
|
|
|
del {
|
|
text-decoration: line-through;
|
|
|
|
&.diffdel,
|
|
&.diffmod {
|
|
background-color: color-mix(in srgb, var(--bs-danger) 25%, transparent);
|
|
}
|
|
}
|
|
|
|
/* Image diff styles */
|
|
ins img,
|
|
del img {
|
|
border: 3px solid;
|
|
border-radius: 4px;
|
|
position: relative;
|
|
}
|
|
|
|
del img {
|
|
border-color: var(--bs-danger);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
ins img {
|
|
border-color: var(--bs-success);
|
|
}
|
|
}
|
|
|
|
.revision-content.type-file {
|
|
display: flex;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
flex-grow: 1;
|
|
|
|
.file-preview-table {
|
|
th,
|
|
td {
|
|
padding: 0.25em 0;
|
|
}
|
|
}
|
|
|
|
.revision-file-preview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.revision-file-preview-content {
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
> * {
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|