-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSS cleanups, fixes, and reimplementations (#1780)
* Clean up a bit of the core css, and Header type * Row css cleanup * Fix fragment id prop warning in dev mode * context menu styling * Fix missing background color on frozen cells * Use flex to align cells vertically, small optimizations * header cells = cells * Use sticky position for frozen header cells as well * Fix tests * Editor styling * Fix tests * bit more padding * small fixes * Redo checkbox styling * more draggable header cell fixes * fix NumericFilter style * Align cells vertically using line-height * pull header sort arrows to the right * Fix tests * set line-height on the root * Couple cleanups * rdg-cell * more renaming * center filters again * Add MUI icons package * Replace glyphicons * harmonize frozen cell styles * Fix jest performance * Scroll the header as a whole, skip some refs * Fix tests * Fix sortable header cell text overflow * Fix tests
- Loading branch information
Showing
48 changed files
with
405 additions
and
491 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
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
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
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
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
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
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
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
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
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
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
39 changes: 39 additions & 0 deletions
39
packages/react-data-grid-addons/style/rdg-contextmenu.less
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,39 @@ | ||
.react-contextmenu { | ||
cursor: pointer; | ||
background-color: #fff; | ||
border: 1px solid #ddd; | ||
border-radius: 3px; | ||
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.24); | ||
|
||
font-size: 14px; | ||
line-height: 2; | ||
white-space: nowrap; | ||
|
||
> .react-contextmenu-item:not(:last-child) { | ||
border-bottom: 1px solid #ddd; | ||
} | ||
|
||
.react-contextmenu-submenu > & { | ||
margin-top: -1px; | ||
} | ||
} | ||
|
||
.react-contextmenu-item:not(.react-contextmenu-submenu) { | ||
padding: 0 12px; | ||
} | ||
|
||
.react-contextmenu-item--selected { | ||
background-color: darken(#fff, 4%); | ||
} | ||
|
||
.react-contextmenu-submenu > .react-contextmenu-item { | ||
&::after { | ||
content: "▶"; | ||
margin-left: 12px; | ||
margin-right: -6px; | ||
} | ||
|
||
&:not(.react-contextmenu-item--active) + .react-contextmenu { | ||
display: none; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
display: inline-block; | ||
height: 40px; | ||
width: 40px; | ||
} | ||
vertical-align: middle; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
packages/react-data-grid-addons/style/react-data-grid-addons.less
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,3 +1,19 @@ | ||
@import 'rdg-contextmenu.less'; | ||
@import 'rdg-drop-target.less'; | ||
@import 'rdg-image.less'; | ||
@import 'rdg-toolbar.less'; | ||
|
||
.rdg-dragging { | ||
cursor: grabbing; | ||
} | ||
|
||
.rdg-draggable-header-cell { | ||
cursor: move; | ||
display: inline-block; | ||
height: inherit; | ||
background-color: inherit; | ||
} | ||
|
||
.rdg-can-drop { | ||
background-color: #ececec; | ||
} |
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
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
Oops, something went wrong.