From 4ada8dcfd5ccca0cf117915c8f52ccbe28ca0a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20S=C3=A9chet?= Date: Wed, 10 Aug 2022 12:11:35 +0200 Subject: [PATCH] scss: remove duplicated .pk-button and .pk-big-button selectors (#67858) --- static/includes/_library.scss | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/static/includes/_library.scss b/static/includes/_library.scss index dc726423..f7c0db89 100644 --- a/static/includes/_library.scss +++ b/static/includes/_library.scss @@ -6,11 +6,14 @@ @import 'table'; -a.pk-button, a.pk-big-button { - @extend %button; - display: inline-block; - margin: 0; - height: auto; +a { + &.pk-button, &.pk-big-button { + @extend %button; + display: inline-block; + margin: 0; + height: auto; + } + &.pk-button { padding: 0.5rem 1rem; } @@ -19,14 +22,16 @@ a.pk-button, a.pk-big-button { } } -div.link-cell.pk-button, -div.link-cell.pk-big-button { - ul > li > a { - @extend %button; - display: block; - margin: 0; - height: auto; +div.link-cell { + &.pk-button, &.pk-big-button { + ul > li > a { + @extend %button; + display: block; + margin: 0; + height: auto; + } } + &.pk-button ul > li > a { padding: 0.5rem 1rem; } -- 2.39.2