Spaces:
Paused
Paused
Download console/src/components/ContextMenu/index.module.less from mysticaldragon/HF: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/components/ContextMenu/index.module.less
- Command line
-
hf download hf://spaces/mysticaldragon/HF/console/src/components/ContextMenu/index.module.less
-
curl -L -o index.module.less https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/components/ContextMenu/index.module.less
1.92 kB
| .contextMenu { | |
| position: fixed; | |
| z-index: 10000; | |
| background: #ffffff; | |
| border: 1px solid #e8ecf1; | |
| border-radius: 8px; | |
| box-shadow: | |
| 0 6px 24px rgba(0, 0, 0, 0.1), | |
| 0 2px 8px rgba(0, 0, 0, 0.06); | |
| padding: 4px 0; | |
| min-width: 160px; | |
| animation: contextMenuFadeIn 0.12s ease-out; | |
| } | |
| @keyframes contextMenuFadeIn { | |
| from { | |
| opacity: 0; | |
| transform: scale(0.96); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: scale(1); | |
| } | |
| } | |
| .menuItem { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 7px 14px; | |
| cursor: pointer; | |
| transition: background 0.15s ease; | |
| user-select: none; | |
| &:hover { | |
| background: #f5f5f5; | |
| } | |
| &.danger { | |
| color: #ff4d4f; | |
| &:hover { | |
| background: #fff2f0; | |
| } | |
| } | |
| &.disabled { | |
| color: #bbb; | |
| cursor: not-allowed; | |
| &:hover { | |
| background: transparent; | |
| } | |
| } | |
| } | |
| .menuIcon { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 16px; | |
| height: 16px; | |
| flex-shrink: 0; | |
| font-size: 14px; | |
| } | |
| .menuLabel { | |
| font-size: 13px; | |
| line-height: 1.4; | |
| white-space: nowrap; | |
| } | |
| .divider { | |
| height: 1px; | |
| background: #f0f0f0; | |
| margin: 4px 0; | |
| } | |
| /* βββ Dark Mode ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| :global(.dark-mode) { | |
| .contextMenu { | |
| background: #2a2a2a; | |
| border-color: #3a3a3a; | |
| box-shadow: | |
| 0 6px 24px rgba(0, 0, 0, 0.35), | |
| 0 2px 8px rgba(0, 0, 0, 0.2); | |
| } | |
| .menuItem { | |
| color: rgba(255, 255, 255, 0.85); | |
| &:hover { | |
| background: rgba(255, 255, 255, 0.08); | |
| } | |
| &.danger { | |
| color: #ff6b6b; | |
| &:hover { | |
| background: rgba(255, 77, 79, 0.1); | |
| } | |
| } | |
| &.disabled { | |
| color: #555; | |
| &:hover { | |
| background: transparent; | |
| } | |
| } | |
| } | |
| .divider { | |
| background: #3a3a3a; | |
| } | |
| } | |