2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

transitions mixin and global variable, add it to buttons

This commit is contained in:
Mark Otto
2014-07-13 13:31:07 -07:00
parent a1bd7634d7
commit 66f7062e81
11 changed files with 18 additions and 1277 deletions
+3
View File
@@ -2112,6 +2112,9 @@ select[multiple].form-group-lg .form-control {
background-image: none; background-image: none;
border: 1px solid transparent; border: 1px solid transparent;
border-radius: .2rem; border-radius: .2rem;
-webkit-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
} }
.btn:focus, .btn:focus,
.btn:active:focus, .btn:active:focus,
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1272
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -2112,6 +2112,9 @@ select[multiple].form-group-lg .form-control {
background-image: none; background-image: none;
border: 1px solid transparent; border: 1px solid transparent;
border-radius: .2rem; border-radius: .2rem;
-webkit-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
} }
.btn:focus, .btn:focus,
.btn:active:focus, .btn:active:focus,
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -19,6 +19,7 @@
white-space: nowrap; white-space: nowrap;
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base); .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
user-select: none; user-select: none;
.transition(all .2s ease-in-out);
&, &,
&:active, &:active,
+4
View File
@@ -9,6 +9,10 @@
box-shadow: @arguments; box-shadow: @arguments;
} }
.transition(@transition) when (@enable-transitions = true) {
transition: @arguments;
}
.render-gradient(@start; @end) when (@enable-gradients = true) { .render-gradient(@start; @end) when (@enable-gradients = true) {
#gradient > .vertical(@start-color: @start; @end-color: @end); #gradient > .vertical(@start-color: @start; @end-color: @end);
background-color: @end; background-color: @end;
+1
View File
@@ -43,6 +43,7 @@
@enable-rounded: true; @enable-rounded: true;
@enable-shadows: true; @enable-shadows: true;
@enable-gradients: true; @enable-gradients: true;
@enable-transitions: true;
//== Typography //== Typography