siyuan/app/src/assets/scss/_search.scss

168 lines
3 KiB
SCSS

.search {
&__layout {
display: flex;
flex: 1;
min-height: 0.1px;
flex-direction: column;
&--row {
flex-direction: row;
.search__preview {
border-top: 0;
border-left: 1px solid var(--b3-theme-surface-lighter);
}
.search__drag {
cursor: col-resize;
width: 6px;
margin: 0 -6px 0 0;
height: auto;
&:after {
width: 0.5px;
height: 100%;
}
}
}
}
&__header {
display: flex;
background: var(--b3-theme-background);
position: relative;
border-bottom: 1px solid var(--b3-theme-surface-lighter);
.block__icon {
opacity: 1;
}
.b3-text-field--text {
font-size: 18px;
height: 42px;
line-height: 32px;
border-radius: 0;
padding: 5px 8px 5px 44px !important;
box-shadow: none;
width: 100%;
}
.b3-form__icon-icon {
top: 13px;
left: 8px;
}
.b3-menu {
max-width: 70%;
max-height: 50vh;
overflow: auto;
top: 42px;
position: absolute;
left: 8px;
}
}
&__arrowdown {
position: absolute;
height: 10px;
width: 10px;
left: 26px;
top: 17px;
}
&__label {
cursor: pointer;
flex: 1;
&:hover {
color: var(--b3-theme-on-background);
}
.b3-form__icon-input {
width: 0;
transition: var(--b3-transition);
border-color: transparent;
box-sizing: border-box;
padding-right: 0;
border-radius: 2px;
&:focus,
&.search__input--block {
width: 100%;
border-color: var(--b3-theme-primary);
}
}
}
&__preview {
background-color: var(--b3-theme-background);
border-top: 1px solid var(--b3-theme-surface-lighter);
}
&__result {
white-space: nowrap;
margin-left: 5px;
line-height: 24px;
}
&__drag {
cursor: row-resize;
width: 100%;
margin: 0 0 -6px 0;
height: 6px;
position: relative;
z-index: 2;
&:after {
content: "";
display: block;
background-color: var(--b3-border-color);
position: absolute;
left: 0;
transition: var(--b3-transition);
top: 0;
width: 100%;
height: 0.5px;
}
&:hover:after {
background-color: var(--b3-scroll-color);
}
}
&__list {
position: relative;
flex: 1;
overflow: auto;
padding: 8px 0;
.b3-list-item__text {
user-select: none;
}
}
&__path {
white-space: nowrap;
position: relative;
padding-right: 20px;
}
&__rmpath {
position: absolute;
height: 8px;
width: 8px;
padding: 4px;
border-radius: 10px;
color: var(--b3-theme-on-surface);
background-color: var(--b3-theme-surface);
transition: var(--b3-transition);
top: 1px;
right: 0px;
cursor: pointer;
&:hover {
color: var(--b3-theme-on-background);
background-color: var(--b3-theme-background-light);
}
}
}