Commit b0fb68c191709c598ca6378914fd4f2da95dfb3a
1 parent
292dffc2
Exists in
master
and in
4 other branches
Add transition on search box
It's kind of cool trend to use animated-expanding search box nowadays. E.g. see Github.
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
@@ -24,6 +24,14 @@ | @@ -24,6 +24,14 @@ | ||
24 | background-image: -o-linear-gradient($from, $to); | 24 | background-image: -o-linear-gradient($from, $to); |
25 | } | 25 | } |
26 | 26 | ||
27 | +@mixin transition($transition) { | ||
28 | + -webkit-transition: $transition; | ||
29 | + -moz-transition: $transition; | ||
30 | + -ms-transition: $transition; | ||
31 | + -o-transition: $transition; | ||
32 | + transition: $transition; | ||
33 | +} | ||
34 | + | ||
27 | /** | 35 | /** |
28 | * Prefilled mixins | 36 | * Prefilled mixins |
29 | * Mixins with fixed values | 37 | * Mixins with fixed values |
app/assets/stylesheets/sections/header.scss
@@ -90,6 +90,7 @@ header { | @@ -90,6 +90,7 @@ header { | ||
90 | @include border-radius(3px); | 90 | @include border-radius(3px); |
91 | border: 1px solid #c6c6c6; | 91 | border: 1px solid #c6c6c6; |
92 | box-shadow: none; | 92 | box-shadow: none; |
93 | + @include transition(all 0.15s ease-in 0s); | ||
93 | &:focus { | 94 | &:focus { |
94 | @extend .span3; | 95 | @extend .span3; |
95 | } | 96 | } |