Skip to content

Commit

Permalink
Restyle links
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFoDy committed Jan 27, 2024
1 parent f9e0465 commit 110bf5c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
9 changes: 7 additions & 2 deletions src/styles/blocks/article.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@
}

.article a {
color: var(--color-subtext);
color: var(--color-link);
text-decoration-color: var(--color-accent);
text-decoration-thickness: 2px;
}

.article a:visited {
color: var(--color-link-visited);
}

.article a:hover {
background: var(--color-accent-alpha);
}
Expand Down Expand Up @@ -203,7 +207,8 @@
content: '';
}

.article__nav-button[class] {
.article__nav-button[class],
.article__nav-button[class]:visited {
position: relative;
display: block;
padding: var(--line-space);
Expand Down
6 changes: 5 additions & 1 deletion src/styles/blocks/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
}

.footer a {
color: var(--color-subtext);
color: var(--color-link);
text-decoration-color: var(--color-accent);
text-decoration-thickness: 2px;
}

.footer a:visited {
color: var(--color-link-visited);
}

.footer a:hover {
background: var(--color-accent-alpha);
}
Expand Down
5 changes: 4 additions & 1 deletion src/styles/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
--color-text: var(--color-white);
--color-outline: var(--color-red);
--color-subtext: var(--color-lightgrey);
--color-accent-base: 136, 0, 136;
--color-accent: #880088;
--color-accent-alpha: rgb(136 0 136 / 0.3);
--color-link: #ffaaff;
--color-link-visited: #aaaaff;
--color-code: var(--color-lightgrey);
--color-delimeter: var(--color-darkgrey);

Expand Down
7 changes: 4 additions & 3 deletions src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
--color-lightgrey: #bebbbb;
--color-darkgrey: #514f4f;
--color-red: #ff4d00;
--color-accent-base: 255, 204, 0;
--color-accent: #ffcc00;
--color-accent-alpha: rgb(255 204 0 / 0.3);
--color-link: #665500;
--color-link-visited: #000000;

--line-height: 1.42;
--font-size: 20px;
Expand All @@ -41,8 +44,6 @@
--color-text: var(--color-black);
--color-subtext: var(--color-grey);
--color-outline: var(--color-red);
--color-accent: rgb(var(--color-accent-base));
--color-accent-alpha: rgba(var(--color-accent-base), 0.3);
--color-code: var(--color-darkgrey);
--color-delimeter: var(--color-lightgrey);

Expand Down

0 comments on commit 110bf5c

Please sign in to comment.