Sha256: f08b8f2b1947a0a90c174e7aada80cc5e10695c98184370becd9ceadeda46183

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

@charset "utf-8";
@use "../core" as c;

// Layout: Theme/Scheme Toggle
#theme-toggle {
  vertical-align: sub;
}

[data-theme-controls] {
  display: flex;
  gap: var(--space-xs);
}

button.color-scheme-toggle {
  all: unset;
  display: revert;
}

.color-scheme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-xs);
  cursor: pointer;
}
.color-scheme-toggle .light {
  display: block;
}
.color-scheme-toggle .dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .color-scheme-toggle .light {
    display: none;
  }
  .color-scheme-toggle .dark {
    display: block;
  }
}
[data-color-scheme=light] .color-scheme-toggle .light {
  display: block;
}
[data-color-scheme=light] .color-scheme-toggle .dark {
  display: none;
}
[data-color-scheme=dark] .color-scheme-toggle .light {
  display: none;
}
[data-color-scheme=dark] .color-scheme-toggle .dark {
  display: block;
}
.color-scheme-toggle:active {
  transform: translateY(1px);
}
.color-scheme-toggle:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: var(--outline-offset);
}

.color-scheme-toggle .focus-arrows {
  display: none;
  position: absolute;
  bottom: -0.6em;
  left: 100%;
  color: var(--color-secondary);
  transform: translateX(50%) rotate(45deg);
  pointer-events: none;
}

.color-scheme-toggle:focus-visible .focus-arrows {
  display: block;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
termina-plex-0.6.1.rc2 _sass/termina-plex/layout/toggle.scss
termina-plex-0.6.1.rc1 _sass/termina-plex/layout/toggle.scss