mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-03 14:19:58 +08:00
style(next): full width preview for code notes
This commit is contained in:
parent
d35e933206
commit
b68981a12e
@ -1089,12 +1089,14 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
|
|||||||
* Note list
|
* Note list
|
||||||
*/
|
*/
|
||||||
.note-list .note-book-card {
|
.note-list .note-book-card {
|
||||||
|
--note-list-horizontal-padding: 22px;
|
||||||
|
--note-list-vertical-padding: 15px;
|
||||||
background-color: var(--card-background-color);
|
background-color: var(--card-background-color);
|
||||||
border: 1px solid var(--card-border-color) !important;
|
border: 1px solid var(--card-border-color) !important;
|
||||||
box-shadow: 2px 3px 4px var(--card-shadow-color);
|
box-shadow: 2px 3px 4px var(--card-shadow-color);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
padding: 15px 22px;
|
padding: var(--note-list-vertical-padding) var(--note-list-horizontal-padding);
|
||||||
margin: 5px 10px 5px 0;
|
margin: 5px 10px 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1152,6 +1154,16 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
|
|||||||
color: var(--active-item-text-color);
|
color: var(--active-item-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.note-list-wrapper .note-book-card .note-book-content.type-code {
|
||||||
|
margin: 0 calc(-1 * var(--note-list-horizontal-padding));
|
||||||
|
margin-bottom: calc(-1 * var(--note-list-vertical-padding));
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note-list-wrapper .note-book-card .note-book-content.type-code pre {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.note-list-wrapper .note-book-card .bx {
|
.note-list-wrapper .note-book-card .bx {
|
||||||
color: var(--left-pane-icon-color);
|
color: var(--left-pane-icon-color);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user