This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/assets/css/common/table-common.scss

406 lines
9.3 KiB
SCSS
Raw Normal View History

2021-06-11 10:00:22 +08:00
/*列表table通用样式*/
.list-page {
height: 100%;
width: 100%;
background-color: #f6f6f6;
.main-list {
background-color: white;
position: relative;
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
z-index: 0;
}
.main-container {
2023-03-10 21:15:09 +08:00
padding: 0;
2021-06-11 10:00:22 +08:00
height: 100%;
&>div {
background-color: white;
}
}
.main-list.main-list-with-sub {
height: 50%;
}
.main-modal {
position: absolute;
height: 100%;
width: 100%;
display: none;
z-index: 100;
}
.top-tools {
display: flex;
align-items : center;
position: relative;
justify-content: space-between;
2023-03-10 20:50:54 +08:00
padding: 12px 20px;
2021-06-11 10:00:22 +08:00
&.top-tools--sub {
align-items: center;
padding: 0 70px 0 15px;
height: 44px;
background-color: white;
border: 1px solid #E6EAED;
2021-06-11 10:00:22 +08:00
}
.top-tool-search {
2022-02-14 17:42:01 +08:00
.top-tool-btn {
border-left: none;
}
2023-03-10 20:50:54 +08:00
.top-tool-btn--search:hover {
border-left: none !important;
}
.top-tool-btn--search:focus {
border-left: none !important;
}
2022-02-14 17:42:01 +08:00
}
2021-06-11 10:00:22 +08:00
.top-tool-right {
display: flex;
}
.top-tool-left {
display: flex;
}
.top-tool-btn-group {
display: flex;
.top-tool-btn:not(:last-of-type):not(:first-of-type) {
border-left: none;
border-radius: 0;
}
.top-tool-btn:first-of-type:not(:last-of-type) {
border-radius: $--button-border-radius 0 0 $--button-border-radius;
}
.top-tool-btn:last-of-type:not(:first-of-type) {
border-radius: 0 $--button-border-radius $--button-border-radius 0;
border-left: none;
}
}
.top-tool-btn {
cursor: pointer;
2023-03-10 20:50:54 +08:00
height: 28px;
width: 72px;
2021-06-11 10:00:22 +08:00
border: 1px solid $--border-color-primary;
outline: none;
border-radius: $--button-border-radius;
background-color: $--button-gray-background-color;
transition: background-color linear .1s;
2023-03-10 20:50:54 +08:00
font-size:12px;
font-weight: 500;
font-family: NotoSansHans-Medium !important;
2021-06-11 10:00:22 +08:00
i {
font-size: 14px;
2023-03-10 20:50:54 +08:00
color: #575757;
margin-right:4px;
}
}
.top-tool-btn:disabled {
cursor: not-allowed;
opacity: 0.66;
i {
2021-06-11 10:00:22 +08:00
}
}
2022-02-14 17:42:01 +08:00
2021-06-11 10:00:22 +08:00
.top-tool-btn.top-tool-btn--text {
padding: 0 8px;
width: unset;
color: #666;
}
.top-tool-btn:hover:not(.cn-btn-disabled) {
2023-03-10 20:50:54 +08:00
border: 1px solid $--border-color-primary;
2021-06-11 10:00:22 +08:00
background-color: $--button-gray-hover-background-color;
}
.top-tool-btn:focus:not(.cn-btn-disabled), .top-tool-btn.is-focus {
2023-03-10 20:50:54 +08:00
background-color: $--button-gray-active-background-color;
border: 1px solid $--border-color-primary;
2021-06-11 10:00:22 +08:00
i {
2023-03-10 20:50:54 +08:00
color: #575757;
2021-06-11 10:00:22 +08:00
}
}
.top-tool-btn--delete.top-tool-btn:focus:not(.cn-btn-disabled) {
background-color: $--button-gray-hover-background-color;
border-color: #FFC4B9;
i {
color: #F0745A;
}
}
2023-03-10 20:50:54 +08:00
.top-tool-btn--create {
background-color: #38ACD2 !important;
border-color: #2E88A6 !important;
color:#FFFFFF;
i {
color: #FFFFFF;
}
}
.top-tool-btn--create:hover {
background-color: #57B8D9 !important;
border-color: #2E88A6 !important;
color:#FFFFFF;
i {
color: #FFFFFF;
}
}
.top-tool-btn--create:focus {
background-color: #31A5CD !important;
border-color: #2E88A6 !important;
color:#FFFFFF !important;
i {
color: #FFFFFF !important;
}
}
.top-tool-btn--create:disabled {
opacity: 0.66;
background-color: #38ACD2 !important;
border-color: #2E88A6 !important;
color:#FFFFFF;
i {
color: #FFFFFF;
}
}
.btn-customize {
color:$blue;
font-size: 12px;
.icon-gear{
color:#2C72C6;
width:12px;
height:12px;
margin-right:2px;
font-size:12px;
}
}
.btn-customize:hover {
cursor:pointer;
}
2021-06-11 10:00:22 +08:00
.top-tool-btn--dropdown {
position: relative;
width: auto;
min-width: 36px;
}
}
.cn-table {
position: relative;
padding: 0 20px;
width: 100%;
2021-06-11 10:00:22 +08:00
flex: auto;
height: calc(100% - 58px);
.el-table:not(.chart-table) {
position: absolute;
width: calc(100% - 40px);
border: 1px solid $--right-box-border-color;
border-bottom: none;
2023-03-10 20:50:54 +08:00
border-radius:4px;
2021-06-11 10:00:22 +08:00
.caret-wrapper {
height: 23px;
.sort-caret.ascending {
top: 1px;
}
.sort-caret.descending {
bottom: 0;
}
}
.el-table-column--selection {
width: 55px !important;
}
td {
padding: 8px 0;
border-bottom: 1px solid $--right-box-border-color;
}
th {
border-color: $--right-box-border-color;
padding: 8px 0;
2023-03-10 20:50:54 +08:00
background: #FFF;
border-right:0px;
2021-06-11 10:00:22 +08:00
}
.el-table__header th:first-of-type {
border-left: none;
}
.gutter {
position: fixed;
right: 31px;
height: 49px;
border-bottom: 1px solid $--right-box-border-color;
background-color: white;
}
thead {
color: #333;
}
.el-table__body tr:hover>td, .el-table__body tr.hover-row.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped>td, .el-table__body tr.hover-row>td {
2021-07-15 19:22:20 +08:00
background-color: lighten($--color-primary, 95%) !important;
2021-06-11 10:00:22 +08:00
}
.table-operation-title {
text-align: center;
}
.table-operation-items {
display: flex;
justify-content: center;
.table-operation-item {
display: flex;
height: 22px;
border-radius: $--button-border-radius;
outline: none;
transition: background-color linear .1s;
}
.table-operation-item.table-operation-item--disable{
border: 1px solid $--border-color-primary;
background-color: #DEDEDE;
opacity: 0.6;
outline: none;
i {
font-size: 14px;
color: #fff;
}
}
&>.table-operation-item {
justify-content: center;
align-items: center;
width: 30px;
margin-right: 10px;
border: none;
border-radius: $--button-border-radius;
background-color: $--button-primary-background-color;
opacity: 1;
cursor: pointer;
transition: all .2s;
i {
color: $--button-primary-color;
font-size: 12px;
}
}
&>.table-operation-item:hover {
opacity: .8;
}
.table-operation-item.table-operation-item--more {
justify-content: center;
align-items: center;
border: 1px solid $--border-color-primary;
width: 30px;
i {
color: #999;
font-size: 12px;
}
}
}
}
}
/* start--覆盖el-table边框、gutter等样式 */
.el-table__body-wrapper, .el-table__fixed-body-wrapper {
box-shadow: 1px 0 $--right-box-border-color;
.cell {
color: #333;
}
}
.el-table__body-wrapper .is-hidden, .el-table__header-wrapper .is-hidden {
visibility: hidden;
}
.cn-table {
.el-table--border td {
border-right: none !important;
}
/* 最后一列用box-shadow模拟边框 */
2023-03-10 21:15:09 +08:00
/*.el-table:not(.no-operation):not(.chart-table).el-table--border .el-table__body-wrapper td:nth-last-child(2) {
2021-06-11 10:00:22 +08:00
box-shadow: 1px 0 $--right-box-border-color;
}
.el-table:not(.no-operation):not(.chart-table).el-table--border .el-table__header-wrapper th:nth-last-child(3) {
2022-04-14 11:59:37 +08:00
//border-right: none !important;
2021-06-11 10:00:22 +08:00
box-shadow: 1px 0 $--right-box-border-color;
}
.el-table__fixed-body-wrapper {
td:not(.is-hidden) {
border-left: 1px solid $--right-box-border-color;
}
}
.el-table__fixed-header-wrapper {
th:not(.is-hidden) {
border-left: 1px solid $--right-box-border-color;
}
th:last-of-type {
border-right: none !important;
}
2023-03-10 21:15:09 +08:00
}*/
2021-06-11 10:00:22 +08:00
.el-table--border:not(.chart-table)::after, .el-table--group:not(.chart-table)::after {
width: 0;
}
}
/* end--覆盖el-table边框、gutter等样式 */
.cn-pagination{
2021-06-11 10:00:22 +08:00
position: absolute;
bottom: 8px;
height: 48px;
width: calc(100% - 20px);
}
}
.operation-dropdown-text {
display: inline-block;
font-size: 13px;
}
.search-box {
padding: 0 20px 20px;
}
.click-search-dropdown {
width: calc(100% - 300px) !important;
left: 270px !important;
margin-top: -3px !important;
box-shadow: none;
2021-06-11 10:00:22 +08:00
border-radius: 0;
border-color: #c7c7c7;
.popper__arrow {
display: none;
}
.el-cascader-menu__list {
display: flex;
flex-wrap: wrap;
width: 100%;
max-height: 120px;
}
}
.el-popper.el-cascader__dropdown.click-search-dropdown::after {
content: '';
position: absolute;
top: -1px;
height: 1px;
background-color: white;
}
.col-resize-area {
position: absolute;
top: 0;
right: 0;
width: 4px;
height: 100%;
cursor: col-resize;
}
2021-06-18 15:25:13 +08:00
.margin-r-10{
margin-right: 10px;
}
.margin-r-20{
margin-right: 20px;
}
.margin-l-10{
margin-left: 10px;
}
2022-06-18 16:06:08 +08:00
.margin-t-20{
margin-top: 20px;
}
.tooltip-column-name {
color: #aeb0b9;
height:40px;
}