Skip to content

Commit

Permalink
assets: scss: Improve hyperlink formatting.
Browse files Browse the repository at this point in the history
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
  • Loading branch information
lzlrd committed Jul 7, 2022
1 parent 1f414ad commit ef7659f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
18 changes: 18 additions & 0 deletions assets/scss/pages/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,21 @@ table {
border: 1px double $greyTableBorder;
}
}

p {
a {
text-decoration: none;

&:link {
color: #2196f3;
}

&:visited {
color: #673ab7;
}
}

a:active {
color: #f44336;
}
}
10 changes: 5 additions & 5 deletions assets/scss/pages/posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@

.tag__link {
text-decoration: none;
color: $grey;
color: $darkGrey;
@media (prefers-color-scheme: dark) {
color: $lightGrey;
}
font-size: 0.9rem;

&::before {
Expand All @@ -46,10 +49,7 @@
}

&:hover {
color: $darkGrey;
@media (prefers-color-scheme: dark) {
color: $lightGrey;
}
color: $primary;
}
}

Expand Down
17 changes: 5 additions & 12 deletions assets/scss/partials/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,15 @@
}

.nav__list a {
color: $grey;
color: $darkGrey;
@media (prefers-color-scheme: dark) {
color: $lightGrey;
}
text-decoration: none;
font-size: 2em;

&.active {
color: $black;
@media (prefers-color-scheme: dark) {
color: $white;
}
}

&:hover {
color: $black;
@media (prefers-color-scheme: dark) {
color: $white;
}
color: $primary;
}

@media screen and (min-width: $medium) {
Expand Down

0 comments on commit ef7659f

Please sign in to comment.