summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-28 12:15:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-28 12:15:22 +0900
commitab50d5ef2030d7a2c3c735e873c0456918b2785e (patch)
treedcba79f5d844ed89684b05fab67f07e54c6e1cd9 /src
parentTweak style (diff)
downloadsharkey-ab50d5ef2030d7a2c3c735e873c0456918b2785e.tar.gz
sharkey-ab50d5ef2030d7a2c3c735e873c0456918b2785e.tar.bz2
sharkey-ab50d5ef2030d7a2c3c735e873c0456918b2785e.zip
wip
Diffstat (limited to 'src')
-rw-r--r--src/client/@types/vue.d.ts5
-rw-r--r--src/client/components/ui/modal.vue4
-rw-r--r--src/client/ui/_common_/header.vue16
3 files changed, 13 insertions, 12 deletions
diff --git a/src/client/@types/vue.d.ts b/src/client/@types/vue.d.ts
index b3a21c6cdb..798e8fcfac 100644
--- a/src/client/@types/vue.d.ts
+++ b/src/client/@types/vue.d.ts
@@ -1,4 +1,5 @@
declare module '*.vue' {
- import Vue from 'vue';
- export default Vue;
+ import { defineComponent } from 'vue';
+ const component: ReturnType<typeof defineComponent>;
+ export default component;
}
diff --git a/src/client/components/ui/modal.vue b/src/client/components/ui/modal.vue
index a4646cf947..ad3beee73f 100644
--- a/src/client/components/ui/modal.vue
+++ b/src/client/components/ui/modal.vue
@@ -150,10 +150,10 @@ export default defineComponent({
});
</script>
-<style vars="{ transformOrigin }">
+<style>
.modal-popup-content-enter-active, .modal-popup-content-leave-active,
.modal-content-enter-from, .modal-content-leave-to {
- transform-origin: var(--transformOrigin);
+ transform-origin: v-bind(transformOrigin);
}
</style>
diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue
index 87a5621902..c58f2841ff 100644
--- a/src/client/ui/_common_/header.vue
+++ b/src/client/ui/_common_/header.vue
@@ -74,29 +74,29 @@ export default defineComponent({
});
</script>
-<style lang="scss" scoped vars="{ height }">
+<style lang="scss" scoped>
.fdidabkb {
text-align: center;
> .back {
- height: var(--height);
- width: var(--height);
+ height: v-bind(height);
+ width: v-bind(height);
}
> .action {
- height: var(--height);
- width: var(--height);
+ height: v-bind(height);
+ width: v-bind(height);
}
> .titleContainer {
- width: calc(100% - (var(--height) * 2));
+ width: calc(100% - (v-bind(height) * 2));
> .title {
- height: var(--height);
+ height: v-bind(height);
> .avatar {
$size: 32px;
- margin: calc((var(--height) - #{$size}) / 2) 8px calc((var(--height) - #{$size}) / 2) 0;
+ margin: calc((v-bind(height) - #{$size}) / 2) 8px calc((v-bind(height) - #{$size}) / 2) 0;
pointer-events: none;
}
}