Ajustar estilos. Cambiar varios elementos span a button

master
Fernando 2021-08-18 15:40:10 -05:00
parent ed4cc86955
commit 07668ed201
17 changed files with 3984 additions and 4569 deletions

File diff suppressed because it is too large Load Diff

BIN
public/img/wall1.webp Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

View File

@ -2,7 +2,7 @@ import { estilosGlobales } from "./Estilos"
import { StyleSheet, css } from "aphrodite" import { StyleSheet, css } from "aphrodite"
import { numWallpaper, setNumWallpaper } from "./Store" import { numWallpaper, setNumWallpaper } from "./Store"
const ultimoIndiceWallpaper = 5 const ultimoIndiceWallpaper = 2
const e = StyleSheet.create({ const e = StyleSheet.create({
contCambiador: { contCambiador: {

View File

@ -25,7 +25,7 @@ export function BotonMaxMin(props: BotonMaxMinProps) {
} }
return ( return (
<div <button
title={tituloBoton()} title={tituloBoton()}
onClick={funcionBoton} onClick={funcionBoton}
className={css( className={css(
@ -37,6 +37,6 @@ export function BotonMaxMin(props: BotonMaxMinProps) {
)} )}
> >
<i className={`${css(estilosGlobales.botonPhospor)} ${iconoBoton()}`} /> <i className={`${css(estilosGlobales.botonPhospor)} ${iconoBoton()}`} />
</div> </button>
) )
} }

View File

@ -27,6 +27,11 @@ const e = StyleSheet.create({
padding: "0.25rem 0.35rem", padding: "0.25rem 0.35rem",
borderRadius: "5px", borderRadius: "5px",
}, },
botonCurso: {
backgroundColor: "transparent",
border: "none",
color: "var(--color)",
},
}) })
interface Props { interface Props {
@ -153,13 +158,13 @@ export function CursosElem(props: Props) {
return ( return (
<div className={claseMemo()}> <div className={claseMemo()}>
<div <button
className={css(e.inline, e.lineaTexto, e.botonTexto, estilosGlobales.contenedorCursor, estilosGlobales.contenedorCursorSoft)} className={css(e.botonCurso, e.inline, e.lineaTexto, e.botonTexto, estilosGlobales.contenedorCursor, estilosGlobales.contenedorCursorSoft)}
onMouseEnter={() => props.tablaObserver.resaltar(idCurso)} onMouseEnter={() => props.tablaObserver.resaltar(idCurso)}
onMouseLeave={() => props.tablaObserver.quitarResaltado()} onMouseLeave={() => props.tablaObserver.quitarResaltado()}
> >
{datosCurso.abreviado} - {datosCurso.nombre} {datosCurso.abreviado} - {datosCurso.nombre}
</div> </button>
<table> <table>
<tbody> <tbody>
<tr> <tr>
@ -210,12 +215,12 @@ export function CursosElem(props: Props) {
</tr> </tr>
</tbody> </tbody>
</table> </table>
<span <button
className={css(e.botonTexto, estilosGlobales.contenedorCursor, estilosGlobales.contenedorCursorSoft)} className={css(e.botonTexto, estilosGlobales.contenedorCursor, estilosGlobales.contenedorCursorSoft)}
onClick={() => props.fnAgregarCurso(datosCurso)} onClick={() => props.fnAgregarCurso(datosCurso)}
> >
{tituloMemo} {tituloMemo}
</span> </button>
</div> </div>
) )
}} }}

View File

@ -44,9 +44,9 @@ export function Horarios(props: HorariosProps) {
}) })
return ( return (
<div className={clases()} title={`Cambiar a ${nombre}`} onClick={() => setAnioActual(nombre)}> <button className={clases()} title={`Cambiar a ${nombre}`} onClick={() => setAnioActual(nombre)}>
{nombre} {nombre}
</div> </button>
) )
}} }}
</For> </For>

View File

@ -34,7 +34,8 @@ const e = StyleSheet.create({
position: "relative", position: "relative",
zIndex: 2, zIndex: 2,
transition: "background-color 250ms", transition: "background-color 250ms",
marginLeft: "4.5rem", // TODO: Vincular al valor en FilaTabla.tsx
marginLeft: "4rem",
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
minHeight: "1.5rem", minHeight: "1.5rem",

View File

@ -187,7 +187,7 @@ export function CeldaFila(props: Props) {
) )
return ( return (
<span className={clases()} <button className={clases()}
onMouseEnter={() => { onMouseEnter={() => {
props.tablaObserver.resaltar(id) props.tablaObserver.resaltar(id)
}} }}
@ -197,7 +197,7 @@ export function CeldaFila(props: Props) {
onClick={fnSeleccionar} onClick={fnSeleccionar}
> >
{txt} {txt}
</span> </button>
) )
}} }}
</For> </For>

View File

@ -10,7 +10,7 @@ import { TablaObserver } from "../TablaObserver"
const e = StyleSheet.create({ const e = StyleSheet.create({
celdaHora: { celdaHora: {
textAlign: "center", textAlign: "center",
width: "3rem", width: "2.5rem",
padding: "0.25rem 0", padding: "0.25rem 0",
position: "absolute", position: "absolute",
top: "-0.75rem", top: "-0.75rem",
@ -19,16 +19,16 @@ const e = StyleSheet.create({
position: "absolute", position: "absolute",
zIndex: -1, zIndex: -1,
height: "100%", height: "100%",
transform: "translateX(-1.5rem)", transform: "translateX(-15px)",
}, },
fila: { fila: {
position: "relative", position: "relative",
zIndex: 2, zIndex: 2,
transition: "background-color 250ms, border 100ms", transition: "background-color 250ms, border 100ms",
marginLeft: "4.5rem", marginLeft: "calc(2.5rem + 20px)",
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
minHeight: "1.2rem", minHeight: "1.1rem",
":hover": { ":hover": {
// backgroundColor: "rgba(200, 200, 200, 0.25)" // backgroundColor: "rgba(200, 200, 200, 0.25)"
}, },
@ -43,7 +43,7 @@ const e = StyleSheet.create({
}, },
celdaResaltado: { celdaResaltado: {
height: "101%", height: "101%",
width: "5px", width: "4px",
display: "inline-block", display: "inline-block",
}, },
celdaResaltadoTransparente: { celdaResaltadoTransparente: {

View File

@ -3,10 +3,10 @@ import { StyleSheet } from "aphrodite"
export const estilosGlobales = StyleSheet.create({ export const estilosGlobales = StyleSheet.create({
contenedor: { contenedor: {
margin: "0.3rem", margin: "0.3rem",
padding: "0.75rem 0.75rem", padding: "0.5rem 0.5rem",
borderRadius: "10px", borderRadius: "0.4rem",
backdropFilter: "blur(40px)", backdropFilter: "blur(40px)",
backgroundColor: "rgba(100, 100, 100, 0.25)", backgroundColor: "rgba(125, 125, 125, 0.3)",
color: "var(--color-texto)", color: "var(--color-texto)",
border: "solid 1px transparent", border: "solid 1px transparent",
}, },

View File

@ -39,7 +39,7 @@ export const horasDescanso = [
"17:30 - 17:40", "17:30 - 17:40",
] ]
const numImgGuardado = Number(localStorage.getItem("num-img") ?? "3") const numImgGuardado = Number(localStorage.getItem("num-img") ?? "1")
export const [modoColor, setModoColor] = createSignal(ModoColor.Oscuro) export const [modoColor, setModoColor] = createSignal(ModoColor.Oscuro)
export const [numWallpaper, setNumWallpaper] = createSignal(numImgGuardado) export const [numWallpaper, setNumWallpaper] = createSignal(numImgGuardado)

View File

@ -26,6 +26,7 @@ export function Wallpaper() {
zIndex: -1, zIndex: -1,
transition: `opacity ${duracionTransicion}ms`, transition: `opacity ${duracionTransicion}ms`,
filter: soportaBackdropFilter ? "" : "blur(40px)", filter: soportaBackdropFilter ? "" : "blur(40px)",
opacity: soportaBackdropFilter ? 1 : 0.75,
}, },
coverTransicion: { coverTransicion: {
opacity: 0, opacity: 0,

View File

@ -1,3 +1,10 @@
body { body {
font-size: 16px;
font-family: Inter, sans-serif; font-family: Inter, sans-serif;
} }
button {
background-color: transparent;
color: var(--color);
border: none;
}