Skip to content

Commit 2e8d4bb

Browse files
committed
Refactor of hyperlink styles and hover states
1 parent 9d6de3c commit 2e8d4bb

File tree

2 files changed

+6
-41
lines changed

2 files changed

+6
-41
lines changed

scss/style.scss

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ p {
7171
}
7272

7373
a {
74+
color: $blue;
7475
text-decoration: none;
7576
cursor: pointer;
76-
color: $blue;
7777
&:hover, &:active {
78-
text-decoration: underline;
78+
color: $blue;
7979
}
8080
}
8181

@@ -190,19 +190,11 @@ img {
190190
.site-name {
191191
margin: 0;
192192
color: $darkGray;
193-
text-decoration: none;
194193
cursor: pointer;
195194
font-family: $helveticaNeue;
196195
font-weight: 300;
197196
font-size: 28px;
198197
letter-spacing: 1px;
199-
200-
a {
201-
&:hover, &:active {
202-
color: $blue;
203-
text-decoration: none;
204-
}
205-
}
206198
}
207199

208200
.site-description {
@@ -234,13 +226,7 @@ nav {
234226
text-align: right;
235227
font-weight: 300;
236228
letter-spacing: 1px;
237-
238-
&:hover, &:active {
239-
color: $darkGray;
240-
text-decoration: none;
241-
cursor: pointer;
242-
}
243-
229+
244230
@include mobile {
245231
margin: 0 10px;
246232
}
@@ -264,14 +250,6 @@ nav {
264250
}
265251

266252
.post {
267-
h1 a {
268-
cursor: pointer;
269-
&:hover, &:active {
270-
color: $blue;
271-
text-decoration: none;
272-
}
273-
}
274-
275253
blockquote {
276254
margin: 1.8em .8em;
277255
border-left: 2px solid $gray;

style.css

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,11 @@ p {
360360
margin: 15px 0; }
361361

362362
a {
363+
color: #4183c4;
363364
text-decoration: none;
364-
cursor: pointer;
365-
color: #4183c4; }
365+
cursor: pointer; }
366366
a:hover, a:active {
367-
text-decoration: underline; }
367+
color: #4183c4; }
368368

369369
ul, ol {
370370
margin: 15px 0;
@@ -444,15 +444,11 @@ img {
444444
.site-name {
445445
margin: 0;
446446
color: #333333;
447-
text-decoration: none;
448447
cursor: pointer;
449448
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
450449
font-weight: 300;
451450
font-size: 28px;
452451
letter-spacing: 1px; }
453-
.site-name a:hover, .site-name a:active {
454-
color: #4183c4;
455-
text-decoration: none; }
456452

457453
.site-description {
458454
margin: -5px 0 0 0;
@@ -479,10 +475,6 @@ nav {
479475
text-align: right;
480476
font-weight: 300;
481477
letter-spacing: 1px; }
482-
nav a:hover, nav a:active {
483-
color: #333333;
484-
text-decoration: none;
485-
cursor: pointer; }
486478
@media screen and (max-width: 520px) {
487479
nav a {
488480
margin: 0 10px; } }
@@ -495,11 +487,6 @@ nav {
495487
padding-bottom: 1em;
496488
border-bottom: none; }
497489

498-
.post h1 a {
499-
cursor: pointer; }
500-
.post h1 a:hover, .post h1 a:active {
501-
color: #4183c4;
502-
text-decoration: none; }
503490
.post blockquote {
504491
margin: 1.8em 0.8em;
505492
border-left: 2px solid #666666;

0 commit comments

Comments
 (0)