345 lines
7.0 KiB
SCSS
345 lines
7.0 KiB
SCSS
.loading-font{
|
|
color: #232f3e !important;
|
|
}
|
|
.popper-z-index{
|
|
z-index: 3000 !important;
|
|
}
|
|
.calendar {
|
|
line-height: 40px;
|
|
height: 40px;
|
|
box-sizing: border-box;
|
|
border: 1px solid $--border-color-light;
|
|
border-radius: $--border-radius-small;
|
|
}
|
|
.calendar.calendar--small {
|
|
line-height: 32px;
|
|
height: 32px;
|
|
|
|
.calendar-dropdown-title {
|
|
line-height: 30px;
|
|
}
|
|
}
|
|
.el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover {
|
|
color: $--color-primary !important;
|
|
}
|
|
.nz-dashboard-dropdown-bg {
|
|
background: $--color-primary;
|
|
color: $--time-picker-hover-color !important;
|
|
}
|
|
.calendar-dropdown-title {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.el-dropdown-link {
|
|
cursor: pointer;
|
|
}
|
|
.calendar-popover{
|
|
line-height:22px;
|
|
text-align:center;
|
|
}
|
|
.panel-time-picker-hidden{
|
|
width: 0 !important;
|
|
padding: 0 !important;
|
|
border: 0 !important;
|
|
visibility: hidden !important;
|
|
}
|
|
.time-picker-button{
|
|
padding: 0 1px !important;
|
|
height:24px !important;
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.time-picker-left-button{
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.time-picker-right-button{
|
|
margin-left: 4px;
|
|
}
|
|
.panel-time-picker-popper[x-placement^=bottom] .popper__arrow {
|
|
left: 50% !important;
|
|
}
|
|
|
|
.panel-time-picker-popper .el-date-table td.today span {
|
|
color: #232f3e !important;
|
|
}
|
|
|
|
.panel-time-picker-popper .el-picker-panel__footer button:nth-child(1){
|
|
display:none;
|
|
}
|
|
|
|
.dropdown--suffix {
|
|
padding: 0 8px;
|
|
color: #aaa;
|
|
}
|
|
.date-range-panel-bottom {
|
|
height: 44px;
|
|
line-height: 44px;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.09);
|
|
padding: 0 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
color: $--color-text-regular;
|
|
.utc-str {
|
|
line-height: 44px;
|
|
text-align: right;
|
|
span{
|
|
font-size: 12px;
|
|
background: $--background-color-2;
|
|
padding: 6px 8px;
|
|
}
|
|
}
|
|
}
|
|
.date-range-refresh {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.date-time-range {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.date-range-item {
|
|
list-style-type: none;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.panel-time-picker-hidden {
|
|
visibility: hidden !important;
|
|
position: absolute;
|
|
top: 0;
|
|
left: -20px;
|
|
}
|
|
|
|
.date-range-text {
|
|
color: $--color-text-regular;
|
|
// font-size: 14px;
|
|
font-size: 13px;
|
|
// min-width: 150px;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
padding: 0 10px;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
height: 30px;
|
|
background: $--background-color-empty;
|
|
//border: 1px solid $--border-color-light;
|
|
box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02);
|
|
border-radius: 2px;
|
|
line-height: 30px;
|
|
transition: width .3s;
|
|
cursor: pointer;
|
|
.cn-icon {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.cn-icon-arrow-down {
|
|
transition: all .3s;
|
|
display: inline-block;
|
|
}
|
|
|
|
.cn-icon-arrow-down-active {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
.date-range-title {
|
|
font-size: 14px;
|
|
color: $--color-text-regular;
|
|
font-weight: 600;
|
|
padding: 14px 0 7px 8px;
|
|
}
|
|
|
|
.calendar-popover-text {
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.calendar-popover-text:first-of-type {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.calendar-popover-text:last-of-type {
|
|
margin-right: 0;
|
|
}
|
|
.date-range-panel {
|
|
// height: 460px;
|
|
width: 500px;
|
|
background: $--background-color-empty;
|
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
position: absolute;
|
|
right: 80px;
|
|
top: 40px;
|
|
z-index: 1;
|
|
|
|
.date-range-panel-content-left {
|
|
padding-left: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
.content-title {
|
|
font-size: 14px;
|
|
color: $--color-text-regular;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.content-input {
|
|
width: 230px;
|
|
display: flex;
|
|
position: relative;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
.el-input{
|
|
width: auto;
|
|
flex: 1;
|
|
.el-input__inner{
|
|
border: 1px solid $--border-color-light;
|
|
border-radius: 2px;
|
|
width: 230px;
|
|
padding: 0 10px;
|
|
//height: 30px;
|
|
//line-height: 30px;
|
|
//outline: #169AFF;
|
|
}
|
|
|
|
}
|
|
.input-hint{
|
|
display: none;
|
|
}
|
|
.nz-icon-box{
|
|
height: 28px;
|
|
box-sizing: border-box;
|
|
background: $--background-color-2;
|
|
padding: 0 8px;
|
|
line-height: 25px;
|
|
border-radius: 2px;
|
|
color: $--color-text-regular;
|
|
border: 1px solid $--border-color-base;
|
|
margin-left: 4px;
|
|
.nz-icon{
|
|
font-size: 14px;
|
|
}
|
|
&:hover{
|
|
border-color: $--color-primary;
|
|
color: $--color-primary;
|
|
}
|
|
}
|
|
&.input-error{
|
|
.el-input{
|
|
.el-input__inner{
|
|
border: 1px solid $--color-danger;
|
|
//outline: $--color-danger;
|
|
}
|
|
}
|
|
.input-hint{
|
|
display: block;
|
|
color: $--color-danger;
|
|
position: absolute;
|
|
left: 0;
|
|
font-size: 14px;
|
|
bottom: -25px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.date-range-history {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
|
|
.date-range-history-item {
|
|
padding: 5px 0;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
cursor: pointer;
|
|
color: $--color-text-regular;
|
|
}
|
|
|
|
.date-range-history-item:hover {
|
|
/*font-weight: 600;*/
|
|
background: $--background-color-2;
|
|
}
|
|
}
|
|
}
|
|
|
|
.date-range-panel-content-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
ul {
|
|
flex: 1;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
|
|
li {
|
|
width: 100%;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
color: $--color-text-primary;
|
|
font-weight: 400;
|
|
padding: 0 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
li:hover {
|
|
background: $--alert-rule-background-color;
|
|
color: $--color-text-primary;
|
|
}
|
|
li.activeLi :hover {
|
|
background: $--alert-rule-background-color;
|
|
color: $--color-primary !important;
|
|
}
|
|
li.activeLi {
|
|
background: $--alert-rule-background-color;
|
|
color: $--color-primary !important;
|
|
font-weight: 400;
|
|
|
|
.cn-icon-check {
|
|
color: #0091FF;
|
|
position: absolute;
|
|
right: 7px;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
@media (max-height: 900px) {
|
|
.date-range-panel {
|
|
.date-range-panel-content-right {
|
|
height: 180px;
|
|
overflow-y: auto;
|
|
}
|
|
.date-range-panel-content-left {
|
|
height: 180px;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
}
|
|
.date-range-panel--top {
|
|
top: -460px;
|
|
}
|
|
@media (max-height: 900px) {
|
|
.date-range-panel--top {
|
|
top: -215px;
|
|
}
|
|
}
|
|
.el-date-range-picker.el-picker-panel__body__only,.el-picker-panel__body {
|
|
width: 324px;
|
|
.el-date-range-picker__header,.el-date-picker__header{
|
|
.el-picker-panel__icon-btn.el-icon-arrow-right{
|
|
font-size: 12px;
|
|
color: $--button-icon-color;
|
|
transform: scale(0.8);
|
|
}
|
|
}
|
|
}
|
|
.el-date-range-picker__content.el-date-range-picker__content__only{
|
|
width: 100%;
|
|
}
|