Commit 6af0b275 by talequale

wip

parent ace3c95c
import './questionBlock.scss';
import Button from '../../cmp/button/Button.jsx'; import Button from '../../cmp/button/Button.jsx';
import Arr from '/svg/arr.svg'; import Arr from '/svg/arr.svg';
......
.question-block__title {
@include headline;
margin: 0 0 15px;
}
.question-block__notify {
@include mainBodyText;
margin: 0;
}
...@@ -4,13 +4,13 @@ import ForwardArr from '/svg/forward.svg'; ...@@ -4,13 +4,13 @@ import ForwardArr from '/svg/forward.svg';
const QuizProgress = D.declare('view.cmp.QuizProgress', () => { const QuizProgress = D.declare('view.cmp.QuizProgress', () => {
return <div class="quiz-progress"> return <div class="quiz-progress">
<button class="quiz-progress__control quiz-progress__control--back quiz-progress__control--disabled" type="button" aria-label="Перейти к предыдущему вопросу"> <button class="quiz-progress__control quiz-progress__control--back quiz-progress__control--disabled" type="button" aria-label="Перейти к предыдущему вопросу">
<ForwardArr width="9" height="16"/> <ForwardArr width="11" height="18"/>
</button> </button>
<ul className="quiz-progress__list"> <ul className="quiz-progress__list">
{(()=>{ {(()=>{
var out = []; var out = [];
var el; var el;
for (var i = 0; i < 30; i++) { for (var i = 0; i < 19; i++) {
var arr = ['quiz-progress__item']; var arr = ['quiz-progress__item'];
if (i < 5) { if (i < 5) {
arr.push('quiz-progress__item--disabled'); arr.push('quiz-progress__item--disabled');
...@@ -34,8 +34,8 @@ const QuizProgress = D.declare('view.cmp.QuizProgress', () => { ...@@ -34,8 +34,8 @@ const QuizProgress = D.declare('view.cmp.QuizProgress', () => {
return out; return out;
})()} })()}
</ul> </ul>
<button class="quiz-progress__control quiz-progress__control--forward quiz-progress__control--disabled" type="button" aria-label="Перейти к следующему вопросу"> <button class="quiz-progress__control quiz-progress__control--forward" type="button" aria-label="Перейти к следующему вопросу">
<ForwardArr width="9" height="16"/> <ForwardArr width="11" height="18"/>
</button> </button>
</div> </div>
}) })
......
.quiz-progress { .quiz-progress {
display: flex; display: flex;
max-width: 100%;
color: $text-main; color: $text-main;
background-color: $bg-main;
border: 1px solid #D0D0D0;
border-radius: 25px;
} }
.quiz-progress__list { .quiz-progress__list {
...@@ -9,8 +13,61 @@ ...@@ -9,8 +13,61 @@
} }
.quiz-progress__item { .quiz-progress__item {
flex: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
margin: -1px 4px -1px 0;
width: 50px;
height: 50px;
text-align: center; text-align: center;
font-weight: 600; font-weight: 600;
font-size: 18px; font-size: 18px;
line-height: 22px; line-height: 22px;
border: 2px solid transparent;
border-radius: 25px;
cursor: pointer;
}
.quiz-progress__item--disabled {
color: #C9C7C7;
}
.quiz-progress__item--true {
color: $accent-main;
}
.quiz-progress__item--false {
color: $red;
}
.quiz-progress__item--true.quiz-progress__item--current {
color: $text-main;
border-color: $accent-main;
box-shadow: 2px 1px 5px #BEDDD1;
} }
.quiz-progress__item--false.quiz-progress__item--current {
color: $red;
border-color: $red;
box-shadow: 2px 1px 5px #DDBEBE;
}
.quiz-progress__control {
@include btn-reset;
@include hover;
flex: none;
width: 56px;
border-radius: 25px;
}
.quiz-progress__control--back svg {
transform: scale(-1,1);
}
.quiz-progress__control--disabled {
display: none;
}
...@@ -3,19 +3,38 @@ ...@@ -3,19 +3,38 @@
} }
.quiz-page__wrapper { .quiz-page__wrapper {
width: 100%; margin: 0 auto;
width: 1000px;
max-width: 100%;
} }
.quiz-page__header { .quiz-page__header {
text-align: center; text-align: center;
min-height: 120px;
} }
.quiz-page__title { .quiz-page__title {
@include title; @include title;
margin: 0; margin: 0 0 14px;
} }
.quiz-page__subtitle { .quiz-page__subtitle {
@include mainBodyText; @include mainBodyText;
margin: 0; margin: 0 0 14px;
}
.quiz-page__progress {
margin-bottom: 24px;
width: calc(100% + 80px);
}
.quiz-page__notify {
@include bodyText;
margin: 0 0 30px;
text-align: center;
}
.quiz-page__notify b {
font-weight: 500;
color: $sienna;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment