@true-directive/grid
Version:
Angular Data Grid from Yopsilon.
401 lines (350 loc) • 18.8 kB
CSS
.true-grid-appearance {
border: 1px solid #c5c7c9;
background-color: unset;
user-select: none; }
.true-grid-appearance .true-accent {
color: #ea6b0c; }
.true-grid-appearance .true-grid-data {
transition: opacity 0.4s ease, background-color 0.4s ease; }
.true-grid-appearance .true-scroller-header-left, .true-grid-appearance .true-scroller-footer-left, .true-grid-appearance .true-scroller-data-left {
border-right: 1px solid #c5c7c9; }
.true-grid-appearance .true-scroller-header-right, .true-grid-appearance .true-scroller-footer-right, .true-grid-appearance .true-scroller-data-right {
border-left: 1px solid #c5c7c9; }
.true-grid-appearance .true-grid-drag-item-appearance .true-grid-header {
opacity: 0.97;
border: 1px solid #c5c7c9;
background-color: #fbfcfd; }
.true-grid-appearance .true-grid-drag-item-appearance .true-drag-data {
padding: 40px; }
.true-grid-appearance .true-grid-drag-item-appearance .true-grid-data {
opacity: 0.97;
border: 1px solid #c5c7c9;
background-color: #fff;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.08); }
.true-grid-appearance .true-grid-drag-item-appearance .true-grid-data td {
overflow-x: hidden;
text-overflow: ellipsis;
border: 0 ; }
.true-grid-appearance .true-grid-btn {
color: #757779;
opacity: 0.15;
transition-delay: 0.1s;
transition: background-color .25s ease-in, opacity .25s ease-in, border-color .25s ease-in; }
.true-grid-appearance .true-grid-btn:hover, .true-grid-appearance .true-grid-btn-visible .true-grid-btn {
visibility: visible;
background-color: #eaecee;
border-color: #d5d7d9;
opacity: 1.0 ; }
.true-grid-appearance .true-fix-touch .true-grid-btn {
opacity: 0.2;
visibility: visible; }
.true-grid-appearance .true-header-appearance {
color: #1f2f3d;
font-weight: normal;
background-color: #fbfcfd;
border-bottom: 1px solid #e5e7e9; }
.true-grid-appearance .true-header-appearance .true-grid-header tr:last-child {
border-bottom: 0; }
.true-grid-appearance .true-header-appearance .true-grid-header td.band {
padding: 0; }
.true-grid-appearance .true-header-appearance .true-grid-header td:not(.band) {
padding: 0 2px; }
.true-grid-appearance .true-header-appearance .true-grid-header.true-v-lines td:not(:last-child) {
border-right: 1px solid #e5e7e9; }
.true-grid-appearance .true-header-appearance .true-grid-header td.true-header-cell__checkbox {
border-right: 0 ;
text-align: center; }
.true-grid-appearance .true-header-appearance .true-grid-header.true-h-lines .true-header-band__caption {
border-bottom: 1px solid #e5e7e9; }
.true-grid-appearance .true-header-appearance .true-grid-header .true-header-band__caption {
padding: 3px 5px; }
.true-grid-appearance .true-header-appearance .true-grid-header .true-header-cell {
padding: 0 3px; }
.true-grid-appearance .true-header-appearance .true-grid-header .true-header-cell__sort-indicator {
padding-right: 3px; }
.true-grid-appearance .true-header-appearance .true-grid-header .true-header-cell__txt {
padding: 3px 5px 3px 0; }
.true-grid-appearance .true-header-appearance .true-grid-header td:not(.true-column-resizable) + td.true-column-resizable .true-header-cell {
padding-left: 5px ; }
.true-grid-appearance .true-footer-appearance {
background-color: #fbfcfd;
border-top: 1px solid #e5e7e9; }
.true-grid-appearance .true-footer-appearance .true-grid-footer td {
padding: 0;
vertical-align: top; }
.true-grid-appearance .true-footer-appearance .true-grid-footer td.true-footer-cell__is-checkbox {
border-right: 0 ; }
.true-grid-appearance .true-footer-appearance .true-grid-footer td .true-footer-btn-container {
padding: 0 5px; }
.true-grid-appearance .true-footer-appearance .true-grid-footer td {
border-right: 0; }
.true-grid-appearance .true-footer-appearance .true-grid-footer.true-v-lines td:not(:last-child) {
border-right: 1px solid #e5e7e9; }
.true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr {
cursor: pointer;
box-sizing: border-box;
padding: 3px 5px;
transition: background-color .3s ease-in, opacity .3s ease-in; }
.true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr:hover {
background-color: #eaecee; }
.true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr .true-aggr-caption {
text-transform: uppercase;
color: #999; }
.true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr + .true-aggr {
margin-top: -3px; }
.true-group-simple td {
color: #555;
font-weight: bold; }
.true-group td {
border-bottom: 1px solid #e0e3e8;
color: #ea6b0c;
font-weight: normal;
background-color: #fbfcfd; }
.true-group:not(:first-child) td {
border-top: 1px solid #e0e3e8; }
.true-group-l1 td {
font-weight: bold;
color: #ea6b0c;
background-color: #fbfcfd; }
.true-group-switcher {
color: #bbb;
font-size: 0.85em;
display: inline-block;
cursor: pointer ; }
.true-cell-indent {
text-align: right;
color: #888 ;
padding-right: 0.7em ;
padding-top: 0;
padding-bottom: 0; }
.true-stub {
background-color: #eee;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
display: inline-block; }
.true-stub:before {
content: "\00a0"; }
.true-grid-appearance .true-cell-checkbox, .true-grid-appearance .true-cell-boolean {
text-align: center;
overflow-y: visible ;
overflow-x: visible ; }
.true-grid-appearance .true-grid-data-appearance.true-h-lines > table > tbody > tr > td, .true-grid-appearance .true-grid-data-appearance.true-h-lines > div > table > tbody > tr > td {
border-bottom: 1px solid #e3e5e7; }
.true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-h-lines {
margin-top: -1px; }
.true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-h-lines > table > tbody > tr > td, .true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-h-lines > div > table > tbody > tr > td {
border-top: 1px solid #e3e5e7; }
.true-grid-appearance .true-grid-data-appearance:not(.true-h-lines) tr:not(.true-group) + tr.true-group > td {
border-top: 1px solid #e0e3e8; }
.true-grid-appearance .true-grid-data-appearance.true-v-lines > table > tbody > tr > td:not(.true-cell-checkbox),
.true-grid-appearance .true-grid-data-appearance.true-v-lines > div > table > tbody > tr > td:not(.true-cell-checkbox) {
border-right: 1px solid #e3e5e7; }
.true-grid-appearance .true-grid-data-appearance.true-v-lines tr:not(.true-group) td.true-cell-indent {
border-top: none ;
border-bottom: none ; }
.true-grid-appearance .true-grid-data-appearance.true-v-lines > .data-left td:last-child,
.true-grid-appearance .true-grid-data-appearance.true-v-lines > .data-right td:last-child {
border-right: none ; }
.true-grid-appearance .true-grid-data-appearance.true-v-lines tr.true-group > td:not(:last-child) {
border-right: 0; }
.true-grid-appearance .true-grid-data-appearance > table > tbody > tr > td,
.true-grid-appearance .true-grid-data-appearance > div > table > tbody > tr > td {
padding: 3px 5px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
transition: opacity 0.4s ease; }
.true-grid-appearance .true-grid-data-appearance td .true-hl {
background-color: #f6b94d; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) {
transition: opacity 0.5s ease; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected {
color: unset; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected a {
color: unset; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected1 {
border-color: #e3e5e7 ;
background-color: #edf1f3; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected2:not(.true-indent-cell) {
background-color: #e4e8ec; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected3:not(.true-indent-cell) {
border-color: #dadfe4 ;
background-color: #dadfe4; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected4:not(.true-indent-cell) {
border-color: #d4d9df ;
background-color: #d4d9df; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected5:not(.true-indent-cell) {
border-color: #cad0d7 ;
background-color: #cad0d7; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked).true-show-animate {
opacity: 0.0 ; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked {
transition: opacity 0.5s ease; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td:not(.true-cell-indent) {
border-color: #d6dff8 ;
background-color: #e1e9fe; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected1 {
background-color: #d4defa; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected2:not(.true-indent-cell) {
background-color: #c9d6f7; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected3:not(.true-indent-cell) {
border-color: #bfcdf3 ;
background-color: #bfcdf3; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected4:not(.true-indent-cell) {
border-color: #b1c1ec ;
background-color: #b1c1ec; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected5:not(.true-indent-cell) {
border-color: #a5b7e8 ;
background-color: #a5b7e8; }
.true-grid-appearance .true-grid-data-appearance tr.true-row-checked.true-show-animate {
opacity: 0.0 ; }
.true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr > td.true-cell-focused:not(.true-indent-cell),
.true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > div > table > tbody > tr > td.true-cell-focused:not(.true-indent-cell) {
outline-offset: -1px;
outline-style: solid;
outline-color: #ea6b0c;
outline-width: 1px; }
.true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr:not(.true-row-checked) > td.true-cell-focused:not(.true-indent-cell) {
background-color: #f7f8f9 ; }
.true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr.true-row-checked > td.true-cell-focused:not(.true-indent-cell) {
background-color: #ecf1ff ; }
.true-grid-appearance .true-grid-data-appearance.true-hovered-row-hl > table > tbody > tr:not(.true-row-checked):hover > td:not(.true-cell-indent):not(.true-range-selected):not(.true-cell-focused) {
background-color: #f7f8f9; }
.true-grid-appearance .true-grid-data-appearance tr:not(.true-group) > td.true-cell-disabled:not(.true-range-selected):not(.true-cell-focused) {
opacity: 0.4; }
.true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr > td.true-cell-focused:not(.true-indent-cell) {
outline-width: 0;
box-shadow: inset 0px 0px 0 1px #ea6b0c; }
.true-grid-appearance.true-resize-in-process {
cursor: ew-resize ; }
.true-grid-appearance.true-resize-in-process .true-cb, .true-grid-appearance.true-resize-in-process .true-cell-checkbox, .true-grid-appearance.true-resize-in-process .true-header-cell, .true-grid-appearance.true-resize-in-process .true-aggr, .true-grid-appearance.true-resize-in-process .true-grid-btn, .true-grid-appearance.true-resize-in-process .band {
cursor: ew-resize ; }
.true-grid-appearance.true-resize-in-process:not(.true-fix-touch) .true-header-cell__caption:not(.true-header-cell__filtered) > .true-grid-btn {
visibility: hidden ;
cursor: ew-resize; }
.true-grid-appearance.true-resize-in-process .true-header-cell__caption {
cursor: ew-resize ; }
.true-grid-appearance.true-drag-in-process:not(.true-fix-touch) .true-header-cell__caption:not(.true-header-cell__filtered) > .true-grid-btn {
visibility: hidden ;
cursor: default; }
.true-grid-appearance.true-drag-in-process td {
cursor: default ; }
.true-grid-appearance.true-drag-in-process td .true-cb {
cursor: default ; }
.true-grid-appearance td.true-cell-input {
padding: 0 ;
position: relative;
box-shadow: none ;
height: 100%; }
.true-grid-appearance .true-grid-data-appearance.true-h-lines tr:not(:first-child) > td > .true-grid__input-container {
border: 0;
margin: -1px 0 0 0; }
.true-grid-appearance .true-grid-input {
padding-top: 3px;
padding-bottom: 3px;
padding-left: 5px;
padding-right: 5px;
border: 0 ;
outline: 0;
box-sizing: border-box;
border-radius: 0;
width: 100%;
vertical-align: baseline;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
.true-grid-appearance .true-grid-editor-100p {
height: 100%;
position: absolute;
top: 0px;
bottom: 0px; }
.true-grid-appearance .true-grid-editor-ie {
height: 100%; }
.true-grid-appearance.true-fix-ie .true-grid__input-container {
margin-top: 0 ; }
.true-grid-appearance.true-fix-ie .true-grid-input {
box-shadow: inset 0px 0px 0 2px #ea6b0c ; }
.true-grid-appearance .true-icon-sigma::before {
font-family: Cambria, Georgia, Times, Times New Roman, serif;
content: "\03a3";
font-size: 1.1em;
font-weight: bold; }
.true-group-area {
display: block;
color: #1f2f3d;
border-bottom: 1px solid #c5c7c9;
background: repeating-linear-gradient(40deg, #f7fafb, #f7fafb 7px, #fefeff 7px, #fefeff 14px);
display: flex;
flex-direction: row;
padding: 0.3em;
align-items: center; }
.true-group-area > span {
padding: 0.2em; }
.true-group-area > div {
display: inline-block;
color: #1f2f3d;
background-color: #fbfcfd;
border: 1px solid #c5c7c9;
margin-left: 1em;
transition: opacity 0.4s ease-in; }
.true-group-area > div.temp {
border-style: dashed;
opacity: 0.5; }
.true-group-area > div.hidden {
visibility: hidden; }
.true-popup {
z-index: 9;
background-color: #fff;
border: none;
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
transition: opacity 0.15s ease, transform 0.2s ease-out; }
.true-popup.true-snack {
border-radius: 6px; }
.true-button {
min-height: 1em; }
.true-close, .true-bool {
display: inline-block;
width: 1.2em;
height: 1.2em;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center; }
.true-bool:not(.checked) {
opacity: 0.4; }
.true-bool:not(.checked), .true-close {
background-size: 100%;
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNMTAgMTAgTCAyOSAyOSBNMTAgMjkgTCAyOSAxMCIvPjwvZGVmcz4KICAgIDxnPgogICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDEpIj4KICAgICAgICA8dXNlIGZpbGw9IiM1NTUiIGZpbGwtb3BhY2l0eT0iMCIgc3Ryb2tlPSIjNTU1IgogICAgICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iNTAiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2ljb24iLz48L2c+CiAgICA8L2c+CiAgPC9zdmc+"); }
.true-bool-editable {
cursor: pointer;
background-color: #fff;
border: 1px solid #ccc; }
.true-close:before, .true-bool:before {
content: "\00a0"; }
.true-bool.checked {
background-size: 100%;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNOCAxOSBMIDE2IDI3IEwgMzEgMTAiLz48L2RlZnM+CiAgICA8Zz4KICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwKSI+CiAgICAgICAgPHVzZSBmaWxsPSIjODg4IiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzU1NSIKICAgICAgICAgIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS1taXRlcmxpbWl0PSI1MCIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjaWNvbiIvPjwvZz4KICAgIDwvZz4KICA8L3N2Zz4="); }
.true-bool.indeterminate {
background: none; }
.true-cb {
display: inline-block;
box-sizing: border-box;
vertical-align: middle;
width: 1.3em;
height: 1.3em;
background-color: #fff;
border: 1px solid #ccc;
cursor: pointer; }
.true-cb:before {
content: "\00a0"; }
.true-cb.checked {
background-size: 100%;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNOCAxOSBMIDE2IDI3IEwgMzEgMTAiLz48L2RlZnM+CiAgICA8Zz4KICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwKSI+CiAgICAgICAgPHVzZSBmaWxsPSIjODg4IiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzU1NSIKICAgICAgICAgIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS1taXRlcmxpbWl0PSI1MCIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjaWNvbiIvPjwvZz4KICAgIDwvZz4KICA8L3N2Zz4="); }
.true-cb.indeterminate {
background-size: 100%;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNMTIgMTkgTCAyNyAxOSIvPjwvZGVmcz4KICAgIDxnPgogICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIj4KICAgICAgICA8dXNlIGZpbGw9IiM1NTUiIHN0cm9rZT0iIzg4OCIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLW1pdGVybGltaXQ9IjAiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2ljb24iLz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvc3ZnPg"); }