85 lines
1.7 KiB
CSS
85 lines
1.7 KiB
CSS
.DocSearch-Button {
|
|
align-items: center;
|
|
background: var(--docsearch-searchbox-background);
|
|
border: 0;
|
|
border-radius: 40px;
|
|
color: var(--docsearch-muted-color);
|
|
cursor: pointer;
|
|
display: flex;
|
|
font-weight: 500;
|
|
height: 36px;
|
|
justify-content: space-between;
|
|
margin: 0 0 0 16px;
|
|
padding: 0 8px;
|
|
user-select: none;
|
|
}
|
|
|
|
.DocSearch-Button:hover,
|
|
.DocSearch-Button:active,
|
|
.DocSearch-Button:focus {
|
|
background: var(--docsearch-searchbox-focus-background);
|
|
box-shadow: var(--docsearch-searchbox-shadow);
|
|
color: var(--docsearch-text-color);
|
|
outline: none;
|
|
}
|
|
|
|
.DocSearch-Button-Container {
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.DocSearch-Search-Icon {
|
|
stroke-width: 1.6;
|
|
}
|
|
|
|
.DocSearch-Button .DocSearch-Search-Icon {
|
|
color: var(--docsearch-text-color);
|
|
}
|
|
|
|
.DocSearch-Button-Placeholder {
|
|
font-size: 1rem;
|
|
padding: 0 12px 0 6px;
|
|
}
|
|
|
|
.DocSearch-Button-Keys {
|
|
display: flex;
|
|
min-width: calc(2 * 20px + 2 * 0.4em);
|
|
}
|
|
|
|
.DocSearch-Button-Key {
|
|
align-items: center;
|
|
background: var(--docsearch-key-gradient);
|
|
border-radius: 3px;
|
|
box-shadow: var(--docsearch-key-shadow);
|
|
color: var(--docsearch-muted-color);
|
|
display: flex;
|
|
height: 18px;
|
|
justify-content: center;
|
|
margin-right: 0.4em;
|
|
position: relative;
|
|
padding: 0 0 2px;
|
|
border: 0;
|
|
top: -1px;
|
|
width: 20px;
|
|
transition-property: all;
|
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
transition-duration: 100ms;
|
|
}
|
|
|
|
@media (prefers-reduced-motion) {
|
|
.DocSearch-Button-Key {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.DocSearch-Button-Key--pressed {
|
|
transform: translate3d(0, 1px, 0);
|
|
box-shadow: var(--docsearch-key-pressed-shadow);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.DocSearch-Button-Keys,
|
|
.DocSearch-Button-Placeholder {
|
|
display: none;
|
|
}
|
|
}
|