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/globalSearch/globalSearch.scss
2022-01-17 14:25:39 +08:00

210 lines
5.0 KiB
SCSS

.global-search-bac{
position: fixed;
top: 0;
left: 0;
z-index: 1;
background: rgba(0,0,0,0.2);
height: 100vh;
width: 100vw;
display: flex;
justify-content: space-around;
//align-items: center;
box-sizing: border-box;
padding-top: 80px;
}
.global-search-box.search-after{
height: 82%;
min-height: 894px;
}
.global-search-box {
//background: $--background-color-empty;
background: rgba(0,0,0,0);
width: 80%;
max-width: 1040px;
min-width: 894px;
height: auto;
display: flex;
flex-direction: column;
.global-search-input {
background: $--background-color-empty;
height: 72px;
font-size: 26px;
display: flex;
border-radius: 6px;
line-height: 72px;
.nz-icon-search {
padding-left: 22px;
padding-right: 20px;
font-size: 26px;
color: $--color-text-primary;
.el-loading-mask{
transform: scale(0.7);
}
}
.el-input__inner {
border: none !important;
border-right: 1px solid $--border-color-light !important;
font-size: 26px;
height: 40px;
line-height: 72px;
color: $--color-text-regular;
vertical-align: middle;
}
.global-search-cancel{
font-size: 16px;
letter-spacing: 0;
font-weight: 400;
margin-left: 20px;
margin-right: 20px;
color: $--color-text-primary;
}
}
.global-search-input.search-after{
border-radius: 6px 6px 0 0;
}
.global-search-content{
height: calc(100% - 72px);
display: flex;
flex-direction: column;
background: $--background-color-empty;
border-top: 1px solid $--border-color-light;
.table-no-data{
text-align: center;
}
.global-search-content-content{
flex: 1;
height: calc(100% - 72px);
display: flex;
> div{
width: 50%;
box-sizing: border-box;
height: 100%;
}
.global-search-content-left {
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.14);
}
.global-search-content-right{
.el-skeleton{
height: 100%;
}
}
.list{
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-y: auto;
}
.list-item{
height: 64px;
position: relative;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
outline: none;
border-bottom: 1px solid $--border-color-light;
> div {
width: 100%;
box-sizing: border-box;
padding-left: 20px;
padding-right: 20px;
font-size: 16px;
color: $--color-text-primary;
.nz-icon{
color: $--color-monitor !important;
font-size: 16px;
vertical-align: middle
}
}
.is-jump{
position: absolute;
right: 20px;
top: 20px;
padding: 0;
width: 24px;
height: 24px;
display: none;
.el-loading-mask{
transform: scale(0.5);
}
}
.list-item-content{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.list-item-highlight{
background: none;
color: $--color-primary;
}
}
.list-item-sub{
font-size: 14px;
color: $--color-info;
font-weight: 400;
margin-top: 2px;
padding-left: 40px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.lise-item-active {
background: $--table-row-hover-background-color;
.is-jump{
display: inline-block;
}
}
}
.global-search-footer {
height: 72px;
border-radius: 0 0 6px 6px;
background: $--background-color-empty;
display: flex;
>div{
width: 50%;
box-sizing: border-box;
padding-left: 30px;
}
.global-search-footer-left{
display: flex;
align-items: center;
.keyboard{
background: $--background-color-2;
border: 1px solid $--border-color-light;
border-radius: 5px;
width: 32px;
height: 32px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
margin: 0 8px 0 0;
.nz-icon{
color: $--color-text-regular;
font-size: 16px;
}
}
}
.global-search-footer-right {
display: flex;
align-items: center;
justify-content: space-around;
.scope-box {
cursor: pointer;
color: $--background-color-disabled;
.nz-icon {
margin-right: 5px;
color: $--background-color-disabled ;
}
}
.scope-box.is-select{
color: $--color-monitor;
.nz-icon {
color: $--color-monitor;
}
}
}
}
}
}