Garmin Connect Dark Mode (Updated)

Garmin Connect Dark Dashboard

  1. /* ==UserStyle==
  2. @name Garmin Connect Dark Mode (Updated)
  3. @version 3.5
  4. @namespace typpi.online
  5. @homepageURL https://github.com/Nick2bad4u/UserStyles
  6. @supportURL https://github.com/Nick2bad4u/UserStyles/issues
  7. @description Garmin Connect Dark Dashboard
  8. @author Nick2bad4u
  9. @license UnLicense
  10. @preprocessor stylus
  11.  
  12. @var checkbox dim-video-container "Dim YouTube Video Container" 1
  13. @var color inverted-background "Inverted Background Color" #000000
  14. @var color inverted-background2 "Inverted Background Color2" #ffffff
  15. @var color primary-text "Primary Text Color" #ffffff
  16. @var color primary-text2 "Primary Text Color2" #000000
  17. @var color header-text "Header Text Color" #000000
  18. @var color border-color "Border Color" #5971c6f0
  19. @var color scrollbar-thumb-color "Scrollbar Thumb Color" #30acfd
  20. @var color scrollbar-background-color "Scrollbar Background Color" #ffffff
  21. ==/UserStyle== */
  22. @-moz-document domain("connect.garmin.com")
  23. {
  24. :root
  25. {
  26. --inverted-background: var(inverted-background);
  27. --inverted-background2: var(inverted-background2);
  28. --primary-text: var(primary-text);
  29. --primary-text2: var(primary-text2);
  30. --header-text: var(header-text);
  31. --border: var(border-color);
  32. --scrollbar-thumb: var(scrollbar-thumb-color);
  33. --scrollbar-background: var(scrollbar-background-color);
  34. }
  35.  
  36. .connect-container
  37. {
  38. filter: invert(1) hue-rotate(180deg);
  39. }
  40.  
  41. .main-nav,
  42. .leaflet-zoom-animated,
  43. html img,
  44. #activityYouTubePlaceholder > div,
  45. .modal-backdrop,
  46. .modal:not( .modal.fullscreen.fullscreen,
  47. .modal-wide.metrics-edit-modal.in),
  48. .edit-carousel-content .edit-image-div,
  49. .Notification_notification__189UW,
  50. .connect-map-view .leaflet-container,
  51. .marTopXS > iframe
  52. {
  53. -webkit-filter: invert(1) hue-rotate(180deg) !important;
  54. filter: invert(1) hue-rotate(180deg) !important;
  55. }
  56.  
  57. h1,
  58. .h1,
  59. h2,
  60. .h2,
  61. h3,
  62. .h3,
  63. h4,
  64. .h4,
  65. h5,
  66. .h5,
  67. h6,
  68. .h6
  69. {
  70. color: var(--header-text);
  71. font-weight: 600;
  72. }
  73.  
  74. th.weekly-totals.weekly-totals-header,
  75. td.weekly-totals.weekly-totals-data,
  76. #defaultActivityOptionsGroup > div.row-fluid.page-top > div.span8.page-intro > div > h3 > div > div > button > i,
  77. .modal-body > select
  78. {
  79. filter: invert(1) hue-rotate(180deg);
  80. background-color: var(--inverted-background) !important;
  81. color: var(--primary-text) !important;
  82. }
  83.  
  84. if dim-video-container
  85. {
  86. .video-container
  87. {
  88. opacity: 10%;
  89. }
  90.  
  91. .video-container:hover
  92. {
  93. opacity: 100% !important;
  94. }
  95. }
  96.  
  97. .in.fade.modal-backdrop
  98. {
  99. display: table !important;
  100. }
  101.  
  102. [class*='modal']:not( #pageContainer > div > div.modal.hide.fade.modal-wide.metrics-edit-modal.in > div.modal-header > h3,
  103. #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,
  104. #activityIntroViewPlaceholder > div.page-header-content > h3 > div > div > button,
  105. .inline-edit-trigger,
  106. .modal.fade.in,
  107. .modal-header h3,
  108. .fade,
  109. :not(.help-icon))
  110. {
  111. /*Manipulations stuff*/
  112. filter: invert(1) hue-rotate(180deg);
  113. /*Box model stuff*/
  114. border-color: var(--border);
  115. background-color: var(--inverted-background2) !important;
  116. /*Typography stuff*/
  117. color: var(--primary-text2) !important;
  118. }
  119.  
  120. .photo-carousel
  121. {
  122. background-color: var(--inverted-background2) !important;
  123. }
  124.  
  125. .photo-carousel-modal .close
  126. {
  127. color: var(--primary-text2) !important;
  128. }
  129.  
  130. .photo-carousel-modal .photo
  131. {
  132. filter: unset !important;
  133. cursor: initial;
  134. }
  135.  
  136. .photo-carousel-modal .slides
  137. {
  138. margin-bottom: 35px;
  139. background: var(--inverted-background);
  140. }
  141.  
  142. .btn-small
  143. {
  144. z-index: 9999;
  145. }
  146.  
  147. .react-global-modal .Dialog_dialogFooter__W9xGT > a
  148. {
  149. background-color: var(--inverted-background2) !important;
  150. color: var(--primary-text2);
  151. }
  152.  
  153. /* For WebKit browsers (e.g., Chrome, Safari) */
  154. ::-webkit-scrollbar
  155. {
  156. width: 12px;
  157. }
  158.  
  159. ::-webkit-scrollbar-thumb
  160. {
  161. border: 3px solid var(--scrollbar-background-color);
  162. border-radius: 6px;
  163. background-color: var(--scrollbar-thumb-color);
  164. }
  165.  
  166. /* For Edge, IE */
  167. body
  168. {
  169. -ms-overflow-style: -ms-autohiding-scrollbar;
  170. }
  171. }
  172.  
  173. @-moz-document domain("forums.garmin.com"),
  174. regexp("^https?:\\/\\/(www\\.)?garmin\\.com(\\/[^\\s]*)?$")
  175. {
  176. :root
  177. {
  178. --inverted-background: var(inverted-background);
  179. --inverted-background2: var(inverted-background2);
  180. --primary-text: var(primary-text);
  181. --primary-text2: var(primary-text2);
  182. --header-text: var(header-text);
  183. --border: var(border-color);
  184. --scrollbar-thumb: var(scrollbar-thumb-color);
  185. --scrollbar-background: var(scrollbar-background-color);
  186. }
  187.  
  188. :is( html:not([stylus-iframe]),
  189. #app,
  190. .ugc-gallery-image__figure__img,
  191. .app__headline--dark,
  192. img:not(.avatar > a > img),
  193. svg,
  194. video),
  195. .content-author .avatar img,
  196. .gf__footer,
  197. .g__email-signup,
  198. .g__tile .g__tile__content-text > .g__heading p,
  199. .css-karl3g div,
  200. .app__color__picker__item,
  201. .app__tabs__content__wrap img,
  202. .app__tabs__content__main,
  203. .app__product__card,
  204. .app__related__card__inner
  205. {
  206. filter: invert(1) hue-rotate(180deg);
  207. }
  208.  
  209. .g__email-signup,
  210. .g__email-signup__copy__disclaimer,
  211. .g__email-signup__copy__disclaimer a,
  212. .app__sidebar__full
  213. {
  214. background-color: var(--inverted-background);
  215. color: var(--primary-text);
  216. }
  217.  
  218. .app__feature__card__image
  219. {
  220. filter: unset !important;
  221. }
  222.  
  223. /* For WebKit browsers (e.g., Chrome, Safari) */
  224. ::-webkit-scrollbar
  225. {
  226. width: 12px;
  227. }
  228.  
  229. ::-webkit-scrollbar-thumb
  230. {
  231. border: 3px solid var(--scrollbar-thumb);
  232. border-radius: 6px;
  233. background-color: var(--scrollbar-background-color);
  234. }
  235.  
  236. /* For Edge, IE */
  237. body
  238. {
  239. -ms-overflow-style: -ms-autohiding-scrollbar;
  240. }
  241. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址