Skip to content

Commit

Permalink
fix tab padding for borders more than one
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Jun 16, 2021
1 parent 31886b8 commit 711614f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/styled/tab.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
border-bottom-color: hsla(var(--border-color, var(--b3)) / var(--tw-border-opacity, 1));
padding-left: var(--tab-padding, 1rem);
padding-right: var(--tab-padding, 1rem);
padding-top: var(--tab-border, 1px);
&.tab-active{
@apply bg-base-100;
border-width: var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);
Expand All @@ -34,6 +35,7 @@
padding-left: calc( var(--tab-padding, 1rem) - var(--tab-border, 1px) );
padding-right: calc( var(--tab-padding, 1rem) - var(--tab-border, 1px) );
padding-bottom: var(--tab-border, 1px);
padding-top: 0;
&:before, &:after{
z-index: 1;
content:'';
Expand Down

0 comments on commit 711614f

Please sign in to comment.