choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
200 lines (168 loc) • 4.19 kB
text/less
&-table {
&-scrollbar {
background: @performance-table-scrollbar-bg;
position: absolute;
border: @performance-table-scrollbar-border;
&-active {
background: rgba(45, 45, 45, 0.1);
}
&-hide {
display: none;
}
&-handle {
position: absolute;
background: @performance-table-scrollbar-handle-bg;
border-radius: @performance-table-scrollbar-handle-border-radius;
&:active {
background: @performance-table-scrollbar-handle-active-bg;
}
}
&-handle-horizontal-fir {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
left: -0.2rem;
line-height: 0.2rem;
transform: rotate(-90deg);
background-color: #f1f1f1;
i {
font-size: 0.2rem;
}
&:hover {
height: 0.2rem;
line-height: 0.2rem;
color: #505050;
}
}
&-handle-vertical-fir {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
top: -0.2rem;
line-height: 0.2rem;
background-color: #f1f1f1;
i {
font-size: 0.2rem;
}
&:hover {
height: 0.2rem;
line-height: 0.2rem;
color: #505050;
}
}
&-handle-vertical-sec {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
bottom: -0.2rem;
line-height: 0.2rem;
transform: rotate(180deg);
background-color: #f1f1f1;
i {
font-size: 0.2rem;
}
&:hover {
height: 0.2rem;
line-height: 0.2rem;
color: rgba(45, 45, 45, 0.5);
}
}
&-handle-horizontal-sec {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
right: -0.2rem;
line-height: 0.2rem;
transform: rotate(90deg);
background-color: #f1f1f1 ;
&:hover {
height: 0.2rem;
line-height: 0.2rem;
color: rgba(45, 45, 45, 0.5);
}
}
&-horizontal .has-arrow {
height: 0.2rem ;
}
&-vertical .has-arrow {
width: 0.2rem ;
}
&-horizontal &-handle .has-arrow {
height: 0.18rem ;
}
&-vertical &-handle .has-arrow {
width: 0.18rem ;
}
&-horizontal &-pressed,
&-horizontal:hover .has-arrow {
top: 0.01rem ;
height: 0.2rem ;
background-color: #c1c1c1 ;
}
&-vertical &-pressed,
&-vertical:hover .has-arrow {
left: 0.01rem ;
width: 0.2rem ;
background-color: #c1c1c1 ;
}
&-horizontal &-pressed &-handle,
&-horizontal:hover &-handle .has-arrow {
top: 0.01rem;
height: 0.18rem;
background-color: #c1c1c1 ;
}
&-vertical &-pressed &-handle,
&-vertical:hover &-handle .has-arrow {
left: 0.01rem;
width: 0.18rem;
background-color: #c1c1c1 ;
}
&-horizontal {
width: 100%;
height: 10px;
bottom: 2px;
&.fixed {
position: fixed;
}
}
&-horizontal &-handle {
height: @performance-table-scrollbar-handle-horizontal-height;
left: 0px;
top: 1px;
}
&-horizontal &-pressed,
&-horizontal:hover {
height: 14px;
box-shadow: 1px 1px 2px #ddd inset;
transform: scaleY(1.3);
}
&-vertical {
top: 0;
right: 0px;
width: 10px;
bottom: 2px;
}
&-vertical &-handle {
min-height: 20px;
width: @performance-table-scrollbar-handle-vertical-width;
top: 0px;
left: 1px;
}
&-arrow {
background-color: #f1f1f1 ;
}
&-arrow:hover {
box-shadow: none ;
}
&-vertical &-pressed,
&-vertical:hover {
width: 14px;
box-shadow: 1px 1px 2px #ddd inset;
transform: scaleX(1.3);
}
}
}