Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
refactor(docsearch): lint CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Aug 25, 2020
1 parent 35ba7ea commit 896f393
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/docsearch-css/src/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@
/* Modal Dropdown */

.DocSearch-Dropdown {
min-height: var(--docsearch-spacing);
max-height: calc(
var(--docsearch-modal-height) - var(--docsearch-searchbox-height) -
var(--docsearch-spacing) - var(--docsearch-footer-height)
);
min-height: var(--docsearch-spacing);
overflow-y: auto; /* firefox */
overflow-y: overlay;
padding: 0 var(--docsearch-spacing);
Expand Down Expand Up @@ -383,6 +383,14 @@ svg.DocSearch-Hit-Select-Icon {
display: block;
}

@media screen and (prefers-reduced-motion: reduce) {
.DocSearch-Hit-action-button:hover,
.DocSearch-Hit-action-button:focus {
background: rgba(0, 0, 0, 0.2);
transition: none;
}
}

.DocSearch-Hit-action-button:hover,
.DocSearch-Hit-action-button:focus {
background: rgba(0, 0, 0, 0.2);
Expand Down

0 comments on commit 896f393

Please sign in to comment.