MediaWiki:Gadget-DarkModeSwitch.css: Difference between revisions

From The Fifth City Wiki
Created page
 
Correct wiki shorthand
 
Line 1: Line 1:
.flw-theme-widget-container {
.fcw-theme-widget-container {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
Line 5: Line 5:
}
}


.flw-theme-widget-container > * {
.fcw-theme-widget-container > * {
   flex: none;
   flex: none;
}
}


.flw-theme-icon {
.fcw-theme-icon {
   fill: #266666;
   fill: #266666;
   fill: var(--main-link-color, #266666);
   fill: var(--main-link-color, #266666);
}
}


.flw-theme-icon-dark {
.fcw-theme-icon-dark {
   filter: grayscale(1);
   filter: grayscale(1);
}
}
[data-flw-theme='dark'] .flw-theme-icon-bright {
[data-fcw-theme='dark'] .fcw-theme-icon-bright {
   filter: grayscale(1);
   filter: grayscale(1);
}
}
[data-flw-theme='dark'] .flw-theme-icon-dark {
[data-fcw-theme='dark'] .fcw-theme-icon-dark {
   filter: none;
   filter: none;
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget {
.fcw-theme-toggle.oo-ui-toggleSwitchWidget {
   background-color: #ded4c4;
   background-color: #ded4c4;
   background-color: var(--box-bg-color, #ded4c4);
   background-color: var(--box-bg-color, #ded4c4);
Line 31: Line 31:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled
   .oo-ui-toggleSwitchWidget-grip {
   .oo-ui-toggleSwitchWidget-grip {
   background-color: #266666;
   background-color: #266666;
Line 39: Line 39:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on {
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on {
   background-color: #10140f;
   background-color: #10140f;
   background-color: var(--box-bg-color, #10140f);
   background-color: var(--box-bg-color, #10140f);
Line 46: Line 46:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on
   .oo-ui-toggleSwitchWidget-grip {
   .oo-ui-toggleSwitchWidget-grip {
   background-color: #84d2d2;
   background-color: #84d2d2;
Line 54: Line 54:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:focus {
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:focus {
   border-color: #266666;
   border-color: #266666;
   border-color: var(--main-link-color, #266666);
   border-color: var(--main-link-color, #266666);
Line 61: Line 61:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:hover {
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:hover {
   background-color: #f5e9d6;
   background-color: #f5e9d6;
   background-color: var(--box-bg-hover-color, #f5e9d6);
   background-color: var(--box-bg-hover-color, #f5e9d6);
Line 68: Line 68:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:focus:before {
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:focus:before {
   border: 0;
   border: 0;
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:hover,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:hover,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:focus,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:focus,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:hover,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:hover,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:focus {
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:focus {
   background-color: #266666;
   background-color: #266666;
   border-color: #a8f6f6;
   border-color: #a8f6f6;
Line 83: Line 83:
}
}


.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active
   .oo-ui-toggleSwitchWidget-grip,
   .oo-ui-toggleSwitchWidget-grip,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:hover
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:hover
   .oo-ui-toggleSwitchWidget-grip,
   .oo-ui-toggleSwitchWidget-grip,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:focus
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:focus
   .oo-ui-toggleSwitchWidget-grip,
   .oo-ui-toggleSwitchWidget-grip,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active
   .oo-ui-toggleSwitchWidget-grip,
   .oo-ui-toggleSwitchWidget-grip,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:hover
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:hover
   .oo-ui-toggleSwitchWidget-grip,
   .oo-ui-toggleSwitchWidget-grip,
.flw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:focus
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:focus
   .oo-ui-toggleSwitchWidget-grip {
   .oo-ui-toggleSwitchWidget-grip {
   background-color: #a8f6f6;
   background-color: #a8f6f6;

Latest revision as of 15:07, 3 July 2025

.fcw-theme-widget-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fcw-theme-widget-container > * {
  flex: none;
}

.fcw-theme-icon {
  fill: #266666;
  fill: var(--main-link-color, #266666);
}

.fcw-theme-icon-dark {
  filter: grayscale(1);
}
[data-fcw-theme='dark'] .fcw-theme-icon-bright {
  filter: grayscale(1);
}
[data-fcw-theme='dark'] .fcw-theme-icon-dark {
  filter: none;
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget {
  background-color: #ded4c4;
  background-color: var(--box-bg-color, #ded4c4);
  border-color: #3a3a3a;
  border-color: var(--heading-underline-color, #3a3a3a);
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled
  .oo-ui-toggleSwitchWidget-grip {
  background-color: #266666;
  background-color: var(--main-link-color, #266666);
  border-color: #3a3a3a;
  border-color: var(--heading-underline-color, #3a3a3a);
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on {
  background-color: #10140f;
  background-color: var(--box-bg-color, #10140f);
  border-color: #42686b;
  border-color: var(--heading-underline-color, #42686b);
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on
  .oo-ui-toggleSwitchWidget-grip {
  background-color: #84d2d2;
  background-color: var(--main-link-color, #84d2d2);
  border-color: #42686b;
  border-color: var(--heading-underline-color, #42686b);
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:focus {
  border-color: #266666;
  border-color: var(--main-link-color, #266666);
  box-shadow: inset 0 0 0 1px #266666;
  box-shadow: inset 0 0 0 1px var(--main-link-color, #266666);
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:hover {
  background-color: #f5e9d6;
  background-color: var(--box-bg-hover-color, #f5e9d6);
  border-color: #42686b;
  border-color: var(--heading-underline-color, #42686b);
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:focus:before {
  border: 0;
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:hover,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:focus,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:hover,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:focus {
  background-color: #266666;
  border-color: #a8f6f6;
  box-shadow: inset 0 0 0 1px #266666;
}

.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active
  .oo-ui-toggleSwitchWidget-grip,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:hover
  .oo-ui-toggleSwitchWidget-grip,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled:active:focus
  .oo-ui-toggleSwitchWidget-grip,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active
  .oo-ui-toggleSwitchWidget-grip,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:hover
  .oo-ui-toggleSwitchWidget-grip,
.fcw-theme-toggle.oo-ui-toggleSwitchWidget.oo-ui-widget-enabled.oo-ui-toggleWidget-on:active:focus
  .oo-ui-toggleSwitchWidget-grip {
  background-color: #a8f6f6;
  border-color: #a8f6f6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}