ze-react-component-library
Version:
ZeroETP React Component Library
320 lines (311 loc) • 6.59 kB
text/less
@import "~antd/es/style/themes/default.less";
.warningIcon {
color: @warning-color;
}
.ze-card {
display: flex;
gap: 24px;
> .ant-card {
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
box-shadow: 0 0 8px 0 rgba(#000000, 0.08);
border-color: #ececec;
border-radius: 15px;
.ze-card-divider {
border-color: #ececec;
width: calc(100% + 48px);
margin-left: -24px;
}
.ant-card-head {
border-bottom: none;
.ant-card-extra {
.ant-btn {
width: 30px;
height: 30px;
border-color: #ececec;
border-radius: 5px;
}
.ze-card-closer {
margin-left: 8px;
}
}
}
.ant-card-body {
padding-top: 0;
}
}
.ze-feedback {
.ant-space-item {
display: flex;
align-items: center;
justify-content: center;
}
.ant-btn-text {
font-size: 12px;
font-weight: 500;
}
}
}
.text-primary-color {
color: var(--ant-primary-color);
}
.ze-graphics-drop-down {
width: 386px;
display: flex;
padding: 0;
background: @item-hover-bg;
box-shadow: @box-shadow-base;
border-radius: @border-radius-base;
overflow: hidden;
.ze-graphics-drop-down-left {
height: inherit;
background: white;
.ze-graphics-drop-down-left-item {
padding: @padding-xs;
font-size: 15px;
@size: 50px;
height: @size;
width: @size;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
.anticon {
font-size: 18px;
}
&.ze-graphics-drop-down-left-item-active {
background: @item-hover-bg;
color: var(--ant-primary-color);
}
}
}
.ze-graphics-drop-down-right {
display: flex;
flex-wrap: wrap;
padding: @padding-sm;
max-height: 300px;
overflow-y: auto;
.ze-graphics-drop-down-right-item-wrapper {
width: 100%/3;
flex-shrink: 0;
flex-grow: 0;
&.ze-graphics-drop-down-right-item-disabled {
color: rgba(@text-color, 0.4) ;
filter: grayscale(1);
cursor: not-allowed;
.ze-graphics-drop-down-right-item {
cursor: not-allowed ;
border-color: transparent ;
}
}
&.ze-graphics-drop-down-right-item-active,
&:hover {
color: var(--ant-primary-color);
.ze-graphics-drop-down-right-item {
border-color: var(--ant-primary-color);
}
}
}
.ze-graphics-drop-down-right-item {
display: flex;
align-items: center;
justify-content: center;
background: white;
margin: @padding-sm auto;
@size: 80px;
width: @size;
height: @size;
cursor: pointer;
border: 1px solid transparent;
border-radius: 12px;
.ze-graphics-drop-down-right-item-img {
width: 60px;
}
}
.ze-graphics-drop-down-right-item-title {
display: inline-block;
width: 100%;
text-align: center;
}
}
}
.ze-card-group-by-menu-drop-down {
.anticon-close {
float: right;
padding: 2px 8px;
cursor: pointer;
opacity: 0.6;
&:hover {
opacity: 1;
}
}
.ant-dropdown-menu {
position: absolute;
width: max-content;
}
}
.ze-card-main-content {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 1;
min-height: 0;
.ze-table-summary {
flex-shrink: 0;
}
.ant-descriptions {
overflow-y: auto;
height: "100%";
.ant-descriptions-item-label {
white-space: nowrap;
}
.ant-descriptions-item-content {
min-width: 80px;
}
}
}
.ze-card-recommends {
display: flex;
gap: 12px;
.ze-card-recommends-title {
font-size: 12px;
flex-shrink: 0;
line-height: 34px;
}
.ze-card-recommends-content {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-width: 0;
}
.ze-card-recommends-items {
flex: 1;
min-width: 0;
.ant-space-item {
max-width: 100%;
}
}
.ze-tag-primary {
padding: 10.5px 12px;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 600;
}
}
.ze-card-sql-viewer {
max-width: 1200px ;
.ant-tabs-nav-wrap {
padding: 4px 0 0 24px;
}
.ant-modal-body {
.ant-tabs {
height: 100%;
display: flex;
flex-direction: column;
}
.ant-tabs-content-holder {
padding: 8px 24px;
padding-bottom: 24px;
flex: 1;
min-height: 0;
.ant-tabs-content {
height: 100%;
> .ant-tabs-tabpane {
height: 100%;
}
}
}
}
}
.ze-card.dark {
div,
td,
th {
color: white;
}
span:not(.anticon) {
color: inherit;
}
.ze-value-item:not(.ze-value-item-highlight) {
background: transparent;
}
.ant-statistic-title {
color: white;
}
.ant-descriptions-bordered .ant-descriptions-item-label {
background: transparent;
}
.ze-table-summary,
.ze-table,
.ant-table,
.ze-analyzer-block {
background: transparent;
.ant-pagination {
color: white;
* {
color: white;
}
}
* {
background: transparent ;
}
.ant-table-cell-row-hover {
background: rgba(#fff, 0.1) ;
}
}
.ant-select-selector {
background: transparent ;
}
.ze-multi-values {
.ze-value-item-block {
&.ze-value-item-block-highlight {
.ze-value-sub-items {
.ze-value-item {
background: rgba(#fff, 0.1);
}
}
}
&:not(.ze-value-item-block-highlight) {
.ze-value-item {
background: rgba(#fff, 0.1);
}
}
.ze-value-sub-items
.ze-value-item
.ze-value-sub-item-trend-content
.ant-statistic-content {
background: rgba(#fff, 0.1);
.ant-statistic-content-suffix,
.ant-statistic-content-value {
color: white;
}
}
}
}
}
@media screen and (max-width: 400px) {
.ze-graphics-drop-down {
width: 308px;
.ze-graphics-drop-down-left {
.ze-graphics-drop-down-left-item {
font-size: 14px;
}
}
.ze-graphics-drop-down-right {
.ze-graphics-drop-down-right-item {
@size: 50px;
width: @size;
height: @size;
border-radius: 6px;
font-size: 10px;
.ze-graphics-drop-down-right-item-img {
width: 30px;
}
}
}
}
}