Skip to content

Commit 8fb8cf8

Browse files
committed
Fix hover
1 parent 6d10bf3 commit 8fb8cf8

File tree

3 files changed

+43
-16
lines changed

3 files changed

+43
-16
lines changed

src/sass/components/_contacts.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ p {
128128
color: var(--main-background-color);
129129
background: transparent;
130130
border: 1px solid var(--main-background-color);
131+
transition: border var(--animation-dur) var(--animation-type);
132+
133+
&:hover {
134+
border: 1px solid var(--orange-color-text);
135+
}
131136

132137
@media screen and (min-width: 768px) {
133138
width: 390px;
@@ -185,6 +190,14 @@ p {
185190
text-transform: uppercase;
186191
margin-top: 50px;
187192

193+
transition: background-color var(--animation-dur) var(--animation-type), color var(--animation-dur) var(--animation-type);
194+
195+
&:hover,
196+
:focus {
197+
background-color: var(--main-background-color);
198+
color: var(--orange-color-text);
199+
}
200+
188201
@media screen and (min-width: 768px) {
189202
margin-top: 30px;
190203
}

src/sass/components/_header.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ align-items: center;
115115
font-family: Montserrat,sans-serif;
116116
font-style: normal;
117117
font-weight: 700;
118-
118+
transition: background-color var(--animation-dur) var(--animation-type), color var(--animation-dur) var(--animation-type);
119+
120+
&:hover, :focus {
121+
background-color: var(--orange-color-text);
122+
color: var(--main-background-color);
123+
}
124+
119125
@media screen and (max-width: 1279px) {
120126
margin-left: auto;
121127
}
@@ -148,7 +154,7 @@ display: none;
148154
background-color: rgba(17,21,24,.01);
149155
@media screen and (min-width: 768px) {
150156
display: none;
151-
157+
152158
}
153159
}
154160
.header__container__menu_list{

src/sass/components/_hero.scss

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
.hero__offer {
23-
23+
2424

2525
@media screen and (min-width: 1280px) {
2626
padding-bottom: 140px;
@@ -31,7 +31,7 @@
3131
width: 280px;
3232
margin-bottom: 30px;
3333
padding-top: 10px;
34-
34+
3535

3636
@media screen and (min-width: 768px) {
3737
width: 332px;
@@ -46,7 +46,7 @@
4646
}
4747

4848
.hero__title {
49-
49+
5050
margin-top: 0px;
5151
margin-bottom: 30px;
5252
font-weight: 800;
@@ -57,7 +57,7 @@
5757
@media screen and (min-width: 768px) {
5858
font-size: 26px;
5959
line-height: 1.30;
60-
60+
6161
}
6262

6363
@media screen and (min-width: 1280px) {
@@ -86,7 +86,7 @@
8686

8787
.hero__subtext {
8888
margin-top: 5px;
89-
89+
9090
font-weight: 700;
9191
font-size: 14px;
9292
line-height: 1.571;
@@ -95,7 +95,7 @@
9595
@media screen and (min-width: 1280px) {
9696
font-size: 20px;
9797
line-height: 1.65;
98-
98+
9999
}
100100
}
101101

@@ -118,10 +118,18 @@
118118
line-height: 1.25;
119119
text-transform: uppercase;
120120
letter-spacing: 0.08em;
121-
padding-top: 16px;
122-
padding-bottom: 16px;
121+
padding-top: 14px;
122+
padding-bottom: 14px;
123123
cursor: pointer;
124124
letter-spacing: 0.08em;
125+
border: 2px solid var(--orange-color-text);
126+
127+
transition: background-color var(--animation-dur) var(--animation-type), color var(--animation-dur) var(--animation-type);
128+
129+
&:hover, :focus {
130+
background-color: var(--main-background-color);
131+
color: var(--orange-color-text);
132+
}
125133

126134
@media screen and (min-width: 768px) {
127135
display: inline-block;
@@ -134,8 +142,8 @@
134142
font-size: 14px;
135143
line-height: 1.21;
136144
width: 354px;
137-
138-
145+
146+
139147
}
140148
}
141149

@@ -144,18 +152,18 @@
144152

145153
@media screen and (min-width: 768px) {
146154
padding-top: 40px;
147-
155+
148156
}
149157

150158
@media screen and (min-width: 1280px) {
151159
padding-top: 70px;
152-
160+
153161
}
154162

155163
}
156164

157165
.hero__img {
158-
166+
159167
min-width: 208px;
160168
margin-left: auto;
161169
margin-right: auto;
@@ -170,7 +178,7 @@
170178

171179
@media screen and (min-width: 1280px) {
172180
max-width: 617px;
173-
181+
174182
}
175183

176184
}

0 commit comments

Comments
 (0)