mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
variant: normalize whole color value #188
This commit is contained in:
parent
bad3af5889
commit
e4f0ed138c
1 changed files with 5 additions and 5 deletions
|
@ -241,11 +241,11 @@ var variants = {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
c = c.trim();
|
c = c.trim();
|
||||||
c = c.replace( /\s*\(\s*/, "( " );
|
c = c.replace( /\s*\(\s*/g, "( " );
|
||||||
c = c.replace( /\s*\)\s*/, " )" );
|
c = c.replace( /\s*\)\s*/g, " )" );
|
||||||
c = c.replace( /\s*,\s*/, ", " );
|
c = c.replace( /\s*,\s*/g, ", " );
|
||||||
c = c.replace( /0*\./, "." );
|
c = c.replace( /0*\./g, "." );
|
||||||
c = c.replace( / +/, " " );
|
c = c.replace( / +/g, " " );
|
||||||
return c;
|
return c;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue