devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
203 lines (168 loc) • 5 kB
text/less
/**
* DevExtreme (widgets/material/scrollable.material.less)
* Version: 20.1.7
* Build date: Tue Aug 25 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
@SCROLLBAR_SIZE_THIN: 6px;
@SCROLLBAR_SIZE: 13px;
.dx-scrollable-content {
-webkit-transform: none; // stylelint-disable-line property-no-vendor-prefix
}
.dx-scrollable-scroll {
padding: 2px 0 2px 2px;
background-color: transparent;
opacity: 1;
overflow: hidden;
transition: opacity 0s linear;
.dx-rtl & {
padding-left: 0;
padding-right: 2px;
}
}
.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-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-rtl & {
padding-left: 2px;
padding-right: 2px;
padding-bottom: 0;
}
}
&.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-scrollview-scrollbottom-text,
.dx-scrollview-pull-down-text {
margin-left: 10px;
top: (50px - @MATERIAL_BASE_FONT_SIZE) / 2;
display: inline-block;
.dx-rtl & {
margin-left: 0;
margin-right: 10px;
}
}
.dx-scrollview-pull-down-text {
div {
position: relative;
}
}
.dx-scrollview-pull-down-image {
display: none;
}
.dx-scrollview-pull-down {
text-align: center;
}
.dx-rtl .dx-scrollable,
.dx-rtl.dx-scrollable {
.dx-scrollable-scroll {
float: left;
}
}