Move some mixins

old
Javi Velasco 2016-06-04 16:36:17 +02:00
parent fbca206e49
commit 96599d3a09
7 changed files with 68 additions and 68 deletions

View File

@ -258,21 +258,3 @@
height: 0;
}
}
@mixin btn-colors($name, $color, $background, $hover) {
.#{$name}:not([disabled]) {
&.raised, &.floating {
color: $color;
background: $background;
}
&.flat, &.toggle {
color: $background;
&:focus:not(:active) {
background: $hover;
}
}
&.flat:hover {
background: $hover;
}
}
}

View File

@ -0,0 +1,17 @@
@mixin btn-colors($name, $color, $background, $hover) {
.#{$name}:not([disabled]) {
&.raised, &.floating {
color: $color;
background: $background;
}
&.flat, &.toggle {
color: $background;
&:focus:not(:active) {
background: $hover;
}
}
&.flat:hover {
background: $hover;
}
}
}

View File

@ -1,5 +1,6 @@
@import "../base";
@import "./config";
@import "./mixins";
.button {
position: relative;

View File

@ -258,21 +258,3 @@
height: 0;
}
}
@mixin btn-colors($name, $color, $background, $hover) {
.#{$name}:not([disabled]) {
&.raised, &.floating {
color: $color;
background: $background;
}
&.flat, &.toggle {
color: $background;
&:focus:not(:active) {
background: $hover;
}
}
&.flat:hover {
background: $hover;
}
}
}

17
lib/button/_mixins.scss Normal file
View File

@ -0,0 +1,17 @@
@mixin btn-colors($name, $color, $background, $hover) {
.#{$name}:not([disabled]) {
&.raised, &.floating {
color: $color;
background: $background;
}
&.flat, &.toggle {
color: $background;
&:focus:not(:active) {
background: $hover;
}
}
&.flat:hover {
background: $hover;
}
}
}

View File

@ -1,5 +1,6 @@
@import "../base";
@import "./config";
@import "./mixins";
.button {
position: relative;