devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
175 lines (144 loc) • 4.61 kB
text/less
/**
* DevExtreme (widgets/generic/scrollable.generic.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/
*/
@SCROLLBAR_SIZE_THIN: 8px;
@SCROLLBAR_SIZE: 15px;
.dx-scrollable-content {
-webkit-transform: none; // stylelint-disable-line property-no-vendor-prefix
}
.dx-scrollable-scroll {
padding: 2px;
background-color: transparent;
opacity: 1;
overflow: hidden;
transition: opacity 0s linear;
}
.dx-scrollable-scroll.dx-state-invisible {
opacity: 0;
transition: opacity 0.5s linear 1s;
}
.dx-scrollable-scroll-content {
width: 100%;
height: 100%;
background-color: @scrollable-scroll-bg;
box-shadow: 0 0 0 1px @scrollable-scroll-shadow-color;
}
.dx-scrollbar-hoverable {
background-color: @scrollable-scrollbar-bg;
&.dx-state-hover,
&.dx-scrollable-scrollbar-active {
background-color: @scrollable-scrollbar-active-bg;
}
&.dx-scrollable-scrollbar-active .dx-scrollable-scroll-content {
background-color: @scrollable-scroll-active-bg;
}
.dx-scrollable-scroll.dx-state-invisible {
opacity: 1;
.dx-scrollable-scroll-content {
background-color: transparent;
background-color: rgba(0, 0, 0, 0);
box-shadow: 0 0 0 1px transparent;
}
}
}
.dx-scrollbar-vertical {
.dx-scrollable-scroll {
float: right;
width: @SCROLLBAR_SIZE_THIN;
}
&.dx-scrollbar-hoverable {
width: @SCROLLBAR_SIZE_THIN;
transition: width 0.2s linear 0.15s, background-color 0.2s linear 0.15s;
.dx-scrollable-scroll {
transition: background-color 0.5s linear 1s, width 0.2s linear 150ms;
.dx-scrollable-scroll-content {
transition: box-shadow 0.15s linear 0.15s, background-color 0.15s linear 0.15s;
}
&.dx-state-invisible {
transition: background-color 0.5s linear 1s, width 0.2s linear 0.15s;
.dx-scrollable-scroll-content {
transition: box-shadow 0.5s linear 1s, background-color 0.5s linear 1s;
}
}
}
&.dx-state-hover,
&.dx-scrollable-scrollbar-active {
width: @SCROLLBAR_SIZE;
.dx-scrollable-scroll {
width: @SCROLLBAR_SIZE;
}
}
}
}
.dx-scrollbar-horizontal {
.dx-scrollable-scroll {
height: @SCROLLBAR_SIZE_THIN;
}
&.dx-scrollbar-hoverable {
height: @SCROLLBAR_SIZE_THIN;
transition: height 0.2s linear 0.15s, background-color 0.2s linear 0.15s;
.dx-scrollable-scroll {
transition: background-color 0.5s linear 1s, height 0.2s linear 0.15s;
.dx-scrollable-scroll-content {
transition: box-shadow 0.15s linear 0.15s, background-color 0.15s linear 0.15s;
}
&.dx-state-invisible {
transition: background-color 0.5s linear 1s, height 0.2s linear 0.15s;
.dx-scrollable-scroll-content {
transition: box-shadow 0.5s linear 1s, background-color 0.5s linear 1s;
}
}
}
&.dx-state-hover,
&.dx-scrollable-scrollbar-active {
height: @SCROLLBAR_SIZE;
.dx-scrollable-scroll {
height: @SCROLLBAR_SIZE;
}
}
}
}
.dx-scrollable-scrollbars-alwaysvisible {
&.dx-scrollable-vertical,
&.dx-scrollable-both {
> .dx-scrollable-wrapper {
> .dx-scrollable-container {
> .dx-scrollable-content {
padding-right: @SCROLLBAR_SIZE_THIN;
}
}
}
&.dx-rtl,
.dx-rtl & {
> .dx-scrollable-wrapper {
> .dx-scrollable-container {
> .dx-scrollable-content {
padding-right: 0;
padding-left: @SCROLLBAR_SIZE_THIN;
}
}
}
}
}
&.dx-scrollable-horizontal,
&.dx-scrollable-both {
> .dx-scrollable-wrapper {
> .dx-scrollable-container {
> .dx-scrollable-content {
padding-bottom: @SCROLLBAR_SIZE_THIN;
}
}
}
}
}
.dx-rtl .dx-scrollable,
.dx-rtl.dx-scrollable {
.dx-scrollable-scroll {
float: left;
}
}