Skip to content

Commit ced41aa

Browse files
committed
added hover effect for hero social icons
1 parent edb96b8 commit ced41aa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

css/style.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ textarea {
218218
width: 100%;
219219
display: block;
220220
padding: 1.2rem;
221-
border-bottom: 2px solid #eee; }
221+
border-bottom: 2px solid #eee;
222+
transition: background .3s; }
223+
.home-hero__social-icon-link:hover {
224+
background: rgba(255, 255, 255, 0.1); }
222225
.home-hero__social-icon-link--bd-none {
223226
border-bottom: 0; }
224227
.home-hero__social-icon {

sass/pages/_home.scss

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
display: block;
5050
padding: 1.2rem;
5151
border-bottom: 2px solid #eee;
52+
transition: background .3s;
53+
54+
&:hover {
55+
background: rgba(#fff,.1);
56+
}
57+
5258
&--bd-none {
5359
border-bottom: 0;
5460
}

0 commit comments

Comments
 (0)