refactor(client): use css modules

This commit is contained in:
syuilo
2023-01-14 11:18:12 +09:00
parent 2bedc084a3
commit 91105845d8
4 changed files with 19 additions and 25 deletions

View File

@@ -2,8 +2,8 @@
<XColumn :menu="menu" :naked="true" :column="column" :is-stacked="isStacked" @parent-focus="$event => emit('parent-focus', $event)">
<template #header><i class="ti ti-apps" style="margin-right: 8px;"></i>{{ column.name }}</template>
<div class="wtdtxvec">
<div v-if="!(column.widgets && column.widgets.length > 0) && !edit" class="intro">{{ i18n.ts._deck.widgetsIntroduction }}</div>
<div :class="$style.root">
<div v-if="!(column.widgets && column.widgets.length > 0) && !edit" :class="$style.intro">{{ i18n.ts._deck.widgetsIntroduction }}</div>
<XWidgets :edit="edit" :widgets="column.widgets ?? []" @add-widget="addWidget" @remove-widget="removeWidget" @update-widget="updateWidget" @update-widgets="updateWidgets" @exit="edit = false"/>
</div>
</XColumn>
@@ -54,16 +54,16 @@ const menu = [{
}];
</script>
<style lang="scss" scoped>
.wtdtxvec {
<style lang="scss" module>
.root {
--margin: 8px;
--panelBorder: none;
padding: 0 var(--margin);
}
> .intro {
padding: 16px;
text-align: center;
}
.intro {
padding: 16px;
text-align: center;
}
</style>