myworkoutcompanion.net - Dark Mode [Customizable]

Dark theme for MyWorkoutCompanion

当前为 2025-01-15 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name           myworkoutcompanion.net - Dark Mode [Customizable]
@namespace      typpi.online
@version        1.0.2
@description    Dark theme for MyWorkoutCompanion
@author         Nick2bad4u
@license        UnLicense
@homepageURL    https://github.com/Nick2bad4u/UserStyles

@var color option-bg "Option Background" #000000
@var color option-text "Option Text Color" #ffffff
@var color border-focus "Border Focus Color" #7c3900
@var color box-shadow-focus "Box Shadow Focus Color" #7c390040
@var color button-border "Button Border Color" #ffffff
@var color button-bg "Button Background Color" #a9a9a9
@var color button-text "Button Text Color" #7c3900
@var color event-bg "Event Background Color" #7c3900
==/UserStyle== */
@-moz-document domain("myworkoutcompanion.net") {
  /* Stylus Variables */
  :root {
    --option-bg: var(option-bg);
    --option-text: var(option-text);
    --border-focus: var(border-focus);
    --box-shadow-focus: var(box-shadow-focus);
    --button-border: var(button-border);
    --button-bg: var(button-bg);
    --button-text: var(button-text);
    --event-bg: var(event-bg);
  }

  /* Invert colors except images and videos */
  :is(
    html:not([stylus-iframe]),
    img,
    svg,
    video
  ) {
    filter: invert(1) hue-rotate(180deg) !important;
  }

  option {
    background: var(--option-bg);
    color: var(--option-text);
  }

  .custom-select:focus,
  .form-control:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--box-shadow-focus);
    border-color: var(--border-focus);
  }

  .fc .fc-button-primary,
  .fc .fc-button {
    opacity: 100% !important;
    border-color: var(--button-border) !important;
    background-color: var(--button-bg) !important;
    color: var(--button-text) !important;
  }

  .fc-direction-ltr .fc-daygrid-event.fc-event-end,
  .fc-direction-rtl .fc-daygrid-event.fc-event-start {
    background-color: var(--event-bg) !important;
  }
}