@import '~antd/es/style/themes/default.less'; @border-color: #e6e6e6; @card-content-padding-top: 30px; @card-content-padding-left: 30px; .pro-table-card { position: relative; .pro-table-card-setting-item { color: rgba(0, 0, 0, 0.75); font-size: 16px; cursor: pointer; &:hover { color: @primary-color-hover; } &.active { color: @primary-color-active; } } .pro-table-card-items { display: grid; grid-gap: 26px; padding-bottom: 38px; .pro-table-card-item { display: flex; .card-item-avatar { margin-right: 16px; } .card-item-body { display: flex; flex-direction: column; flex-grow: 1; width: 0; .card-item-header { display: flex; width: calc(100% - 86px); margin-bottom: 12px; .card-item-header-name { flex: 1; font-weight: bold; font-size: 16px; } } .card-item-content { display: flex; flex-wrap: wrap; > div { width: 50%; &:nth-child(even) { width: calc(50% - 12px); margin-left: 12px; } } label { color: rgba(#000, 0.75); font-size: 12px; } .ellipsis { width: 100%; font-weight: bold; font-size: 14px; } } } } } .pro-table-card-pagination { position: absolute; right: 24px; bottom: 24px; > .ant-pagination-item { display: none; } } } .iot-card { width: 100%; background-color: #fff; &.hover { box-shadow: 0 0 24px rgba(#000, 0.1); } .card-warp { position: relative; border: 1px solid @border-color; .card-content { position: relative; padding: @card-content-padding-top 12px 16px @card-content-padding-left; overflow: hidden; &::before { position: absolute; top: 0; left: @card-content-padding-left + 10px; display: block; width: 120px; height: 4px; background-image: url('/images/rectangle.png'); background-repeat: no-repeat; content: ' '; } .card-state { position: absolute; top: @card-content-padding-top; right: -12px; display: flex; justify-content: center; width: 100px; padding: 2px 0; background-color: @info-color-deprecated-bg; transform: skewX(45deg); &.success { background-color: @success-color-deprecated-bg; } &.warning { background-color: @warning-color-deprecated-bg; } &.error { background-color: @error-color-deprecated-bg; } .card-state-content { transform: skewX(-45deg); } } } .card-mask { position: absolute; top: 0; left: 0; z-index: 2; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; background-color: rgba(#000, 0); cursor: pointer; transition: all 0.3s; &.show { background-color: rgba(#000, 0.5); } } } .card-tools { display: flex; margin-top: 8px; .card-button { display: flex; flex-grow: 1; > span, & button { width: 100%; border-radius: 0; } button { background: #f6f6f6; border: 1px solid #e6e6e6; &:hover { background-color: @primary-color-hover; border-color: @primary-color-hover; span { color: #fff !important; } } &:active { background-color: @primary-color-active; border-color: @primary-color-active; span { color: #fff !important; } } } &:not(:last-child) { margin-right: 8px; } &.delete { flex-basis: 60px; flex-grow: 0; button { background: @error-color-deprecated-bg; border: 1px solid @error-color-outline; span { color: @error-color !important; } &:hover { background-color: @error-color-hover; span { color: #fff !important; } } &:active { background-color: @error-color-active; span { color: #fff !important; } } } } button[disabled] { background: @disabled-bg; border-color: @disabled-color; span { color: @disabled-color !important; } &:hover { background-color: @disabled-active-bg; } &:active { background-color: @disabled-active-bg; } } } } }