Skip to content

Commit b8a6697

Browse files
authored
feat(wikipedia): add option for redirect highlight (catppuccin#832)
1 parent 00801a5 commit b8a6697

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

styles/wikipedia/catppuccin.user.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@name Wikipedia Catppuccin
33
@namespace github.com/catppuccin/userstyles/styles/wikipedia
44
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/wikipedia
5-
@version 0.0.14
5+
@version 0.0.15
66
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/wikipedia/catppuccin.user.css
77
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Awikipedia
88
@description Soothing pastel theme for Wikipedia
@@ -13,6 +13,7 @@
1313
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
1414
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
1515
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire*", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
16+
@var checkbox highlight-redirect "Highlight redirect links" 0
1617
==/UserStyle== */
1718

1819
@-moz-document domain('wikipedia.org') {
@@ -347,7 +348,7 @@
347348
box-shadow: inset 2.75em 0 0 @surface1;
348349
}
349350

350-
.mw-redirect {
351+
.mw-redirect when (@highlight-redirect = 1) {
351352
color: @green !important;
352353
}
353354

0 commit comments

Comments
 (0)