-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGarminConnectDark.user.css
More file actions
254 lines (229 loc) · 5.94 KB
/
GarminConnectDark.user.css
File metadata and controls
254 lines (229 loc) · 5.94 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
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
/* ==UserStyle==
@name Garmin Connect Dark Mode (Updated)
@version 3.5
@namespace nick2bad4u.github.io
@homepageURL https://github.com/Nick2bad4u/UserStyles
@supportURL https://github.com/Nick2bad4u/UserStyles/issues
@description Garmin Connect Dark Dashboard
@author Nick2bad4u
@license UnLicense
@preprocessor stylus
@var checkbox dim-video-container "Dim YouTube Video Container" 1
@var color inverted-background "Inverted Background Color" #000000
@var color inverted-background2 "Inverted Background Color2" #ffffff
@var color primary-text "Primary Text Color" #ffffff
@var color primary-text2 "Primary Text Color2" #000000
@var color header-text "Header Text Color" #000000
@var color border-color "Border Color" #5971c6f0
@var color scrollbar-thumb-color "Scrollbar Thumb Color" #30acfd
@var color scrollbar-background-color "Scrollbar Background Color" #ffffff
@downloadURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/GarminConnectDark.user.css
@updateURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/GarminConnectDark.user.css
==/UserStyle== */
@-moz-document domain("connect.garmin.com") {
:root {
--inverted-background: var(inverted-background);
--inverted-background2: var(inverted-background2);
--primary-text: var(primary-text);
--primary-text2: var(primary-text2);
--header-text: var(header-text);
--border: var(border-color);
--scrollbar-thumb: var(scrollbar-thumb-color);
--scrollbar-background: var(scrollbar-background-color);
}
.connect-container {
filter: invert(1) hue-rotate(180deg);
}
.main-nav,
.leaflet-zoom-animated,
html img,
#activityYouTubePlaceholder > div,
.modal-backdrop,
.modal:not(
.modal.fullscreen.fullscreen,
.modal-wide.metrics-edit-modal.in
),
.edit-carousel-content .edit-image-div,
.Notification_notification__189UW,
.connect-map-view .leaflet-container,
.marTopXS > iframe {
-webkit-filter: invert(1) hue-rotate(180deg) !important;
filter: invert(1) hue-rotate(180deg) !important;
}
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
color: var(--header-text);
font-weight: 600;
}
th.weekly-totals.weekly-totals-header,
td.weekly-totals.weekly-totals-data,
#defaultActivityOptionsGroup
> div.row-fluid.page-top
> div.span8.page-intro
> div
> h3
> div
> div
> button
> i,
.modal-body > select {
filter: invert(1) hue-rotate(180deg);
background-color: var(--inverted-background) !important;
color: var(--primary-text) !important;
}
/* stylelint-disable-next-line selector-type-no-unknown -- Stylus preprocessor conditional block */
if dim-video-container {
.video-container {
opacity: 10%;
}
.video-container:hover {
opacity: 100% !important;
}
}
.in.fade.modal-backdrop {
display: table !important;
}
[class*='modal']:not(
#pageContainer
> div
> div.modal.hide.fade.modal-wide.metrics-edit-modal.in
> div.modal-header
> h3,
#pageContainer
> div
> div
> div.row-fluid.list-items.flexItemAutoHeight
> ul
> li:nth-child(n)
> div
> div.pull-left.activity-name-type.title-col
> div.activity-name-edit.inline-edit.inline-edit-text-field
> button,
#activityIntroViewPlaceholder
> div.page-header-content
> h3
> div
> div
> button,
.inline-edit-trigger,
.modal.fade.in,
.modal-header h3,
.fade,
:not(.help-icon)
) {
/* Manipulations stuff */
filter: invert(1) hue-rotate(180deg);
/* Box model stuff */
border-color: var(--border);
background-color: var(
--inverted-background2
) !important;
/* Typography stuff */
color: var(--primary-text2) !important;
}
.photo-carousel {
background-color: var(
--inverted-background2
) !important;
}
.photo-carousel-modal .close {
color: var(--primary-text2) !important;
}
.photo-carousel-modal .photo {
filter: unset !important;
cursor: initial;
}
.photo-carousel-modal .slides {
margin-bottom: 35px;
background: var(--inverted-background);
}
.btn-small {
z-index: 9999;
}
.react-global-modal .Dialog_dialogFooter__W9xGT > a {
background-color: var(
--inverted-background2
) !important;
color: var(--primary-text2);
}
/* For WebKit browsers (e.g., Chrome, Safari) */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-thumb {
border: 3px solid var(--scrollbar-background-color);
border-radius: 6px;
background-color: var(--scrollbar-thumb-color);
}
/* For Edge, IE */
body {
-ms-overflow-style: -ms-autohiding-scrollbar;
}
}
@-moz-document domain("forums.garmin.com"),
regexp("^https?:\\/\\/(www\\.)?garmin\\.com(\\/[^\\s]*)?$") {
:root {
--inverted-background: var(inverted-background);
--inverted-background2: var(inverted-background2);
--primary-text: var(primary-text);
--primary-text2: var(primary-text2);
--header-text: var(header-text);
--border: var(border-color);
--scrollbar-thumb: var(scrollbar-thumb-color);
--scrollbar-background: var(scrollbar-background-color);
}
:is(
html:not([stylus-iframe]),
#app,
.ugc-gallery-image__figure__img,
.app__headline--dark,
img:not(.avatar > a > img),
svg,
video
),
.content-author .avatar img,
.gf__footer,
.g__email-signup,
.g__tile .g__tile__content-text > .g__heading p,
.css-karl3g div,
.app__color__picker__item,
.app__tabs__content__wrap img,
.app__tabs__content__main,
.app__product__card,
.app__related__card__inner {
filter: invert(1) hue-rotate(180deg);
}
.g__email-signup,
.g__email-signup__copy__disclaimer,
.g__email-signup__copy__disclaimer a,
.app__sidebar__full {
background-color: var(--inverted-background);
color: var(--primary-text);
}
.app__feature__card__image {
filter: unset !important;
}
/* For WebKit browsers (e.g., Chrome, Safari) */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-thumb {
border: 3px solid var(--scrollbar-thumb);
border-radius: 6px;
background-color: var(--scrollbar-background-color);
}
/* For Edge, IE */
body {
-ms-overflow-style: -ms-autohiding-scrollbar;
}
}