mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
45 lines
829 B
Vue
45 lines
829 B
Vue
<template>
|
|
<div class="select-box" :class="[isClicked ? 'bg-theme' : 'is-deactive'] ">
|
|
<CheckIcon v-if="isClicked" class="icon" size="17" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { CheckIcon } from 'vue-feather-icons'
|
|
|
|
export default {
|
|
name: 'CheckBox',
|
|
props: [ 'isClicked' ],
|
|
components: { CheckIcon }
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import '@assets/vuefilemanager/_variables';
|
|
|
|
.select-box {
|
|
min-width: 20px;
|
|
min-height: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 5px;
|
|
|
|
.icon {
|
|
stroke: white;
|
|
}
|
|
}
|
|
|
|
.is-deactive {
|
|
background-color: darken($light_background, 5%);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.is-deactive {
|
|
background-color: lighten($dark_mode_foreground, 10%);
|
|
}
|
|
}
|
|
|
|
</style>
|