💄 (card) add perspective to cards

This commit is contained in:
Julien Calixte
2023-07-06 01:15:04 +02:00
parent d6a045f96b
commit 3f8cb0985a
2 changed files with 16 additions and 15 deletions

View File

@@ -22,12 +22,11 @@ const fail = () => emit('fail')
<hr /> <hr />
<div class="references" v-html="card.references"></div> <div class="references" v-html="card.references"></div>
<hr /> <hr />
<div class="buttons is-centered"> <div class="actions">
<div class="button is-warning is-light" @click.stop="fail"> <p>Did you remember this?</p>
failed <div class="buttons is-centered">
</div> <div class="button is-warning" @click.stop="fail">failed</div>
<div class="button is-success is-light" @click.stop="success"> <div class="button is-success" @click.stop="success">got it</div>
got it
</div> </div>
</div> </div>
</div> </div>
@@ -44,9 +43,12 @@ $border-radius: 0.5rem;
padding: 0 1rem; padding: 0 1rem;
margin: auto; margin: auto;
user-select: none; user-select: none;
transition: 0.1s;
perspective: 1500px;
&:hover { &:hover {
cursor: pointer; cursor: pointer;
transform: scale(1.03);
} }
.flip-card-inner { .flip-card-inner {
@@ -79,4 +81,12 @@ $border-radius: 0.5rem;
transform: rotateY(180deg); transform: rotateY(180deg);
} }
} }
.actions {
text-align: center;
p {
margin-bottom: 0.5rem;
}
}
</style> </style>

View File

@@ -1,13 +1,4 @@
// @ts-nocheck // @ts-nocheck
// https://github.com/rlidwka/markdown-it-regexp
/*
const texte = "@[tweet](21345)";
const regex = /@\[tweet]\((.*?)\)/;
const resultat = regex.exec(texte)[1];
console.log(resultat);
*/
window.twttr = (function (d, s, id) { window.twttr = (function (d, s, id) {
let js, let js,
fjs = d.getElementsByTagName(s)[0], fjs = d.getElementsByTagName(s)[0],