Skip to content

Commit f3fb62b

Browse files
committed
@hints added
1 parent 76efda9 commit f3fb62b

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

lib/components/page/page.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/reducers/task-tests/tasks/tasks.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/styles.less

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,44 @@
55
font-family: @font-family;
66
font-size: @font-size;
77
}
8-
98
pre {
109
margin-bottom: 10px !important;
1110
padding-bottom: 0;
1211
}
13-
12+
@pass: rgb(115, 201, 144);
13+
@fail: rgb(255, 64, 129);
14+
@note: #9DA5B4;
1415
.cr-alert.pass {
1516
button {
1617
span {
17-
color: rgb(115, 201, 144);
18+
color: @pass;
1819
}
1920
}
2021
}
2122
.cr-alert.fail {
2223
button {
2324
span {
24-
color: rgb(255, 64, 129);
25+
color: @fail;
2526
}
2627
}
2728
}
28-
29+
.cr-alert.note {
30+
button {
31+
span {
32+
color: @note;
33+
}
34+
}
35+
}
36+
.cr-alert-replay {
37+
display: inline-block;
38+
margin-left: 10px;
39+
margin-right: 10px;
40+
}
2941
.cr {
3042
.cr-menu-bar {
3143
z-index: 999 !important;
3244
}
3345
}
34-
3546
.cr {
3647
&-chapter {
3748
border: 2px solid red; // testing
@@ -45,7 +56,6 @@ pre {
4556
text-align: center;
4657
}
4758
}
48-
4959
.cr-page {
5060
position: relative;
5161
width: 400px;
@@ -89,7 +99,22 @@ pre {
8999
}
90100
}
91101
}
92-
102+
.cr-task-hint {
103+
&-index {
104+
position: absolute;
105+
top: 20px;
106+
left: 20px;
107+
}
108+
&-description {
109+
padding-top: -10px;
110+
padding-left: 35px;
111+
}
112+
.cr-task-hint-box {
113+
div > div {
114+
padding: 0 10px;
115+
}
116+
}
117+
}
93118
.cr {
94119
&-progress {
95120
.chapter {
@@ -111,7 +136,6 @@ pre {
111136
}
112137
}
113138
}
114-
115139
.cr {
116140
&-projects {
117141
height: 100%;

0 commit comments

Comments
 (0)