-
Notifications
You must be signed in to change notification settings - Fork 65
/
_blocks.scss
149 lines (123 loc) · 2.89 KB
/
_blocks.scss
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
:root {
--ct-bullet-size: 6px;
--ct-block-max-width: calc(100% - 38px);
}
/* block reference */
.block-ref {
display: inline;
font-size: inherit;
border-bottom-color: var(--ct-primary-color);
border-bottom-style: dashed;
}
.block-body {
width: 100%;
}
.block-body .raw_html {
max-width: 100%;
}
.block-ref .block-body {
display: inline-block;
}
.block-ref div {
display: inline;
}
.block-ref .block-body > .cp__fenced-code-block div {
display: block !important;
}
.block-ref .flex.flex-row.justify-between {
display: inline;
}
.block-ref .block-ref {
display: inline;
padding: 0 0 0 0.2em;
}
.open-block-ref-link {
opacity: 1;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.bullet-container .bullet {
width: var(--ct-bullet-size);
height: var(--ct-bullet-size);
transform: scale(1.2);
}
.bullet-container.bullet-closed .bullet {
background-color: var(--ls-primary-background-color);
box-shadow: 0 0 1px 2px var(--ls-block-bullet-border-color);
}
a:hover > .bullet-container .bullet {
opacity: 1;
}
.block-control svg {
color: var(--ct-block-arrow-color);
}
.block-control:hover svg {
filter: drop-shadow(2px 4px 6px black);
}
.block-control .rotating-arrow {
display: block;
border-radius: 50%;
background-color: var(--ls-primary-background-color);
width: 1rem;
height: 1rem;
margin-left: 2px;
margin-top: 2px;
box-shadow: 0 0 4px 2px var(--ls-primary-background-color);
}
.block-control .rotating-arrow > svg {
margin-left: 0 !important;
}
.ls-block div.items-center {
position: relative;
height: 26px !important;
}
// hovering block indicator
.block-content-wrapper > div > .block-content {
& > span > span > :first-child {
position: relative;
&::before {
content: "";
display: block;
position: absolute;
width: 4px;
height: 10px;
top: calc(50% - 5px);
left: -8px;
transform: scaleY(0.5);
transition: all 0.2s;
opacity: 0;
background: var(--ct-primary-color);
border-radius: 2px;
}
}
&:hover > span > span > :first-child::before {
opacity: 1;
transform: scaleY(1);
}
}
/* Block oversize issue */
.block-content-wrapper {
max-width: var(--ct-block-max-width);
}
.block-content-wrapper > div.flex-1 {
width: 100%;
}
.block-content .resize {
max-width: -webkit-fill-available;
}
.add-button-link-wrap:hover .add-button-link {
color: var(--ls-primary-text-color);
opacity: 0.6 !important;
transform: scale(0.9);
}
// https://github.com/pengx17/logseq-dev-theme/issues/77
// add space between content, time cost and scheduled date when references
.block-ref a.fade-link::before, .block-ref a.fade-link::after,
.block-ref .timestamp .opacity-80::before, .block-ref .timestamp .opacity-80::after {
content: " ";
}
.block-ref a.fade-link,
.block-ref .timestamp-label,
.block-ref .timestamp .opacity-80 {
font-size: 75% !important;
}