-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mantine, tabs): vertical tabs look and small style improvements (#…
- Loading branch information
1 parent
68d6059
commit 8abb114
Showing
2 changed files
with
16 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,19 @@ | ||
.list { | ||
&[data-orientation='horizontal'] { | ||
&::before { | ||
border-style: none; | ||
.root { | ||
&[data-variant='default'] { | ||
@mixin light { | ||
--tab-hover-color: var(--mantine-color-gray-1); | ||
} | ||
|
||
border-bottom: rem(1) solid var(--mantine-color-gray-3); | ||
} | ||
--tabs-list-border-width: 1px; | ||
|
||
&[data-orientation='vertical'] { | ||
&::before { | ||
border-style: none; | ||
&[data-orientation='horizontal'] { | ||
.list { | ||
margin-bottom: calc(-1 * var(--tabs-list-border-width)); | ||
} | ||
} | ||
|
||
border-right: rem(1) solid var(--mantine-color-gray-3); | ||
} | ||
} | ||
|
||
.tab { | ||
&[data-orientation='horizontal'] { | ||
border-bottom: rem(1) solid transparent; | ||
margin-bottom: rem(-1); | ||
|
||
&[data-active] { | ||
border-bottom: rem(1) solid var(--mantine-primary-color-6); | ||
} | ||
} | ||
|
||
&[data-orientation='vertical'] { | ||
border-right: rem(1) solid transparent; | ||
margin-right: rem(-1); | ||
|
||
&[data-active] { | ||
border-bottom: rem(1) solid var(--mantine-primary-color-6); | ||
} | ||
} | ||
|
||
& :hover { | ||
background-color: var(--mantine-color-gray-0); | ||
} | ||
|
||
&:not([data-active]):hover { | ||
border-color: var(--mantine-color-gray-3); | ||
} | ||
line-height: 1.5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters