Skip to content

Commit 4748105

Browse files
committed
fix task solution
1 parent 3c3c555 commit 4748105

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

modules/styles/blocks/04-links/links.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ $link-type
3838
:visited
3939
text-decoration none
4040

41+
a[href*="_[stub]_"]
42+
color gray !important
43+
4144
a:hover,
4245
a:active
4346
color link_hover_color

modules/styles/blocks/task/task.styl

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.task
22
&__header
3-
margin 40px 0 12px
3+
margin 16px 0 16px
44

55
&__title-wrap
66
padding-right 45px
77

88
& &__title
99
margin 0
10-
line-height 1
10+
line-height 28px
1111
display inline
12-
font-size 128%
12+
font-size 20px
1313
font-weight bold
1414

1515
& &__title a
@@ -39,32 +39,29 @@
3939
margin-right 30px
4040

4141
&__solution
42-
@extend $link-button
43-
44-
&__answer_open &__solution
45-
position relative
46-
background #568DCA
47-
color #fff
48-
text-decoration none
42+
@extend $button-reset
43+
display inline-block
44+
margin 18px 0
45+
padding 4px 12px
46+
border-radius 15px
47+
border 2px solid #568DCA
48+
font inherit
4949
line-height 18px
50-
padding 4px 15px
51-
margin -4px -15px
52-
border-radius 12px
50+
color #568DCA
51+
text-decoration none
5352

54-
&__answer_open &__solution:hover
55-
color #fff
53+
&:hover
54+
color link_hover_color
55+
border-color link_hover_color
56+
text-decoration none
5657

57-
&__answer_open &__solution::after
58-
content ""
59-
position absolute
60-
border-bottom 14px solid #F7F6EA
61-
border-right 9px solid transparent
62-
border-left 9px solid transparent
63-
width 0
64-
height 0
65-
top 100%
66-
left 50%
67-
margin 4px 0 0 -7px
58+
&[disabled]
59+
&[disabled]:hover
60+
cursor default
61+
opacity 0.5
62+
color #568DCA
63+
border-color #568DCA
64+
text-decoration none
6865

6966
&__content,
7067
&__content p,
@@ -95,7 +92,10 @@
9592
top -17px
9693
right -17px
9794

98-
&__answer_open &__answer
95+
@media phone
96+
right -13px
97+
98+
&_answer_open &__answer
9999
display block
100100

101101
&__step-show
@@ -119,16 +119,16 @@
119119
border-top 1px solid #edece2
120120

121121
&__step:first-child &__step-show::before,
122-
&__step_open + &__step &__step-show::before
122+
&_step_open + &__step &__step-show::before
123123
display none
124124

125125
&__step &__answer-content
126126
display none
127127

128-
&__step_open &__answer-content
128+
&_step_open &__answer-content
129129
display block
130130

131-
&__step_open &__step-show
131+
&_step_open &__step-show
132132
display none
133133

134134
& &__step-title

0 commit comments

Comments
 (0)