Varia: Remove calc()
from Cover Block height variable in favor of regular math when compiled
This commit is contained in:
parent
99a8731642
commit
371d5f3db4
14 changed files with 14 additions and 14 deletions
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
/**
|
||||
|
|
|
@ -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 */
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue