Vary global search width depending on focus.

issue8125
review62441002
This commit is contained in:
Cédric Krier committed 2019-03-04 18:46:02 +01:00
1 parent debb6575db
commit c945abf0db
1 file changed
+13
+13
View File
@@ -44,6 +44,19 @@
}
}
@media screen and (min-width: @screen-sm-min) {
#global-search-entry {
width: 10em;
-webkit-transition: width .5s ease;
-o-transition: width .5s ease;
transition: width .5s ease;
.global-search-container:focus-within & {
width: 20em;
}
}
}
#user-preferences > a {
max-width: 20em;
overflow: hidden;