Spaces:
Sleeping
Sleeping
Download src/static/css/news.css from castecabas/Recicler: direct link, hf CLI and curl.
- Browser
- Download file 2.57 kB
-
https://huggingface.co/spaces/castecabas/Recicler/resolve/main/src/static/css/news.css
- Command line
-
hf download hf://spaces/castecabas/Recicler/src/static/css/news.css
-
curl -L -o news.css https://huggingface.co/spaces/castecabas/Recicler/resolve/main/src/static/css/news.css
2.57 kB
| * { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| margin: 0; | |
| width: 100%; | |
| background-color: var(--blanco-pagina); | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| .container { | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| .main-div { | |
| display: flex; | |
| align-items: center; | |
| padding: 20px; | |
| text-align: center; | |
| flex-direction: column; | |
| flex: 1; | |
| width: 100vw; | |
| padding: 0; | |
| } | |
| .main-div h1 { | |
| color: var(--verde-500); | |
| font-size: 400%; | |
| text-shadow: -2px -2px 0 var(--verde-900), -2px 2px 0 var(--verde-900), 2px -2px 0 var(--verde-900), | |
| 2px 2px 0 var(--verde-900); | |
| } | |
| .main-div span { | |
| border-top: 2px solid black; | |
| border-bottom: 2px solid black; | |
| width: 90vw; | |
| padding: 5px 0px 5px 0px; | |
| font-weight: bold; | |
| } | |
| .main-div section { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| } | |
| @media (max-width: 1280px) { | |
| .main-div section { | |
| grid-template-columns: repeat(3, 1fr); | |
| } | |
| } | |
| @media (max-width: 970px) { | |
| .main-div section { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| } | |
| @media (max-width: 650px) { | |
| .main-div section { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .main-div section article { | |
| position: relative; | |
| padding: 5px; | |
| margin: 10px; | |
| aspect-ratio: 1/1; | |
| align-content: center; | |
| max-height: 300px; | |
| border-radius: 2px; | |
| transition: transform 0.3s ease; | |
| background-size: cover; | |
| background-repeat: no-repeat; | |
| overflow: hidden; | |
| border: 0; | |
| } | |
| .main-div section article:hover { | |
| transform: translateX(8px) translateY(-6px); | |
| } | |
| .main-div section article:hover .overlay { | |
| opacity: 0.3; | |
| } | |
| .overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: var(--overlay-intensidad); | |
| opacity: 1; | |
| transition: opacity 0.3s ease; | |
| border-radius: 2px; | |
| z-index: 1; | |
| } | |
| .main-div section article a { | |
| position: relative; | |
| font-weight: bold; | |
| font-size: 200%; | |
| color: white; | |
| overflow-wrap: break-word; | |
| text-decoration: none; | |
| z-index: 2; | |
| } | |
| /* MODO OSCURO */ | |
| body.dark-mode { | |
| background-color: var(--dark-blue); | |
| color: white; | |
| } | |
| body.dark-mode .main-div h1 { | |
| text-shadow: -2px -2px 0 var(--verde-900), -2px 2px 0 var(--verde-900), 2px -2px 0 var(--verde-900), | |
| 2px 2px 0 var(--verde-900); | |
| } | |
| body.dark-mode .main-div span { | |
| border-top: 2px solid #e2e2e2; | |
| border-bottom: 2px solid #e2e2e2; | |
| } | |
| body.dark-mode .main-div section article { | |
| border: 1px outset rgb(165, 165, 165); | |
| } | |