forked from primary-theme/obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscrollbars.scss
116 lines (98 loc) · 4.06 KB
/
scrollbars.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
/*────────────────────────────────────
Scrollbars
────────────────────────────────────*/
body:not(.native-scrollbars) ::-webkit-scrollbar,
body:not(.native-scrollbars) .graph-controls::-webkit-scrollbar {
visibility: visible;
width: var(--scale-2-2);
height: var(--scale-2-2);
border-radius: 0;
display: inherit;
background: var(--scrollbar-bg);
}
body:not(.native-scrollbars) ::-webkit-scrollbar-thumb {
visibility: visible;
background: var(scrollbar-thumb-bg);
border-radius: 0;
}
body:not(.native-scrollbars) ::-webkit-scrollbar-thumb:active {
background: var(--scrollbar-active-thumb-bg);
border-radius: 0;
}
/* Thin Scrollbar */
.scrollbar__thin.scrollbar__thin:not(.native-scrollbars) ::-webkit-scrollbar,
.scrollbar__thin.scrollbar__thin:not(.native-scrollbars) .graph-controls::-webkit-scrollbar {
visibility: visible;
width: var(--scale-2-2);
height: var(--scale-2-2);
border-radius: 0;
display: inherit;
background: var(--scrollbar-bg);
}
.scrollbar__thin.scrollbar__thin:not(.native-scrollbars) ::-webkit-scrollbar-thumb {
visibility: visible;
background: var(scrollbar-thumb-bg);
border-radius: 0;
}
.scrollbar__thin.scrollbar__thin:not(.native-scrollbars) ::-webkit-scrollbar-thumb:active {
background: var(--scrollbar-active-thumb-bg);
border-radius: 0;
}
/* Mac (Grabbable) Scrollbar */
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) ::-webkit-scrollbar {
background: var(--scrollbar-bg);
visibility: visible;
width: 12px;
height: 12px;
border-radius: 0;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) ::-webkit-scrollbar-thumb,
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .node-insert-event ::-webkit-scrollbar-thumb {
visibility: visible;
background: var(scrollbar-thumb-bg);
border: 5px solid var(--background-primary);
border-radius: 24px;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) ::-webkit-scrollbar-thumb:hover,
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .node-insert-event ::-webkit-scrollbar-thumb:hover {
background: var(--interactive-accent);
border-width: 3px;
border-radius: 24px;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) ::-webkit-scrollbar-thumb:active,
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .node-insert-event ::-webkit-scrollbar-thumb:active {
border-radius: 24px;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .workspace-tabs ::-webkit-scrollbar-thumb {
background: var(--background-modifier-border);
border: 5px solid var(--background-secondary);
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .workspace-tabs ::-webkit-scrollbar-thumb:hover {
background: var(--interactive-accent);
border-width: 3px;
border-radius: 24px;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .workspace-tabs ::-webkit-scrollbar-thumb:active {
border-radius: 24px;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .markdown-embed:not(.hover-popover .markdown-embed) ::-webkit-scrollbar-thumb {
border: 5px solid var(--background-primary-alt);
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .markdown-embed:not(.hover-popover .markdown-embed) ::-webkit-scrollbar-thumb:hover {
background: var(--scrollbar-active-thumb-bg);
border-width: 3px;
border-radius: 24px;
}
.scrollbar__mac.scrollbar__mac:not(.native-scrollbars) .markdown-embed:not(.hover-popover .markdown-embed) ::-webkit-scrollbar-thumb:active {
border-radius: 24px;
}
body.plugin-sliding-panes.scrollbar__mac .workspace-split.mod-vertical.mod-root {
background: var(--background-primary);
}
body.plugin-sliding-panes-rotate-header .workspace>.mod-root>.workspace-leaf>.workspace-leaf-content>.view-content {
border-bottom: 1px solid var(--background-modifier-border);
}
/* Hidden Scrollbar */
.scrollbar__hidden:not(.native-scrollbars) ::-webkit-scrollbar {
display: none;
}