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

refactor(client): use css modules

parent d0755b5c
No related branches found
No related tags found
No related merge requests found
<template> <template>
<component <component
:is="self ? 'MkA' : 'a'" ref="el" class="xlcxczvw _link" :[attr]="self ? url.substr(local.length) : url" :rel="rel" :target="target" :is="self ? 'MkA' : 'a'" ref="el" style="word-break: break-all;" class="_link" :[attr]="self ? url.substr(local.length) : url" :rel="rel" :target="target"
:title="url" :title="url"
> >
<slot></slot> <slot></slot>
<i v-if="target === '_blank'" class="ti ti-external-link icon"></i> <i v-if="target === '_blank'" class="ti ti-external-link" :class="$style.icon"></i>
</component> </component>
</template> </template>
...@@ -35,13 +35,9 @@ useTooltip($$(el), (showing) => { ...@@ -35,13 +35,9 @@ useTooltip($$(el), (showing) => {
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" module>
.xlcxczvw { .icon {
word-break: break-all; padding-left: 2px;
font-size: .9em;
> .icon {
padding-left: 2px;
font-size: .9em;
}
} }
</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