Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web_docs/src/components/ZoomableImage/styles.module.css from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 4.67 kB
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_docs/src/components/ZoomableImage/styles.module.css
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/web_docs/src/components/ZoomableImage/styles.module.css
-
curl -L -o styles.module.css https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_docs/src/components/ZoomableImage/styles.module.css
4.67 kB
| /* Card chrome — calm teal, Infima-proof buttons */ | |
| .wrap { | |
| margin: 1.5rem 0 2rem; | |
| border: 1px solid #d6d3d1; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| background: #fff; | |
| box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04); | |
| } | |
| .header { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 0.75rem; | |
| padding: 0.75rem 1rem; | |
| border-bottom: 1px solid #e7e5e4; | |
| background: #fafaf9; | |
| } | |
| .title { | |
| margin: 0; | |
| font-size: 0.9375rem; | |
| font-weight: 650; | |
| letter-spacing: -0.01em; | |
| color: #292524; | |
| } | |
| .openBtn { | |
| appearance: none ; | |
| display: inline-flex ; | |
| align-items: center; | |
| justify-content: center; | |
| margin: 0 ; | |
| border: 1px solid #0f766e ; | |
| border-radius: 999px ; | |
| background: #0f766e ; | |
| color: #fff ; | |
| font: inherit ; | |
| font-size: 0.8125rem ; | |
| font-weight: 650 ; | |
| line-height: 1 ; | |
| padding: 0.55rem 1.05rem ; | |
| cursor: pointer ; | |
| box-shadow: 0 1px 2px rgba(15, 118, 110, 0.28); | |
| transition: background 0.15s ease, border-color 0.15s ease; | |
| } | |
| .openBtn:hover { | |
| background: #0d9488 ; | |
| border-color: #0d9488 ; | |
| color: #fff ; | |
| } | |
| .openBtn:focus-visible { | |
| outline: 2px solid #5eead4 ; | |
| outline-offset: 2px; | |
| } | |
| /* Fixed-height frame: fill width, crop from the top. Tall diagrams stay | |
| readable instead of shrink-to-fit with empty side gutters. */ | |
| .previewFrame { | |
| position: relative; | |
| overflow: hidden; | |
| background: | |
| linear-gradient(#e7e5e4 1px, transparent 1px), | |
| linear-gradient(90deg, #e7e5e4 1px, transparent 1px); | |
| background-size: 18px 18px; | |
| background-color: #fafaf9; | |
| } | |
| .preview { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| object-position: top center; | |
| } | |
| .previewFade { | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| height: 2.75rem; | |
| pointer-events: none; | |
| background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%); | |
| } | |
| /* Fullscreen lightbox — absolute regions so TransformWrapper height can't collapse */ | |
| .overlay { | |
| position: fixed; | |
| inset: 0; | |
| z-index: 2147483000; | |
| background: rgba(28, 25, 23, 0.9); | |
| backdrop-filter: blur(8px); | |
| } | |
| .toolbar { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| z-index: 2; | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 0.75rem 1rem; | |
| padding: 0.85rem 1.1rem; | |
| background: rgba(28, 25, 23, 0.94); | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| color: #fafaf9; | |
| } | |
| .toolbarTitle { | |
| margin: 0; | |
| font-size: 0.9375rem; | |
| font-weight: 650; | |
| letter-spacing: -0.01em; | |
| } | |
| .toolbarActions { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .toolBtn, | |
| .toolBtnPrimary { | |
| appearance: none ; | |
| margin: 0 ; | |
| border-radius: 999px ; | |
| font: inherit ; | |
| font-size: 0.8125rem ; | |
| font-weight: 650 ; | |
| line-height: 1 ; | |
| padding: 0.55rem 0.95rem ; | |
| cursor: pointer ; | |
| box-shadow: none ; | |
| } | |
| .toolBtn { | |
| border: 1px solid rgba(255, 255, 255, 0.22) ; | |
| background: rgba(255, 255, 255, 0.1) ; | |
| color: #fafaf9 ; | |
| } | |
| .toolBtn:hover { | |
| background: rgba(255, 255, 255, 0.18) ; | |
| color: #fff ; | |
| } | |
| .toolBtnPrimary { | |
| border: 1px solid #0d9488 ; | |
| background: #0f766e ; | |
| color: #fff ; | |
| } | |
| .toolBtnPrimary:hover { | |
| background: #0d9488 ; | |
| color: #fff ; | |
| } | |
| .stage { | |
| position: absolute; | |
| top: 3.4rem; | |
| bottom: 2.4rem; | |
| left: 0; | |
| right: 0; | |
| cursor: grab; | |
| background: | |
| radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.07), transparent 55%), | |
| #1c1917; | |
| } | |
| .stage:active { | |
| cursor: grabbing; | |
| } | |
| .stageTransform { | |
| width: 100% ; | |
| height: 100% ; | |
| } | |
| .stageContent { | |
| width: 100%; | |
| height: 100%; | |
| display: flex ; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .fullImg { | |
| display: block; | |
| max-width: none; | |
| width: auto; | |
| height: auto; | |
| user-select: none; | |
| pointer-events: none; | |
| box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); | |
| background: #fff; | |
| } | |
| .lightboxHint { | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| z-index: 2; | |
| margin: 0; | |
| padding: 0.6rem 1.1rem; | |
| font-size: 0.75rem; | |
| color: rgba(250, 250, 249, 0.75); | |
| text-align: center; | |
| background: rgba(28, 25, 23, 0.94); | |
| border-top: 1px solid rgba(255, 255, 255, 0.08); | |
| } | |
| @media (max-width: 640px) { | |
| .preview { | |
| max-height: 180px; | |
| } | |
| .toolbarTitle { | |
| width: 100%; | |
| } | |
| .stage { | |
| top: 5.5rem; | |
| } | |
| } | |