fix unquote on calcs

This commit is contained in:
Kevin Ross 2015-11-04 17:02:39 -06:00
parent 427b5046fe
commit d0e45787a0
2 changed files with 9 additions and 1 deletions

View File

@ -90,6 +90,14 @@ module.exports = function (grunt) {
order: 24
},
// fix calc references
{ // https://regex101.com/r/aZ8iI5/1
pattern: /calc\(unquote\("([^"]+)"\)\)/gi,
replacement: 'calc($1)',
order: 24
},
// alert generic-variations (convert this one last - very broad search)
{ // Multi-line replacement - https://regex101.com/r/jB1uL1/1
pattern: /.generic-variations\(unquote\(("([^"]+)?")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+}\);$\n/mg,

View File

@ -31,7 +31,7 @@ select[multiple].form-control {
background-image: linear-gradient($primary, $primary), linear-gradient($input-underline-color, $input-underline-color);
background-size: 0 2px, 100% 1px;
background-repeat: no-repeat;
background-position: center bottom, center calc(unquote("100% - 1px"));
background-position: center bottom, center calc(100% - 1px);
background-color: transparent;
background-color: rgba(0,0,0,0);
transition: background 0s ease-out;