sass.n2o.components.AdvancedTable.scss Maven / Gradle / Ivy
The newest version!
.n2o-advanced-table-content {
position: relative;
}
.n2o-advanced-table-cell-content {
display: flex;
align-items: center;
}
.n2o-advanced-table-header-text-center,
.n2o-advanced-table-header-text-center .n2o-advanced-table-header-cell-content {
justify-content: center;
text-align: center;
}
@each $alignment, $inline-value in $table-alignments-inline {
.n2o-advanced-table-header-cel.alignment-#{$alignment} {
text-align: $inline-value;
}
}
@each $alignment, $flex-value in $table-alignments-flex {
.n2o-advanced-table-header-cel.alignment-#{$alignment} {
justify-content: $flex-value;
}
}
.n2o-advanced-table-filter-badge.badge {
position: absolute;
right: 2px;
top: 2px;
display: block;
width: 7px;
height: 7px;
padding: 0;
border-radius: 50%;
}
.n2o-advanced-table-filter-badge.hollow {
background-color: transparent;
border: 1.5px solid $primary;
}
.n2o-advanced-table-expanded-row-content {
padding: 0 20px;
}
.n2o-advanced-table-row {
.no-wrap {
.n2o-widget-list-cell {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
}
.n2o-advanced-table-row-hover {
background-color: rgba(0, 0, 0, 0.075);
}
.n2o-advanced-table-fixed {
background-color: $white;
.n2o-advanced-table-header-row {
border-left: 0.2rem solid transparent;
}
}
.n2o-advanced-table-cell-expand {
display: flex;
align-items: center;
> div {
width: 100%;
display: flex;
> span {
align-self: center;
}
}
}
.n2o-advanced-table-nested table tr:hover {
background-color: transparent;
}
.n2o-advanced-table {
overflow-x: auto;
.row-click {
cursor: pointer;
}
.row-deleted {
cursor: default;
}
.n2o-calendar-table {
td {
padding: 0;
border: none;
}
tr:hover {
background-color: transparent;
}
}
&.table-bordered {
th,
td {
border-color: #cfd8dc;
}
tr:last-child td {
border-bottom: 0;
}
tr td:first-child,
tr th:first-child {
border-left: 0;
}
tr td:last-child,
tr th:last-child {
border-right: 0;
}
}
.n2o-advanced-table-header-cell-content {
display: flex;
align-items: center;
.custom-control-label {
margin-bottom: 0.5rem;
}
}
td.n2o-advanced-table-row-expand-icon-cell {
width: 30px;
}
.n2o-advanced-table-expanded-row:hover {
background-color: transparent;
}
tr .hide-on-blur {
opacity: 0;
}
tr:hover .hide-on-blur {
opacity: 1;
}
table {
width: calc(100% - 0.2rem);
&.n2o-advanced-table-fixed {
width: 100% !important;
}
}
.n2o-input-select .n2o-input-control {
padding: 0 5px;
}
div[class*="alignment-"] {
display: flex;
width: 100%;
}
@each $alignment, $flex-value in $table-alignments-flex {
.alignment-#{$alignment} {
.n2o-advanced-table-header-cell-content,
> .n2o-widget-list-cell {
justify-content: $flex-value;
}
}
}
@each $alignment, $flex-value in $table-alignments-flex {
.n2o-widget-list-cell.content-alignment-#{$alignment} {
justify-content: $flex-value;
}
}
}
.n2o-advanced-table-fixed-left {
position: absolute;
top: 0;
left: 0;
height: calc(100% - 17px);
overflow: hidden;
.n2o-advanced-table-body-inner {
margin-right: -17px;
}
}
.n2o-advanced-table-fixed-right {
position: absolute;
top: 0;
right: 0;
overflow: hidden;
}
.n2o-advanced-table-scroll-position-middle {
.n2o-advanced-table-fixed-right {
box-shadow: -6px 0 6px -4px rgba(0, 0, 0, 0.15);
}
.n2o-advanced-table-fixed-left {
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.15);
}
}
.n2o-advanced-table-fixed-left .n2o-advanced-table-body-inner .n2o-advanced-table-fixed,
.n2o-advanced-table-fixed-right .n2o-advanced-table-body-inner .n2o-advanced-table-fixed {
margin-bottom: 17px;
}
.n2o-advanced-table-expand {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border-radius: 50%;
margin-right: 5px;
cursor: pointer;
font-size: 12px;
&:hover {
background-color: #ced3d6;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
}
.n2o-advanced-table-expand-icon {
font-size: 16px;
transform: rotate(0deg);
transition: 0.2s background-color;
margin: 0;
padding-left: 1px;
}
.n2o-advanced-table-expand-icon-expanded {
padding: 0 1px 0 0;
}
.n2o-advanced-table-header {
margin: 0 !important;
overflow: hidden;
}
.n2o-advanced-table-filter-dropdown {
flex-wrap: wrap;
justify-content: space-between;
padding: 10px;
background-color: $white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
border-radius: 5px;
}
.n2o-advanced-table-filter-dropdown-popup {
max-width: 100%;
}
.n2o-advanced-table-filter-dropdown-btn {
border-radius: 5px;
}
.n2o-advanced-table-filter-dropdown-buttons {
display: flex;
justify-content: space-between;
margin-top: 15px;
}
.n2o-editable-cell-text {
word-break: break-word;
}
.n2o-advanced-table-header-cel {
vertical-align: initial !important;
}
.cell {
.btn-group {
position: initial;
}
}