Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Add CSS transition on search-bar background #171

Merged
merged 1 commit into from
Apr 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/scss/includes/search_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ input[type="search"]::-webkit-search-cancel-button {

.top_bar--small {

background: none;
background-size: 0;

.search_form {

Expand Down
2 changes: 2 additions & 0 deletions src/scss/includes/top_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
background: url('../images/backgrounds/top_desktop.svg') no-repeat;
background-size: 820px;
pointer-events: none;
transition: background-size .3s;
}

@media (max-width: 640px) {
Expand All @@ -13,5 +14,6 @@
width: 100%;
background: url('../images/backgrounds/top_mobile.svg') no-repeat;
background-size: 100%;
transition: background-size 0s;
}
}