refactor(ui): faster animations + chore(deps): bump

This commit is contained in:
Liyas Thomas
2020-12-16 06:05:58 +05:30
parent dd40df4b37
commit 9e166774ef
11 changed files with 92 additions and 56 deletions

View File

@@ -6,7 +6,7 @@
v-for="(color, index) of colors"
:key="`color-${index}`"
v-tooltip="`${color.charAt(0).toUpperCase()}${color.slice(1)}`"
class="inline-flex items-center justify-center p-3 m-2 transition duration-200 ease-in-out bg-transparent rounded-full cursor-pointer border-collapseer-2 hover:shadow-none"
class="inline-flex items-center justify-center p-3 m-2 transition duration-150 ease-in-out bg-transparent rounded-full cursor-pointer border-collapseer-2 hover:shadow-none"
:class="[{ 'bg-bgDarkColor': color === active }, `text-${color}-400`]"
@click="setActiveColor(color)"
>

View File

@@ -47,9 +47,9 @@
@apply mx-2;
@apply left-0;
@apply z-50;
@apply transition-transform;
@apply transition;
@apply ease-in-out;
@apply duration-200;
@apply duration-150;
@apply shadow-lg;
top: calc(100% - 8px);

View File

@@ -14,7 +14,7 @@
v-for="(color, index) of colors"
:key="`color-${index}`"
v-tooltip="`${color.charAt(0).toUpperCase()}${color.slice(1)}`"
class="inline-flex items-center justify-center p-3 m-2 transition duration-200 ease-in-out bg-transparent rounded-full cursor-pointer border-collapseer-2 text-fgLightColor hover:text-fgColor hover:shadow-none"
class="inline-flex items-center justify-center p-3 m-2 transition duration-150 ease-in-out bg-transparent rounded-full cursor-pointer border-collapseer-2 text-fgLightColor hover:text-fgColor hover:shadow-none"
:class="[
{ 'bg-bgDarkColor': color === $colorMode.preference },
{ 'text-acColor hover:text-acColor': color === $colorMode.value },

View File

@@ -11,7 +11,7 @@
<!-- <div class="fade top"></div>
<div class="fade bottom"></div> -->
</div>
<div class="modal-footer">
<div v-if="hasFooterSlot" class="modal-footer">
<slot name="footer"></slot>
</div>
</div>
@@ -32,7 +32,7 @@
@apply justify-center;
@apply transition;
@apply ease-in-out;
@apply duration-200;
@apply duration-150;
background-color: rgba(0, 0, 0, 0.32);
}
@@ -52,7 +52,7 @@
@apply m-2;
@apply transition;
@apply ease-in-out;
@apply duration-200;
@apply duration-150;
@apply bg-bgColor;
@apply rounded-lg;
@apply shadow-2xl;
@@ -90,10 +90,10 @@
.modal-enter .modal-container,
.modal-leave-active .modal-container {
@apply transform;
@apply scale-75;
@apply scale-90;
@apply transition;
@apply ease-in-out;
@apply duration-200;
@apply duration-150;
}
.fade {
@@ -101,7 +101,7 @@
@apply block;
@apply transition;
@apply ease-in-out;
@apply duration-200;
@apply duration-150;
left: 16px;
right: 20px;
@@ -118,3 +118,13 @@
}
}
</style>
<script>
export default {
computed: {
hasFooterSlot() {
return !!this.$slots.footer
},
},
}
</script>

View File

@@ -59,7 +59,7 @@
@apply cursor-pointer;
@apply transition-colors;
@apply ease-in-out;
@apply duration-200;
@apply duration-150;
.material-icons {
@apply m-4;