From b70b30bc9970582461beb319f63fc1e276e41c68 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 16 Sep 2020 01:43:23 +0100 Subject: [PATCH] Refactor existing CSS Fixes #190 --- .../custom/opdavies/assets/css/components/button.pcss | 4 ---- web/themes/custom/opdavies/assets/css/components/note.pcss | 6 +----- web/themes/custom/opdavies/assets/css/custom-base.pcss | 6 +----- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/web/themes/custom/opdavies/assets/css/components/button.pcss b/web/themes/custom/opdavies/assets/css/components/button.pcss index f12fbdc..3b83537 100644 --- a/web/themes/custom/opdavies/assets/css/components/button.pcss +++ b/web/themes/custom/opdavies/assets/css/components/button.pcss @@ -2,10 +2,6 @@ @apply py-2 px-3 inline-block border border-blue-600; @apply text-sm text-white no-underline bg-blue-600 rounded; - &:focus { - @apply py-2 px-3 m-0 - } - &:active, &:focus, &:hover { diff --git a/web/themes/custom/opdavies/assets/css/components/note.pcss b/web/themes/custom/opdavies/assets/css/components/note.pcss index 7f9909c..85e5f67 100644 --- a/web/themes/custom/opdavies/assets/css/components/note.pcss +++ b/web/themes/custom/opdavies/assets/css/components/note.pcss @@ -6,10 +6,6 @@ } p a { - @apply text-black underline; - - &:hover { - @apply no-underline - } + @apply text-black underline hover:no-underline } } diff --git a/web/themes/custom/opdavies/assets/css/custom-base.pcss b/web/themes/custom/opdavies/assets/css/custom-base.pcss index 6f626a6..9e0d2a8 100644 --- a/web/themes/custom/opdavies/assets/css/custom-base.pcss +++ b/web/themes/custom/opdavies/assets/css/custom-base.pcss @@ -15,11 +15,7 @@ img { } a { - @apply text-blue-700 no-underline; - - &:hover { - @apply underline - } + @apply text-blue-700 no-underline hover:underline } blockquote {