Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
kus-admin
Commits
6af0b275
Commit
6af0b275
authored
Feb 02, 2020
by
talequale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
ace3c95c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
93 additions
and
7 deletions
+93
-7
QuestionBlock.jsx
src/view/block/questionBlock/QuestionBlock.jsx
+1
-0
questionBlock.scss
src/view/block/questionBlock/questionBlock.scss
+9
-0
QuizProgress.jsx
src/view/cmp/quizProgress/QuizProgress.jsx
+4
-4
quizProgress.scss
src/view/cmp/quizProgress/quizProgress.scss
+57
-0
quizPage.scss
src/view/page/quiz/quizPage.scss
+22
-3
No files found.
src/view/block/questionBlock/QuestionBlock.jsx
View file @
6af0b275
import
'./questionBlock.scss'
;
import
Button
from
'../../cmp/button/Button.jsx'
;
import
Arr
from
'/svg/arr.svg'
;
...
...
src/view/block/questionBlock/questionBlock.scss
View file @
6af0b275
.question-block__title
{
@include
headline
;
margin
:
0
0
15px
;
}
.question-block__notify
{
@include
mainBodyText
;
margin
:
0
;
}
src/view/cmp/quizProgress/QuizProgress.jsx
View file @
6af0b275
...
...
@@ -4,13 +4,13 @@ import ForwardArr from '/svg/forward.svg';
const
QuizProgress
=
D
.
declare
(
'view.cmp.QuizProgress'
,
()
=>
{
return
<
div
class=
"quiz-progress"
>
<
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
>
<
ul
className=
"quiz-progress__list"
>
{
(()
=>
{
var
out
=
[];
var
el
;
for
(
var
i
=
0
;
i
<
30
;
i
++
)
{
for
(
var
i
=
0
;
i
<
19
;
i
++
)
{
var
arr
=
[
'quiz-progress__item'
];
if
(
i
<
5
)
{
arr
.
push
(
'quiz-progress__item--disabled'
);
...
...
@@ -34,8 +34,8 @@ const QuizProgress = D.declare('view.cmp.QuizProgress', () => {
return
out
;
})()
}
</
ul
>
<
button
class=
"quiz-progress__control quiz-progress__control--forward
quiz-progress__control--disabled
"
type=
"button"
aria
-
label=
"Перейти к следующему вопросу"
>
<
ForwardArr
width=
"
9"
height=
"16
"
/>
<
button
class=
"quiz-progress__control quiz-progress__control--forward"
type=
"button"
aria
-
label=
"Перейти к следующему вопросу"
>
<
ForwardArr
width=
"
11"
height=
"18
"
/>
</
button
>
</
div
>
})
...
...
src/view/cmp/quizProgress/quizProgress.scss
View file @
6af0b275
.quiz-progress
{
display
:
flex
;
max-width
:
100%
;
color
:
$text-main
;
background-color
:
$bg-main
;
border
:
1px
solid
#D0D0D0
;
border-radius
:
25px
;
}
.quiz-progress__list
{
...
...
@@ -9,8 +13,61 @@
}
.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
;
font-weight
:
600
;
font-size
:
18px
;
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
;
}
src/view/page/quiz/quizPage.scss
View file @
6af0b275
...
...
@@ -3,19 +3,38 @@
}
.quiz-page__wrapper
{
width
:
100%
;
margin
:
0
auto
;
width
:
1000px
;
max-width
:
100%
;
}
.quiz-page__header
{
text-align
:
center
;
min-height
:
120px
;
}
.quiz-page__title
{
@include
title
;
margin
:
0
;
margin
:
0
0
14px
;
}
.quiz-page__subtitle
{
@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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment