2020-01-25 00:26:13 +00:00
|
|
|
<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: $female;
|
2020-01-26 22:10:08 +00:00
|
|
|
filter: drop-shadow(0 0 1px $shadow);
|
2020-01-25 00:26:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.male .icon {
|
|
|
|
fill: $male;
|
2020-01-26 22:10:08 +00:00
|
|
|
filter: drop-shadow(0 0 1px $shadow);
|
2020-01-25 00:26:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.transsexual .icon {
|
|
|
|
fill: $text-contrast;
|
|
|
|
filter: drop-shadow(1px 0 0 $female) drop-shadow(-1px 0 0 $female) drop-shadow(0 1px 0 $female) drop-shadow(0 -1px 0 $female)
|
2020-01-26 22:10:08 +00:00
|
|
|
drop-shadow(1px 0 0 $male) drop-shadow(-1px 0 0 $male) drop-shadow(0 1px 0 $male) drop-shadow(0 -1px 0 $male)
|
|
|
|
drop-shadow(0 0 1px $shadow)
|
2020-01-25 00:26:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|