mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +03:00
woohoo, first successful sass conversion/compilation
This commit is contained in:
parent
485735a249
commit
a121b174a0
23
Gruntfile.js
23
Gruntfile.js
|
@ -23,6 +23,13 @@ module.exports = function (grunt) {
|
||||||
replacement: '@extend .shadow-z-$1$2;',
|
replacement: '@extend .shadow-z-$1$2;',
|
||||||
order: 2
|
order: 2
|
||||||
},
|
},
|
||||||
|
// bad conversions of .shadow-z-*
|
||||||
|
{ // https://regex101.com/r/pV0yB0/2
|
||||||
|
pattern: /\.shadow-z-(\d+)((?:-hover)?)(?:\(\))?;/gi,
|
||||||
|
replacement: '@extend .shadow-z-$1$2;',
|
||||||
|
order: 2
|
||||||
|
},
|
||||||
|
|
||||||
// bad conversions to @include instead of @extend
|
// bad conversions to @include instead of @extend
|
||||||
{
|
{
|
||||||
pattern: /@include (foo1|foo2)\(\);/gi,
|
pattern: /@include (foo1|foo2)\(\);/gi,
|
||||||
|
@ -30,6 +37,22 @@ module.exports = function (grunt) {
|
||||||
order: 2
|
order: 2
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// hack - (no conditional replacements)
|
||||||
|
{ // https://regex101.com/r/pV0yB0/2
|
||||||
|
pattern: /@extend @extend/gi,
|
||||||
|
replacement: '@extend',
|
||||||
|
order: 10
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// .variations need quoted properties?
|
||||||
|
//{ // Multi-line replacement - https://regex101.com/r/nA6zX9/1
|
||||||
|
// pattern: /@include variations\(unquote\(("([^"]+)?")\), (\w+(?:-\w+)?), ((?:\$|#)?\w+(?:-\w+)?)\);/gi,
|
||||||
|
// replacement: '@include variations(unquote($1), \"$3\", $4);\n',
|
||||||
|
// order: 19
|
||||||
|
//},
|
||||||
|
|
||||||
|
|
||||||
// button variations mixin replacement(s)
|
// button variations mixin replacement(s)
|
||||||
{ // Multi-line replacement - https://regex101.com/r/qD9qB8/2
|
{ // Multi-line replacement - https://regex101.com/r/qD9qB8/2
|
||||||
pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)contrast[\s\S]+?(?!\r|\n)(\d+)[\s\S]+?(?!\r|\n)}\);$\n/mg,
|
pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)contrast[\s\S]+?(?!\r|\n)(\d+)[\s\S]+?(?!\r|\n)}\);$\n/mg,
|
||||||
|
|
|
@ -12,7 +12,7 @@ hr {
|
||||||
(-o-device-pixel-ratio: 3/4),
|
(-o-device-pixel-ratio: 3/4),
|
||||||
(min-device-pixel-ratio: 0.75),
|
(min-device-pixel-ratio: 0.75),
|
||||||
(min-resolution: 0.75dppx),
|
(min-resolution: 0.75dppx),
|
||||||
(min-resolution: 120dpi), {
|
(min-resolution: 120dpi) {
|
||||||
height:0.75px;
|
height:0.75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
@include variations(unquote(" > .panel-heading"), background-color, $grey-200);
|
@include variations(unquote(" > .panel-heading"), background-color, $grey-200);
|
||||||
.shadow-z-1;
|
@extend .shadow-z-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
color: $darkbg-text;
|
color: $darkbg-text;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
.shadow-z-1;
|
@extend .shadow-z-1;
|
||||||
|
|
||||||
// Animation
|
// Animation
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user