docs: improve teleport example with transitions

This commit is contained in:
bcakmakoglu
2022-06-15 21:17:36 +02:00
parent 87ad709e5e
commit 2de121509e
3 changed files with 86 additions and 22 deletions
+36 -2
View File
@@ -45,8 +45,8 @@
@media screen and (max-width: 639px) {
.teleportflow aside .port {
display: flex;
flex-direction: row;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 5px;
}
}
@@ -58,3 +58,37 @@
border-radius: 10px;
color: black
}
.teleportable .buttons {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 5px;
gap: 5px;
}
.teleportable .buttons .button {
cursor: pointer;
padding: 5px 10px;
border: 1px solid black;
border-radius: 10px;
color: black;
font-weight: 700;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.teleportable .buttons .button:hover {
background: black;
color: white;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}