-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
140 additions
and
116 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
37 changes: 37 additions & 0 deletions
37
packages/perspective-viewer-datagrid/src/less/scrollbar.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,37 @@ | ||
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃ | ||
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃ | ||
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃ | ||
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃ | ||
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
// ┃ Copyright (c) 2017, the Perspective Authors. ┃ | ||
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃ | ||
// ┃ This file is part of the Perspective library, distributed under the terms ┃ | ||
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃ | ||
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
||
// Scrollbar styling | ||
regular-table { | ||
// firefox scrollbar styling | ||
scrollbar-color: transparent transparent; | ||
scrollbar-width: thin; | ||
outline: none; | ||
|
||
// webkit (chrome, safari, etc) scrollbar styling | ||
&::-webkit-scrollbar, | ||
&::-webkit-scrollbar-corner { | ||
background-color: transparent; | ||
height: 12px; | ||
width: 12px; | ||
} | ||
|
||
&::-webkit-scrollbar-thumb { | ||
background-clip: content-box; | ||
background: var(--icon--color); | ||
border: 5.5px solid var(--plugin--background); | ||
max-height: 50%; | ||
max-width: 50%; | ||
min-width: 10%; | ||
min-height: 10%; | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
packages/perspective-viewer-datagrid/src/less/sub-cell-scroll.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,80 @@ | ||
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃ | ||
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃ | ||
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃ | ||
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃ | ||
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
// ┃ Copyright (c) 2017, the Perspective Authors. ┃ | ||
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃ | ||
// ┃ This file is part of the Perspective library, distributed under the terms ┃ | ||
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃ | ||
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
||
// Handles sub-cell scrolling via CSS transform offset by variables set during | ||
// rendering. | ||
perspective-viewer-datagrid:not(.sub-cell-scroll-disabled) regular-table table { | ||
tbody td, | ||
thead th:not(.rt-group-corner) { | ||
transform: translate(var(--regular-table--transform-x, 0px)); | ||
} | ||
|
||
tbody { | ||
transform: translate(0, var(--regular-table--transform-y, 0px)); | ||
} | ||
|
||
tbody tr:first-child { | ||
td, | ||
th { | ||
clip-path: polygon( | ||
0 var(--regular-table--clip-y, 0), | ||
0 200%, | ||
200% 200%, | ||
200% var(--regular-table--clip-y, 0) | ||
); | ||
} | ||
} | ||
|
||
tbody tr td:first-of-type { | ||
clip-path: polygon( | ||
var(--regular-table--clip-x, 0) 0, | ||
var(--regular-table--clip-x, 0) 200%, | ||
200% 200%, | ||
200% 0 | ||
); | ||
} | ||
|
||
tbody tr:first-child td:first-of-type { | ||
clip-path: polygon( | ||
var(--regular-table--clip-x, 0) var(--regular-table--clip-y, 0), | ||
var(--regular-table--clip-x, 0) 200%, | ||
200% 200%, | ||
200% var(--regular-table--clip-y, 0) | ||
); | ||
} | ||
|
||
thead tr:last-child:after { | ||
transform: translate(var(--regular-table--transform-x, 0px)); | ||
} | ||
|
||
tbody tr:not(:first-child):after { | ||
transform: translate(var(--regular-table--transform-x, 0px)); | ||
} | ||
|
||
tbody tr:hover:first-child:after { | ||
clip-path: polygon( | ||
0 var(--regular-table--clip-y, 0), | ||
0 200%, | ||
200% 200%, | ||
200% var(--regular-table--clip-y, 0) | ||
); | ||
} | ||
|
||
thead tr th.rt-group-corner + th:not(.rt-group-corner) { | ||
clip-path: polygon( | ||
var(--regular-table--clip-x, 0) 0, | ||
var(--regular-table--clip-x, 0) 200%, | ||
200% 200%, | ||
200% 0 | ||
); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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