From: Ian Weller Date: Tue, 12 Apr 2016 18:30:39 +0000 (-0400) Subject: updating the blocks so everything is contained X-Git-Tag: v1.0.0^2~49 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=bf6b97844f17a63f9d02c6175c8b94eba664f8c5;p=WP-Themes%2Fgaslightmedia.git updating the blocks so everything is contained --- diff --git a/css/app.css b/css/app.css index bf2af5a..e27b0d8 100644 --- a/css/app.css +++ b/css/app.css @@ -6583,7 +6583,6 @@ h2#block-title { width: 100%; height: auto; } .blocks .block:hover .block-text { - padding: 0 10px 10px; font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.05em; @@ -6595,16 +6594,17 @@ h2#block-title { display: none; position: absolute; top: 0; - left: 0; - right: 0; - text-align: center; } + left: 15px; + right: 15px; + float: none; + margin: 0 auto; + width: 90%; } .blocks .overlay:hover:before { position: absolute; content: ''; top: 0; left: 15px; right: 15px; - width: 92.5%; height: 100%; display: block; background: rgba(0, 0, 0, 0.8); } diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php index aa0b564..5301456 100644 --- a/parts/glm-blocks.php +++ b/parts/glm-blocks.php @@ -6,8 +6,7 @@ ID); ?> url):?> - externalUrl){echo ' target="_blank"';}?>> +
@@ -16,7 +15,7 @@
-

+

post_title;?>

post_content . $block->post_excerpt;?>

@@ -26,7 +25,6 @@
url):?> -
diff --git a/scss/_main.scss b/scss/_main.scss index 4250431..10e3a10 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -91,7 +91,6 @@ h2#block-title { } &:hover { .block-text { - padding: 0 10px 10px; font-size: rem-calc(28); text-transform: uppercase; letter-spacing: 0.05em; @@ -106,9 +105,11 @@ h2#block-title { display: none; position: absolute; top: 0; - left: 0; - right: 0; - text-align: center; + left: 15px; + right: 15px; + float: none; + margin: 0 auto; + width: 90%; } } & .overlay { @@ -119,7 +120,6 @@ h2#block-title { top: 0; left: 15px; right: 15px; - width: 92.5%; height: 100%; display: block; background: rgba($black, 0.80);