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

148 lines
3.8 KiB
SCSS
Raw Normal View History

2023-10-12 09:58:41 +00:00
.DocSearch-Button {
2024-02-11 21:25:50 +00:00
border-radius: 6px;
border: 1px solid var(--border-color);
2023-10-13 08:20:56 +00:00
height: 2rem;
2024-02-11 21:25:50 +00:00
background-color: var(--card-background);
2023-10-12 09:58:41 +00:00
margin: 0;
2024-02-11 21:25:50 +00:00
transition: outline-color .2s, border-color .2s;
outline-color: transparent;
2023-10-13 08:20:56 +00:00
padding: 0 .5rem;
2023-10-13 22:09:30 +00:00
@include focus-visible();
2023-10-12 09:58:41 +00:00
&:hover {
2024-02-11 21:25:50 +00:00
border-color: var(--primary-color);
2023-10-12 09:58:41 +00:00
box-shadow: none;
}
.DocSearch-Search-Icon {
2023-10-13 08:20:56 +00:00
width: 1rem;
height: 1rem;
2023-10-12 09:58:41 +00:00
}
.DocSearch-Button-Keys {
overflow: hidden;
min-width: auto;
2023-10-13 21:28:14 +00:00
height: auto;
2023-10-13 08:20:56 +00:00
background: transparent;
2023-10-12 09:58:41 +00:00
display: flex;
align-items: center;
justify-content: center;
width: auto;
2023-10-13 21:28:14 +00:00
padding: 0;
2023-10-12 09:58:41 +00:00
gap: 2px;
.DocSearch-Button-Key {
background: transparent;
display: flex;
padding: 0;
margin: 0;
top: 0;
border-radius: 0;
height: auto;
width: auto;
2024-02-11 21:25:50 +00:00
font-family: inherit;
2023-10-12 09:58:41 +00:00
&:first-child {
2023-10-13 21:28:14 +00:00
font-size: 0.75rem;
2023-10-13 08:20:56 +00:00
line-height: normal;
2023-10-12 09:58:41 +00:00
}
&:last-child {
justify-content: start;
align-items: center;
2023-10-13 21:28:14 +00:00
font-size: 0.75rem;
2023-10-12 09:58:41 +00:00
position: relative;
2023-10-13 21:28:14 +00:00
2023-10-12 09:58:41 +00:00
&::before {
content: "\e90d";
display: flex;
2024-02-10 08:57:04 +00:00
color: var(--text-color);
2023-10-12 09:58:41 +00:00
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 {
2024-02-11 21:25:50 +00:00
border: 1px solid var(--border-color);
2023-10-12 09:58:41 +00:00
box-shadow: none;
}
.DocSearch-Footer {
box-shadow: none;
2024-02-11 21:25:50 +00:00
border-top: 1px solid var(--border-color);
background-color: var(--overlay-background);
2023-10-12 09:58:41 +00:00
}
.DocSearch-Form {
2024-02-11 21:25:50 +00:00
background: var(--card-background);
2023-10-12 09:58:41 +00:00
box-shadow: none;
2024-02-11 21:25:50 +00:00
border: 1px solid var(--border-color);
border-radius: 6px;
2023-10-12 09:58:41 +00:00
transition: border-color .3s;
&:hover {
2024-02-11 21:25:50 +00:00
border-color: var(--primary-color);
2023-10-12 09:58:41 +00:00
}
.DocSearch-MagnifierLabel, .DocSearch-Reset {
color: var(--text-color);
}
}
.DocSearch-Hit {
2024-02-11 21:25:50 +00:00
border-bottom: 1px solid var(--border-color);
2023-10-12 09:58:41 +00:00
padding-bottom: 0;
margin-bottom: .25rem;
}
.DocSearch-Hit-source {
2024-02-11 21:25:50 +00:00
color: var(--primary-text-color);
2023-10-12 09:58:41 +00:00
}
.DocSearch-Logo .cls-1, .DocSearch-Logo .cls-2 {
2024-02-11 21:25:50 +00:00
fill: var(--primary-text-color);
2023-10-12 09:58:41 +00:00
}
.DocSearch-Prefill {
2024-02-11 21:25:50 +00:00
color: var(--primary-text-color);
2023-10-12 09:58:41 +00:00
}
2023-10-13 08:20:56 +00:00
.DocSearch-Button-Placeholder {
text-align: center;
display: inline-block;
font-size: .875rem;
}
2023-10-12 09:58:41 +00:00
:root {
2024-02-11 21:25:50 +00:00
--docsearch-searchbox-focus-background: var(--card-background);
2024-02-10 08:57:04 +00:00
--docsearch-text-color: var(--text-color);
--docsearch-muted-color: var(--text-color);
2024-02-11 21:25:50 +00:00
--docsearch-searchbox-background: var(--card-background);
2024-02-10 08:57:04 +00:00
--docsearch-text-color: var(--text-color);
2024-02-11 21:25:50 +00:00
--docsearch-modal-background: var(--overlay-background);
--docsearch-key-gradient: var(--ground-background);
2023-10-12 09:58:41 +00:00
--docsearch-key-shadow: none;
2024-02-11 21:25:50 +00:00
--docsearch-container-background: var(--docsearch-mask-background);
--docsearch-hit-background: var(--overlay-background);
2023-10-12 09:58:41 +00:00
--docsearch-hit-shadow: none;
--docsearch-spacing: 1rem;
2024-02-10 08:57:04 +00:00
--docsearch-hit-color: var(--text-color);
2024-02-11 21:25:50 +00:00
--docsearch-highlight-color: var(--primary-color);
--docsearch-hit-active-color: var(--primary-inverse-color);
--docsearch-searchbox-shadow: none;
2023-10-12 09:58:41 +00:00
}