From 521fd0be355dea11cecc9521999cea38b76b1bc8 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 13 Mar 2019 15:35:33 -0400 Subject: [PATCH] moving the central swing logo inside of the head-img container to position it --- css/app.css | 10 ++++++++-- header.php | 12 +----------- page-golf-template.php | 7 +++++++ scss/_page.header.scss | 10 ++++++++-- style.css | 2 +- 5 files changed, 25 insertions(+), 16 deletions(-) diff --git a/css/app.css b/css/app.css index b2d47a3..3d75266 100644 --- a/css/app.css +++ b/css/app.css @@ -6815,8 +6815,14 @@ header#page-header { transform: rotate(45deg); } #golf-logo-img { - position: relative; - bottom: -17px; } + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } + @media only screen and (max-width: 40em) { + #golf-logo-img { + max-width: 200px; + top: 43%; } } #sm-logo { position: absolute; diff --git a/header.php b/header.php index de940ec..d17f99a 100644 --- a/header.php +++ b/header.php @@ -4,7 +4,7 @@ <?php wp_title(); ?> - + @@ -85,15 +85,5 @@ Note 2: 'Nb cols' parameter for Bootstrap only. - - ID ) == "page-golf-template.php") { ?> -
-
- -
-
- - - diff --git a/page-golf-template.php b/page-golf-template.php index 84720b1..0627656 100644 --- a/page-golf-template.php +++ b/page-golf-template.php @@ -7,6 +7,13 @@
+ ID ) == "page-golf-template.php") { ?> +
+
+ +
+
+
diff --git a/scss/_page.header.scss b/scss/_page.header.scss index ea17b7d..0bd0a72 100644 --- a/scss/_page.header.scss +++ b/scss/_page.header.scss @@ -131,8 +131,14 @@ header#page-header { // } } #golf-logo-img { - position: relative; - bottom: -17px; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + @media #{$small-only}{ + max-width: 200px; + top: 43%; + } } #sm-logo { position: absolute; diff --git a/style.css b/style.css index a6064c4..5a9b65b 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: MountPleasantCVB Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for MountPleasantCVB -Version: 1.2.54 +Version: 1.2.55 */ -- 2.17.1