From 9a849bb2eec3344a27d5527ae46c67dc7b0ef23e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 28 Nov 2022 11:36:52 +0100 Subject: [PATCH] Default rule: `a` element are blue and darker blue by default --- app/webpacker/css/admin/v2/components/tables.scss | 11 ----------- app/webpacker/css/admin/v2/shared/typography.scss | 13 +++++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/webpacker/css/admin/v2/components/tables.scss b/app/webpacker/css/admin/v2/components/tables.scss index a9aa391aff..cf534b476d 100644 --- a/app/webpacker/css/admin/v2/components/tables.scss +++ b/app/webpacker/css/admin/v2/components/tables.scss @@ -44,17 +44,6 @@ table tbody tr { } } -table th a, -table td a { - // This should probably be a default rule for all links at a general level - color: $v2-blue; - border-color: $v2-blue; - &:hover { - color: $v2-blue-dark; - border-color: $v2-blue-dark; - } -} - table th.actions, table td.actions { // Special for icons in the actions column diff --git a/app/webpacker/css/admin/v2/shared/typography.scss b/app/webpacker/css/admin/v2/shared/typography.scss index cf9134fa2c..f0dcc73983 100644 --- a/app/webpacker/css/admin/v2/shared/typography.scss +++ b/app/webpacker/css/admin/v2/shared/typography.scss @@ -1,5 +1,18 @@ // Overide app/webpacker/css/admin/shared/typography.scss +@mixin v2-link-color() { + color: $v2-blue; + border-color: $v2-blue; + &:hover { + color: $v2-blue-dark; + border-color: $v2-blue-dark; + } +} + body.admin.admin-v2 { color: $v2-body-grey; + + a:not(.button) { + @include v2-link-color(); + } }