-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
214 lines (202 loc) · 5.3 KB
/
styles.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
/* @settings
name: Scroll to Top
id: obsidian-scroll-to-top-plugin
settings:
-
id: scroll-to-top-bottom
title: Scroll to top bottom position placement
type: variable-number
default: 2.65
format: em
-
id: scroll-to-top-left
title: Scroll to top right position placement
type: variable-number
default: 2.05
format: em
-
id: scroll-to-bottom-bottom
title: Scroll to bottom bottom position placement
type: variable-number
default: 5.75
format: em
-
id: scroll-to-bottom-left
title: Scroll to bottom right position placement
type: variable-number
default: 2.05
format: em
-
id: scroll-to-cursor-bottom
title: Scroll to cursor bottom position placement
type: variable-number
default: 15.05
format: em
-
id: scroll-to-cursor-left
title: Scroll to cursor right position placement
type: variable-number
default: 2.05
format: em
-
id: scroll-to-top-width
title: Scroll to top button width
type: variable-number
default: 1.875
format: em
-
id: scroll-to-top-height
title: Scroll to top button height
type: variable-number
default: 1.875
format: em
-
id: scroll-to-bottom-width
title: Scroll to bottom button width
type: variable-number
default: 1.875
format: em
-
id: scroll-to-bottom-height
title: Scroll to bottom button height
type: variable-number
default: 1.875
format: em
-
id: scroll-to-cursor-width
title: Scroll to cursor button width
type: variable-number
default: 1.875
format: em
-
id: scroll-to-cursor-height
title: Scroll to cursor button height
type: variable-number
default: 1.875
format: em
*/
/* In case not using the style settings plugin */
:root {
--size-ratio: 1;
--scroll-to-cursor-bottom: 15.05em;
--scroll-to-cursor-left: 2.05em;
--scroll-to-bottom-bottom: 2.65em;
--scroll-to-bottom-left: 2.05em;
--scroll-to-top-bottom: 5.75em;
--scroll-to-top-left: 2.05em;
--scroll-input-width: 1.875em;
--scroll-to-top-width: var(--scroll-input-width);
--scroll-to-top-height: var(--scroll-input-width);
--scroll-to-bottom-width: var(--scroll-input-width);
--scroll-to-bottom-height: var(--scroll-input-width);
--scroll-to-cursor-width: var(--scroll-input-width);
--scroll-to-cursor-height: var(--scroll-input-width);
}
.div-scrollToTop {
position: absolute;
bottom: calc(var(--scroll-to-top-bottom) * var(--size-ratio));
right: calc(var(--scroll-to-top-left) * var(--size-ratio));
z-index: 99;
}
.div-scrollToBottom {
position: absolute;
bottom: calc(var(--scroll-to-bottom-bottom) * var(--size-ratio));
right: calc(var(--scroll-to-bottom-left) * var(--size-ratio));
z-index: 99;
}
.div-scrollToCursor {
position: absolute;
bottom: calc(var(--scroll-to-cursor-bottom) * var(--size-ratio));
right: calc(var(--scroll-to-cursor-left) * var(--size-ratio));
z-index: 99;
}
#__C_scrollToTop {
width: auto;
height: auto;
padding: 3px;
display: grid;
user-select: none;
border-radius: 6px;
transition: 200ms ease;
min-width: fit-content;
justify-content: space-around;
z-index: var(--layer-status-bar);
box-shadow: 0px 3px 32px rgb(31 38 135 / 15%);
border: 1px solid var(--background-modifier-border);
}
#__C_scrollToTop .buttonItem {
margin: 2px;
border: none;
cursor: pointer;
padding: 5px 6px;
box-shadow: none;
margin-left: 3px;
margin-right: 3px;
border-radius: 3px;
width: calc(var(--scroll-to-top-width) * var(--size-ratio));
height: calc(var(--scroll-to-top-height) * var(--size-ratio));
font-size: initial !important;
background-color: var(--background-primary-alt);
}
#__C_scrollToTop button.buttonItem:hover {
background-color: var(--background-secondary);
}
#__C_scrollToBottom {
width: auto;
height: auto;
padding: 3px;
display: grid;
user-select: none;
border-radius: 6px;
transition: 200ms ease;
min-width: fit-content;
justify-content: space-around;
z-index: var(--layer-status-bar);
box-shadow: 0px 3px 32px rgb(31 38 135 / 15%);
border: 1px solid var(--background-modifier-border);
}
#__C_scrollToBottom .buttonItem {
margin: 2px;
border: none;
cursor: pointer;
padding: 5px 6px;
box-shadow: none;
margin-left: 3px;
margin-right: 3px;
width: calc(var(--scroll-to-bottom-width) * var(--size-ratio));
height: calc(var(--scroll-to-bottom-height) * var(--size-ratio));
border-radius: 3px;
font-size: initial !important;
background-color: var(--background-primary-alt);
}
#__C_scrollToCursor {
width: auto;
height: auto;
padding: 3px;
display: grid;
user-select: none;
border-radius: 6px;
transition: 200ms ease;
min-width: fit-content;
justify-content: space-around;
z-index: var(--layer-status-bar);
box-shadow: 0px 3px 32px rgb(31 38 135 / 15%);
border: 1px solid var(--background-modifier-border);
}
#__C_scrollToCursor .buttonItem {
margin: 2px;
border: none;
cursor: pointer;
padding: 5px 6px;
box-shadow: none;
margin-left: 3px;
margin-right: 3px;
width: calc(var(--scroll-to-cursor-width) * var(--size-ratio));
height: calc(var(--scroll-to-cursor-height) * var(--size-ratio));
border-radius: 3px;
font-size: initial !important;
background-color: var(--background-primary-alt);
}
#__C_scrollToBottom button.buttonItem:hover {
background-color: var(--background-secondary);
}