From: Ian Weller Date: Fri, 31 Mar 2017 19:34:36 +0000 (-0400) Subject: I added the new graphic to the header X-Git-Tag: v1.2.22^2~20 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fabc4cafda970fc65378f3785f847170688f7fb5;p=WP-Themes%2Fmountpleasantwow.git I added the new graphic to the header I added the new golf swing graphic to the nav bar. It doesn't match what Collins thinks may be best, but to keep the topbar nav consistant, it has to be in the positon it is in now. --- diff --git a/assets/central-swing-nav-graphic.png b/assets/central-swing-nav-graphic.png new file mode 100644 index 0000000..89c40aa Binary files /dev/null and b/assets/central-swing-nav-graphic.png differ diff --git a/css/app.css b/css/app.css index cd2e1ee..9753257 100644 --- a/css/app.css +++ b/css/app.css @@ -6608,6 +6608,27 @@ ul#sec-nav { border-top-right-radius: 10px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } + .top-bar-section ul li:last-child:not(.has-form) { + top: -65px; } + .top-bar-section ul li:last-child:not(.has-form) a:not(.button) { + background-image: url(../assets/central-swing-nav-graphic.png); + background-position: top left; + background-repeat: no-repeat; + color: transparent; + width: 192px; + min-height: 107px; } + .top-bar-section ul li:last-child:not(.has-form) a:not(.button):hover { + width: 192px; + background: #1479b0; + color: transparent; + background-image: url(../assets/central-swing-nav-graphic.png); + background-position: top left; + background-repeat: no-repeat; } + .top-bar-section ul li:last-child:not(.has-form) .dropdown li { + top: auto; } + .top-bar-section ul li:last-child:not(.has-form) .dropdown li a { + min-height: 0; + width: 100%; } .top-bar-section ul li .dropdown { z-index: 1; position: relative; @@ -6663,7 +6684,9 @@ ul#sec-nav { line-height: 1.2; padding: 0; text-transform: none; - text-align: left; } + text-align: left; + min-height: 0; + width: 100%; } .top-bar-section ul li .dropdown li.active:not(.has-form) a:not(.button) { color: #690433; padding: 0; @@ -6672,6 +6695,9 @@ ul#sec-nav { text-transform: none; } .top-bar-section ul li .dropdown li.active:not(.has-form) a:not(.button):hover { background: transparent; } + .top-bar-section ul li .dropdown li:last-child { + top: auto; + height: auto; } .top-bar-section ul li.drop-left > .dropdown { right: 0 !important; left: auto !important; diff --git a/header.php b/header.php index a013531..55c678f 100644 --- a/header.php +++ b/header.php @@ -53,7 +53,7 @@ Note 2: 'Nb cols' parameter for Bootstrap only. -
+
  • Home
  • @@ -66,9 +66,6 @@ Note 2: 'Nb cols' parameter for Bootstrap only.
-
- -
diff --git a/scss/_topbar.scss b/scss/_topbar.scss index 8e6dbd5..3ee12be 100644 --- a/scss/_topbar.scss +++ b/scss/_topbar.scss @@ -60,9 +60,6 @@ // text-shadow: -1 0 1px $d-blue; // text-shadow: 0 -1 1px $d-blue; } - } - &:last-child { - } &.menu-item-has-children.has-dropdown { a { @@ -78,6 +75,36 @@ } } } + &:last-child { + &:not(.has-form) { + top: -65px; + a:not(.button) { + background-image: url(../assets/central-swing-nav-graphic.png); + background-position: top left; + background-repeat: no-repeat; + color: transparent; + width: 192px; + min-height: 107px; + &:hover { + width: 192px; + background: $blue; + color: transparent; + background-image: url(../assets/central-swing-nav-graphic.png); + background-position: top left; + background-repeat: no-repeat; + } + } + .dropdown { + li { + top: auto; + a { + min-height: 0; + width: 100%; + } + } + } + } + } .dropdown { z-index: 1; position: relative; @@ -145,6 +172,8 @@ padding: 0; text-transform: none; text-align: left; + min-height: 0; + width: 100%; } } &.active:not(.has-form) a:not(.button) { @@ -157,6 +186,16 @@ background: transparent; } } + &:last-child { + top: auto; + height: auto; +// a { +// color: $black; +// &:hover { +// color: $blue; +// } +// } + } } } &.drop-left > .dropdown {