Skip to content

Commit

Permalink
Change the color of visited links to purple (#129)
Browse files Browse the repository at this point in the history
* Change the color of visited links to purple

* Add purple shades to colour palette

* Reduce scope to `.entry-content`
  • Loading branch information
adamwoodnz authored Apr 29, 2024
1 parent e99ac8c commit 4200805
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ a {
}
}

:where(.entry-content a:not(.wp-element-button)) {
&:visited {
color: var(--wp--preset--color--purple-1);
}
}

// Text highlighted via the editor
mark.has-inline-color {
background-color: transparent;
Expand Down
15 changes: 15 additions & 0 deletions source/wp-content/themes/wporg-parent-2021/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,21 @@
"slug": "lemon-3",
"color": "#fffdd6",
"name": "Lemon 3"
},
{
"slug": "purple-1",
"color": "#5300be",
"name": "Purple 1"
},
{
"slug": "purple-2",
"color": "#7a00df",
"name": "Purple 2"
},
{
"slug": "purple-3",
"color": "#d7a7ff",
"name": "Purple 3"
}
]
},
Expand Down

0 comments on commit 4200805

Please sign in to comment.