Cambiar elementos visuales

This commit is contained in:
Araozu 2020-12-27 19:19:17 -05:00
parent 7229ecec74
commit d17f500beb
10 changed files with 31 additions and 17 deletions

View File

@ -128,10 +128,10 @@ export default defineComponent({
const claseDoraWatcher = getClaseDora(valorR, store); const claseDoraWatcher = getClaseDora(valorR, store);
watchEffect(() => { watchEffect(() => {
if (claseDoraWatcher.value !== "") { if (claseDoraWatcher.value !== "") {
const tiempoHastaSig5s = 5000 - (new Date()).getTime() % 5000; const tiempoHastaSigIntervalo = 4000 - (new Date()).getTime() % 4000;
setTimeout(() => { setTimeout(() => {
claseDora.value = claseDoraWatcher.value; claseDora.value = claseDoraWatcher.value;
}, tiempoHastaSig5s); }, tiempoHastaSigIntervalo);
} }
}); });
@ -176,17 +176,24 @@ export default defineComponent({
<style lang="sass"> <style lang="sass">
.cont-carta
margin-left: 1px
.c-carta-resaltada .c-carta-resaltada
transform: translateY(calc(var(--phx) * -1)) transform: translateY(calc(var(--phx) * -1))
filter: saturate(1.75) !important
opacity: 1 !important
.c-carta .c-carta
opacity: 0.85
position: relative position: relative
font: font:
size: calc(var(--phx) * 4 * var(--escala)) size: calc(var(--phx) * 4 * var(--escala))
weight: normal weight: normal
family: "Secular One", "Pt Serif", serif family: "Secular One", "Pt Serif", serif
display: table-cell display: table-cell
border: solid calc(var(--phx) * 0.2 * var(--escala)) var(--color-borde) border: solid calc(var(--phx) * 0.3 * var(--escala)) var(--color-borde)
margin-left: 1px
width: calc(var(--phx) * 5 * var(--escala)) width: calc(var(--phx) * 5 * var(--escala))
height: calc(var(--phx) * 8.5 * var(--escala)) height: calc(var(--phx) * 8.5 * var(--escala))
min-width: calc(var(--phx) * 5 * var(--escala)) min-width: calc(var(--phx) * 5 * var(--escala))
@ -211,14 +218,14 @@ export default defineComponent({
top: -95% top: -95%
width: 100% width: 100%
height: 100% height: 100%
background-image: linear-gradient(135deg, rgba(210, 210, 210, 0.0) 0%, rgba(210, 210, 210, 0.0) 35%, rgba(210, 210, 210, 0.3) 45%, rgba(210, 210, 210, 0.9) 53%, rgba(210, 210, 210, 0.3) 57%, rgba(210, 210, 210, 0.0) 65%, rgba(210, 210, 210, 0.0) 100%) background-image: linear-gradient(135deg, rgba(210, 210, 210, 0.0) 0%, rgba(210, 210, 210, 0.0) 45%, rgba(210, 210, 210, 0.3) 55%, rgba(210, 210, 210, 0.9) 63%, rgba(210, 210, 210, 0.3) 67%, rgba(210, 210, 210, 0.0) 75%, rgba(210, 210, 210, 0.0) 100%)
transition: transform 500ms transition: transform 1000ms
animation-duration: 5s animation-duration: 4s
animation-name: brillocarta animation-name: brillocarta
animation-iteration-count: infinite animation-iteration-count: infinite
@keyframes brillocarta @keyframes brillocarta
35% 50%
transform: translateY(200%) transform: translateY(200%)
to to

View File

@ -17,6 +17,13 @@ div
div.pad div.pad
div.yaku
h4
i.ph-lock-bold.img-lock(title="Solo en mano cerrada")
| Mano completamente cerrada
p Ganar en tu turno con una mano cerrada
grupo-cartas(:cartas="[2, 4, 5, 7, 8, 42, 44, 46, 47, 48, 50]")
div.yaku div.yaku
h4 h4
i.ph-lock-bold.img-lock(title="Solo en mano cerrada") i.ph-lock-bold.img-lock(title="Solo en mano cerrada")

View File

@ -21,7 +21,7 @@ div
br br
p p
router-link(to="/ayuda/") Ayuda router-link(to="/ayuda/") Yaku
br br
p p
router-link(to="/tutorial/") Tutorial router-link(to="/tutorial/") Tutorial

View File

@ -53,7 +53,7 @@ export default defineComponent({
.txt-cartas .txt-cartas
font-size: calc(var(--phx) * 2) font-size: calc(var(--phx) * 3)
.img-dragon-partida .img-dragon-partida

View File

@ -60,13 +60,13 @@ export default defineComponent({
.cont-cuadrante-descarte .cont-cuadrante-descarte
position: absolute position: absolute
width: 25% width: 26%
height: 20% height: 20%
bottom: 17% bottom: 17%
right: 37.5% right: 37%
text-align: left text-align: left
border-top-style: solid border-top-style: solid
border-top-width: calc(var(--phx) * 1.25 * var(--escala)) border-top-width: calc(var(--phx) * 0.75 * var(--escala))
border-top-color: transparent border-top-color: transparent

View File

@ -56,7 +56,7 @@ export default defineComponent({
padding: var(--phx) padding: var(--phx)
border-radius: calc(var(--phx) / 2) border-radius: calc(var(--phx) / 2)
font-size: calc(var(--phx) * 2.5) font-size: calc(var(--phx) * 2.5)
box-shadow: 0 0 calc(var(--phx) * 0.75) calc(var(--phx) * 0.75) #dedede box-shadow: 0 0 calc(var(--phx)) calc(var(--phx)) rgba(120, 120, 120, 0.25)
background-color: var(--color-fondo) background-color: var(--color-fondo)
// //

View File

@ -44,7 +44,7 @@ export default defineComponent({
return { return {
enviarSolicitudIgnorarOportunidad, enviarSolicitudIgnorarOportunidad,
tamano: computed(() => (pH.value * -0.75) + "px") tamano: computed(() => (pH.value * -0.25) + "px")
} }
} }
}); });

View File

@ -68,7 +68,7 @@ export default defineComponent({
opciones, opciones,
enviarSolicitudSeq, enviarSolicitudSeq,
obtCartasOrdenadas, obtCartasOrdenadas,
tamano: computed(() => (pH.value * -0.75) + "px"), tamano: computed(() => (pH.value * -0.25) + "px"),
escala: 0.5 escala: 0.5
} }
} }

View File

@ -73,7 +73,7 @@ export default defineComponent({
return { return {
enviarSolicitudSeq, enviarSolicitudSeq,
obtCartas, obtCartas,
tamano: computed(() => (pH.value * -0.75) + "px"), tamano: computed(() => (pH.value * -0.25) + "px"),
escala: 0.5 escala: 0.5
} }
} }

View File

@ -47,7 +47,7 @@ export default defineComponent({
return { return {
enviarSolicitudWin, enviarSolicitudWin,
tamano: computed(() => (pH.value * -0.75) + "px") tamano: computed(() => (pH.value * -0.25) + "px")
} }
} }
}); });