Datasets:
Download web/klaravo.example/reference/site/assets/css/modal.css from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 2.47 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/klaravo.example/reference/site/assets/css/modal.css
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/klaravo.example/reference/site/assets/css/modal.css
-
curl -L -o modal.css https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/klaravo.example/reference/site/assets/css/modal.css
2.47 kB
| .modal { | |
| align-items: center; | |
| display: none; | |
| height: 100%; | |
| left: 0; | |
| overflow: auto; | |
| padding: var(--space-medium); | |
| position: fixed; | |
| top: 0; | |
| width: 100%; | |
| } | |
| .modal[open] { | |
| display: grid; | |
| } | |
| .modal:modal { | |
| max-height: none; | |
| max-width: none; | |
| } | |
| .modal::backdrop { | |
| background: none; | |
| } | |
| .modal__backdrop { | |
| backdrop-filter: blur(1em); | |
| -webkit-backdrop-filter: blur(1em); | |
| background: rgba(var(--rgb-white), 0.8); | |
| cursor: zoom-out; | |
| inset: 0; | |
| position: fixed; | |
| user-select: none; | |
| -webkit-user-select: none; | |
| } | |
| .modal__container { | |
| display: grid; | |
| position: relative; | |
| } | |
| .modal__close { | |
| background: url('/assets/images/general/icon-close.svg') center center/0.425em auto no-repeat var(--color-black); | |
| border-radius: 100%; | |
| cursor: pointer; | |
| height: 1.2em; | |
| position: absolute; | |
| right: -0.6em; | |
| top: -0.6em; | |
| width: 1.2em; | |
| } | |
| .modal__image, | |
| .modal__video { | |
| background: var(--color-white); | |
| border-radius: 0.2em; | |
| box-shadow: var(--box-shadow); | |
| display: grid; | |
| overflow: hidden; | |
| user-select: none; | |
| -webkit-user-select: none; | |
| } | |
| .modal__image { | |
| cursor: zoom-out; | |
| } | |
| .modal__video { | |
| position: relative; | |
| } | |
| .modal__video button { | |
| cursor: pointer; | |
| display: grid; | |
| inset: 0; | |
| place-items: center; | |
| position: absolute; | |
| } | |
| .modal__video button:before, | |
| .modal__video button:after { | |
| content: ''; | |
| pointer-events: none; | |
| position: absolute; | |
| } | |
| .modal__video button:before { | |
| background: linear-gradient(180deg, rgba(var(--rgb-black), 0.6) 0, rgba(var(--rgb-black), 0.15) 80%); | |
| inset: 0; | |
| transition: opacity var(--transition-slow); | |
| } | |
| .modal__video button:after { | |
| background: url('/assets/images/general/icon-video.svg') center center/0.8em auto no-repeat var(--color-white); | |
| border-radius: 100%; | |
| box-shadow: var(--box-shadow-play); | |
| height: 2.2em; | |
| width: 2.2em; | |
| } | |
| .modal__video--playing button { | |
| display: none; | |
| } | |
| @media(hover: hover) { | |
| .modal__close { | |
| transition: transform var(--transition); | |
| will-change: transform; | |
| } | |
| .modal__close:hover { | |
| transform: scale(1.06); | |
| } | |
| .modal__video button:before { | |
| transition: opacity var(--transition); | |
| } | |
| .modal__video button:after { | |
| transition: transform var(--transition); | |
| will-change: transform; | |
| } | |
| .modal__video button:hover:before { | |
| opacity: 0.9; | |
| } | |
| .modal__video button:hover:after { | |
| transform: scale(1.03); | |
| } | |
| } | |
| @media(min-width: 64em) { | |
| .modal { | |
| padding: var(--space-neutral); | |
| } | |
| } | |