Skip to content

Commit

Permalink
fix: added drop shadow to pinned columns (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
dclinz authored Sep 7, 2023
1 parent b37594f commit 7c6dd7f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/styles/GridTheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,39 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
.ag-row-highlight-below::after {
border-bottom: 2px dashed lui.$andrea;
}

// .ag-header .ag-pinned-left-header:after,
// .ag-body-viewport .ag-pinned-left-cols-container:after {
// content: " ";
// height: 100%;
// position: absolute;
// z-index: 1;
// top: 0;
// width: 15px;
// box-shadow: -4px 0px 15px -4px rgba(0, 0, 0, 0.1);
// right: -4px;
// }

// div:after {
// box-shadow: 15px 0 15px -15px inset;
// right: -15px;
// }
.ag-pinned-left-header,
.ag-pinned-right-header,
.ag-pinned-right-cols-container,
.ag-pinned-left-cols-container {
position: relative;
z-index: 1;
box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
}

.ag-pinned-left-header,
.ag-pinned-left-cols-container {
clip-path: polygon(0% 0%, 120% 0%, 120% 100%, 0% 100%);
}

.ag-pinned-right-header,
.ag-pinned-right-cols-container {
clip-path: polygon(-20% 0%, 100% 0%, 100% 100%, -20% 100%);
}
}

0 comments on commit 7c6dd7f

Please sign in to comment.