devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
1,253 lines (1,038 loc) • 41.3 kB
text/less
/**
* DevExtreme (widgets/material/gridBase.material.less)
* Version: 20.1.4
* Build date: Tue Jun 02 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
@import (once) "./form.material.less";
@import (once) "./button.material.less";
@import (once) "./treeView.material.less";
@import (once) "./popup.material.less";
@import (once) "./contextMenu.material.less";
@import (once) "./scrollable.material.less";
@import (once) "./scrollView.material.less";
@import (once) "./filterBuilder.material.less";
@import (once) "./checkBox.material.less";
@import (once) "./overlay.material.less";
@import (once) "./menu.material.less";
@import (once) "./list.material.less";
@import (once) "./toolbar.material.less";
@import (once) "./pager.material.less";
@import (once) "./loadIndicator.material.less";
@import (once) "./loadPanel.material.less";
@import (once) "./validation.material.less";
@import (once) "./tooltip.material.less";
@import (once) "./textBox.material.less";
@import (once) "./numberBox.material.less";
@import (once) "./selectBox.material.less";
@import (once) "./dateBox.material.less";
.dx-size-default() {
@MATERIAL_GRID_BASE_CELL_HEIGHT: 48px;
@MATERIAL_GRID_BASE_HEADER_HEIGHT: 56px;
@MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT: 16px;
@MATERIAL_GRID_BASE_CELL_LINE_HEIGHT: 20px;
@MATERIAL_GRID_BASE_CELL_FONT_SIZE: 14px;
@MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE: 12px;
@MATERIAL_GRID_BASE_CHECKBOX_SIZE: 18px;
@MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING: 14px;
@MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING: 18px;
@MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING: 18px;
@MATERIAL_GRID_BASE_HEADER_ICON_SIZE: 15px;
@MATERIAL_GRID_BASE_FILTER_ICON_SIZE: 22px;
@MATERIAL_GRID_BASE_TEXTEDITOR_INPUT_PADDING: 32px;
@MATERIAL_GRID_BASE_MENU_ITEM_PADDING: 11px 4px;
@MATERIAL_GRID_BASE_COLUMN_CHOOSER_HORIZONTAL_PADDING: 24px;
@MATERIAL_GRID_BASE_COLUMN_CHOOSER_PADDINGS: 16px @MATERIAL_GRID_BASE_COLUMN_CHOOSER_HORIZONTAL_PADDING 9px;
@MATERIAL_GRID_BASE_COLUMN_CHOOSER_ITEM_MARGIN: 8px;
@MATERIAL_GRID_BASE_GROUPPANEL_ITEM_MARGIN: 10px;
@MATERIAL_GRID_BASE_HEADER_PANEL_PADDING: 0 14px 0 24px;
@MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WIDTH: 115px;
@MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WITH_ICONS_WIDTH: 93px;
@MATERIAL_GRID_BASE_ADAPTIVE_COLUMN_HEIGHT: 40px;
@MATERIAL_GRID_BASE_TREEVIEW_SEARCH_MARGIN: 10px;
@MATERIAL_COMMAND_EDIT_ICON_SIZE: 18px;
@MATERIAL_COMMAND_EDIT_ICON_MARGIN: 2px;
@MATERIAL_FILTER_ROW_BETWEEN_EDITOR_PADDING: 12px;
@MATERIAL_COMMAND_COLUMN_ADDITIONAL_RIGHT_MARGIN: 0;
}
.dx-size-compact() {
@MATERIAL_GRID_BASE_CELL_HEIGHT: 36px;
@MATERIAL_GRID_BASE_HEADER_HEIGHT: 40px;
@MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT: 16px;
@MATERIAL_GRID_BASE_CELL_LINE_HEIGHT: 16px;
@MATERIAL_GRID_BASE_CELL_FONT_SIZE: 13px;
@MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE: 12px;
@MATERIAL_GRID_BASE_CHECKBOX_SIZE: 16px;
@MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING: 10px;
@MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING: 10px;
@MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING: 10px;
@MATERIAL_GRID_BASE_HEADER_ICON_SIZE: 15px;
@MATERIAL_GRID_BASE_FILTER_ICON_SIZE: 18px;
@MATERIAL_GRID_BASE_TEXTEDITOR_INPUT_PADDING: 22px;
@MATERIAL_GRID_BASE_MENU_ITEM_PADDING: 8px 4px;
@MATERIAL_GRID_BASE_COLUMN_CHOOSER_HORIZONTAL_PADDING: 8px;
@MATERIAL_GRID_BASE_COLUMN_CHOOSER_PADDINGS: 8px @MATERIAL_GRID_BASE_COLUMN_CHOOSER_HORIZONTAL_PADDING 8px;
@MATERIAL_GRID_BASE_COLUMN_CHOOSER_ITEM_MARGIN: 8px;
@MATERIAL_GRID_BASE_GROUPPANEL_ITEM_MARGIN: 8px;
@MATERIAL_GRID_BASE_HEADER_PANEL_PADDING: 0 10px 0 10px;
@MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WIDTH: 105px;
@MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WITH_ICONS_WIDTH: 80px;
@MATERIAL_GRID_BASE_ADAPTIVE_COLUMN_HEIGHT: 26px;
@MATERIAL_GRID_BASE_TREEVIEW_SEARCH_MARGIN: 10px;
@MATERIAL_COMMAND_EDIT_ICON_SIZE: 16px;
@MATERIAL_COMMAND_EDIT_ICON_MARGIN: 2px;
@MATERIAL_FILTER_ROW_BETWEEN_EDITOR_PADDING: 8px;
@MATERIAL_COMMAND_COLUMN_ADDITIONAL_RIGHT_MARGIN: 2px;
}
@MATERIAL_GRID_BASE_BORDER_HIDDEN: 1px solid transparent;
@MATERIAL_GRID_BASE_ROW_BORDER: 1px solid transparent;
@MATERIAL_GRID_BASE_BORDER_COLOR: @datagrid-border-color;
@MATERIAL_GRID_BASE_DRAG_HEADER_FIRST_SHADOW: 0 0 1px @datagrid-drag-header-shadow-color;
@MATERIAL_GRID_BASE_DRAG_HEADER_SECOND_SHADOW: 0 1px 3px @datagrid-drag-header-second-shadow-color;
@MATERIAL_GRID_BASE_HEADER_CELL_VERTICAL_PADDING: round((@MATERIAL_GRID_BASE_HEADER_HEIGHT - @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT) / 2);
@MATERIAL_GRID_BASE_FOOTER_FONT_SIZE: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE;
@MATERIAL_GRID_BASE_COMMAND_SELECT_COLUMN_WIDTH:
@MATERIAL_GRID_BASE_CHECKBOX_SIZE +
(@MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING - @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING) +
@MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING +
@MATERIAL_COMMAND_COLUMN_ADDITIONAL_RIGHT_MARGIN;
@MATERIAL_GRID_BASE_COMMAND_EXPAND_COLUMN_WIDTH: @MATERIAL_BASE_ICON_SIZE;
@MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING: round((@MATERIAL_GRID_BASE_CELL_HEIGHT - @MATERIAL_GRID_BASE_CELL_LINE_HEIGHT)/2);
@MATERIAL_GRID_BASE_CELL_PADDING: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
.grid-base(@widgetName) {
.dx-@{widgetName},
.dx-@{widgetName}-container {
.dx-menu {
background-color: transparent;
height: 100%;
.dx-menu-item {
.dx-menu-item-content {
padding: @MATERIAL_GRID_BASE_MENU_ITEM_PADDING;
.dx-icon {
.dx-icon-sizing(@MATERIAL_GRID_BASE_FILTER_ICON_SIZE);
margin: 0 3px;
}
}
}
}
&.dx-filter-menu {
.dx-menu-item-content {
.dx-icon {
color: @datagrid-menu-icon-color;
.dx-icon-sizing(@MATERIAL_GRID_BASE_FILTER_ICON_SIZE - 4);
&.dx-icon-filter-operation-default {
margin-top: 2px;
}
}
}
}
.dx-editor-with-menu {
height: @MATERIAL_GRID_BASE_CELL_HEIGHT;
.dx-menu-item-content {
.dx-icon {
.dx-icon-sizing(@MATERIAL_GRID_BASE_FILTER_ICON_SIZE - 4);
&.dx-icon-filter-operation-default {
margin-top: 2px;
}
}
}
}
&.dx-context-menu {
.dx-menu-items-container {
.dx-icon-context-menu-sort-asc {
.dx-icon(sortuptext);
.dx-icon-sizing(@MATERIAL_GRID_BASE_FILTER_ICON_SIZE - 4);
}
.dx-icon-context-menu-sort-desc {
.dx-icon(sortdowntext);
.dx-icon-sizing(@MATERIAL_GRID_BASE_FILTER_ICON_SIZE - 4);
}
.dx-icon-context-menu-sort-none {
.dx-icon-sizing(@MATERIAL_GRID_BASE_FILTER_ICON_SIZE - 4);
}
}
}
.dx-sort-up,
.dx-sort-down,
.dx-header-filter {
.dx-icon-sizing(@MATERIAL_GRID_BASE_HEADER_ICON_SIZE);
}
.dx-header-filter:not(.dx-header-filter-empty) {
color: @datagrid-active-header-filter-icon-color;
}
.dx-icon-filter-operation-equals {
.dx-icon(equal);
}
.dx-icon-filter-operation-default {
.dx-icon(find);
}
.dx-icon-filter-operation-not-equals {
.dx-icon(notequal);
}
.dx-icon-filter-operation-less {
.dx-icon(less);
}
.dx-icon-filter-operation-less-equal {
.dx-icon(lessorequal);
}
.dx-icon-filter-operation-greater {
.dx-icon(greater);
}
.dx-icon-filter-operation-greater-equal {
.dx-icon(greaterorequal);
}
.dx-icon-filter-operation-contains {
.dx-icon(contains);
}
.dx-icon-filter-operation-not-contains {
.dx-icon(doesnotcontain);
}
.dx-icon-filter-operation-starts-with {
.dx-icon(startswith);
}
.dx-icon-filter-operation-ends-with {
.dx-icon(endswith);
}
.dx-icon-filter-operation-between {
.dx-icon(range);
}
.dx-column-indicators {
height: @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT;
.dx-sort-index-icon {
padding-right: 4px;
margin-left: -1px;
font-size: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE - 1px;
position: relative;
bottom: 1px;
}
> div {
.dx-icon-sizing(@MATERIAL_GRID_BASE_HEADER_ICON_SIZE);
}
}
.dx-placeholder:before {
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
}
}
.dx-@{widgetName} {
line-height: inherit;
.dx-row-alt {
& > td {
background-color: @datagrid-row-alternation-bg;
// T838734
border-top: 1px solid @datagrid-row-alternation-bg;
border-bottom: 1px solid @datagrid-row-alternation-bg;
}
&.dx-row:not(.dx-row-removed) {
border-bottom-color: transparent;
}
}
.dx-link {
color: @datagrid-link-color;
}
.dx-row-lines > td {
border-bottom: @datagrid-border;
}
.dx-column-lines > td {
border-left: @datagrid-border;
border-right: @datagrid-border;
}
.dx-error-row {
.dx-closebutton {
float: right;
margin: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING + 2px;
.dx-icon(close);
.dx-icon-sizing(14px);
}
.dx-error-message {
padding: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
padding-right: 35px;
}
}
.dx-row {
& > td {
padding-top: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
padding-bottom: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
line-height: @MATERIAL_GRID_BASE_CELL_LINE_HEIGHT;
}
}
.dx-@{widgetName}-content .dx-@{widgetName}-table .dx-row {
> td,
> td.dx-cell-modified:not(.dx-field-item-content),
> td.dx-@{widgetName}-invalid:not(.dx-field-item-content) {
padding-right: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
padding-left: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
vertical-align: middle;
&:first-of-type {
padding-left: @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING;
}
&:last-of-type {
padding-right: @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING;
}
&.dx-command-select {
overflow: visible;
width: @MATERIAL_GRID_BASE_COMMAND_SELECT_COLUMN_WIDTH;
min-width: @MATERIAL_GRID_BASE_COMMAND_SELECT_COLUMN_WIDTH;
padding-left: @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING;
padding-right: @MATERIAL_GRID_BASE_COMMAND_SELECT_COLUMN_WIDTH - @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING - @MATERIAL_GRID_BASE_CHECKBOX_SIZE;
line-height: 1;
}
&.dx-command-edit {
width: @MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WIDTH;
min-width: @MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WIDTH;
&.dx-command-edit-with-icons {
width: @MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WITH_ICONS_WIDTH;
min-width: @MATERIAL_GRID_BASE_COMMAND_EDIT_COLUMN_WITH_ICONS_WIDTH;
.dx-link {
.dx-icon-sizing(@MATERIAL_COMMAND_EDIT_ICON_SIZE);
margin: 0 @MATERIAL_COMMAND_EDIT_ICON_MARGIN;
vertical-align: middle;
}
}
}
&.dx-command-expand,
.dx-@{widgetName}-group-space {
width: @MATERIAL_GRID_BASE_COMMAND_EXPAND_COLUMN_WIDTH;
min-width: @MATERIAL_GRID_BASE_COMMAND_EXPAND_COLUMN_WIDTH;
padding: 0 4px 0 8px;
line-height: 0;
}
}
}
.dx-@{widgetName}-rowsview .dx-virtual-row > td[style*="text-align: right"]:before {
background-position-y: 49px;
}
.dx-command-drag {
width: @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING + @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING + @MATERIAL_BASE_ICON_SIZE;
min-width: @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING + @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING + @MATERIAL_BASE_ICON_SIZE;
.dx-@{widgetName}-drag-icon {
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
}
.dx-@{widgetName}-edit-popup .dx-error-message {
padding: @MATERIAL_GRID_BASE_CELL_PADDING;
}
.dx-@{widgetName}-headers,
.dx-@{widgetName}-rowsview {
.dx-texteditor-input {
min-height: @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT;
}
.dx-lookup {
height: auto;
}
.dx-lookup-field {
padding-left: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
padding-top: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
padding-bottom: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
}
.dx-dropdowneditor-button-visible.dx-dropdowneditor {
&.dx-show-clear-button {
&.dx-invalid,
&.dx-valid,
&.dx-validation-pending {
.dx-texteditor-input {
padding-right: @MATERIAL_DROPDOWNEDITOR_INVALID_BADGE_SIZE;
}
&.dx-rtl .dx-texteditor-input {
padding-right: 0;
padding-left: @MATERIAL_DROPDOWNEDITOR_INVALID_BADGE_SIZE;
}
}
}
&.dx-invalid,
&.dx-valid,
&.dx-validation-pending {
.dx-texteditor-input {
padding-right: @MATERIAL_DROPDOWNEDITOR_INVALID_BADGE_SIZE;
}
&.dx-rtl .dx-texteditor-input {
padding-right: 0;
padding-left: @MATERIAL_DROPDOWNEDITOR_INVALID_BADGE_SIZE;
}
}
&.dx-rtl .dx-texteditor-input {
padding-right: 0;
}
}
.dx-searchbox {
.dx-texteditor-input,
.dx-placeholder:before {
padding-left: @MATERIAL_TEXTEDITOR_ICON_CONTAINER_SIZE;
.dx-rtl&,
.dx-rtl & {
padding-right: @MATERIAL_TEXTEDITOR_ICON_CONTAINER_SIZE;
}
}
}
}
.dx-editor-cell {
padding-top: 0;
padding-bottom: 0;
.dx-numberbox-spin-button {
background-color: transparent;
}
.dx-icon-clear {
left: 0;
}
.dx-texteditor {
&,
&.dx-state-hover,
&.dx-state-focused,
&.dx-state-active {
background: @datagrid-editor-bg;
box-shadow: none;
}
.dx-texteditor-input {
background: @datagrid-editor-bg;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
height: @MATERIAL_GRID_BASE_CELL_HEIGHT;
line-height: @MATERIAL_GRID_BASE_CELL_HEIGHT;
padding-right: 0;
padding-left: 0;
padding-top: 0;
padding-bottom: 0;
}
.dx-texteditor-buttons-container {
right: 0;
}
&:after,
&:before {
content: none;
}
&.dx-rtl,
.dx-rtl & {
.dx-texteditor-buttons-container {
left: 0;
}
}
}
.dx-dropdowneditor {
background-color: @datagrid-editor-bg;
}
&.dx-focused .dx-dropdowneditor-icon {
border-radius: 0;
}
&.dx-editor-inline-block .dx-highlight-outline::before {
padding-top: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
padding-bottom: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
}
}
.dx-device-mobile .dx-@{widgetName}-column-chooser-list,
.dx-@{widgetName}-column-chooser-list {
.dx-empty-message {
color: @datagrid-columnchooser-message-color;
padding: 0 @MATERIAL_GRID_BASE_COLUMN_CHOOSER_HORIZONTAL_PADDING;
}
}
.dx-@{widgetName}-column-chooser {
.dx-base-typography();
&.dx-@{widgetName}-column-chooser-mode-drag {
.dx-popup-content {
padding: @MATERIAL_GRID_BASE_COLUMN_CHOOSER_PADDINGS;
.dx-treeview-search {
margin-bottom: @MATERIAL_GRID_BASE_TREEVIEW_SEARCH_MARGIN;
}
.dx-treeview-node {
padding-left: 20px;
}
}
}
&.dx-@{widgetName}-column-chooser-mode-select {
.dx-popup-content {
padding: @MATERIAL_GRID_BASE_COLUMN_CHOOSER_PADDINGS;
}
}
.dx-overlay-content {
background-color: @datagrid-columnchooser-bg;
.dx-popup-title {
background-color: transparent;
border-bottom: 1px solid @popup-title-border-color;
.dx-toolbar-label {
font-size: @MATERIAL_M_FONT_SIZE;
}
}
.dx-popup-content {
.dx-column-chooser-item {
margin: 2px 2px @MATERIAL_GRID_BASE_COLUMN_CHOOSER_ITEM_MARGIN 2px;
background-color: @datagrid-columnchooser-item-bg;
color: @datagrid-columnchooser-item-color;
font-weight: @datagrid-columnchooser-font-weight;
font-size: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE;
padding: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
line-height: @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT;
box-shadow: @MATERIAL_GRID_BASE_DRAG_HEADER_FIRST_SHADOW, @MATERIAL_GRID_BASE_DRAG_HEADER_SECOND_SHADOW;
}
}
}
}
.dx-@{widgetName}-drag-header {
border-color: @datagrid-drag-header-border-color;
box-shadow: @MATERIAL_GRID_BASE_DRAG_HEADER_FIRST_SHADOW, @MATERIAL_GRID_BASE_DRAG_HEADER_SECOND_SHADOW;
color: @datagrid-columnchooser-item-color;
font-weight: @datagrid-columnchooser-font-weight;
padding: @MATERIAL_GRID_BASE_HEADER_CELL_VERTICAL_PADDING;
background-color: @datagrid-header-drag-bg;
line-height: @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT;
font-size: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE;
}
.dx-@{widgetName}-columns-separator {
background-color: @datagrid-column-separator-bg;
}
.dx-@{widgetName}-columns-separator-transparent {
background-color: transparent;
}
.dx-@{widgetName}-drop-highlight {
& > td {
background-color: @datagrid-drop-highlight-bg;
color: @datagrid-drop-highlight-color;
.dx-header-filter {
color: @datagrid-drop-highlight-color;
}
.dx-checkbox {
.dx-checkbox-icon {
background-color: @datagrid-drop-highlight-color;
color: @datagrid-drop-highlight-bg;
}
}
}
}
.dx-@{widgetName}-focus-overlay:after {
content: "";
position: absolute;
bottom: 0;
height: 2px;
background-color: @datagrid-focused-border-color;
left: 0;
right: 1px;
}
.dx-data-row.dx-state-hover {
&:not(.dx-selection):not(.dx-row-inserted):not(.dx-row-removed):not(.dx-edit-row):not(.dx-row-focused) {
background-color: @datagrid-hover-bg;
> td {
color: @datagrid-row-hovered-color;
}
& > .dx-@{widgetName}-readonly .dx-texteditor {
.dx-texteditor-input {
background-color: @datagrid-hover-bg;
color: @datagrid-row-hovered-color;
}
}
& > td.dx-pointer-events-none {
background-color: transparent;
}
}
}
.dx-@{widgetName}-headers {
color: @datagrid-columnchooser-item-color;
touch-action: pinch-zoom;
border-bottom: @datagrid-border;
.dx-@{widgetName}-content {
margin-bottom: -1px;
}
.dx-@{widgetName}-table {
.dx-@{widgetName}-borders & {
border-bottom-width: 1px;
}
.dx-row {
> td {
border-bottom: @datagrid-border;
padding-top: @MATERIAL_GRID_BASE_HEADER_CELL_VERTICAL_PADDING;
padding-bottom: @MATERIAL_GRID_BASE_HEADER_CELL_VERTICAL_PADDING;
line-height: @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT;
font-weight: @datagrid-columnchooser-font-weight;
font-size: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE;
.dx-sort-indicator,
.dx-sort {
color: @datagrid-base-color;
}
&:hover {
.dx-@{widgetName}-text-content {
color: @datagrid-base-color;
}
.dx-sort {
color: @datagrid-columnchooser-hover-icon-color;
}
}
&:hover:not(.dx-command-select):not(.dx-command-expand):not(.dx-editor-cell):not(.dx-command-edit):not(.dx-@{widgetName}-group-space) {
background-color: @datagrid-hover-bg;
}
}
}
}
&.dx-header-multi-row {
.dx-row {
&.dx-header-row {
.dx-command-select {
padding-bottom: (@MATERIAL_GRID_BASE_HEADER_HEIGHT - @MATERIAL_GRID_BASE_CHECKBOX_SIZE) / 2;
}
> td {
padding-top: 12px;
padding-bottom: 12px;
vertical-align: bottom;
border-right: 1px solid @MATERIAL_GRID_BASE_BORDER_COLOR;
}
}
}
}
}
.dx-@{widgetName}-filter-row {
background-color: @datagrid-filter-row-background-color;
.dx-menu {
left: -(@MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING - 2);
.dx-menu-horizontal {
.dx-menu-items-container {
height: 100%;
top: 2px;
position: absolute;
.dx-menu-item-wrapper {
height: 100%;
}
}
}
.dx-overlay-content {
color: @menu-color;
}
}
.dx-filter-modified {
background-color: @datagrid-cell-modified-border-color;
}
td .dx-editor-container .dx-filter-range-content {
padding: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING 0 @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING @MATERIAL_GRID_BASE_TEXTEDITOR_INPUT_PADDING;
}
.dx-@{widgetName} .dx-@{widgetName}-table & {
> td {
padding-top: 0;
padding-bottom: 0;
}
}
}
.dx-@{widgetName}-filter-range-overlay {
.dx-overlay-content {
overflow: inherit;
background-color: @datagrid-filter-row-background-color;
box-shadow: @MATERIAL_GRID_BASE_DRAG_HEADER_FIRST_SHADOW, @MATERIAL_GRID_BASE_DRAG_HEADER_SECOND_SHADOW;
.dx-texteditor {
&.dx-state-focused:after,
&.dx-state-hover:after {
top: auto;
bottom: 0;
}
.dx-texteditor-input {
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
height: @MATERIAL_GRID_BASE_CELL_HEIGHT + 1;
padding-right: @MATERIAL_FILTER_ROW_BETWEEN_EDITOR_PADDING;
padding-left: @MATERIAL_FILTER_ROW_BETWEEN_EDITOR_PADDING;
}
.dx-placeholder:before {
padding-left: @MATERIAL_FILTER_ROW_BETWEEN_EDITOR_PADDING;
}
}
.dx-invalid-message.dx-overlay-wrapper {
display: none;
}
}
}
.dx-highlight-outline {
padding: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING 0 @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING 0;
overflow: hidden;
text-overflow: ellipsis;
}
.dx-@{widgetName}-header-panel {
border-bottom: @datagrid-border;
padding: @MATERIAL_GRID_BASE_HEADER_PANEL_PADDING;
background-color: @toolbar-bg;
.dx-apply-button {
.dx-button-flat-color-styling(@button-success-color, @button-success-text-hover-bg, @button-success-text-focused-bg, @button-success-text-active-bg);
}
.dx-toolbar-text-auto-hide .dx-button.dx-button-has-icon {
border-radius: 50%;
}
.dx-@{widgetName}-toolbar-button {
.dx-icon {
color: @base-text-color;
}
}
}
.dx-icon-column-chooser {
.dx-icon(columnchooser);
}
.dx-@{widgetName}-addrow-button {
.dx-icon-edit-button-addrow {
.dx-icon(add);
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
.dx-@{widgetName}-cancel-button {
.dx-icon-edit-button-cancel {
.dx-icon(revert);
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
.dx-@{widgetName}-save-button {
.dx-icon-edit-button-save {
.dx-icon(save);
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
.dx-apply-button {
.dx-icon-apply-filter {
.dx-icon(filter);
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
.dx-@{widgetName}-export-button {
.dx-icon-export-to {
.dx-icon(export);
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
.dx-icon-export-excel-button {
.dx-icon(xlsxfile);
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
.dx-datagrid-export-menu {
.dx-menu-item .dx-icon-xlsxfile {
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
.dx-menu-item .dx-icon-exportselected {
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
}
}
.dx-@{widgetName}-adaptive-more {
vertical-align: middle;
.dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);
color: @base-icon-color;
}
.dx-row.dx-row-focused {
.dx-@{widgetName}-adaptive-more {
color: inherit;
}
}
.dx-@{widgetName}-rowsview {
border-top: 1px solid @MATERIAL_GRID_BASE_BORDER_COLOR;
.dx-@{widgetName}-headers + & {
border-top: none;
}
.dx-row {
border-top: @MATERIAL_GRID_BASE_ROW_BORDER;
border-bottom: @MATERIAL_GRID_BASE_ROW_BORDER;
&.dx-edit-row:first-child > td {
border-top-width: 0;
border-bottom: @datagrid-border;
}
&.dx-edit-row > td {
border-top: @datagrid-border;
border-bottom: @datagrid-border;
}
}
.dx-master-detail-row {
> .dx-@{widgetName}-group-space,
.dx-master-detail-cell {
border-top: @datagrid-border;
border-bottom: @datagrid-border;
}
}
.dx-master-detail-row:not(.dx-@{widgetName}-edit-form) {
> .dx-@{widgetName}-group-space,
.dx-master-detail-cell {
background-color: @datagrid-master-detail-cell-bg;
}
}
.dx-data-row,
.dx-adaptive-detail-row {
&,
&.dx-selection,
&.dx-selection:hover {
&:not(.dx-edit-row) .dx-cell-modified {
background-color: @datagrid-cell-modified-border-color;
}
.dx-validator {
&.dx-@{widgetName}-invalid,
&.dx-invalid {
background-color: @datagrid-row-invalid-faded-border-color;
}
}
}
.dx-invalid-message {
.dx-overlay-content {
padding: 9px 17px 9px;
background-color: @VALIDATION_MESSAGE_BACKGROUND_COLOR;
color: @VALIDATION_MESSAGE_COLOR;
}
}
}
.dx-data-row {
td:not(.dx-cell-modified):not(.dx-validation-pending):not(.dx-@{widgetName}-invalid) {
.dx-highlight-outline {
padding: 0;
}
}
}
.dx-row-removed > td {
background-color: @datagrid-row-removed-bg;
border-top: 1px solid @datagrid-cell-modified-border-color;
border-bottom: 1px solid @datagrid-cell-modified-border-color;
}
.dx-adaptive-detail-row {
.dx-field-item-label {
padding-top: 0;
}
.dx-field-item-content {
line-height: @MATERIAL_GRID_BASE_ADAPTIVE_COLUMN_HEIGHT;
min-height: @MATERIAL_GRID_BASE_ADAPTIVE_COLUMN_HEIGHT;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
&.dx-focused {
padding: 0;
}
}
.dx-texteditor-input {
padding-left: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
padding-right: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
height: @MATERIAL_GRID_BASE_ADAPTIVE_COLUMN_HEIGHT;
line-height: @MATERIAL_GRID_BASE_ADAPTIVE_COLUMN_HEIGHT;
}
.dx-texteditor:after,
.dx-texteditor:before {
content: none;
}
.dx-texteditor.dx-editor-outlined {
box-shadow: none;
}
}
.dx-item-modified {
background-color: @datagrid-cell-modified-border-color;
}
.dx-row-focused {
&:focus {
outline: none;
}
&.dx-data-row {
& > td:not(.dx-focused),
& > tr > td:not(.dx-focused),
& .dx-command-edit .dx-link {
background-color: @datagrid-row-focused-bg;
color: @datagrid-row-focused-color;
& .dx-@{widgetName}-group-opened,
& .dx-@{widgetName}-group-closed {
color: @datagrid-row-focused-color;
}
}
& .dx-command-edit .dx-link:focus {
background-color: @datagrid-base-background-color;
color: @datagrid-link-color;
}
& > td,
& > tr:last-child > td {
border-bottom: 1px solid @datagrid-focused-border-color;
}
&:not(.dx-row-lines) {
& > td,
& > tr:first-child > td {
border-top: 1px solid @datagrid-focused-border-color;
border-bottom: 1px solid @datagrid-focused-border-color;
}
}
}
&.dx-data-row.dx-edit-row {
& > td.dx-editor-cell:not(.dx-command-select),
& > tr > td.dx-editor-cell:not(.dx-command-select) {
background-color: @datagrid-base-background-color;
color: @datagrid-base-color;
}
}
&.dx-group-row {
background-color: @datagrid-row-focused-bg;
color: @datagrid-row-focused-color;
& .dx-@{widgetName}-group-opened,
& .dx-@{widgetName}-group-closed {
color: @datagrid-row-focused-color;
}
}
}
.dx-selection.dx-row:not(.dx-row-focused),
.dx-selection.dx-row:not(.dx-row-focused):hover {
& > td,
& > tr > td {
background-color: @datagrid-selection-bg;
color: @datagrid-row-selected-color;
&.dx-@{widgetName}-group-space {
border-right-color: @datagrid-selection-bg;
}
&.dx-pointer-events-none {
border-left-color: @datagrid-row-selected-border-color;
border-right-color: @datagrid-row-selected-border-color;
}
}
&:not(.dx-row-lines) > td {
border-bottom: 1px solid @datagrid-selection-bg;
border-top: 1px solid @datagrid-selection-bg;
}
&.dx-row-lines > td {
border-bottom-color: @datagrid-row-selected-border-color;
}
}
&.dx-scrollable-scrollbars-alwaysvisible.dx-scrollable-both .dx-scrollable-wrapper .dx-scrollable-container .dx-scrollable-content {
padding-right: 0;
}
td {
&.dx-validation-pending {
position: relative;
padding: 0;
.dx-highlight-outline {
padding-right: @MATERIAL_TEXTEDITOR_INVALID_BADGE_SIZE;
.dx-rtl&,
.dx-rtl & {
padding-left: @MATERIAL_TEXTEDITOR_INVALID_BADGE_SIZE;
padding-right: 0;
}
}
.dx-pending-indicator {
.dx-pending-indicator-material();
.texteditor-validation-icon-offset();
background-color: @datagrid-base-background-color;
}
}
}
}
.dx-@{widgetName}-search-text {
color: @datagrid-search-color;
background-color: @datagrid-search-bg;
}
.dx-@{widgetName}-nodata {
color: @datagrid-nodata-color;
font-size: @MATERIAL_GRID_BASE_NODATA_FONT_SIZE;
}
.dx-@{widgetName}-bottom-load-panel {
border-top: @datagrid-border;
}
.dx-@{widgetName}-pager {
&.dx-widget {
font-size: @MATERIAL_GRID_BASE_FOOTER_FONT_SIZE;
color: @datagrid-columnchooser-item-color;
}
}
.dx-@{widgetName}-summary-item {
color: @datagrid-summary-color;
}
.dx-@{widgetName}-total-footer {
border-bottom: @datagrid-border;
border-top: @datagrid-border;
> .dx-@{widgetName}-content {
padding: 0;
}
}
.dx-@{widgetName}-revert-tooltip {
.dx-overlay-content {
background-color: transparent;
min-width: inherit;
}
.dx-revert-button {
.dx-button-sizing(2px, 18px, 0);
.dx-button-styling(@button-danger-bg, @button-danger-color, @button-danger-bg, @button-danger-bg, @button-danger-bg, @button-danger-color);
margin: 0 0 0 1px;
height: @MATERIAL_GRID_BASE_CELL_HEIGHT;
box-shadow: none;
min-width: inherit;
&.dx-button-has-icon:not(.dx-button-has-text) {
border-radius: 2px;
}
&.dx-state-hover {
box-shadow: none;
}
}
}
.dx-rtl {
.dx-data-row.dx-state-hover {
&:not(.dx-selection):not(.dx-row-inserted):not(.dx-row-removed):not(.dx-edit-row):not(.dx-row-focused) {
& > td:not(.dx-focused) {
&.dx-@{widgetName}-group-space {
border-left-color: @datagrid-hover-bg;
border-right-color: transparent;
}
}
}
}
.dx-@{widgetName},
.dx-@{widgetName}-container {
.dx-menu {
.dx-menu-item-has-submenu.dx-menu-item-has-icon {
.dx-icon {
margin: 0 3px;
}
}
}
.dx-@{widgetName}-content .dx-@{widgetName}-table .dx-row {
> td,
> td.dx-cell-modified:not(.dx-field-item-content),
> td.dx-@{widgetName}-invalid:not(.dx-field-item-content) {
&:first-of-type {
padding-left: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
padding-right: @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING;
}
&:last-of-type {
padding-right: @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
padding-left: @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING;
}
&.dx-command-select {
padding-right: @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING;
padding-left: @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING - @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING;
}
}
}
}
.dx-@{widgetName}-rowsview {
.dx-selection.dx-row,
.dx-selection.dx-row:hover {
& > td,
& > tr > td {
&:not(.dx-focused) {
&.dx-@{widgetName}-group-space {
border-left-color: @datagrid-selection-bg;
}
}
border-right-color: @datagrid-row-selected-border-color;
&.dx-pointer-events-none {
border-left-color: @datagrid-row-selected-border-color;
}
}
}
&.dx-scrollable-scrollbars-alwaysvisible.dx-scrollable-both .dx-scrollable-wrapper .dx-scrollable-container .dx-scrollable-content {
padding-left: 0;
}
}
}
.dx-header-filter-menu {
.dx-popup-content {
padding: 12px 8px 0 8px;
border-bottom: 1px solid @MATERIAL_GRID_BASE_BORDER_COLOR;
}
}
.dx-@{widgetName}-form-buttons-container {
.dx-button {
.dx-button-flat-color-styling(@button-default-bg, @button-default-text-hover-bg, @button-default-text-focused-bg, @button-default-text-active-bg);
}
}
.dx-command-adaptive {
width: @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING + @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING + @MATERIAL_BASE_ICON_SIZE;
min-width: @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING + @MATERIAL_GRID_BASE_CELL_HORIZONTAL_PADDING + @MATERIAL_BASE_ICON_SIZE;
}
.dx-@{widgetName}-filter-panel {
padding: 15px @MATERIAL_GRID_BASE_CELL_LAST_COLUMN_PADDING 15px @MATERIAL_GRID_BASE_CELL_FIRST_COLUMN_PADDING;
.dx-@{widgetName}-filter-panel-text,
.dx-@{widgetName}-filter-panel-clear-filter {
color: @datagrid-filter-panel-color;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
line-height: @MATERIAL_GRID_BASE_CHECKBOX_SIZE;
}
.dx-icon-filter {
color: @datagrid-filter-panel-color;
}
+ .dx-pager {
border-top: 1px solid @MATERIAL_GRID_BASE_BORDER_COLOR;
}
}
}