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/searchInput.scss

348 lines
7.0 KiB
SCSS

.search-btn {
height: 30px;
width: 32px;
border: none;
outline: none;
cursor: pointer;
border-left: 1px solid $--border-color-light;
background-color: lighten($--background-color-base, 10%);
i {
color: $--color-text-regular;
font-size: 14px;
}
}
.search-btn:focus:not(.nz-btn-disabled) {
background-color: $--background-color-empty;
i {
color: $--color-primary;
}
}
.search-input-placeholder{
font-size: 12px;
color: $--color-text-secondary;
position: absolute;
left: 7px;
}
.top-tools input {
background-color: $--background-color-empty;
}
.new-search{
display: flex;
position: relative;
line-height: 25px;
border-radius: 2px;
border: 1px solid $--border-color-light;
}
.new-search .search-input-all{
width: 226px !important;
min-width: 226px;
background-color: lighten($--background-color-base, 10%);
color: $--color-text-regular;
height: 30px;
line-height: 30px;
border-bottom-left-radius: 2px;
border-top-left-radius: 2px;
display: flex;
position: relative;
}
@media screen and (max-width:2000px){
.bottom-data-list .new-search .search-input-all{
width: 176px !important;
min-width: 176px;
}
}
.search-input-all .btn-retract{
padding: 0 4px;
text-align: center;
}
.search-input-all .search-history{
padding: 0 7px;
height: 18px;
line-height: 18px;
text-align: center;
border-right: 1px solid $--border-color-light;
margin-top: 6px;
position: relative;
}
.search-input-all .input-center-box{
flex: 1;
height: 100%;
overflow: hidden;
}
.search-input-all .clear-search{
padding: 0 5px;
text-align: center;
font-size: 12px;
background-color: $--background-color-empty;
}
.dataBackG{
background: darken($--background-color-base, 10%);
}
.none{
display: none !important;
}
.search-text{
display: inline-block;
margin-right: 20px;
}
.sreach_box{
position: relative;
width: 80%;
height: 25px;
padding: 20px;
background: $--background-color-empty;
margin: 200px auto;
}
.keyring_sreach_right_btn{
width: 18%;
height: 25px;
float: right;
line-height: 25px;
text-align: center;
border: 1px solid $--border-color-base;
}
.keyring_sreach_right_btn .right-btn-group{
float: left;
width: 80%;
border-right: 1px solid $--border-color-base;
box-sizing: border-box;
}
.keyring_sreach_right_btn .right-btn-icon{
float: left;
width: 19%;
}
.sreach_box .close_zhezhao{
position: absolute;
right: 0;
top: -50px;
width: 24px;
height: 25px;
border-radius: 50%;
background: $--background-color-empty;
text-align: center;
line-height: 28px;
font-size: 12px;
}
.localStorage_list_box{
position: absolute;
left: 10px;
top: 30px;
width: auto;
min-width:250px;
max-width: 350px;
height: auto;
border: 1px solid $--border-color-base;
background: $--background-color-empty;
color: $--color-text-regular;
text-align: left;
border-radius: 3px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 9999;
font-size: 12px;
}
.localStorage_list_box .list_box_title{
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
position: relative;
border-bottom: 1px solid $--border-color-base;
color: $--color-text-regular;
}
.localStorage_list_box .list_box_title i{
position: absolute;
right: 10px;
top: 0;
}
.localStorage_list_box .list_box_content{
text-align: left;
padding: 5px 0;
box-sizing: border-box;
border-bottom: 1px solid $--border-color-base;
}
.localStorage_list_box ul li{
padding: 5px 10px;
line-height: 20px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.localStorage_list_box ul li:hover{
background: darken($--background-color-base, 10%);
cursor:pointer;
}
.localStorage_list_box ul li span{
color: $--color-text-regular;
}
.localStorage_list_box ul li .value{
font-weight: 600;
width: 350px;
}
.localStorage_list_box .list_box_clear{
padding-left: 10px;
line-height: 40px;
}
.localStorage_list_box .list_box_clear:hover{
background: darken($--background-color-base, 10%);
cursor:pointer;
}
.input-center-box .sreach_fixe_left{
width: auto;
display: flex;
height: 100%;
min-width: 100%;
}
.sreach_list{
display: flex;
justify-content:flex-start;
height: 100%;
padding-left: 10px;
}
.sreach_fixe_left .selectinfo_box{
display: flex;
flex-shrink: 0;
width: auto;
height: auto;
margin: 3px 2px;
font-size: 12px;
}
.selectinfo_box .select_condition{
float:left;
height: 13px;
padding: 3px;
background: $--background-color-base;
line-height: 13px;
color: $--color-text-regular;
}
.selectinfo_box .select_content{
float: left;
line-height: 13px;
height: 13px;
padding: 3px;
background: darken($--background-color-base, 10%);
color: $--color-text-regular;
display: flex;
}
.selectinfo_box .select_content .nz-icon-close{
font-size: 12px;
}
.selectinfo_box .select_content>span {
max-width: 100px;
display: inline-block;
white-space: nowrap;
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
}
.select_input{
height: 100%;
flex: 1;
float: left;
width: 100px;
}
.select_input input{
width: calc(100% - 1px);
height: 100%;
border: none;
float: left;
padding-left: 5px !important;
box-sizing: border-box;
color: $--color-text-regular;
outline: none;
}
.select_input input:focus {
border:none;
box-shadow:none;
outline: none;
}
.select_input .select_info_list{
position: fixed;
width: auto;
max-height: 240px;
padding: 5px 0;
background: $--background-color-empty;
border: 1px solid $--border-color-light;
border-radius: 3px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
overflow-y: auto;
z-index: 9999;
}
.select_info_list ul li{
padding: 5px 10px;
line-height: 20px;
text-overflow: ellipsis;
width: 150px;
word-break: break-all;
white-space: nowrap;
overflow: hidden;
}
.select_info_list ul li:hover{
background: darken($--background-color-base, 10%);
cursor: pointer;
}
.sreach_input .input{
flex: 1;
height: 100%;
padding-left: 10px !important;
box-sizing: border-box;
position: relative;
}
.sreach_input .input input{
width: 100%;
height: 100%;
border: none;
padding: 0 !important;
float: left;
}
.sreach_box input:focus {
outline: none;
border-color: transparent;
box-shadow: none;
}
.sreach_input input::placeholder{
color: $--color-text-regular;
}
.input_list{
position: fixed;
width: auto;
max-width: 400px;
max-height: 240px;
min-width: 300px;
background: $--background-color-empty;
border-radius: 3px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 101;
overflow-y: auto;
font-size: 12px;
}
.input_list ul{
padding: 4px 0;
}
.input_list ul li{
padding: 4px 10px;
line-height: 16px;
height: 20px;
}
.input_list ul li:hover{
background: darken($--background-color-base, 10%);
cursor:pointer;
}
.search-style-ind{
background: darken($--background-color-base, 10%);
cursor:pointer;
}
.sreach_fixe>i{
margin-right: 15px;
}
.is-disabled{
color: #C0C4CC;
cursor: not-allowed !important;
background: $--background-color-empty !important;
}
li {
list-style: none;
}