Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | <template>
<div>
<div class="mb-4 question-container">
<div class="d-inline-flex cursor-pointer align-items-center cursor-pointer pb-2" @click="toggleAnswer">
<svg class="dropdown-arrow me-2" :class="{'active': isActive}" fill='rgb(154, 117, 63)' height='8'
viewBox='0 0 12 8' width='12' xmlns='http://www.w3.org/2000/svg'>
<path d="M0 0 L12 0 L6 8 Z"/>
</svg>
<p class="question justify mb-0">{{ `${this.questionSpecs['index']}. ${this.questionSpecs['question']}` }}</p>
</div>
<p class="answer specific-breakpoint ms-lg-6 mb-4" :class="{'active': isActive}">{{ this.questionSpecs['answer'] }}</p>
</div>
</div>
</template>
<script>
export default {
props: ['questionSpecs'],
data() {
return {
isActive: false
}
},
methods: {
toggleAnswer() {
this.isActive = !this.isActive;
}
}
}
</script>
<style lang="scss" scoped>
.cursor-pointer {
cursor: pointer;
}
.question {
font-size: 1.6rem;
font-family: SoleilLight;
}
.question-container {
border-bottom: 1px solid rgb(154, 117, 63);
}
.dropdown-arrow.active {
transform: rotate(-90deg);
}
.answer {
display: none;
font-size: 1rem;
text-align: justify;
font-family: SoleilLight;
&.active {
display: block;
}
}
@media screen and #{$ipad-pro-portrait-breakpoint},
screen and #{$ipad-pro-landscape-breakpoint},
screen and #{$ipad-landscape-breakpoint} {
.answer.specific-breakpoint {
margin-left: 0 !important;
}
.question {
font-size: 1.5rem;
}
.answer {
font-size: 1rem;
}
}
@include media-breakpoint-down(lg) {
.question {
font-size: 1.4rem;
}
.answer {
font-size: .9rem;
}
}
@include media-breakpoint-down(md) {
.answer {
font-size: 2.5vw;
}
}
@include media-breakpoint-down(xssm) {
.answer {
font-size: 3vw;
}
.question {
font-size: 4vw;
}
}
</style>
|