devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
102 lines (86 loc) • 2.25 kB
text/less
/**
* DevExtreme (mixins.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/
*/
// stylelint-disable selector-class-pattern
.dx-clearfix-mixin() {
&:before,
&:after {
display: table;
content: "";
line-height: 0;
}
&:after {
clear: both;
}
}
.gradient-linear(@options) {
background-repeat: no-repeat;
background-image: linear-gradient(@options);
}
.gradient-radial-circle2(@startColor, @startPosition, @middleColor, @middlePosition, @endColor, @endPosition) {
background: @startColor;
background: radial-gradient(circle closest-side at center, @startColor @startPosition, @middleColor @middlePosition, @endColor @endPosition);
}
.gradient-radial-circle(@startColor, @startPosition, @endColor, @endPosition) {
background: @startColor;
background: radial-gradient(circle closest-side at center, @startColor @startPosition, @endColor @endPosition);
}
.flex-container(@direction: row, @wrap: wrap) {
display: flex;
flex-flow: @direction @wrap;
}
.user-select(@value: text) {
user-select: @value;
}
.user-select(@value) when (@value = none) {
-webkit-touch-callout: none;
}
.dx-overflow(@x: hidden) {
overflow: @x;
text-overflow: ellipsis;
white-space: nowrap;
}
.flip-horizontally() {
transform: scaleX(-1);
}
.vertical-middle() {
height: 100%;
&:after {
height: 100%;
display: inline-block;
content: '';
vertical-align: middle;
}
}
.hide-input-cursor() {
border: none;
color: transparent;
text-shadow: 0 0 0 gray;
&:focus {
outline: none;
}
}
.flexible-scrollable() {
& > .dx-scrollable,
& > .dx-treeview,
& > .dx-treeview > .dx-scrollable {
display: flex;
flex-grow: 1;
flex-direction: column;
height: 0;
& > .dx-scrollable-wrapper {
display: flex;
flex-grow: 1;
flex-direction: column;
height: 0;
& > .dx-scrollable-container {
height: auto;
}
}
}
}