Move mixins to a separate file
// FREEBIE
This commit is contained in:
parent
a5ec2321fd
commit
fe62d86d37
3 changed files with 20 additions and 17 deletions
17
stylesheets/_mixins.scss
Normal file
17
stylesheets/_mixins.scss
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
@mixin color-svg($svg, $color) {
|
||||||
|
-webkit-mask: url($svg) no-repeat center;
|
||||||
|
-webkit-mask-size: 100%;
|
||||||
|
background-color: $color;
|
||||||
|
}
|
||||||
|
@mixin header-icon-white($svg) {
|
||||||
|
@include color-svg($svg, rgba(255,255,255, 0.8));
|
||||||
|
&:focus, &:hover {
|
||||||
|
@include color-svg($svg, white);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin header-icon-black($svg) {
|
||||||
|
@include color-svg($svg, rgba(0,0,0, 0.5));
|
||||||
|
&:focus, &:hover {
|
||||||
|
@include color-svg($svg, black);
|
||||||
|
}
|
||||||
|
}
|
|
@ -42,20 +42,3 @@ $big-avatar-min-width: 900px;
|
||||||
|
|
||||||
$border-radius: 5px;
|
$border-radius: 5px;
|
||||||
|
|
||||||
@mixin color-svg($svg, $color) {
|
|
||||||
-webkit-mask: url($svg) no-repeat center;
|
|
||||||
-webkit-mask-size: 100%;
|
|
||||||
background-color: $color;
|
|
||||||
}
|
|
||||||
@mixin header-icon-white($svg) {
|
|
||||||
@include color-svg($svg, rgba(255,255,255, 0.8));
|
|
||||||
&:focus, &:hover {
|
|
||||||
@include color-svg($svg, white);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@mixin header-icon-black($svg) {
|
|
||||||
@include color-svg($svg, rgba(0,0,0, 0.5));
|
|
||||||
&:focus, &:hover {
|
|
||||||
@include color-svg($svg, black);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
|
|
||||||
// Global Settings, Variables, and Mixins
|
// Global Settings, Variables, and Mixins
|
||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
@import 'mixins';
|
||||||
@import 'global';
|
@import 'global';
|
||||||
|
|
||||||
|
// Components
|
||||||
@import 'progress';
|
@import 'progress';
|
||||||
|
|
||||||
// Build the main view
|
// Build the main view
|
||||||
|
|
Loading…
Reference in a new issue