forked from linuz90/better-roam-research
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
378 lines (323 loc) · 13.5 KB
/
main.css
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
:root {
--font-size: 15.5px;
--font-color: hsl(205, 23%, 16%);
--font-color-lighter: hsl(0, 0%, 40%);
--font-color-placeholder: hsl(0, 0%, 70%);
--link-color: hsl(203, 82%, 35%);
--selection-color: hsl(203, 100%, 74%);
--ref-hover-bg-color: hsl(204, 33%, 97%);
--border-color: rgba(0, 0, 0, 0.12);
--subtle-border-color: rgba(0, 0, 0, 0.07);
--search-border-color: rgba(0, 0, 0, 0.07);
--page-background-color: hsl(210, 9%, 98%);
--main-area-background-color: #ffffff;
--secondary-background-color: hsl(210, 9%, 95%);
--popup-background-color: #ffffff;
--reference-item-background: hsl(0, 0%, 99%);
--brackets-color: rgba(0, 0, 0, 0.25);
--empty-text-color: hsl(203, 12%, 75%); }
body,
.roam-body,
.roam-app,
.rm-pages-title-text,
.bp3-button {
color: var(--font-color) !important; }
html,
body,
#app {
background: var(--page-background-color) !important; }
.roam-center {
border-left: 1px solid var(--subtle-border-color) !important;
border-top: 1px solid var(--subtle-border-color) !important;
border-right: 1px solid var(--subtle-border-color) !important;
border-radius: 12px;
box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.03) !important;
overflow: visible !important;
background: var(--main-area-background-color) !important;
margin-right: 12px;
margin-left: 12px; }
@media (max-width: 640px) {
.roam-center {
margin-right: 6px;
margin-left: 6px; } }
.roam-center .roam-article {
padding: 16px 36px 120px !important; }
@media (max-width: 860px) {
.roam-center .roam-article {
padding: 12px 28px 120px !important; } }
@media (max-width: 640px) {
.roam-center .roam-article {
padding: 10px 20px 120px !important; } }
.roam-topbar {
background: var(--page-background-color) !important;
border-bottom: none !important; }
.roam-topbar input#find-or-create-input {
box-shadow: none !important;
border: 1px solid var(--search-border-color) !important; }
.roam-body,
.roam-topbar,
#right-sidebar,
.roam-sidebar-container {
background: var(--page-background-color) !important;
box-shadow: none !important; }
#right-sidebar {
border: none !important;
transition: none !important;
overflow: hidden !important; }
#right-sidebar h1 {
font-size: 18px !important; }
#right-sidebar #roam-right-sidebar-content {
margin-left: -6px !important; }
#right-sidebar #roam-right-sidebar-content > div[style] {
border-bottom: 1px solid var(--subtle-border-color) !important; }
#right-sidebar .hoverparent,
#right-sidebar .react-resizable {
max-width: 100% !important; }
#right-sidebar .hoverparent img,
#right-sidebar .react-resizable img {
max-width: 100% !important; }
.rm-title-display,
.rm-title-textarea {
height: auto !important;
line-height: 1.5 !important;
font-size: 26px !important;
font-weight: 700 !important; }
.rm-level1 {
margin-top: -4px !important; }
.rm-level1 div,
.rm-level1 textarea {
font-size: 22px !important;
line-height: 1.5 !important;
font-weight: 700 !important; }
.rm-level2 {
margin-top: -3px !important; }
.rm-level2 div,
.rm-level2 textarea {
font-size: 20px !important;
line-height: 1.5 !important;
font-weight: 600 !important; }
.rm-level3 {
margin-top: -2px !important; }
.rm-level3 div,
.rm-level3 textarea {
font-size: 18px !important;
line-height: 1.5 !important; }
.level2 {
font-weight: inherit !important; }
h1 {
color: var(--font-color) !important; }
div.roam-article span > a:not(.rm-alias-page):after {
content: "";
display: inline-block;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48ZyBmaWxsPSIjMzM3QUI3Ij48cGF0aCBkPSJNNiAxMmwxLjA2NTgxZS0xNCAxLjUwOTk2ZS0wN2M4LjMzOTI3ZS0wOC41NTIyODUuNDQ3NzE1IDEgMSAxaDkuNWwtNC4zNzExNGUtMDgtMS43NzYzNmUtMTVjLjU1MjI4NSAyLjQxNDExZS0wOCAxLS40NDc3MTUgMS0xIDIuNDE0MTFlLTA4LS41NTIyODUtLjQ0NzcxNS0xLTEtMWgtOS41bC00LjM3MTE0ZS0wOCAzLjU1MjcxZS0xNWMtLjU1MjI4NSAyLjQxNDExZS0wOC0xIC40NDc3MTUtMSAxIDAgMCAwIDguODgxNzhlLTE1IDAgOC44ODE3OGUtMTVaIj48L3BhdGg+PHBhdGggZD0iTTguMiAxNC43MjJsMS4wMDg3OWUtMDctOC4yMjU5MWUtMDhjLS42MjEwMzguNTA2NDA2LTEuMzk4NjcuNzgxNDA3LTIuMi43NzhsLTEuNTI5OWUt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43ODEyNDEgMi4yLS43NzhsLTEuNTI5OWUtMDcgMy41NTI3MWUtMTVjMS45MzMtOC40NDk0ZS0wOCAzLjUgMS41NjcgMy41IDMuNSA4LjQ0OTRlLTA4IDEuOTMzLTEuNTY3IDMuNS0zLjUgMy41bC0xLjY3NDk0ZS0wNyA3LjcxMThlLTEwYy0uODAxMjAzLjAwMzY4ODkxLTEuNTc4ODMtLjI3MDk1My0yLjItLjc3N2w1LjIzNjA2ZS0wOCA0LjIzMzI2ZS0wOGMtLjQyOTY3OC0uMzQ3Mzg3LTEuMDU5NjEtLjI4MDY3OC0xLjQwNy4xNDkgLS4zNDczODcuNDI5Njc4LS4yODA2NzggMS4wNTk2MS4xNDkgMS40MDdsMS41NDU4OGUtMDcgMS4yNDgzNmUtMDdjMi4zNjMyMyAxLjkwODM5IDUuODI2MDYgMS41Mzk2OCA3LjczNDQ1LS44MjM1NDggMS45MDgzOS0yLjM2MzIzIDEuNTM5NjgtNS44MjYwNi0uODIzNTQ4LTcuNzM0NDUgLS45Nzc2ODEtLjc4OTUxNC0yLjE5NjI1LTEuMjIwNDItMy40NTI5MS0xLjIyMVoiPjwvcGF0aD48L2c+PC9zdmc+);
transform: rotate(-45deg);
background-size: 15px 15px;
width: 15px;
height: 15px;
margin: 0 2px 0 3px;
position: relative;
bottom: -2px;
left: -1px; }
div.roam-article .rm-level1 span > a:not(.rm-alias-page):after {
background-size: 20px 20px;
width: 20px;
height: 20px; }
div.roam-article .rm-level2 span > a:not(.rm-alias-page):after {
background-size: 18px 18px;
width: 18px;
height: 18px; }
div.roam-article .rm-level3 span > a:not(.rm-alias-page):after {
background-size: 16px 16px;
width: 16px;
height: 16px; }
.block-highlight-blue {
background-color: var(--selection-color) !important; }
.rm-page-ref-link-color {
color: var(--link-color) !important; }
.rm-page-ref-brackets {
color: var(--brackets-color) !important; }
.bp3-input {
color: var(--font-color) !important;
background: var(--main-area-background-color) !important; }
.bp3-input::placeholder {
color: var(--font-color-placeholder) !important; }
.bp3-elevation-3,
.confirmation-content-dialog,
.bp3-dialog {
background: var(--popup-background-color) !important; }
.bp3-elevation-3 div.dont-unfocus-block[style*="background"] {
background: var(--secondary-background-color) !important; }
.rm-title-untitled,
#block-input-ghost > span,
textarea::placeholder {
color: var(--empty-text-color) !important; }
.rm-all-pages .table .rm-pages-row.rm-pages-row-header {
background: var(--page-background-color) !important; }
body,
div,
textarea,
.level2 {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important; }
iframe {
border: none !important; }
.loading-astrolabe {
position: absolute !important;
width: 80px !important;
height: 80px !important;
opacity: 0.3 !important;
top: calc(50% - 40px) !important;
left: calc(50% - 40px) !important; }
#roam-sidebar-logo {
display: none !important; }
.rm-page-ref-tag {
color: #9099a1 !important; }
span.checkmark {
top: -2px; }
.roam-log-container .roam-log-page {
border-top: 1px solid var(--subtle-border-color) !important; }
.roam-log-container .roam-log-page:first-child {
min-height: 0 !important;
border-top: none !important; }
.rm-embed-container {
border-radius: 6px !important; }
.rm-reference-item {
background: var(--reference-item-background) !important;
border: 1px solid var(--subtle-border-color) !important;
border-radius: 6px !important;
padding: 8px 10px 8px 2px !important; }
.rm-reference-item .rm-block-text {
font-size: var(--font-size) !important; }
.rm-full-width {
margin-right: 0 !important; }
.kanban-board {
max-width: 100% !important;
padding: 2px !important;
background: none !important; }
.kanban-board .kanban-column {
border-radius: 6px !important; }
.kanban-board .kanban-column:not([style*="background"]) {
background: var(--secondary-background-color) !important; }
.kanban-board .kanban-column .kanban-title {
border-bottom: 1px solid var(--subtle-border-color) !important; }
.kanban-board .kanban-column .kanban-card {
background: var(--main-area-background-color) !important;
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.15), 0px 4px 6px rgba(0, 0, 0, 0.05) !important;
border-radius: 4px !important;
padding: 6px 10px !important;
font-size: 15px !important; }
.bp3-button {
color: var(--font-color-lighter) !important; }
.bp3-popover-content div > div > .flex-h-box div > div > span,
.bp3-popover-content div > div > .flex-h-box div > div > strong,
.bp3-popover-content div > div > div > button,
.bp3-popover-content > ul > div {
color: #182026 !important; }
.DayPicker {
color: #182026 !important; }
.rm-block-ref {
border-bottom: 0.5px solid var(--border-color) !important; }
.rm-block-ref:hover {
background: var(--ref-hover-bg-color) !important; }
.CodeMirror {
font-size: 13px !important; }
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .log-button:hover,
.roam-body
.roam-app
.roam-sidebar-container
.roam-sidebar-content
.starred-pages-wrapper
.starred-pages
.page:hover {
background-color: transparent !important;
color: var(--font-color) !important; }
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .log-button,
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .starred-pages-wrapper,
.roam-body
.roam-app
.roam-sidebar-container
.roam-sidebar-content
.starred-pages-wrapper
.starred-pages
.page,
.bp3-minimal > div {
color: var(--font-color-lighter) !important;
font-size: 13px !important; }
.roam-sidebar-content {
padding: 0 !important; }
.roam-sidebar-content > div:not(.log-button):not(:first-child) {
padding: 0 !important; }
.roam-sidebar-content > div:first-child {
padding-bottom: 18px !important; }
.roam-sidebar-content div {
line-height: 1.2 !important; }
.roam-sidebar-content .rm-db-title {
margin-top: 0 !important;
color: var(--font-color-lighter) !important; }
.starred-pages-wrapper > div:first-child {
display: none; }
.starred-pages-wrapper .flex-h-box,
.starred-pages-wrapper .flex-h-box span {
font-size: 13px !important;
opacity: 0.6 !important; }
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .log-button,
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .starred-pages-wrapper .starred-pages .page {
padding: 6px 24px 6px !important; }
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .shortcut {
padding: 14px 24px 0; }
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .top-row {
padding: 12px 0 0 20px; }
.roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .top-row:hover {
background-color: inherit; }
.bp3-icon-small {
padding-left: 24px !important; }
.rm-block-text {
max-width: 660px !important;
font-size: var(--font-size) !important; }
.block-bullet-view {
margin-bottom: 3px !important; }
.controls .simple-bullet-outer {
margin-top: 4px !important; }
.block-border-left {
border-left-color: var(--subtle-border-color) !important; }
.rm-reference-main div > strong {
color: gray !important; }
#rm-mobile-bar {
background-color: var(--main-area-background-color) !important; }
#rm-mobile-bar[style*="bottom: 0px"] {
padding-bottom: env(safe-area-inset-bottom);
box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 15px, rgba(0, 0, 0, 0.1) 0px 0px 50px !important; }
/* Credits */
.roam-topbar > div > div:last-child ul.bp3-menu:after {
content: "Better Roam Research theme by @linuz90";
width: 160px;
display: inline-block;
font-size: 13px;
line-height: 1.4;
padding: 7px;
opacity: 0.6;
color: var(--font-color-lighter); }
@media (prefers-color-scheme: dark) {
:root {
--font-color: hsl(205, 0%, 98%);
--font-color-lighter: hsl(0, 0%, 50%);
--font-color-placeholder: hsl(0, 0%, 36%);
--link-color: hsl(203, 62%, 55%);
--selection-color: hsl(203, 56%, 36%);
--reference-item-background: hsl(0, 0%, 8%);
--ref-hover-bg-color: hsl(204, 20%, 17%);
--border-color: rgba(255, 255, 255, 0.25);
--subtle-border-color: rgba(255, 255, 255, 0.07);
--search-border-color: rgba(255, 255, 255, 0.06);
--page-background-color: hsl(228, 15%, 13%);
--main-area-background-color: hsl(240, 12%, 10%);
--secondary-background-color: hsl(233, 15%, 21%);
--popup-background-color: hsl(0, 0%, 4%);
--brackets-color: rgba(255, 255, 255, 0.3);
--empty-text-color: hsl(203, 5%, 70%); }
.roam-highlight,
.block-highlight-yellow {
background-color: #5a5016 !important; }
.bp3-overlay-backdrop {
background-color: rgba(0, 0, 0, 0.7) !important; }
.rm-embed-container {
background-color: #2b3033 !important; } }