Skip to content

Commit 5282c4c

Browse files
Addressing PR feedback
1 parent 7a9bc56 commit 5282c4c

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

styles/Card.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
a {
4141
text-decoration: underline;
42+
text-underline-offset: 2px;
4243

4344
&:hover {
4445
opacity: 0.6;

styles/Nav.module.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,24 @@
115115
font-size: 1.2rem;
116116
line-height: 2.5;
117117
font-weight: 400;
118-
display: block;
118+
letter-spacing: 1px;
119119
@include transition(all 0.3s ease);
120120

121-
&:hover,
121+
&:hover {
122+
font-weight: bold;
123+
letter-spacing: 0;
124+
}
125+
122126
&.current {
123-
font-weight: 600;
127+
font-weight: bold;
124128
}
125129

126-
&:before {
130+
&:after {
127131
display: block;
132+
letter-spacing: 1px;
128133
content: attr(title);
129134
font-weight: bold;
130-
height: 1px;
131-
color: transparent;
135+
height: 0;
132136
overflow: hidden;
133137
visibility: hidden;
134138
}
@@ -140,6 +144,7 @@
140144

141145
&__item {
142146
@include desktop {
147+
display: inline-block;
143148
margin-left: 6rem;
144149
}
145150
}

styles/globals.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ a {
5959

6060
&:hover {
6161
text-decoration: underline;
62+
text-underline-offset: 2px;
6263
}
6364
}
6465

0 commit comments

Comments
 (0)