-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Pestov
committed
Dec 6, 2023
1 parent
a2c9fb4
commit 64b451a
Showing
5 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script setup lang="ts"> | ||
const props = withDefaults(defineProps<{ | ||
showTextColors: boolean | ||
}>(), { | ||
showTextColors: true | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="flex space-x-3 text-sm text-gray-600" :class="{ 'text-colors': showTextColors }"> | ||
<div class="flex items-center positive"><i class="w-3 h-3 mr-1"></i><span>{{ $t('positive') }}</span></div> | ||
<div class="flex items-center neutral"><i class="w-3 h-3 mr-1"></i><span>{{ $t('neutral') }}</span></div> | ||
<div class="flex items-center negative"><i class="w-3 h-3 mr-1"></i><span>{{ $t('negative') }}</span></div> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.text-colors { | ||
.positive { | ||
i { | ||
background: var(--color--positive-text); | ||
} | ||
} | ||
.neutral { | ||
i { | ||
background: var(--color--neutral-text); | ||
} | ||
} | ||
.negative { | ||
i { | ||
background: var(--color--negative-text); | ||
} | ||
} | ||
} | ||
.positive { | ||
i { | ||
background: var(--color--positive-background); | ||
} | ||
} | ||
.neutral { | ||
i { | ||
background: var(--color--neutral-background); | ||
} | ||
} | ||
.negative { | ||
i { | ||
background: var(--color--negative-background); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters