primevue-mirror/assets/styles/layout/_docsearch.scss

150 lines
3.8 KiB
SCSS

.DocSearch-Button {
border-radius: var(--p-border-radius);
border: 1px solid var(--p-surface-border);
height: 2rem;
background-color: var(--p-surface-card);
margin: 0;
transition: all .3s;
padding: 0 .5rem;
@include focus-visible();
&:hover {
border-color: var(--p-primary-color);
}
&:hover {
border-color: var(--p-primary-color);
box-shadow: none;
}
.DocSearch-Search-Icon {
width: 1rem;
height: 1rem;
}
.DocSearch-Button-Keys {
overflow: hidden;
min-width: auto;
height: auto;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
width: auto;
padding: 0;
gap: 2px;
.DocSearch-Button-Key {
background: transparent;
display: flex;
padding: 0;
margin: 0;
top: 0;
border-radius: 0;
height: auto;
width: auto;
font-family: var(--p-font-family);
&:first-child {
font-size: 0.75rem;
line-height: normal;
}
&:last-child {
justify-content: start;
align-items: center;
font-size: 0.75rem;
position: relative;
&::before {
content: "\e90d";
display: flex;
color: var(--p-text-color);
font-family: "primeicons";
font-size: .4rem;
opacity: .7;
margin-right: 2px;
height: 13.5px;
align-items: center;
font-weight: 700;
}
}
}
}
}
.DocSearch-Container {
z-index: 1101;
}
.DocSearch-Modal {
border: 1px solid var(--p-surface-border);
box-shadow: none;
}
.DocSearch-Footer {
box-shadow: none;
border-top: 1px solid var(--p-surface-border);
background-color: var(--p-surface-overlay);
}
.DocSearch-Form {
background: var(--p-surface-card);
box-shadow: none;
border: 1px solid var(--p-surface-border);
border-radius: var(--p-border-radius);
transition: border-color .3s;
&:hover {
border-color: var(--p-primary-color);
}
.DocSearch-MagnifierLabel, .DocSearch-Reset {
color: var(--text-color);
}
}
.DocSearch-Hit {
border-bottom: 1px solid var(--p-surface-border);
padding-bottom: 0;
margin-bottom: .25rem;
}
.DocSearch-Hit-source {
color: var(--p-primary-color);
}
.DocSearch-Logo .cls-1, .DocSearch-Logo .cls-2 {
fill: var(--p-primary-color);
}
.DocSearch-Prefill {
color: var(--p-primary-color);
}
.DocSearch-Button-Placeholder {
text-align: center;
display: inline-block;
font-size: .875rem;
}
:root {
--docsearch-searchbox-focus-background: var(--p-surface-card);
--docsearch-text-color: var(--p-text-color);
--docsearch-muted-color: var(--p-text-color);
--docsearch-searchbox-background: var(--p-surface-card);
--docsearch-text-color: var(--p-text-color);
--docsearch-modal-background: var(--p-surface-overlay);
--docsearch-key-gradient: var(--p-surface-ground);
--docsearch-key-shadow: none;
--docsearch-container-background: var(--p-mask-bg);
--docsearch-hit-background: var(--p-surface-overlay);
--docsearch-hit-shadow: none;
--docsearch-spacing: 1rem;
--docsearch-hit-color: var(--p-text-color);
--docsearch-highlight-color: var(--p-primary-color);
--docsearch-hit-active-color: var(--p-primary-color-inverse);
}