From a9c78f28c83b60cddc5294aa18f7b315d2a64e31 Mon Sep 17 00:00:00 2001 From: Pat Dryburgh Date: Wed, 24 Oct 2018 19:50:48 -0700 Subject: [PATCH] limit link hover styles to articles --- _sass/_article.scss | 4 ++++ _sass/_base.scss | 4 ---- _sass/_post-list.scss | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/_sass/_article.scss b/_sass/_article.scss index 243f9f6..f736ea0 100644 --- a/_sass/_article.scss +++ b/_sass/_article.scss @@ -23,6 +23,10 @@ text-indent: 0; } +.post a:hover { + background: $highlight; +} + .post dl, .post ul, .post ol { diff --git a/_sass/_base.scss b/_sass/_base.scss index 91fd546..5093aaa 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -55,10 +55,6 @@ a { color: $text-color; } -a:hover { - background: $highlight; -} - a:focus { outline: 1px dashed $text-color; } diff --git a/_sass/_post-list.scss b/_sass/_post-list.scss index 69a048b..de3a059 100644 --- a/_sass/_post-list.scss +++ b/_sass/_post-list.scss @@ -13,6 +13,10 @@ flex-direction: column-reverse; text-decoration: none; padding: .25em; + &:hover, + &:focus { + background: $highlight; + } @media (min-width: $on-tablet) { display: flex; flex-direction: row;