Skip to content

Commit d53a482

Browse files
authored
Merge pull request #65 from rubyuy/add-links-hover
Add links hover behavior
2 parents 4d1faf6 + 3f3e59a commit d53a482

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

_sass/header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ body {
122122
padding: 0.43vw 1.719vw;
123123
text-decoration: none;
124124

125+
&:hover {
126+
background-color: rgba(0,0,0,0.5);
127+
}
128+
125129
@media (max-width: 992px) {
126130
font-size: 14px;
127131
margin-top: 12px;

_sass/nav.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ nav {
1717
background: #fff;
1818
box-sizing: border-box;
1919

20-
&:first-child { flex: 3; background: #F6EEEC; }
20+
&:first-child { flex: 3; background: #F6EEEC; a:hover { background-color: inherit; } }
2121
&:nth-child(2) { background: #F6EEEC; flex: 10; }
2222
&:nth-child(n+3):not(:last-child) { flex: 6 }
2323
&:nth-last-child(2) { border: 0; }
@@ -28,8 +28,17 @@ nav {
2828
}
2929

3030
a {
31+
align-items: center;
3132
color: inherit;
33+
display: flex;
34+
height: 100%;
35+
justify-content: center;
3236
text-decoration: none;
37+
width: 100%;
38+
39+
&:hover {
40+
background-color: rgb(57, 126, 120);
41+
}
3342
}
3443

3544
button {

0 commit comments

Comments
 (0)