forked from pengx17/logseq-dev-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.css
More file actions
60 lines (54 loc) · 1.34 KB
/
sidebar.css
File metadata and controls
60 lines (54 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@charset "UTF-8";
/* 多列侧边栏 */
/* https://discord.com/channels/725182569297215569/752845138148982877/885123354359631942 */
:root {
--masonry-startWidth: 450px;
/* DEFAULT: 550px; Use "unset" to prevent loading in grid like format */
--masonry-minWidth: 60px;
--masonry-maxWidth: 600px;
--masonry-startHeight: 434px;
/* DEFAULT: 243px; Use "unset" to prevent loading in grid like format */
--masonry-minHeight: 56px;
}
.cp__right-sidebar-inner.flex.flex-col.h-full {
overflow: auto;
}
/* 多列sidebar后 调整样式 */
.sidebar-item.content > div > div:first-of-type {
position: sticky;
top: 0;
padding: 0.5rem;
margin: -0.5rem;
z-index: 10;
}
.sidebar-item.content > div > div:first-of-type + div {
margin-top: 1rem;
}
.sidebar-item-list {
height: 91vh !important;
overflow: unset;
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-content: flex-start;
padding-bottom: 0;
}
.cp__right-sidebar .sidebar-item {
display: inline-block;
align-self: flex-start;
overflow-y: auto;
width: var(--masonry-startWidth);
min-width: var(--masonry-minWidth);
max-width: var(--masonry-maxWidth);
margin-right: 8px;
}
/* ==== tables wrap === */
.table-auto {
table-layout: fixed;
width: 90%;
}
.table-auto td.whitespace-nowrap {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}