diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/_markdown.scss | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index cb70c1e4..82269dac 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -107,26 +107,28 @@ $block-background-color: var(--block-background-color); } // icons for specific domains - &[href*="wikipedia.org"]::before { - content: ''; - background-color: #fff; - background-image: url('/icons/wikipedia.svg'); - } - &[href*="wiktionary.org"]::before { - content: ''; - background-color: #fff; - background-image: url('/icons/enwiktionary.svg'); - } - &[href*="etymonline.com"]::before { - content: ''; - background-image: url('/icons/etymonline.jpg'); - } - &[href*="github.com"]::before { - content: ''; - background-image: url('/icons/github.svg'); - .dark & { - filter: invert(1); - } + &:not(.no-icon) { + &[href*="wikipedia.org"]::before { + content: ''; + background-color: #fff; + background-image: url('/icons/wikipedia.svg'); + } + &[href*="wiktionary.org"]::before { + content: ''; + background-color: #fff; + background-image: url('/icons/enwiktionary.svg'); + } + &[href*="etymonline.com"]::before { + content: ''; + background-image: url('/icons/etymonline.jpg'); + } + &[href*="github.com"]::before { + content: ''; + background-image: url('/icons/github.svg'); + .dark & { + filter: invert(1); + } + } } } |
