Skip to content
Snippets Groups Projects
Commit ffc29aa6 authored by syuilo's avatar syuilo
Browse files

refactor(client): use css modules

parent d23aa94b
No related branches found
No related tags found
No related merge requests found
<template> <template>
<div class="fpezltsf" :class="{ warn }"> <div :class="[$style.root, { [$style.warn]: warn }]">
<i v-if="warn" class="ti ti-alert-triangle"></i> <i v-if="warn" class="ti ti-alert-triangle" :class="$style.i"></i>
<i v-else class="ti ti-info-circle"></i> <i v-else class="ti ti-info-circle" :class="$style.i"></i>
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
...@@ -14,8 +14,8 @@ const props = defineProps<{ ...@@ -14,8 +14,8 @@ const props = defineProps<{
}>(); }>();
</script> </script>
<style lang="scss" scoped> <style lang="scss" module>
.fpezltsf { .root {
padding: 12px 14px; padding: 12px 14px;
font-size: 90%; font-size: 90%;
background: var(--infoBg); background: var(--infoBg);
...@@ -26,9 +26,9 @@ const props = defineProps<{ ...@@ -26,9 +26,9 @@ const props = defineProps<{
background: var(--infoWarnBg); background: var(--infoWarnBg);
color: var(--infoWarnFg); color: var(--infoWarnFg);
} }
}
> i { .i {
margin-right: 4px; margin-right: 4px;
}
} }
</style> </style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment