💄 (card) add perspective to cards
This commit is contained in:
@@ -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="actions">
|
||||||
|
<p>Did you remember this?</p>
|
||||||
<div class="buttons is-centered">
|
<div class="buttons is-centered">
|
||||||
<div class="button is-warning is-light" @click.stop="fail">
|
<div class="button is-warning" @click.stop="fail">failed</div>
|
||||||
failed
|
<div class="button is-success" @click.stop="success">got it</div>
|
||||||
</div>
|
|
||||||
<div class="button is-success is-light" @click.stop="success">
|
|
||||||
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>
|
||||||
|
|||||||
@@ -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],
|
||||||
|
|||||||
Reference in New Issue
Block a user