42 lines
929 B
Vue
Executable File
42 lines
929 B
Vue
Executable File
<template>
|
|
<span
|
|
v-if="gender"
|
|
class="gender"
|
|
:class="{ [gender]: true }"
|
|
><Icon :icon="gender" /></span>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
gender: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import 'theme';
|
|
|
|
.gender {
|
|
&.female .icon {
|
|
fill: var(--female);
|
|
filter: drop-shadow(0 0 1px var(--darken));
|
|
}
|
|
|
|
&.male .icon {
|
|
fill: var(--male);
|
|
filter: drop-shadow(0 0 1px var(--darken));
|
|
}
|
|
|
|
&.transsexual .icon {
|
|
fill: var(--text-light);
|
|
filter: drop-shadow(1px 0 0 var(--female)) drop-shadow(-1px 0 0 var(--female)) drop-shadow(0 1px 0 var(--female)) drop-shadow(0 -1px 0 var(--female))
|
|
drop-shadow(1px 0 0 var(--male)) drop-shadow(-1px 0 0 var(--male)) drop-shadow(0 1px 0 var(--male)) drop-shadow(0 -1px 0 var(--male))
|
|
drop-shadow(0 0 1px var(--darken))
|
|
}
|
|
}
|
|
</style>
|