Spaces:
Sleeping
Sleeping
Download src/static/css/model.css from castecabas/Recicler: direct link, hf CLI and curl.
- Browser
- Download file 8.33 kB
-
https://huggingface.co/spaces/castecabas/Recicler/resolve/main/src/static/css/model.css
- Command line
-
hf download hf://spaces/castecabas/Recicler/src/static/css/model.css
-
curl -L -o model.css https://huggingface.co/spaces/castecabas/Recicler/resolve/main/src/static/css/model.css
8.33 kB
| html, | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| background-color: var(--blanco-pagina); | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| transition: all 0.5s ease; | |
| } | |
| main { | |
| max-height: auto; | |
| } | |
| .btn_openmenu { | |
| font-size: 20px; | |
| cursor: pointer; | |
| position: fixed; | |
| border-radius: 4px; | |
| border: 1px solid var(--verde-700); | |
| color: var(--verde-700); | |
| margin: 25px; | |
| padding: 4px; | |
| padding-right: 15px; | |
| z-index: 100; | |
| font-weight: 600; | |
| } | |
| .btn_openmenu:hover { | |
| background-color: var(--verde-100); | |
| } | |
| .container { | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| width: 100%; | |
| /* Asegura que ocupe todo el ancho */ | |
| align-items: center; | |
| margin: 0; | |
| box-sizing: border-box; | |
| } | |
| main div { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| flex-grow: 1; | |
| width: 100%; | |
| max-width: 800px; | |
| box-sizing: border-box; | |
| } | |
| main div * { | |
| padding: 5px; | |
| } | |
| main div p { | |
| font-weight: bold; | |
| } | |
| main div h5{ | |
| font-size: medium; | |
| font-weight: 500; | |
| margin-top: 0px; | |
| } | |
| main div #video { | |
| border-radius: 20px; | |
| max-width: 640px; | |
| width: 100%; | |
| max-height: 700px; | |
| aspect-ratio: 4/3; | |
| padding: 0; | |
| } | |
| .img-magnifier-container { | |
| position: relative; | |
| display: inline-block; | |
| } | |
| .img-magnifier-glass { | |
| position: absolute; | |
| border: 3px solid #000; | |
| border-radius: 50%; | |
| cursor: none; | |
| width: 150px; | |
| height: 150px; | |
| display: none; | |
| background-repeat: no-repeat; | |
| z-index: 100; | |
| } | |
| main div #resultImage { | |
| border-radius: 20px; | |
| max-width: 640px; | |
| width: 100%; | |
| max-height: 740px; | |
| padding: 0; | |
| border: 0px; | |
| box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5); | |
| } | |
| @media(max-width:638px) { | |
| main div #video{ | |
| border-radius: 0; | |
| } | |
| main div #resultImage { | |
| border-radius: 0; | |
| box-shadow: none; | |
| } | |
| } | |
| main div #captureBtn, | |
| main div #fileinputlabel { | |
| border-radius: 20px; | |
| background-color: var(--verde-500); | |
| color: #1c2d17; | |
| font-weight: bold; | |
| padding: 10px 15px 10px 15px; | |
| border: 1px solid black; | |
| width: 200px; | |
| text-align: center; | |
| font-size: 15px; | |
| } | |
| main div #captureBtn:hover, | |
| main div #fileInput:hover { | |
| background-color: var(--verde-600); | |
| cursor: pointer; | |
| } | |
| main div ul#detectionsList { | |
| overflow-y: auto; | |
| max-height: 200px; | |
| width: 90vw; | |
| max-width: 634px; | |
| } | |
| main div ul#detectionsList li { | |
| font-size: large; | |
| } | |
| .aside { | |
| background: url(../img/nav-aside.webp); | |
| background-repeat: no-repeat; | |
| background-size: cover; | |
| height: 100%; | |
| width: 250px; | |
| position: fixed; | |
| z-index: 100; | |
| top: 0; | |
| left: 0; | |
| background-color: var(--negro-950); | |
| overflow-x: hidden; | |
| transition: 0.5s; | |
| justify-content: center; | |
| color: white; | |
| display: flex; | |
| flex-direction: column; | |
| text-align: center; | |
| align-items: center; | |
| } | |
| .aside * { | |
| margin: 5px 20px 5px 20px; | |
| font-weight: bold; | |
| z-index: 102; | |
| padding: 8px; | |
| color: var(--verde-500); | |
| } | |
| .aside .overlay { | |
| position: absolute; | |
| margin: 0; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: var(--overlay-intensidad); | |
| z-index: 101; | |
| } | |
| .aside img.aside_logo { | |
| aspect-ratio: 1/1; | |
| max-width: 100px; | |
| } | |
| @media(max-height:850px) { | |
| .aside img.aside_logo { | |
| display: none; | |
| } | |
| } | |
| .aside h1 { | |
| color: var(--verde-500); | |
| } | |
| .aside .closebtn { | |
| text-decoration: none; | |
| color: var(--verde-600); | |
| border-radius: 4px; | |
| padding: 10px 15px 10px 15px; | |
| border: 1px solid var(--verde-600); | |
| width: 134px; | |
| } | |
| .aside .closebtn:hover { | |
| color: var(--verde-700); | |
| border: 1px solid var(--verde-700); | |
| } | |
| .aside .logo_x { | |
| position: relative; | |
| padding: 0 8px 0 0; | |
| margin: 0px; | |
| aspect-ratio: 1/1; | |
| height: 20px; | |
| cursor: pointer; | |
| } | |
| /* Estilos del contenedor del tooltip */ | |
| .tooltip-container { | |
| position: relative; | |
| display: inline-block; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| /* Ocultar el tooltip por defecto */ | |
| .tooltip-text { | |
| opacity: 0; | |
| width: 135px; | |
| background-color: #2ea664; | |
| color: var(--verde-50); | |
| text-align: center; | |
| font-size: small; | |
| padding: 5px; | |
| border-radius: 5px; | |
| position: absolute; | |
| top: -120px; | |
| left: 50%; | |
| transform: translateX(-25%); | |
| transition: opacity 0.5s ease-out; | |
| z-index: 9000; | |
| } | |
| .tooltip-container:active .tooltip-text, | |
| .tooltip-container:hover .tooltip-text { | |
| opacity: 1; | |
| animation: hideTooltip 18s forwards; | |
| } | |
| /* Animación para ocultar el tooltip */ | |
| @keyframes hideTooltip { | |
| 0% { | |
| opacity: 0; | |
| } | |
| 2% { | |
| opacity: 1; | |
| } | |
| } | |
| .aside #confidenceThreshold { | |
| accent-color: var(--verde-500); | |
| background-color: white; | |
| cursor:grab; | |
| } | |
| .aside #confidenceValue{ | |
| color: var(--verde-100) | |
| } | |
| .aside .colors li { | |
| list-style: none; | |
| } | |
| .aside #switchCameraBtn { | |
| border-radius: 4px; | |
| background-color: var(--verde-500); | |
| color: #1c2d17; | |
| border: 1px solid black; | |
| } | |
| .aside #switchCameraBtn:hover { | |
| background-color: var(--verde-600); | |
| cursor: pointer; | |
| } | |
| .aside .nav-link-aside { | |
| text-decoration: none; | |
| color: white; | |
| background-color: none; | |
| border-radius: 4px; | |
| max-width: 75vw; | |
| padding: 10px 15px 10px 15px; | |
| border: 1px solid black; | |
| width: 134px; | |
| font-size: large; | |
| } | |
| .aside .nav-link{ | |
| text-decoration: none; | |
| color: var(--verde-50); | |
| background-color: none; | |
| border-radius: 4px; | |
| max-width: 75vw; | |
| padding: 10px 15px 10px 15px; | |
| width: 134px; | |
| font-size: medium; | |
| } | |
| .aside .nav-link:hover { | |
| color: var(--verde-100); | |
| } | |
| .aside .nav-link-aside { | |
| color: var(--verde-500); | |
| border: 1px solid var(--verde-500); | |
| font-size: medium; | |
| } | |
| .aside .nav-link-aside:hover { | |
| color: var(--verde-600); | |
| border: 1px solid var(--verde-600); | |
| cursor: pointer; | |
| } | |
| #captureBtn, label#fileinputlabel{ | |
| display: flex; | |
| flex-direction: row; | |
| text-align: center; | |
| align-items: center; | |
| transition: ease-in-out 0.3s; | |
| } | |
| #captureBtn #logo, label#fileinputlabel #logo{ | |
| width: 16px; | |
| aspect-ratio: 1/1; | |
| margin-right: 5px; | |
| transition: ease 0.5s; | |
| } | |
| label#fileinputlabel:hover { | |
| cursor: pointer; | |
| background-color: var(--verde-600); | |
| } | |
| #captureBtn:hover #logo, label#fileinputlabel:hover #logo{ | |
| transform: rotate(90deg); | |
| } | |
| body div.colors { | |
| padding: 5px; | |
| label { | |
| font-weight: bold; | |
| } | |
| ul { | |
| margin: 0; | |
| padding: 5px 50px 5px 50px; | |
| border-radius: 10px; | |
| background: var(--dark-blue); | |
| max-width: max-content; | |
| position: relative; | |
| justify-content: center; | |
| li { | |
| list-style-type: none; | |
| font-weight: 600; | |
| line-break: anywhere; | |
| } | |
| } | |
| .bio { | |
| color: #00cc66; | |
| } | |
| .cardb { | |
| color: #996633; | |
| } | |
| .glass { | |
| color: #0080ff; | |
| } | |
| .metal { | |
| color: #c0c0c0; | |
| } | |
| .noxios { | |
| color: #ff3333; | |
| } | |
| .paper { | |
| color: #ffff66; | |
| } | |
| .plastic { | |
| color: #ff8000; | |
| } | |
| } | |
| /* MODO OSCURO */ | |
| body.dark-mode { | |
| background-color: var(--dark-blue); | |
| } | |
| body.dark-mode .btn_openmenu{ | |
| border: 1px solid var(--verde-500); | |
| color: var(--verde-500); | |
| } | |
| body.dark-mode .btn_openmenu:hover{ | |
| background-color: var(--verde-50); | |
| } | |
| body.dark-mode h5{ | |
| color:white ; | |
| } | |
| body.dark-mode #video { | |
| border: 1px outset white; | |
| } | |
| body.dark-mode .container p, | |
| body.dark-mode .container h3 { | |
| color: white; | |
| } | |
| body.dark-mode .container p, | |
| body.dark-mode .container ul#detectionsList li { | |
| color: white; | |
| } | |
| body.dark-mode div.colors ul{ | |
| border: 1px solid white; | |
| border-radius: 10px; | |
| } |