2019-11-30 04:55:32 +00:00
|
|
|
<template>
|
2020-05-17 23:22:56 +00:00
|
|
|
<div class="actors">
|
|
|
|
<nav class="filter">
|
|
|
|
<ul class="genders nolist">
|
2020-08-02 01:51:52 +00:00
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
|
|
|
:to="{ name: 'actors', params: { gender: 'all', letter, pageNumber: 1 } }"
|
|
|
|
:class="{ selected: gender === 'all' }"
|
|
|
|
class="gender-link all"
|
|
|
|
>all</router-link>
|
|
|
|
</li>
|
2020-05-17 23:22:56 +00:00
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2020-07-02 23:28:22 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'female', letter, pageNumber: 1 } }"
|
2020-05-17 23:22:56 +00:00
|
|
|
:class="{ selected: gender === 'female' }"
|
|
|
|
class="gender-link female"
|
|
|
|
><Gender gender="female" /></router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2020-07-02 23:28:22 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'male', letter, pageNumber: 1 } }"
|
2020-05-17 23:22:56 +00:00
|
|
|
:class="{ selected: gender === 'male' }"
|
|
|
|
class="gender-link male"
|
2020-06-27 00:57:30 +00:00
|
|
|
replace
|
2020-05-17 23:22:56 +00:00
|
|
|
><Gender gender="male" /></router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2020-07-02 23:28:22 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'trans', letter, pageNumber: 1 } }"
|
2020-05-17 23:22:56 +00:00
|
|
|
:class="{ selected: gender === 'trans' }"
|
|
|
|
class="gender-link transsexual"
|
2020-06-27 00:57:30 +00:00
|
|
|
replace
|
2020-05-17 23:22:56 +00:00
|
|
|
><Gender gender="transsexual" /></router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2020-07-02 23:28:22 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'other', letter, pageNumber: 1 } }"
|
2020-05-17 23:22:56 +00:00
|
|
|
:class="{ selected: gender === 'other' }"
|
|
|
|
class="gender-link other"
|
2020-06-27 00:57:30 +00:00
|
|
|
replace
|
2020-05-17 23:22:56 +00:00
|
|
|
><Icon icon="question5" /></router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="letters nolist">
|
|
|
|
<li
|
|
|
|
v-for="letterX in letters"
|
|
|
|
:key="letterX"
|
|
|
|
class="letter"
|
|
|
|
>
|
|
|
|
<router-link
|
2020-07-02 23:28:22 +00:00
|
|
|
:to="{ name: 'actors', params: { gender, letter: letterX, pageNumber: 1 } }"
|
2020-05-17 23:22:56 +00:00
|
|
|
:class="{ selected: letterX === letter }"
|
|
|
|
class="letter-link"
|
2020-06-27 00:57:30 +00:00
|
|
|
replace
|
2020-05-17 23:22:56 +00:00
|
|
|
>{{ letterX || 'All' }}</router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
<nav class="filter">
|
|
|
|
<ul class="nolist">
|
|
|
|
<li>
|
|
|
|
<Tooltip class="filter boobs">
|
|
|
|
<span class="filter-trigger"><Icon icon="boobs" />Boobs</span>
|
|
|
|
|
|
|
|
<template v-slot:tooltip>
|
2021-03-03 01:18:36 +00:00
|
|
|
<div class="filter-section boobsize">
|
2021-02-28 02:38:54 +00:00
|
|
|
<label class="filter-label off">Size</label>
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
<span class="filter-split">
|
|
|
|
<Checkbox
|
|
|
|
:checked="boobSizeRequired"
|
|
|
|
class="checkbox"
|
|
|
|
@change="(checked) => updateValue('boobSizeRequired', checked)"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Range
|
|
|
|
:min="0"
|
|
|
|
:max="boobSizes.length - 1"
|
|
|
|
:value="boobSize"
|
2021-03-03 12:47:27 +00:00
|
|
|
:values="boobSizes"
|
2021-03-03 01:18:36 +00:00
|
|
|
:disabled="!boobSizeRequired"
|
|
|
|
@change="(sizeRange) => updateValue('boobSize', sizeRange)"
|
2021-02-28 02:38:54 +00:00
|
|
|
>
|
2021-03-03 01:18:36 +00:00
|
|
|
<template v-slot:start>
|
|
|
|
<span class="range-label"><Icon icon="boobs-small" /></span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:end>
|
|
|
|
<span class="range-label on"><Icon icon="boobs-big" /></span>
|
|
|
|
</template>
|
|
|
|
</Range>
|
2021-02-28 02:38:54 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="filter-section">
|
|
|
|
<label class="filter-label">Enhanced</label>
|
|
|
|
|
|
|
|
<span
|
|
|
|
:class="{ [['off', 'default', 'on'][naturalBoobs]]: true }"
|
2021-03-03 01:18:36 +00:00
|
|
|
class="toggle-container noclick"
|
2021-02-28 02:38:54 +00:00
|
|
|
>
|
|
|
|
<span
|
2021-03-03 01:18:36 +00:00
|
|
|
class="toggle-label off"
|
2021-02-28 02:38:54 +00:00
|
|
|
@click="updateValue('naturalBoobs', 0)"
|
|
|
|
>no</span>
|
|
|
|
|
|
|
|
<input
|
|
|
|
v-model="naturalBoobs"
|
2021-03-03 01:18:36 +00:00
|
|
|
class="toggle"
|
2021-02-28 02:38:54 +00:00
|
|
|
type="range"
|
|
|
|
min="0"
|
|
|
|
max="2"
|
|
|
|
@change="updateFilters"
|
|
|
|
>
|
|
|
|
|
|
|
|
<span
|
2021-03-03 01:18:36 +00:00
|
|
|
class="toggle-label on"
|
2021-02-28 02:38:54 +00:00
|
|
|
@click="updateValue('naturalBoobs', 2)"
|
|
|
|
>yes</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
2020-12-26 22:51:27 +00:00
|
|
|
<div class="tiles">
|
2020-05-17 23:22:56 +00:00
|
|
|
<Actor
|
|
|
|
v-for="actor in actors"
|
|
|
|
:key="`actor-${actor.id}`"
|
|
|
|
:actor="actor"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-05-23 02:32:50 +00:00
|
|
|
|
|
|
|
<Pagination
|
2020-05-25 00:02:28 +00:00
|
|
|
v-if="totalCount > 0"
|
2020-05-23 02:32:50 +00:00
|
|
|
:items-total="totalCount"
|
|
|
|
:items-per-page="limit"
|
|
|
|
class="pagination-top"
|
|
|
|
/>
|
2020-08-15 17:04:33 +00:00
|
|
|
|
|
|
|
<Footer />
|
2020-05-17 23:22:56 +00:00
|
|
|
</div>
|
2019-11-30 04:55:32 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-06-29 23:07:48 +00:00
|
|
|
import Actor from './tile.vue';
|
2020-02-09 04:30:10 +00:00
|
|
|
import Gender from './gender.vue';
|
2021-03-03 01:18:36 +00:00
|
|
|
import Checkbox from '../form/checkbox.vue';
|
|
|
|
import Range from '../form/range.vue';
|
2020-05-23 02:32:50 +00:00
|
|
|
import Pagination from '../pagination/pagination.vue';
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
const toggleValues = [true, undefined, false];
|
2021-03-03 12:47:27 +00:00
|
|
|
const boobSizes = 'ABCDEFZ'.split('');
|
2021-02-28 02:38:54 +00:00
|
|
|
|
|
|
|
function updateFilters() {
|
|
|
|
this.$router.push({
|
|
|
|
name: 'actors',
|
|
|
|
params: this.$route.params,
|
|
|
|
query: {
|
|
|
|
naturalBoobs: toggleValues[this.naturalBoobs],
|
2021-03-03 01:18:36 +00:00
|
|
|
bs: this.boobSizeRequired ? this.boobSize.join(',') : undefined,
|
2021-02-28 02:38:54 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateValue(prop, value) {
|
|
|
|
this[prop] = value;
|
|
|
|
this.updateFilters();
|
|
|
|
}
|
|
|
|
|
|
|
|
async function fetchActors(scroll) {
|
2020-05-17 23:22:56 +00:00
|
|
|
const curatedGender = this.gender.replace('trans', 'transsexual');
|
2020-02-23 04:23:07 +00:00
|
|
|
|
2020-05-23 02:32:50 +00:00
|
|
|
const { actors, totalCount } = await this.$store.dispatch('fetchActors', {
|
|
|
|
limit: this.limit,
|
|
|
|
pageNumber: Number(this.$route.params.pageNumber) || 1,
|
2020-05-17 23:22:56 +00:00
|
|
|
letter: this.letter.replace('all', ''),
|
|
|
|
gender: curatedGender === 'other' ? null : curatedGender,
|
2021-03-03 12:47:27 +00:00
|
|
|
boobSize: this.boobSizeRequired && this.boobSize,
|
2021-02-28 02:38:54 +00:00
|
|
|
naturalBoobs: toggleValues[this.naturalBoobs] ?? null,
|
2020-05-17 23:22:56 +00:00
|
|
|
});
|
2020-05-23 02:32:50 +00:00
|
|
|
|
|
|
|
this.actors = actors;
|
|
|
|
this.totalCount = totalCount;
|
2021-01-17 20:24:20 +00:00
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
if (scroll) {
|
|
|
|
this.$refs.pagination.$el.scrollIntoView();
|
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
|
2020-05-08 23:42:10 +00:00
|
|
|
function letter() {
|
2020-05-17 23:22:56 +00:00
|
|
|
return this.$route.params.letter || 'all';
|
2020-05-08 23:42:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function gender() {
|
2020-08-02 01:51:52 +00:00
|
|
|
return this.$route.params.gender || 'all';
|
2020-05-08 23:42:10 +00:00
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
async function route(to, from) {
|
|
|
|
const scroll = to.params.pageNumber !== from.params.pageNumber
|
|
|
|
|| to.params.gender !== from.params.gender
|
|
|
|
|| to.params.letter !== from.params.letter;
|
|
|
|
|
|
|
|
await this.fetchActors(scroll);
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
|
|
|
|
async function mounted() {
|
2020-05-17 23:22:56 +00:00
|
|
|
this.pageTitle = 'Actors';
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2020-05-17 23:22:56 +00:00
|
|
|
await this.fetchActors();
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2020-05-17 23:22:56 +00:00
|
|
|
components: {
|
|
|
|
Actor,
|
2021-03-03 01:18:36 +00:00
|
|
|
Checkbox,
|
2020-05-17 23:22:56 +00:00
|
|
|
Gender,
|
2021-03-03 01:18:36 +00:00
|
|
|
Range,
|
2020-05-23 02:32:50 +00:00
|
|
|
Pagination,
|
2020-05-17 23:22:56 +00:00
|
|
|
},
|
|
|
|
data() {
|
2021-03-03 01:18:36 +00:00
|
|
|
const naturalBoobs = ['true', undefined, 'false'].indexOf(this.$route.query.nb);
|
2021-02-28 02:38:54 +00:00
|
|
|
|
2020-05-17 23:22:56 +00:00
|
|
|
return {
|
|
|
|
actors: [],
|
|
|
|
pageTitle: null,
|
2020-05-23 02:32:50 +00:00
|
|
|
totalCount: 0,
|
2021-01-17 20:24:20 +00:00
|
|
|
limit: 50,
|
2020-05-17 23:22:56 +00:00
|
|
|
letters: ['all'].concat(Array.from({ length: 26 }, (value, index) => String.fromCharCode(index + 97).toUpperCase())),
|
2021-03-03 01:18:36 +00:00
|
|
|
boobSizes,
|
2021-03-03 12:47:27 +00:00
|
|
|
boobSize: this.$route.query.bs?.split(',') || ['A', 'Z'],
|
2021-03-03 01:18:36 +00:00
|
|
|
boobSizeRequired: this.$route.query.bs || false,
|
2021-02-28 02:38:54 +00:00
|
|
|
naturalBoobs: naturalBoobs > -1 ? naturalBoobs : 1,
|
2020-05-17 23:22:56 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
letter,
|
|
|
|
gender,
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
$route: route,
|
|
|
|
},
|
|
|
|
mounted,
|
|
|
|
methods: {
|
|
|
|
fetchActors,
|
2021-02-28 02:38:54 +00:00
|
|
|
updateFilters,
|
|
|
|
updateValue,
|
2020-05-17 23:22:56 +00:00
|
|
|
},
|
2019-11-30 04:55:32 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2020-02-09 04:30:10 +00:00
|
|
|
<style lang="scss">
|
2020-03-27 03:39:13 +00:00
|
|
|
.gender-link {
|
|
|
|
&.selected .gender .icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
2020-05-13 21:17:39 +00:00
|
|
|
&:hover:not(.selected) {
|
|
|
|
.gender .icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
.male .icon {
|
|
|
|
filter: drop-shadow(0 0 1px var(--male));
|
|
|
|
}
|
|
|
|
|
|
|
|
.female .icon {
|
|
|
|
filter: drop-shadow(0 0 1px var(--female));
|
|
|
|
}
|
2020-03-27 03:39:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not(.selected) .transsexual .icon {
|
|
|
|
fill: var(--female);
|
|
|
|
filter: drop-shadow(1px 0 0 var(--text-light)) drop-shadow(-1px 0 0 var(--text-light)) drop-shadow(0 1px 0 var(--text-light)) drop-shadow(0 -1px 0 var(--text-light)) 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 rgba(0, 0, 0, 0.5));
|
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
<style lang="scss" scoped>
|
2020-07-14 22:15:00 +00:00
|
|
|
@import 'breakpoints';
|
2020-01-06 20:49:37 +00:00
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
.actors {
|
2020-02-09 04:30:10 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tiles {
|
2019-11-30 04:55:32 +00:00
|
|
|
display: grid;
|
2020-05-21 22:55:11 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
2020-06-29 23:07:48 +00:00
|
|
|
grid-gap: .5rem;
|
2019-11-30 04:55:32 +00:00
|
|
|
padding: 1rem;
|
2020-02-09 04:30:10 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filter {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 1rem;
|
2021-02-28 02:38:54 +00:00
|
|
|
margin: 0 0 1rem 0;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin: 1rem 0;
|
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.genders {
|
2020-02-23 04:23:07 +00:00
|
|
|
display: flex;
|
2020-02-19 03:41:53 +00:00
|
|
|
flex-shrink: 0;
|
2020-02-09 04:30:10 +00:00
|
|
|
padding: 0 .5rem 0 0;
|
2020-03-23 00:43:49 +00:00
|
|
|
border-right: solid 1px var(--shadow-hint);
|
2020-02-09 04:30:10 +00:00
|
|
|
margin: 0 1rem 0 0;
|
|
|
|
}
|
|
|
|
.letter,
|
|
|
|
.gender {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.letter-link,
|
|
|
|
.gender-link {
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
2020-03-25 02:42:46 +00:00
|
|
|
display: flex;
|
2020-02-09 04:30:10 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-03-25 02:42:46 +00:00
|
|
|
box-sizing: border-box;
|
2020-02-09 04:30:10 +00:00
|
|
|
margin: .25rem .5rem .25rem 0;
|
2020-03-23 00:43:49 +00:00
|
|
|
color: var(--shadow);
|
|
|
|
background: var(--background);
|
2020-02-09 04:30:10 +00:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2020-03-25 02:42:46 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
|
|
|
|
2020-03-27 03:39:13 +00:00
|
|
|
.male,
|
|
|
|
.female,
|
|
|
|
.transsexual {
|
|
|
|
padding: .2rem 0 0 0;
|
|
|
|
}
|
|
|
|
|
2020-03-25 02:42:46 +00:00
|
|
|
.icon {
|
|
|
|
fill: var(--shadow);
|
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
|
|
|
|
&:hover {
|
2020-05-08 23:42:10 +00:00
|
|
|
color: var(--text);
|
2020-02-09 04:30:10 +00:00
|
|
|
cursor: pointer;
|
2020-03-27 03:39:13 +00:00
|
|
|
|
|
|
|
.icon {
|
2020-05-13 21:17:39 +00:00
|
|
|
fill: var(--text);
|
2020-03-27 03:39:13 +00:00
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
2020-03-23 00:43:49 +00:00
|
|
|
background: var(--primary);
|
2020-03-25 02:42:46 +00:00
|
|
|
color: var(--text-light);
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2020-03-25 02:42:46 +00:00
|
|
|
&.other .icon {
|
|
|
|
fill: var(--text-light);
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
2020-01-06 20:49:37 +00:00
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
.filter-trigger {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
color: var(--shadow);
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--shadow);
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
margin: 0 .5rem 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--shadow-strong);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--shadow-strong);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.filter-label {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0 .5rem;
|
|
|
|
margin: .5rem 0 0 0;
|
2021-03-03 01:18:36 +00:00
|
|
|
color: var(--darken);
|
2021-02-28 02:38:54 +00:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: .9rem;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin: 0 .5rem 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.filter-split {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.checkbox {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 0 0 .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-container,
|
2021-02-28 02:38:54 +00:00
|
|
|
.range-container {
|
|
|
|
display: flex;
|
2021-03-03 01:18:36 +00:00
|
|
|
flex-grow: 1;
|
2021-02-28 02:38:54 +00:00
|
|
|
align-items: center;
|
|
|
|
padding: .5rem 0;
|
|
|
|
|
|
|
|
&.on {
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-label.on {
|
2021-02-28 02:38:54 +00:00
|
|
|
color: var(--enabled);
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle {
|
2021-03-03 03:05:27 +00:00
|
|
|
background-color: var(--enabled-background);
|
2021-03-01 01:41:53 +00:00
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
background: var(--enabled);
|
|
|
|
}
|
2021-03-03 01:18:36 +00:00
|
|
|
|
|
|
|
&::-moz-range-thumb {
|
|
|
|
background: var(--enabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.off {
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-label.off {
|
2021-02-28 02:38:54 +00:00
|
|
|
color: var(--disabled);
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle {
|
2021-03-03 03:05:27 +00:00
|
|
|
background-color: var(--disabled-background);
|
2021-03-01 01:41:53 +00:00
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
background: var(--disabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
&::-moz-range-thumb {
|
|
|
|
background: var(--disabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-label {
|
2021-02-28 02:38:54 +00:00
|
|
|
width: 1.5rem;
|
|
|
|
padding: 0 .5rem;
|
2021-03-03 01:18:36 +00:00
|
|
|
color: var(--darken);
|
2021-02-28 02:38:54 +00:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: .9rem;
|
|
|
|
|
|
|
|
&.on {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&.on {
|
|
|
|
color: var(--enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.off {
|
|
|
|
color: var(--disabled);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle {
|
2021-02-28 02:38:54 +00:00
|
|
|
flex-grow: 1;
|
2021-03-03 01:18:36 +00:00
|
|
|
height: 1.25rem;
|
2021-02-28 02:38:54 +00:00
|
|
|
appearance: none;
|
2021-03-01 18:45:29 +00:00
|
|
|
border-radius: 1rem;
|
2021-03-03 03:05:27 +00:00
|
|
|
background-color: var(--darken-hint);
|
|
|
|
background-image: radial-gradient(circle, var(--shadow-weak) .3rem, transparent calc(.3rem + 1px));
|
2021-02-28 02:38:54 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
appearance: none;
|
2021-03-03 03:05:27 +00:00
|
|
|
background: var(--disabled-handle);
|
2021-03-03 01:18:36 +00:00
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
border-radius: .625rem;
|
2021-03-03 03:05:27 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
&::-moz-range-thumb {
|
|
|
|
appearance: none;
|
2021-03-03 03:05:27 +00:00
|
|
|
background: var(--disabled-handle);
|
2021-03-03 01:18:36 +00:00
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
border: none;
|
|
|
|
border-radius: .625rem;
|
2021-03-03 03:05:27 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-14 22:15:00 +00:00
|
|
|
@media(max-width: $breakpoint) {
|
2020-02-23 04:23:07 +00:00
|
|
|
.genders {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2020-01-06 20:49:37 +00:00
|
|
|
}
|
2020-07-14 22:15:00 +00:00
|
|
|
|
|
|
|
@media(max-width: $breakpoint-micro) {
|
|
|
|
.tiles {
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
|
|
|
}
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
</style>
|