* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
@import '../custom.less';
@import '../motion/index.less';
@grid-prefix-cls: ~'@{css-prefix}grid';
@grid-body-prefix-cls: ~'@{css-prefix}grid-body';
@numeric-prefix-cls: ~'@{css-prefix}numeric';
.@{grid-prefix-cls}__body-wrapper,
.@{grid-prefix-cls}__fixed-left-body-wrapper,
.@{grid-prefix-cls}__fixed-right-body-wrapper {
overflow-y: auto;
overflow-x: auto;
&.no-data {
overflow-y: hidden;
display: flex;
flex-direction: column;
> .@{grid-prefix-cls}-body__y-space {
display: none;
}
}
}
.@{grid-prefix-cls}__borders {
.@{grid-prefix-cls}-border-top,
.@{grid-prefix-cls}-border-right,
.@{grid-prefix-cls}-border-bottom,
.@{grid-prefix-cls}-border-left {
position: absolute;
background-color: var(--tv-Grid-cell-border-color-focus);
}
.@{grid-prefix-cls}-checked-borders {
.@{grid-prefix-cls}-border-top,
.@{grid-prefix-cls}-border-bottom {
height: 2px;
}
.@{grid-prefix-cls}-border-right,
.@{grid-prefix-cls}-border-left {
width: 2px;
}
}
.@{grid-prefix-cls}-copyed-borders {
--tv-motion-ants-shift: 13px;
.@{grid-prefix-cls}-border-top,
.@{grid-prefix-cls}-border-bottom {
height: 3px;
}
.@{grid-prefix-cls}-border-right,
.@{grid-prefix-cls}-border-left {
width: 3px;
}
& > span {
background: repeating-linear-gradient(135deg, transparent 0 3px, var(--tv-Grid-border-color-active) 3px 9px);
background-repeat: repeat;
}
.@{grid-prefix-cls}-border-top {
animation: ants-x var(--tv-motion-ants-speed) linear infinite;
}
.@{grid-prefix-cls}-border-right {
animation: ants-y var(--tv-motion-ants-speed) linear infinite;
}
.@{grid-prefix-cls}-border-bottom {
animation: ants-x-rev var(--tv-motion-ants-speed) linear infinite;
}
.@{grid-prefix-cls}-border-left {
animation: ants-y-rev var(--tv-motion-ants-speed) linear infinite;
}
}
}
.@{grid-body-prefix-cls}__row {
.@{grid-body-prefix-cls}__column {
&.col__selected {
background-color: var(--tv-Grid-col-active-bg-color);
}
.@{numeric-prefix-cls} {
width: 100%;
}
}
}