summaryrefslogtreecommitdiff
path: root/packages/frontend/src/widgets/WidgetMemo.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-01-15 14:03:28 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-01-15 14:03:28 +0900
commit07025caee95f8b21411fb8d6089f15b87f9265ec (patch)
tree958b9c2d368c123db91b4fc546924143a447b4e7 /packages/frontend/src/widgets/WidgetMemo.vue
parentFix #9582 (diff)
downloadmisskey-07025caee95f8b21411fb8d6089f15b87f9265ec.tar.gz
misskey-07025caee95f8b21411fb8d6089f15b87f9265ec.tar.bz2
misskey-07025caee95f8b21411fb8d6089f15b87f9265ec.zip
refactor(client): use css modules
Diffstat (limited to 'packages/frontend/src/widgets/WidgetMemo.vue')
-rw-r--r--packages/frontend/src/widgets/WidgetMemo.vue72
1 files changed, 36 insertions, 36 deletions
diff --git a/packages/frontend/src/widgets/WidgetMemo.vue b/packages/frontend/src/widgets/WidgetMemo.vue
index d5d96165c7..8523aee544 100644
--- a/packages/frontend/src/widgets/WidgetMemo.vue
+++ b/packages/frontend/src/widgets/WidgetMemo.vue
@@ -3,9 +3,9 @@
<template #icon><i class="ti ti-note"></i></template>
<template #header>{{ i18n.ts._widgets.memo }}</template>
- <div class="otgbylcu">
- <textarea v-model="text" :placeholder="i18n.ts.placeholder" @input="onChange"></textarea>
- <button :disabled="!changed" class="_buttonPrimary" @click="saveMemo">{{ i18n.ts.save }}</button>
+ <div :class="$style.root">
+ <textarea v-model="text" :class="$style.textarea" :placeholder="i18n.ts.placeholder" @input="onChange"></textarea>
+ <button :class="$style.save" :disabled="!changed" class="_buttonPrimary" @click="saveMemo">{{ i18n.ts.save }}</button>
</div>
</MkContainer>
</template>
@@ -68,45 +68,45 @@ defineExpose<WidgetComponentExpose>({
});
</script>
-<style lang="scss" scoped>
-.otgbylcu {
+<style lang="scss" module>
+.root {
padding-bottom: 28px + 16px;
+}
- > textarea {
- display: block;
- width: 100%;
- max-width: 100%;
- min-width: 100%;
- padding: 16px;
- color: var(--fg);
- background: transparent;
- border: none;
- border-bottom: solid 0.5px var(--divider);
- border-radius: 0;
- box-sizing: border-box;
- font: inherit;
- font-size: 0.9em;
+.textarea {
+ display: block;
+ width: 100%;
+ max-width: 100%;
+ min-width: 100%;
+ padding: 16px;
+ color: var(--fg);
+ background: transparent;
+ border: none;
+ border-bottom: solid 0.5px var(--divider);
+ border-radius: 0;
+ box-sizing: border-box;
+ font: inherit;
+ font-size: 0.9em;
- &:focus-visible {
- outline: none;
- }
+ &:focus-visible {
+ outline: none;
}
+}
- > button {
- display: block;
- position: absolute;
- bottom: 8px;
- right: 8px;
- margin: 0;
- padding: 0 10px;
- height: 28px;
- outline: none;
- border-radius: 4px;
+.save {
+ display: block;
+ position: absolute;
+ bottom: 8px;
+ right: 8px;
+ margin: 0;
+ padding: 0 10px;
+ height: 28px;
+ outline: none;
+ border-radius: 4px;
- &:disabled {
- opacity: 0.7;
- cursor: default;
- }
+ &:disabled {
+ opacity: 0.7;
+ cursor: default;
}
}
</style>