Skip to content

Commit

Permalink
style: update some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukicenturi authored and kelsos committed Mar 22, 2024
1 parent 551a03a commit f6f0705
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions components/checkout/pay/CryptoPaymentForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const showChangePaymentDialog = ref(false);
:copy-value="data.cryptoAddress"
/>
</div>
<RuiDivider class="mt-8" />
<SelectedPlanOverview
:plan="data"
:disabled="processing"
Expand All @@ -171,7 +172,7 @@ const showChangePaymentDialog = ref(false);
</p>
</div>
</div>
<div class="my-4 flex gap-4">
<div class="my-4 flex flex-col sm:flex-row gap-4">
<div class="grow">
<RuiButton
:disabled="processing"
Expand Down Expand Up @@ -238,7 +239,7 @@ const showChangePaymentDialog = ref(false);
}
.hint {
@apply text-rui-text mt-4 mb-4;
@apply text-rui-text mt-6 mb-6 text-sm;
}
.info {
Expand Down
20 changes: 10 additions & 10 deletions components/common/ModalDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ const props = withDefaults(
const emit = defineEmits<{ (e: 'update:modelValue', value: boolean): void }>();
const { width, height, padding, modelValue } = toRefs(props);
const out = ref(false);
const out = ref(true);
const visible = ref(false);
onMounted(() => set(visible, get(modelValue)));
watch(modelValue, (display) => {
if (display) {
out.value = false;
visible.value = true;
set(visible, true);
set(out, true);
nextTick(() => {
set(out, false);
});
}
else {
out.value = true;
set(out, true);
nextTick(() => {
setTimeout(() => {
visible.value = false;
set(visible, false);
}, 800);
});
}
Expand Down Expand Up @@ -87,9 +90,7 @@ const css = useCssModule();
@import '@/assets/css/main.scss';
.overlay {
@apply w-screen h-screen overflow-y-hidden z-30 fixed top-0 right-0;
background-color: #00000099;
@apply w-screen h-screen overflow-y-hidden z-30 fixed top-0 right-0 bg-black/[0.6];
}
.wrapper {
Expand All @@ -101,8 +102,7 @@ const css = useCssModule();
@apply bg-white flex flex-col rounded-lg mb-2;
}
@apply transition;
transform: translateY(0);
@apply transition transform translate-y-0;
}
.out .dialog {
Expand Down

0 comments on commit f6f0705

Please sign in to comment.