-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: column utils to CSS modules
- Loading branch information
1 parent
0c3d2f9
commit 7f9474a
Showing
8 changed files
with
260 additions
and
195 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
packages/mantine-react-table/src/body/.MRT_TableBodyCell.module.css
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.MRT_TableBodyCell { | ||
align-items: var(--align-items); | ||
cursor: var(--cursor); | ||
justify-content: var(--align); | ||
overflow: hidden; | ||
padding-left: var(--padding-left); | ||
white-space: var(--white-space); | ||
z-index: var(--z-index); | ||
:is([data-columndef="data"], [data-columndef="group"]) { | ||
text-overflow: ellipsis; | ||
} | ||
@mixin hover { | ||
outline: var(--outline); | ||
outline-offset: -1px; | ||
text-overflow: clip; | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
packages/mantine-react-table/src/body/MRT_TableHeadCell.module.css
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.MRT_TableHeadCell { | ||
flex-direction: var(--flex-direction); | ||
font-weight: bold; | ||
overflow: visible; | ||
padding: rem(var(--padding)); | ||
user-select: var(--user-select); | ||
vertical-align: top; | ||
z-index: var(--z-index); | ||
@mixin hover { | ||
.mantine-ActionIcon-root { | ||
opacity: 1; | ||
} | ||
} | ||
} |
Oops, something went wrong.