Skip to content

Commit

Permalink
feat(Menu): change extra pseudo classes in markup to padding's (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
elemeNtk0 authored Jun 23, 2023
1 parent a619438 commit 24cfc5b
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions src/components/Menu/Menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ $block: '.#{variables.$ns}menu';
user-select: none;
outline: none;

&::before,
&::after {
content: '';
display: block;
}

&__list-group-item + &__list-group-item,
&__list-item + &__list-group-item,
&__list-group-item + &__list-item {
Expand Down Expand Up @@ -98,11 +92,7 @@ $block: '.#{variables.$ns}menu';
&_s {
font-size: 13px;
line-height: 24px;

&::before,
&::after {
height: 3px;
}
padding: 3px 0;

#{$block}__item,
#{$block}__group-label {
Expand All @@ -124,11 +114,7 @@ $block: '.#{variables.$ns}menu';
&_m {
font-size: 13px;
line-height: 24px;

&::before,
&::after {
height: 4px;
}
padding: 4px 0;

#{$block}__item,
#{$block}__group-label {
Expand All @@ -150,11 +136,7 @@ $block: '.#{variables.$ns}menu';
&_l {
font-size: 13px;
line-height: 28px;

&::before,
&::after {
height: 5px;
}
padding: 5px 0;

#{$block}__item,
#{$block}__group-label {
Expand All @@ -176,11 +158,7 @@ $block: '.#{variables.$ns}menu';
&_xl {
font-size: 15px;
line-height: 36px;

&::before,
&::after {
height: 6px;
}
padding: 6px 0;

#{$block}__item,
#{$block}__group-label {
Expand Down

0 comments on commit 24cfc5b

Please sign in to comment.