Skip to content

Commit

Permalink
[v1.9] optimize search transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxpro committed Jun 21, 2020
1 parent 1ef4318 commit 49025e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions css/hux-blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,15 @@ pre.highlight {
-ms-transform: translate(0, 0) scale(1, 1);
transform: translate(0, 0) scale(1, 1);
}
.search-page.search-active #search-input {
.search-page.search-active .search-main {
opacity: 1;
}
.search-page .search-main {
padding-top: 80px;
height: 100%;
opacity: 0;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
}
.search-page .search-main .row,
.search-page .search-main .row > div {
Expand All @@ -618,9 +621,6 @@ pre.highlight {
font-size: 30px;
font-weight: bold;
color: #404040;
opacity: 0;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
}
@media only screen and (min-width: 768px) {
.search-page #search-input {
Expand Down
Loading

0 comments on commit 49025e6

Please sign in to comment.