chowa
Version:
UI component library based on React
80 lines (74 loc) • 1.65 kB
CSS
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.cw-scrollbar {
overflow: hidden;
height: 100%;
width: 100%;
position: relative;
margin: 0;
padding: 0 6px 6px 0;
box-sizing: border-box; }
.cw-scrollbar-content {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
min-width: 100%;
margin: 0;
padding: 0; }
.cw-scrollbar-vertical-track {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 6px;
margin: 0;
padding: 0;
cursor: pointer;
border-radius: 3px;
overflow: hidden; }
.cw-scrollbar-vertical-thumb {
width: 100%;
cursor: pointer;
transform: translateY(0);
background-color: rgba(0, 0, 0, 0.2);
border-radius: 3px;
height: 30px;
min-height: 30px;
display: block;
margin: 0;
padding: 0;
transition: background-color 0.2s ease-in; }
.cw-scrollbar-vertical-thumb:hover {
background-color: rgba(0, 0, 0, 0.4); }
.cw-scrollbar-horizontal-track {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 6px;
margin: 0;
padding: 0;
cursor: pointer;
border-radius: 3px;
overflow: hidden; }
.cw-scrollbar-horizontal-thumb {
height: 100%;
cursor: pointer;
transform: translateY(0);
background-color: rgba(0, 0, 0, 0.2);
border-radius: 3px;
width: 30px;
min-width: 10px;
display: block;
margin: 0;
padding: 0;
transition: background-color 0.2s ease-in; }
.cw-scrollbar-horizontal-thumb:hover {
background-color: rgba(0, 0, 0, 0.4); }