scss: remove duplicated .pk-button and .pk-big-button selectors (#67858)
gitea-wip/publik-base-theme/pipeline/pr-main This commit looks good Details
gitea/publik-base-theme/pipeline/pr-main This commit looks good Details
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Corentin Sechet 2022-08-10 12:11:35 +02:00
parent fe0cc8e208
commit 4ada8dcfd5
1 changed files with 17 additions and 12 deletions

View File

@ -6,11 +6,14 @@
@import 'table'; @import 'table';
a.pk-button, a.pk-big-button { a {
@extend %button; &.pk-button, &.pk-big-button {
display: inline-block; @extend %button;
margin: 0; display: inline-block;
height: auto; margin: 0;
height: auto;
}
&.pk-button { &.pk-button {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
} }
@ -19,14 +22,16 @@ a.pk-button, a.pk-big-button {
} }
} }
div.link-cell.pk-button, div.link-cell {
div.link-cell.pk-big-button { &.pk-button, &.pk-big-button {
ul > li > a { ul > li > a {
@extend %button; @extend %button;
display: block; display: block;
margin: 0; margin: 0;
height: auto; height: auto;
}
} }
&.pk-button ul > li > a { &.pk-button ul > li > a {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
} }