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
nezha-nezha-fronted/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss

310 lines
6.8 KiB
SCSS

.chart-right-box{
overflow-y: auto;
.el-tabs--border-card {
box-shadow: none;
border: none;
}
.el-tabs__nav{
width: 100%;
> div{
width: 25%;
box-sizing: border-box;
text-align: center;
padding: 0!important;
}
}
.el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
color: $--color-white;
background: $--color-primary;
border: none;
}
}
.right-box__container{
.chart-config{
color: $--color-text-regular;
font-size: 14px;
.el-form {
padding-top: 0px;
.thresholds-from-item{
margin-bottom: 0 !important;
flex: 1;
}
.el-form-item__error {
padding-top: 0;
}
.el-input-number--small {
width: 100%;
}
}
.metrics-input-box{
.input-box .el-textarea .el-textarea__inner {
width: calc(100% + 42px);
}
.metric-selector-input-box{
line-height: 32px;
.el-input__count{
right: -38px !important;
}
}
.el-col-24{
line-height: 32px;
}
.el-input--small{
line-height: 32px;
}
}
.chart-system-top-box {
.el-form-item__content {
line-height: 32px;
}
}
.chart-title-config {
border: 1px solid $--border-color-light;
border-radius: 2px;
position: relative;
display: flex;
padding: 0;
padding-left: 5px;
line-height: 30px;
justify-content: space-between;
margin-bottom: 10px;
box-sizing: border-box;
height: 32px;
.chart-title-content{
flex: 1;
display: flex;
height: 100%;
.el-input--small {
padding: 3px;
line-height: 24px;
input{
height: 26px;
line-height: 26px;
}
}
}
.hide-input {
input{
border: none !important;
}
}
.nz-icon{
cursor: pointer;
}
.title-content-left{
display: inline-flex;
align-items: center;
}
.nz-icon-copy {
padding: 0 4px;
color: $--color-primary;
background-color: $--background-color-copy;
border-radius: $--border-radius-small;
cursor: pointer;
}
}
.is-item-box-error .chart-title-config {
border-color: #F56C6C
}
.chart-title .nz-icon-arrow-down{
display: inline-block;
transition: transform .3s;
}
.chart-title .nz-icon-arrow-down.is-active{
transform: rotate(
-90deg
);
}
.thresholds-item {
border-radius: 2px;
display: flex;
margin-bottom: 10px;
align-items: center;
justify-items: center;
.el-form-item__content{
display: flex;
line-height: 32px;
align-items: center;
justify-items: center;
width: 100%;
}
.el-input-number--small{
display: inline-block;
flex: 1;
align-items: center;
width: auto;
}
.del-thresholds-icon{
display: inline-block;
margin-left: 5px;
}
.mapping-display{
width: 100px;
font-size: 14px;
border: 1px solid $--border-color-light;
border-radius: 2px 0 0 2px;
height: 32px;
line-height: 32px;
padding-left: 10px;
box-sizing: border-box;
}
.mapping-iconSelect {
display: flex;
justify-content: space-between;
align-items: center;
width: 76px;
height: 32px;
padding:0px 5px;
box-sizing: border-box;
border: 1px solid $--border-color-light;
cursor: pointer;
.mapping-icon{
font-size: 18px;
margin-left: 6px;
}
span{
font-size: 14px;
color: $--color-text-placeholder;
}
.el-icon-arrow-down{
transition: transform .2s;
color: $--color-text-placeholder;
}
.el-icon-arrow-down.is-active{
transform: rotate(-180deg);
}
}
}
.thresholds-add{
border: 1px solid $--border-color-light;
border-radius: 2px;
text-align: center;
margin-bottom: 10px;
padding: 3px 10px;
}
.prev-mapping-icon{
font-size: 16px;
height: 100%;
display: flex;
align-items: center;
position: absolute;
left: 200px;
}
.prev-mapping-box{
display: inline-block;
min-width: 18px;
height: 30px;
line-height: 30px;
border-radius: 5px;
padding: 0 3px;
text-align: center;
position: absolute;
top: 0;
left: 230px;
box-sizing: border-box;
}
.element-item {
padding: 0;
border-bottom: none;
margin-bottom: 20px !important;
}
.vue-tags-input{
display: inline-block;
width: 100%;
.ti-input{
padding: 1px 3px;
}
}
.system-chart-config {
display: flex;
height: 206px;
align-items: center;
margin-bottom: 10px;
}
.system-chart-config-left{
width: 40%;
height: 100%;
border: 1px solid $--border-color-light;
border-radius: 2px;
padding: 10px;
box-sizing: border-box;
ul{
height: 100%;
overflow-y: auto;
}
.system-chart-item {
font-size: 14px;
padding: 3px 5px;
text-transform:capitalize;
.nz-icon{
display: none;
float: right;
margin-right: 10px;
}
}
.system-chart-item:hover{
color: $--color-primary;
background: $--background-color-base !important;
}
.system-chart-item.is-select{
color: $--color-primary;
background: $--background-color-base !important;
.nz-icon{
color: $--color-primary;
display: inline-block;
}
}
}
.system-chart-config-right{
flex: 1;
margin-left: 10px;
height: 100%;
width: calc(60% - 10px);
}
//.el-select__tags > span {
// display: flex;
// width: 100%;
// overflow-x: auto;
//}
}
}
.mapping-iconPop{
.mapping-iconList{
width: 285px;
height: 175px;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
.mapping-iconItem{
width: 40px;
height: 40px;
border: 1px solid $--button-icon-border-color;
background-color: $--right-box-sub-title-background-color;
border-radius: 2px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
margin-left: 5px;
margin-top: 5px;
i{
font-size: 18px;
}
&:nth-of-type(6n+1){
margin-left: 0;
}
&:nth-of-type(-n+6){
margin-top: 0;
}
}
.mapping-iconItem.active{
border-color: #fa901c ;
color: #fa901c;
}
}
}