Skip to content

Commit

Permalink
fix(design): animation + spacing search button
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipow committed Apr 10, 2020
1 parent 352592e commit a73d050
Showing 1 changed file with 8 additions and 31 deletions.
39 changes: 8 additions & 31 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ html[data-theme='dark'] {
}

.DocSearch-SearchButton-Placeholder {
margin: 0 1em 0 .5em;
padding: 0 .5em;
font-size: 1rem;
}

Expand All @@ -149,6 +149,7 @@ html[data-theme='dark'] {
color: var(--ifm-color-emphasis-600);
}


/* Body modifier */

.DocSearch--active {
Expand All @@ -159,11 +160,6 @@ html[data-theme='dark'] {
overflow: hidden !important;
}

/* Hide Docusaurus hamburger button when modal is opened */
.DocSearch--active .menu__button {
display: none !important;
}

/* Container & Modal */

.DocSearch-Container,
Expand All @@ -179,16 +175,6 @@ html[data-theme='dark'] {
left: 0;
top: 0;
background-color: var(--docsearch-container-background);
animation: container 0.1s ease-in forwards;
}

@keyframes container {
0% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}

.DocSearch-Container a {
Expand Down Expand Up @@ -289,12 +275,7 @@ html[data-theme='dark'] {
cursor: pointer;
stroke-width: var(--docsearch-icon-stroke-width);
color: var(--docsearch-icon-color);
animation: reset-button .1s ease-in forwards;
}

@keyframes reset-button {
0% {opacity: 0}
100% { opacity: 1}
animation: fade-in .1s ease-in forwards;
}

.DocSearch-Reset[hidden] {
Expand Down Expand Up @@ -639,7 +620,6 @@ html[data-theme='dark'] {
.DocSearch-Container {
height: -webkit-fill-available;
position: absolute;
animation: none;
}

.DocSearch-Footer {
Expand Down Expand Up @@ -678,18 +658,10 @@ html[data-theme='dark'] {
font-size: 1em;
font-weight: 500;
color: var(--docsearch-highlight-color);
animation: cancel-button ease-out 0.2s forwards;
outline: none;
transform: scale(0);
user-select: none;
}

@keyframes cancel-button {
100% {
transform: scale(1);
}
}

.DocSearch-Commands {
display: none;
}
Expand All @@ -703,3 +675,8 @@ html[data-theme='dark'] {
@media (hover: none) and (pointer: coarse) {
/* ... */
}

@keyframes fade-in {
0% {opacity: 0}
100% { opacity: 1}
}

0 comments on commit a73d050

Please sign in to comment.