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>
<div class="fpezltsf" :class="{ warn }">
<i v-if="warn" class="ti ti-alert-triangle"></i>
<i v-else class="ti ti-info-circle"></i>
<div :class="[$style.root, { [$style.warn]: warn }]">
<i v-if="warn" class="ti ti-alert-triangle" :class="$style.i"></i>
<i v-else class="ti ti-info-circle" :class="$style.i"></i>
<slot></slot>
</div>
</template>
......@@ -14,8 +14,8 @@ const props = defineProps<{
}>();
</script>
<style lang="scss" scoped>
.fpezltsf {
<style lang="scss" module>
.root {
padding: 12px 14px;
font-size: 90%;
background: var(--infoBg);
......@@ -26,9 +26,9 @@ const props = defineProps<{
background: var(--infoWarnBg);
color: var(--infoWarnFg);
}
}
> i {
margin-right: 4px;
}
.i {
margin-right: 4px;
}
</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