From 371d5f3db460c9e6b5c3f2df606f17a4856272c6 Mon Sep 17 00:00:00 2001 From: Allan Cole Date: Wed, 21 Aug 2019 14:21:27 -0400 Subject: [PATCH] Varia: Remove `calc()` from Cover Block height variable in favor of regular math when compiled --- brompton/sass/_config-child-theme-deep.scss | 2 +- coutoire/sass/_config-child-theme-deep.scss | 2 +- exford/sass/_config-child-theme-deep.scss | 2 +- hever/sass/_config-child-theme-deep.scss | 2 +- leven/sass/_config-child-theme-deep.scss | 2 +- morden/sass/_config-child-theme-deep.scss | 2 +- redhill/sass/_config-child-theme-deep.scss | 2 +- stow/sass/_config-child-theme-deep.scss | 2 +- stratford/sass/_config-child-theme-deep.scss | 2 +- varia/sass/blocks/cover/_config.scss | 2 +- varia/sass/child-theme/_config-child-theme-deep.scss | 2 +- varia/style-editor.css | 2 +- varia/style-rtl.css | 2 +- varia/style.css | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/brompton/sass/_config-child-theme-deep.scss b/brompton/sass/_config-child-theme-deep.scss index 55cab334c..6b48323dc 100644 --- a/brompton/sass/_config-child-theme-deep.scss +++ b/brompton/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/coutoire/sass/_config-child-theme-deep.scss b/coutoire/sass/_config-child-theme-deep.scss index f7269c1fe..d2bbed118 100644 --- a/coutoire/sass/_config-child-theme-deep.scss +++ b/coutoire/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/exford/sass/_config-child-theme-deep.scss b/exford/sass/_config-child-theme-deep.scss index 0955aba3a..c8ba7df72 100644 --- a/exford/sass/_config-child-theme-deep.scss +++ b/exford/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/hever/sass/_config-child-theme-deep.scss b/hever/sass/_config-child-theme-deep.scss index 5b86e2539..5b50f3b88 100644 --- a/hever/sass/_config-child-theme-deep.scss +++ b/hever/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/leven/sass/_config-child-theme-deep.scss b/leven/sass/_config-child-theme-deep.scss index c63df51c8..7b5ff68b6 100644 --- a/leven/sass/_config-child-theme-deep.scss +++ b/leven/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/morden/sass/_config-child-theme-deep.scss b/morden/sass/_config-child-theme-deep.scss index 837c004d6..d2e528a5e 100644 --- a/morden/sass/_config-child-theme-deep.scss +++ b/morden/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/redhill/sass/_config-child-theme-deep.scss b/redhill/sass/_config-child-theme-deep.scss index f884d95fb..63cef03e0 100644 --- a/redhill/sass/_config-child-theme-deep.scss +++ b/redhill/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/stow/sass/_config-child-theme-deep.scss b/stow/sass/_config-child-theme-deep.scss index 5b21e7aad..c94e96940 100644 --- a/stow/sass/_config-child-theme-deep.scss +++ b/stow/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/stratford/sass/_config-child-theme-deep.scss b/stratford/sass/_config-child-theme-deep.scss index 9698106d0..dc9370f28 100644 --- a/stratford/sass/_config-child-theme-deep.scss +++ b/stratford/sass/_config-child-theme-deep.scss @@ -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")}, diff --git a/varia/sass/blocks/cover/_config.scss b/varia/sass/blocks/cover/_config.scss index e2e2bcd44..9c34bf142 100644 --- a/varia/sass/blocks/cover/_config.scss +++ b/varia/sass/blocks/cover/_config.scss @@ -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")}, diff --git a/varia/sass/child-theme/_config-child-theme-deep.scss b/varia/sass/child-theme/_config-child-theme-deep.scss index 30afa54bb..c604ffead 100644 --- a/varia/sass/child-theme/_config-child-theme-deep.scss +++ b/varia/sass/child-theme/_config-child-theme-deep.scss @@ -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")}, diff --git a/varia/style-editor.css b/varia/style-editor.css index 90d89b580..ebb1783b2 100644 --- a/varia/style-editor.css +++ b/varia/style-editor.css @@ -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 */ } diff --git a/varia/style-rtl.css b/varia/style-rtl.css index f7d937f10..e09a8c33b 100644 --- a/varia/style-rtl.css +++ b/varia/style-rtl.css @@ -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 */ /** diff --git a/varia/style.css b/varia/style.css index 97e570869..8a0d8bebe 100644 --- a/varia/style.css +++ b/varia/style.css @@ -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 */ /**