mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-20 13:40:42 +03:00
bg-img-variations replaced
This commit is contained in:
parent
23822f4b24
commit
7f940586d9
10
Gruntfile.js
10
Gruntfile.js
|
@ -49,8 +49,14 @@ module.exports = function(grunt) {
|
||||||
pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)box-shadow[\s\S]+?(?!\r|\n)[\s\S]+?(?!\r|\n)}\);$\n/mg,
|
pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)box-shadow[\s\S]+?(?!\r|\n)[\s\S]+?(?!\r|\n)}\);$\n/mg,
|
||||||
replacement: '@include bg-box-shadow-variations(unquote($1), $2);\n',
|
replacement: '@include bg-box-shadow-variations(unquote($1), $2);\n',
|
||||||
order: 22
|
order: 22
|
||||||
}
|
},
|
||||||
]
|
|
||||||
|
// bg-img generic-variations
|
||||||
|
{ // Multi-line replacement - https://regex101.com/r/aP2hH2/1
|
||||||
|
pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)background-image[\s\S]+?(?!\r|\n)[\s\S]+?(?!\r|\n)}\);$\n/mg,
|
||||||
|
replacement: '@include bg-img-variations(unquote($1), $2);\n',
|
||||||
|
order: 23
|
||||||
|
} ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -197,12 +197,7 @@ fieldset[disabled] .form-control.focus:disabled,
|
||||||
color: $input-info;
|
color: $input-info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.generic-variations(unquote(" .form-control:focus"), $primary, {
|
@include bg-img-variations(unquote(" .form-control:focus"), $primary);
|
||||||
background-image: linear-gradient($material-color, $material-color), linear-gradient($input-underline-color, $input-underline-color);
|
|
||||||
});
|
|
||||||
.generic-variations(unquote(" .form-control.focus"), $primary, {
|
|
||||||
background-image: linear-gradient($material-color, $material-color), linear-gradient($input-underline-color, $input-underline-color);
|
|
||||||
});
|
|
||||||
@include variations(unquote(" .control-label"), color, $lightbg-text);
|
@include variations(unquote(" .control-label"), color, $lightbg-text);
|
||||||
@include variations(unquote(" input.form-control:focus ~ .floating-label"), color, $input-default);
|
@include variations(unquote(" input.form-control:focus ~ .floating-label"), color, $input-default);
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,16 @@
|
||||||
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba($material-color, (10/100));
|
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba($material-color, (10/100));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// bg-img-variations(" label input[type=checkbox]:checked + .toggle:active:after", $primary
|
||||||
|
@mixin bg-img-variations($extra, $default) {
|
||||||
|
@include generic-variations($extra, $default, "bg-img-variations-content", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin bg-img-variations-content($args){
|
||||||
|
$material-color: map-get($args, material-color);
|
||||||
|
background-image: linear-gradient($material-color, $material-color), linear-gradient($input-underline-color, $input-underline-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// interpolation of mixin-name is not allowed evidently, so we statically include based on the mixin-name given
|
// interpolation of mixin-name is not allowed evidently, so we statically include based on the mixin-name given
|
||||||
@mixin call-variations-content-mixin($args) {
|
@mixin call-variations-content-mixin($args) {
|
||||||
|
@ -80,6 +90,8 @@
|
||||||
@include bg-color-variations-content($args);
|
@include bg-color-variations-content($args);
|
||||||
} @else if $mixin-name == bg-box-shadow-variations-content {
|
} @else if $mixin-name == bg-box-shadow-variations-content {
|
||||||
@include bg-box-shadow-variations-content($args);
|
@include bg-box-shadow-variations-content($args);
|
||||||
|
} @else if $mixin-name == bg-img-variations-content {
|
||||||
|
@include bg-img-variations-content($args);
|
||||||
} @else {
|
} @else {
|
||||||
@error "Unknown mixin: #{$mixin-name}"
|
@error "Unknown mixin: #{$mixin-name}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user