Spaces:
Paused
Paused
Download console/src/components/ThemeToggleButton/index.module.less from mysticaldragon/HF: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/components/ThemeToggleButton/index.module.less
- Command line
-
hf download hf://spaces/mysticaldragon/HF/console/src/components/ThemeToggleButton/index.module.less
-
curl -L -o index.module.less https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/components/ThemeToggleButton/index.module.less
1.87 kB
| /* ---- Theme toggle button ---- */ | |
| .toggleBtn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| height: 32px; | |
| border: none; | |
| border-radius: 8px; | |
| background: transparent; | |
| cursor: pointer; | |
| transition: | |
| background 0.15s ease, | |
| color 0.15s ease; | |
| color: rgba(0, 0, 0, 0.65); | |
| padding: 0; | |
| flex-shrink: 0; | |
| font-size: 24px; | |
| &:hover { | |
| background: rgba(97, 92, 237, 0.08); | |
| color: #ff7f16; | |
| } | |
| } | |
| /* ---- Theme Dropdown ---- */ | |
| .themeDropdown { | |
| :global { | |
| .qwenpaw-dropdown-menu-item, | |
| .ant-dropdown-menu-item { | |
| color: rgba(26, 23, 22, 0.65); | |
| &:hover { | |
| background: rgba(43, 18, 0, 0.06) ; | |
| } | |
| } | |
| .qwenpaw-dropdown-menu-item-selected, | |
| .ant-dropdown-menu-item-selected { | |
| background: rgba(43, 18, 0, 0.03) ; | |
| color: rgba(26, 23, 22, 0.88) ; | |
| } | |
| } | |
| } | |
| /* Dark mode overrides */ | |
| :global(.dark-mode) { | |
| .toggleBtn { | |
| color: rgba(255, 255, 255, 0.65); | |
| &:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| color: #fff; | |
| } | |
| } | |
| .themeDropdown { | |
| border: 1px solid rgba(255, 255, 255, 0.1) ; | |
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) ; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| :global { | |
| .qwenpaw-dropdown-menu, | |
| .ant-dropdown-menu { | |
| background: #2a2a2a ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| .qwenpaw-dropdown-menu-item, | |
| .ant-dropdown-menu-item { | |
| color: rgba(255, 255, 255, 0.65); | |
| &:hover { | |
| background: rgba(255, 255, 255, 0.08) ; | |
| } | |
| } | |
| .qwenpaw-dropdown-menu-item-selected, | |
| .ant-dropdown-menu-item-selected { | |
| background: rgba(255, 255, 255, 0.06) ; | |
| color: rgba(255, 255, 255, 0.88) ; | |
| } | |
| } | |
| } | |
| } | |