Varia: Remove calc() from Cover Block height variable in favor of regular math when compiled

This commit is contained in:
Allan Cole 2019-08-21 14:21:27 -04:00
parent 99a8731642
commit 371d5f3db4
14 changed files with 14 additions and 14 deletions

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 18 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{18 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 18 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{18 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "background", "default")},
"background": #{map-deep-get($config-global, "color", "foreground", "default")},

View file

@ -2,7 +2,7 @@
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "white")},
"background": #{map-deep-get($config-global, "color", "black")},

View file

@ -188,7 +188,7 @@ $config-button: (
* Cover
*/
$config-cover: (
"height": calc( 15 * #{map-deep-get($config-global, "spacing", "vertical")} ),
"height": #{15 * map-deep-get($config-global, "spacing", "vertical")},
"color": (
"foreground": #{map-deep-get($config-global, "color", "white")},
"background": #{map-deep-get($config-global, "color", "black")},

View file

@ -284,7 +284,7 @@ object {
.wp-block-cover,
.wp-block-cover-image {
background-color: #444444;
min-height: calc( 15 * 32px);
min-height: 480px;
/* Treating H2 separately to account for legacy /core styles */
}

View file

@ -1172,7 +1172,7 @@ input.has-focus[type="submit"],
.wp-block-cover,
.wp-block-cover-image {
background-color: black;
min-height: calc( 15 * 32px);
min-height: 480px;
margin: inherit;
/* Treating H2 separately to account for legacy /core styles */
/**

View file

@ -1172,7 +1172,7 @@ input.has-focus[type="submit"],
.wp-block-cover,
.wp-block-cover-image {
background-color: black;
min-height: calc( 15 * 32px);
min-height: 480px;
margin: inherit;
/* Treating H2 separately to account for legacy /core styles */
/**