Spaces:
Running
Running
File size: 4,319 Bytes
4255d2e 113e479 4255d2e 113e479 4255d2e 113e479 4255d2e 113e479 4255d2e 113e479 4255d2e 06bd355 4255d2e 06bd355 4255d2e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | /* Controles — botones, campos, pasos, miniaturas. */
/* Acción principal (Aplicar, Guardar) */
.accion {
width: 100%;
min-height: var(--m-accion-alto);
border: 0;
border-radius: var(--r-pastilla);
background: var(--accion-fondo);
color: var(--accion-texto);
font-size: var(--f-md);
font-weight: var(--f-peso-medio);
transition: background var(--t-rapido) var(--curva-resorte);
}
.accion:hover { background: var(--accion-fondo-hover); }
/* Apagada: la misma pastilla teal, solo que a media luz. */
.accion[disabled] { opacity: 0.4; cursor: default; }
.accion--secundaria {
position: relative;
background: var(--vidrio-fondo);
backdrop-filter: var(--vidrio-desenfoque);
-webkit-backdrop-filter: var(--vidrio-desenfoque);
color: var(--texto-principal);
box-shadow: var(--vidrio-sombra), inset 0 0 0 1px var(--accion-secundaria-borde);
}
/* En hover no se cambia el vidrio: se aclara el borde, nada más. */
.accion--secundaria:hover { box-shadow: var(--vidrio-sombra), inset 0 0 0 1px var(--texto-principal); }
.accion--secundaria::before,
.accion--secundaria::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
}
.accion--secundaria::before {
padding: 1px;
background: var(--vidrio-borde-degradado);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); /* token-libre: máscara, no es color de diseño */
-webkit-mask-composite: xor;
mask-composite: exclude;
}
.accion--secundaria::after {
background-image: var(--grano);
background-size: var(--vidrio-grano-tamano);
opacity: var(--vidrio-grano-opacidad);
mix-blend-mode: overlay;
}
/* Acción del umbral, sobre la noche */
.accion--umbral {
width: auto;
padding: 0 var(--e-10);
background: var(--accion-umbral-fondo);
color: var(--accion-umbral-texto);
transition: background var(--t-medio) var(--curva-planeo),
transform var(--t-medio) var(--curva-planeo);
}
.accion--umbral:hover {
background: var(--accion-umbral-hover);
transform: translateY(-1px);
}
/* Enlace discreto (Elegir del ordenador, Otra) */
.enlace {
background: none;
border: 0;
padding: 0;
font-size: var(--f-sm);
color: var(--texto-secundario);
border-bottom: 1px solid var(--borde-marcado);
transition: color var(--t-instante) var(--curva-suave),
border-color var(--t-instante) var(--curva-suave);
}
.enlace:hover { color: var(--texto-principal); border-color: var(--texto-principal); }
/* Paso numerado */
.paso {
display: flex;
flex-direction: column;
gap: var(--e-4);
}
.paso__titulo {
display: flex;
align-items: center;
font-size: var(--f-s);
color: var(--texto-tenue);
}
.paso__numero {
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--m-numero);
height: var(--m-numero);
margin-right: var(--e-3);
border: 1px solid var(--borde-sutil);
border-radius: var(--r-circulo);
font-size: var(--f-xs);
color: var(--texto-tenue);
flex: 0 0 auto;
}
/* Campo de texto */
.campo {
width: 100%;
background: none;
border: 0;
border-bottom: 1px solid var(--borde-sutil);
padding: var(--e-3) 2px;
color: var(--texto-principal);
font-family: inherit;
font-size: var(--f-m);
}
.campo::placeholder { color: var(--texto-marcador); }
.campo:focus-visible { outline: none; border-bottom-color: var(--texto-principal); }
.campo--intencion {
min-height: var(--m-modal-texto);
resize: vertical;
line-height: var(--f-alto-normal);
}
/* Miniaturas de ejemplo */
.miniaturas { display: flex; gap: var(--e-2); }
.miniatura {
padding: 0;
border: 0;
background: none;
line-height: 0;
opacity: 0.6;
border-radius: var(--r-m);
overflow: hidden;
transition: opacity var(--t-instante) var(--curva-suave),
box-shadow var(--t-instante) var(--curva-suave);
}
.miniatura:hover { opacity: 0.9; }
.miniatura[aria-pressed="true"] {
opacity: 1;
box-shadow: 0 0 0 1.5px var(--texto-principal);
}
.miniatura img {
width: var(--m-miniatura-ancho);
height: var(--m-miniatura-alto);
object-fit: cover;
}
:where(button, input, textarea):focus-visible {
outline: 2px solid var(--texto-principal);
outline-offset: 2px;
}
@media (max-width: 640px) {
.miniatura img { height: var(--m-miniatura-alto-movil); }
}
|