Skip to content

Commit 1606854

Browse files
committed
fixed scss files
1 parent bc0121e commit 1606854

File tree

6 files changed

+86
-86
lines changed

6 files changed

+86
-86
lines changed

src/components/code/code.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ $color-copy-active: #868686;
4242
background-color: $background-copy;
4343
color: $color-copy;
4444
cursor: pointer;
45-
}
4645

47-
&__copy:active {
48-
box-shadow: $shadow-copy-active;
49-
color: $color-copy-active;
50-
}
46+
&:active {
47+
box-shadow: $shadow-copy-active;
48+
color: $color-copy-active;
49+
}
5150

52-
&__copy:focus {
53-
outline: 2px solid $color-focus;
54-
outline-offset: 4px;
51+
&:focus {
52+
outline: 2px solid $color-focus;
53+
outline-offset: 4px;
54+
}
5555
}
5656
}

src/components/header/header.scss

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,25 @@ $color-focus: rgb(167, 167, 167);
3333
&__download {
3434
color: #555;
3535
font-size: 24px;
36-
}
37-
38-
&__download:hover,
39-
&__download:focus {
40-
color: rgb(107, 107, 107);
41-
}
4236

43-
&__download:focus {
44-
outline: 2px solid $color-focus;
45-
outline-offset: 4px;
37+
&:hover,
38+
&:focus {
39+
color: rgb(107, 107, 107);
40+
}
41+
42+
&:focus {
43+
outline: 2px solid $color-focus;
44+
outline-offset: 4px;
45+
}
4646
}
4747
}
4848

4949
.octicon {
5050
fill: #bb5525;
51+
&:hover {
52+
transition: 0.1s ease-in-out;
53+
filter: drop-shadow(0 0 2px #bb5525);
54+
}
5155
}
5256

53-
.octicon:hover {
54-
transition: 0.1s ease-in-out;
55-
filter: drop-shadow(0 0 2px #bb5525);
56-
}
57+

src/components/miscellaneous/miscellaneous.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ $color-button-active: #868686;
6868
background-color: $background-button;
6969
color: $color-button;
7070
cursor: pointer;
71-
}
7271

73-
&__reset:active,
74-
&__apply:active {
75-
box-shadow: $shadow-button-active;
76-
color: $color-button-active;
72+
&:active {
73+
box-shadow: $shadow-button-active;
74+
color: $color-button-active;
75+
}
7776
}
7877
}

src/components/select/select.scss

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,22 @@ $background-color-item: rgb(244, 249, 255);
3333
box-sizing: border-box;
3434
cursor: pointer;
3535
text-align: start;
36-
}
3736

38-
&__displayed:hover,
39-
&__displayed:focus {
40-
border: 1px solid $color-border-hover;
37+
&:hover,
38+
&:focus {
39+
border: 1px solid $color-border-hover;
40+
}
41+
42+
&:focus {
43+
outline: 2px solid $color-focus;
44+
outline-offset: 4px;
45+
}
4146
}
4247

43-
&__displayed:focus {
44-
outline: 2px solid $color-focus;
45-
outline-offset: 4px;
48+
&_visible &__displayed {
49+
border-color: $color-border-show;
50+
border-bottom-left-radius: 0px;
51+
border-bottom-right-radius: 0px;
4652
}
4753

4854
&__tip {
@@ -54,6 +60,10 @@ $background-color-item: rgb(244, 249, 255);
5460
transition: transform 0.5s;
5561
}
5662

63+
&_visible &__tip {
64+
transform: rotate(180deg);
65+
}
66+
5767
&__options {
5868
width: calc(100% - 2px);
5969
background: $color-background;
@@ -66,19 +76,23 @@ $background-color-item: rgb(244, 249, 255);
6676
top: 43px;
6777
}
6878

79+
&_visible &__options {
80+
display: block;
81+
}
82+
6983
&__item {
7084
padding: 5px 15px 5px 15px;
7185
cursor: pointer;
7286
font-size: 14px;
73-
}
74-
75-
&__item:hover {
76-
background-color: $background-color-item;
77-
}
7887

79-
&__item:focus {
80-
outline: 2px solid $color-focus;
81-
outline-offset: 4px;
88+
&:hover {
89+
background-color: $background-color-item;
90+
}
91+
92+
&:focus {
93+
outline: 2px solid $color-focus;
94+
outline-offset: 4px;
95+
}
8296
}
8397

8498
&__input {
@@ -95,18 +109,4 @@ $background-color-item: rgb(244, 249, 255);
95109
clip: rect(0 0 0 0);
96110
overflow: hidden;
97111
}
98-
99-
&_visible &__options {
100-
display: block;
101-
}
102-
103-
&_visible &__tip {
104-
transform: rotate(180deg);
105-
}
106-
107-
&_visible &__displayed {
108-
border-color: $color-border-show;
109-
border-bottom-left-radius: 0px;
110-
border-bottom-right-radius: 0px;
111-
}
112112
}

src/components/text-field/text-field.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111
color: $color-label;
1212
}
1313

14-
&__input::placeholder {
15-
color: $style-text;
16-
}
17-
18-
&__input:hover,
19-
&__input:focus {
20-
border: 1px solid $color-border-hover;
21-
}
22-
2314
&__input {
2415
margin-top: 5px;
2516
width: 100%;
@@ -36,5 +27,14 @@
3627
font-size: 14px;
3728
line-height: 24px;
3829
box-sizing: border-box;
30+
31+
&::placeholder {
32+
color: $style-text;
33+
}
34+
35+
&:hover,
36+
&:focus {
37+
border: 1px solid $color-border-hover;
38+
}
3939
}
4040
}

src/components/toggle/toggle.scss

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,18 @@ $before-background-checked: #b5cf9a;
3232
z-index: 0;
3333
border: 0;
3434
padding: 0;
35+
36+
&:focus {
37+
outline: 2px solid $color-focus;
38+
outline-offset: 12px;
39+
}
3540
}
3641

37-
&__input:focus {
38-
outline: 2px solid $color-focus;
39-
outline-offset: 12px;
42+
&__input:checked + &__before {
43+
background-color: $before-background-checked;
44+
}
45+
&__input:checked + &__before:after {
46+
left: 22px;
4047
}
4148

4249
&__wrapper {
@@ -59,25 +66,18 @@ $before-background-checked: #b5cf9a;
5966
border-radius: 10px;
6067
transition: 0.2s;
6168
box-sizing: border-box;
62-
}
63-
64-
&__before:after {
65-
content: "";
66-
position: absolute;
67-
top: 4px;
68-
left: 4px;
69-
width: 12px;
70-
height: 12px;
71-
border-radius: 10px;
72-
background: $color-background;
73-
cursor: pointer;
74-
transition: 0.2s;
75-
}
7669

77-
&__input:checked + &__before {
78-
background-color: $before-background-checked;
79-
}
80-
&__input:checked + &__before:after {
81-
left: 22px;
70+
&:after {
71+
content: "";
72+
position: absolute;
73+
top: 4px;
74+
left: 4px;
75+
width: 12px;
76+
height: 12px;
77+
border-radius: 10px;
78+
background: $color-background;
79+
cursor: pointer;
80+
transition: 0.2s;
81+
}
8282
}
8383
}

0 commit comments

Comments
 (0)