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';
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;
}