Add transition on search box
It's kind of cool trend to use animated-expanding search box nowadays. E.g. see Github.
This commit is contained in:
parent
292dffc228
commit
b0fb68c191
2 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,14 @@
|
|||
background-image: -o-linear-gradient($from, $to);
|
||||
}
|
||||
|
||||
@mixin transition($transition) {
|
||||
-webkit-transition: $transition;
|
||||
-moz-transition: $transition;
|
||||
-ms-transition: $transition;
|
||||
-o-transition: $transition;
|
||||
transition: $transition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prefilled mixins
|
||||
* Mixins with fixed values
|
||||
|
|
|
@ -90,6 +90,7 @@ header {
|
|||
@include border-radius(3px);
|
||||
border: 1px solid #c6c6c6;
|
||||
box-shadow: none;
|
||||
@include transition(all 0.15s ease-in 0s);
|
||||
&:focus {
|
||||
@extend .span3;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue