windhamdavid 2 years ago
parent
commit
b242d3ed53
2 changed files with 377 additions and 292 deletions
  1. 17 27
      header.php
  2. 360 265
      style.css

+ 17 - 27
header.php

@@ -13,57 +13,47 @@
 <!--[if IE 8]><html class="ie ie8" <?php language_attributes(); ?>><![endif]-->
 <!--[if !(IE 7) | !(IE 8) ]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
 <head>
-
 	<meta charset="<?php bloginfo( 'charset' ); ?>">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title><?php wp_title( '|', true, 'right' ); ?></title>
 	<meta name="description" content="Climate Control Systems of Greenwood has been owned and operated in Greenwood, SC for over 25 years.  We are a full-service heating, ventilation and air conditioning company offering repairs and installations for residential and commercial customers. "/>
 	<meta property="og:image" content="http://www.climategreenwood.com/wp-content/themes/climatecontrol/images/climategreenwood.jpg" />
-	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
+	<meta name="theme-color" content="#ffffff">
 	<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/favicon.ico" />
 	<link rel="apple-touch-icon" sizes="180x180" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/apple-touch-icon.png">
 	<link rel="icon" type="image/png" sizes="32x32" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/favicon-32x32.png">
 	<link rel="icon" type="image/png" sizes="16x16" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/favicon-16x16.png">
 	<link rel="manifest" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/manifest.json">
 	<link rel="mask-icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/safari-pinned-tab.svg" color="#5bbad5">
-	<meta name="theme-color" content="#ffffff">
-	<link href='https://fonts.googleapis.com/css?family=Economica:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
+	<link href="https://fonts.googleapis.com/css?family=Fira+Sans" rel="stylesheet">
 	<!--[if lt IE 9]><script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script><![endif]-->
 	<?php wp_head(); ?>
+	<script src='https://www.google.com/recaptcha/api.js'></script>
 </head>
 <body <?php body_class(); ?>>
-<div id="page" class="hfeed site">
+<div id="page">
 	<header id="masthead" class="site-header" role="banner">
 		<div class="header-main">
 			<div class="inner-wrapper">
+				<div class="logo">
+					<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/climate_control.png" alt="Climate Control Systems of Greenwood Inc."></a>
+				</div>
 				<div class="header-left">
-				<div class="header-left">
+					<div class="phone">
+						<a href="tel:+18642291409">864-229-1409</a>
+					</div>
 					<div class="header-links">
-						<a href='service-request/'>Service Request</a><a href='estimate-request/'>Estimate Request</a></div>
-						<div class="phone"><a href="tel:+18642291409">864-229-1409</a></div>
+						<a href='service-request/'>Service Request</a>
+						<a href='estimate-request/'>Estimate Request</a>
+						<a href='payment-options/'>Financing</a>
 					</div>
 				</div>
-				<div class="logo">
-					<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/climate_control_logo.png"></a>
-				</div>
-				<!--<?php get_search_form(); ?>-->
-				<!--<div class="social">
-					<?php if ( get_field('social_media', 'options') ) {
-						echo "<ul class='social-links'>";
-						while( has_sub_field('social_media', 'options') ) {
-							echo "<li><a href='" . get_sub_field('social_link') . "' target='_blank' style='background-image:url(" . get_sub_field('social_icon') . ");'>" . get_sub_field('social_text') . "</a></li>";
-						}
-						echo "</ul>";
-					} ?>
-				</div>-->
 			</div>
 		</div>
+	</header><!-- #masthead -->
+	<div class="main-nav">
 		<nav id="primary-navigation" class="site-navigation primary-navigation inner-wrapper " role="navigation">
-			<div class="inner-wrapper">
-				<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
-			</div>
-			<div class="sub-nav-back"></div>
+			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'container_id' => 'cssmenu', 'walker' => new CSS_Menu_Maker_Walker() )); ?>
 		</nav>
-	</header><!-- #masthead -->
-
+	</div>
 	<div id="main" class="site-main">

+ 360 - 265
style.css

@@ -1,3 +1,5 @@
+/* @override https://macs.local/cc/wp-content/themes/cc_17/style.css */
+
 /*
 Theme Name: Climate Control Systems of Greenwood Inc.
 Author: AdServices
@@ -84,7 +86,7 @@ html, body {
 
 body, button, input, select, textarea {
 	color: #2b2b2b;
-	font-family: 'Economica', sans-serif;
+	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
 	font-size: 16px;
 	font-weight: 400;
 	line-height: 1.5;
@@ -114,7 +116,7 @@ h1, h2, h3, h4, h5, h6 {
 	clear: both;
 	font-weight: 700;
 	margin:0 0 .7em 0;
-	color:#7a1919;
+	color:#000;
 	text-transform: uppercase;
 }
 
@@ -635,31 +637,22 @@ table td {
  * -----------------------------------------------------------------------------
  */
 .inner-wrapper {
-	width:940px;
-	position: relative;
 	margin:0 auto;
 }
 #page {
-	padding-top:140px;
-	min-height: calc(100% - 140px);
-	position: relative;
-	background:#CCC;
+	background:#fff;
 }
 
 #main {
 	position: relative;
-	z-index: 5;
 	padding-bottom:100px;
 }
 #main-content {
 	background: #fff;
 }
 #primary {
-
 	padding:20px;
 	position: relative;
-	z-index: 10;
-	/*padding-bottom:;*/
 }
 
 /**
@@ -673,28 +666,23 @@ table td {
 	min-height: 32px;
 }
 header#masthead {
-	background: #D1D1D1;
-	padding-top:0px;
-	position: fixed;
-	z-index: 100;
+	background: #fff;
 	width:100%;
-	top:0;
-	left:0;
 }
 .header-main {
 	background:white;
 }
 .header-main .inner-wrapper {
-	height: 107px;
+
 }
 .logo {
-	position: absolute;
-	top:10px;
-	left:50%;
-	margin-left:-152px;
-}
-.logo a {
 	display: block;
+	position: relative;
+	margin: 20px;
+	float: left;
+}
+.logo img {
+	max-width:400px;
 }
 .header-main .search-form {
 	position: absolute;
@@ -728,12 +716,10 @@ input.search-submit {
 	display: none;
 }
 .social {
-	position: relative;
-	left:15px;
-	bottom:35px;
+
 }
 .social .social-links {
-	margin:0;
+	margin: 0;
 }
 .social .social-links li {
 	display: inline-block;
@@ -749,110 +735,183 @@ input.search-submit {
 }
 
 .header-left{
-	position: absolute;
-	top:5px;
-	right:0;
-	margin:0px 0px 10px;
+	float: right;
+	margin:25px 0 15px;
 }
 .header-left .header-links a {
 	display: block;
-	width:160px;
+	padding: 5px;
 	text-align: center;
-	background:#7a1919;
-	color:white;
+	background:#B9252E;
+	color:#fff;
 	font-weight: bold;
-	font-size: 14px;
+	font-size: 15px;
 	text-transform: uppercase;
-	margin-bottom:10px;
+	margin-bottom:5px;
 }
 .header-left .phone {
-	font-size: 30px;
+	font-size: 22px;
 	font-weight: bold;
-	color:#7a1919;
+	color:#B9252E;
 	line-height: 1em;
 	text-align: center;
+	margin: 0 0 5px;
+}
+.header-left .phone a {
+	font-size: 23px;
+	color:#B9252E;
+	margin: 0 0 10px;
 }
 
 /**
  * 5.0 Navigation
  * -----------------------------------------------------------------------------
  */
-#primary-navigation, .menu-primary-menu-container {
-	position: relative;
-	z-index: 100;
-	margin: 3px 0 8px;
+
+.main-nav {
+	background: #B9252E;
+}
+
+#cssmenu {
+  padding: 0;
+  margin: 0;
+  border: 0;
+  width: auto;
 }
-#primary-navigation .nav-menu {
-	list-style: none outside none;
-	margin:0;
-	text-align: left;
+#cssmenu ul,
+#cssmenu li {
+  list-style: none;
+  margin: 0;
+  padding: 0;
 }
-#primary-navigation .nav-menu li {
-	display: block;
-	float:left;
-	position: relative;
+#cssmenu ul {
+  position: relative;
+  z-index: 597;
 }
-#primary-navigation .nav-menu > li > a {
-	display: block;
-	font-size: 17px;
-	font-weight: bold;
-	color:#5a0000;
-	line-height: 17px;
-	padding:6px 12px;
-	text-transform: uppercase;
+#cssmenu ul li {
+  float: left;
+  min-height: 1px;
+  vertical-align: middle;
 }
-#primary-navigation .nav-menu > li:hover > a, #primary-navigation .nav-menu > li.current-menu-item > a, #primary-navigation .nav-menu > li.current-menu-ancestor > a {
-	background: #4b4b4b;
-	color:white;
+#cssmenu ul li.hover,
+#cssmenu ul li:hover {
+  position: relative;
+  z-index: 599;
+  cursor: default;
 }
-#primary-navigation .nav-menu li > ul {
-	display: none;
-	position: absolute;
-	margin:0;
-	left:50%;
-	-moz-transform: translateX(-50%);
-	-webkit-transform: translateX(-50%);
-	-o-transform: translateX(-50%);
-	-ms-transform: translateX(-50%);
-	transform: translateX(-50%);
-	white-space: nowrap;
-	line-height: 18px;
-}
-#primary-navigation .nav-menu li:hover > ul {
-	display: block;
+#cssmenu ul ul {
+  visibility: hidden;
+  position: absolute;
+  top: 100%;
+  left: 0;
+  z-index: 598;
+  width: 100%;
 }
-#primary-navigation .nav-menu li > ul > li {
-	margin:0 3px 0 1px;
-	line-height: 20px;
-	font-size: 14px;
-	display: inline-block;
-	float:none;
+#cssmenu ul ul li {
+  float: none;
 }
-#primary-navigation .nav-menu li > ul > li:before {
-	content:" | ";
-	color:white;
+#cssmenu ul ul ul {
+  top: 0;
+  left: 190px;
+  width: 190px;
 }
-#primary-navigation .nav-menu li > ul > li:first-child:before {
-	content:"";	
+#cssmenu ul li:hover > ul {
+  visibility: visible;
 }
-#primary-navigation .nav-menu li > ul > li > a {
-	color:white;
-	display: inline-block;
-	padding:0 2px 0 4px;
+#cssmenu ul ul {
+  bottom: 0;
+  left: 0;
 }
-.sub-nav-back {
-	background: #452802;
-	width:100%;
-	position: absolute;
-	z-index: 1;
-	left:-20px;
-	padding:0 20px;
-	height:20px;
-	top:100%;
-	display: none;
+#cssmenu ul ul {
+  margin-top: 0;
 }
-.sub-nav-back.show {
-	display: block;
+#cssmenu ul ul li {
+  font-weight: normal;
+}
+#cssmenu a {
+  display: block;
+  line-height: 1em;
+  text-decoration: none;
+}
+
+/* Custom CSS Styles */
+#cssmenu {
+  font-size: 16px;
+  font-weight:bold;
+  color:#fff;
+}
+#cssmenu > ul {
+  *display: inline-block;
+}
+#cssmenu:after,
+#cssmenu ul:after {
+  content: '';
+  display: block;
+  clear: both;
+}
+#cssmenu ul {
+  text-transform: uppercase;
+}
+#cssmenu ul ul {
+  min-width: 190px;
+}
+#cssmenu ul ul a {
+  background: #B9252E;
+  color: #ffffff;
+  line-height: 150%;
+  padding: 14px 15px;
+  font-size: 15px;
+  font-weight:bold;
+}
+#cssmenu ul ul ul {
+  border-top: 0 none;
+}
+#cssmenu ul ul li {
+  position: relative;
+}
+#cssmenu ul ul li:first-child > a {
+  
+}
+#cssmenu ul ul li:hover > a {
+  background: #B9252E;
+  color: #ffffff;
+}
+#cssmenu ul ul li:last-child > a {
+
+}
+#cssmenu ul ul li:last-child:hover > a {
+
+}
+#cssmenu ul ul li.has-sub > a:after {
+  content: '+';
+  position: absolute;
+  top: 50%;
+  right: 15px;
+  margin-top: -8px;
+}
+#cssmenu ul li:hover > a,
+#cssmenu ul li.active > a {
+  background: #B9252E;
+  color: #ffffff;
+}
+#cssmenu ul li.has-sub > a:after {
+  content: '';
+  margin-left: 5px;
+}
+#cssmenu ul li.last ul {
+  left: auto;
+  right: 0;
+}
+#cssmenu ul li.last ul ul {
+  left: auto;
+  right: 99.5%;
+}
+#cssmenu a {
+  color: #fff;
+  padding: 0 20px;
+}
+#cssmenu > ul > li > a {
+  line-height: 38px;
 }
 
 
@@ -861,11 +920,10 @@ input.search-submit {
  * -----------------------------------------------------------------------------
  */
 .home .slider {
-	background: #7a1919;
-	padding-bottom:4px;
+	background: #B9252E;
 }
 .home .slider .bg-color {
-	background:#7a1919;
+
 }
 .home .entry-content p {
 	font-size: 22px;
@@ -1042,13 +1100,11 @@ form .grid_3 {
  * -----------------------------------------------------------------------------
  */
 footer#colophon {
-	margin-top:-100px;
-	background:#7A1919;
+	padding: 70px 0 80px;
+	background:#B9252E;
 	position: relative;
-	z-index: 100;
-}
-footer#colophon > .inner-wrapper {
-	height:150px;
+	color: #fff;
+	font-size: 15px;
 }
 #footer-navigation {
 	text-align: center;
@@ -1083,7 +1139,6 @@ footer#colophon > .inner-wrapper {
 	text-transform: uppercase;
 }
 .footer-left, .footer-right {
-
 	line-height: 1.3em;
 	color: white;
 	position: absolute;
@@ -1093,13 +1148,35 @@ footer#colophon > .inner-wrapper {
 	color:white;
 }
 .footer-left {
-	left:20px;
+	left:0px;
 	text-align: left;
 }
 .footer-right {
-	right:20px;
+	position: relative;
+	right:0px;
 	text-align: right;
 }
+.row.credits {
+	padding: 20px 0 0;
+}
+.credits {
+	margin: 50px 0 0;
+	font-size: 12px;
+}
+
+#colophon h4 {
+	color: #fff;
+	text-transform: none;
+}
+#colophon a {
+	color: #fff;
+}
+#colophon ul {
+	list-style: none;
+	//margin: 0;
+}
+
+
 
 /**
  * 9.0 Pagination
@@ -1129,117 +1206,7 @@ footer#colophon > .inner-wrapper {
 	.last{ margin-right:0 !important; clear:right; }
 	.clearboth {clear:both;display:block;font-size:0;height:0;line-height:0;width:100%;}
 
-/**
- * 12.0 Print
- * -----------------------------------------------------------------------------
- */
-
-@media print {
-	body {
-		background: none !important; /* Brute force since user agents all print differently. */
-		color: #2b2b2b;
-		font-size: 12pt;
-	}
-
-	.site, .site-header, .hentry, .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content, .archive-header, .page-header, .contributor-info, .comments-area, .attachment .entry-attachment .attachment {
-		max-width: 100%;
-	}
-
-	#site-header img, .search-toggle, .site-navigation, .site-content nav, .edit-link, .page-links, .widget-area, .more-link, .post-format-archive-link, .comment-respond, .comment-list .reply, .comment-reply-login, #secondary, .site-footer, .slider-control-paging, .slider-direction-nav {
-		display: none;
-	}
-
-	.site-title a, .entry-meta, .entry-meta a, .featured-content .hentry, .featured-content a {
-		color: #2b2b2b;
-	}
-
-	.entry-content a, .entry-summary a, .page-content a, .comment-content a {
-		text-decoration: none;
-	}
-
-	.site-header, .post-thumbnail, a.post-thumbnail:hover, .site-content .entry-header, .site-footer, .featured-content, .featured-content .entry-header {
-		background: transparent;
-	}
-
-	.header-main {
-		padding: 48px 10px;
-	}
-
-	.site-title {
-		float: none;
-		font-size: 19pt;
-	}
-
-	.content-area {
-		padding-top: 0;
-	}
-
-	.list-view .site-content .hentry {
-		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
-		margin-bottom: 48px;
-		padding-bottom: 24px;
-	}
-
-	.post-thumbnail img {
-		margin: 0 10px 24px;
-	}
-
-	.site-content .has-post-thumbnail .entry-header {
-		padding-top: 0;
-	}
-
-	.site-content footer.entry-meta {
-		margin: 24px auto;
-	}
-
-	.entry-meta .tag-links a {
-		color: #fff;
-	}
-
-	.singular .site-content .hentry.has-post-thumbnail {
-		margin-top: 0;
-	}
-
-	.gallery-columns-1.gallery-size-medium, .gallery-columns-1.gallery-size-thumbnail, .gallery-columns-2.gallery-size-thumbnail, .gallery-columns-3.gallery-size-thumbnail {
-		display: block;
-	}
-
-	.archive-title, .page-title {
-		margin: 0 10px 48px;
-	}
 
-	.featured-content .hentry {
-		margin-bottom: 48px;
-	}
-
-	.featured-content .post-thumbnail, .slider .featured-content .post-thumbnail {
-		padding-top: 0;
-	}
-
-	.featured-content .post-thumbnail img {
-		position: relative;
-	}
-
-	.featured-content .entry-header {
-		padding: 0 10px 24px;
-	}
-
-	.featured-content .entry-meta {
-		font-size: 9pt;
-		margin-bottom: 11px;
-	}
-
-	.featured-content .cat-links {
-		font-weight: 900;
-	}
-
-	.featured-content .entry-title {
-		font-size: 25pt;
-		line-height: 36px;
-	}
-	
-}
-.bf_layout_checkbox {margin-right:10px!important;}/*
 
 /**************************************************
  Styles Below Added by https://davidawindham.com
@@ -1248,30 +1215,10 @@ footer#colophon > .inner-wrapper {
 
 .inner-wrapper {
 	width:90% !important;
-	position: relative;
 	margin:0 auto;
 }
 #primary {
 	padding:30px 20px !important;
-	background:white;
-	position: relative;
-	z-index: 10;
-}
-.bg-element {
-	position:fixed;
-	width:980px;
-	top:0;
-	left:50%;
-	margin-left:-490px;
-	height:100%;
-	z-index: 0;
-	background:white;
-}
-.header-left .phone a {
-	font-size: 30px;
-	font-weight: bold;
-	color:#7a1919;
-
 }
 ul#menu-primary-menu .l_tinynav1 {
 	margin-top: 10px;
@@ -1279,7 +1226,7 @@ ul#menu-primary-menu .l_tinynav1 {
 
 @media only screen and (max-width: 767px) {
 	.logo img {
-		max-width:200px;
+		max-width:300px;
 	}
 	.tinynav {
 		display: block
@@ -1287,28 +1234,19 @@ ul#menu-primary-menu .l_tinynav1 {
 	 #menu-primary-menu { 
 	 	display: none 
 	 }
+	 
 	.header-left .header-links a {
-		display: block; 
-		width:100px;
-		text-align: center;
-		background:#7a1919;
-		color:white;
-		font-weight: bold;
-		font-size: 14px;
-		text-transform: uppercase;
-		margin-bottom:5px;
+
 	}
 	.header-left .phone {
-		font-size: 15px !important;
-		font-weight: bold;
-		color:#7a1919;
-		text-align: center;
+		font-size: 14px !important;
 	}
 	.header-left .phone a {
-		font-size: 18px;
-		font-weight: bold;
-		color:#7a1919;
-
+		font-size: 21px;
+	}
+	.header-left{
+		float: left;
+		margin:0px auto;
 	}
 	.home .slider {
 	    background: #7a1919;
@@ -1347,3 +1285,160 @@ ul#menu-primary-menu .l_tinynav1 {
 @media only screen and (min-width : 1200px) {
 }
 
+
+.container {
+  width: 90%;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+.row {
+  position: relative;
+  width: 100%;
+}
+
+.row [class^="col"] {
+  float: left;
+  margin: 0.5rem 2%;
+  min-height: 0.125rem;
+}
+
+.col-1,
+.col-2,
+.col-3,
+.col-4,
+.col-5,
+.col-6,
+.col-7,
+.col-8,
+.col-9,
+.col-10,
+.col-11,
+.col-12 {
+  width: 96%;
+}
+
+.col-1-sm {
+  width: 4.33%;
+}
+
+.col-2-sm {
+  width: 12.66%;
+}
+
+.col-3-sm {
+  width: 21%;
+}
+
+.col-4-sm {
+  width: 29.33%;
+}
+
+.col-5-sm {
+  width: 37.66%;
+}
+
+.col-6-sm {
+  width: 46%;
+}
+
+.col-7-sm {
+  width: 54.33%;
+}
+
+.col-8-sm {
+  width: 62.66%;
+}
+
+.col-9-sm {
+  width: 71%;
+}
+
+.col-10-sm {
+  width: 79.33%;
+}
+
+.col-11-sm {
+  width: 87.66%;
+}
+
+.col-12-sm {
+  width: 96%;
+}
+
+.row::after {
+	content: "";
+	display: table;
+	clear: both;
+}
+
+.hidden-sm {
+  display: none;
+}
+
+@media only screen and (min-width: 33.75em) {  /* 540px */
+  .container {
+    width: 80%;
+  }
+}
+
+@media only screen and (min-width: 45em) {  /* 720px */
+  .col-1 {
+    width: 4.33%;
+  }
+
+  .col-2 {
+    width: 12.66%;
+  }
+
+  .col-3 {
+    width: 21%;
+  }
+
+  .col-4 {
+    width: 29.33%;
+  }
+
+  .col-5 {
+    width: 37.66%;
+  }
+
+  .col-6 {
+    width: 46%;
+  }
+
+  .col-7 {
+    width: 54.33%;
+  }
+
+  .col-8 {
+    width: 62.66%;
+  }
+
+  .col-9 {
+    width: 71%;
+  }
+
+  .col-10 {
+    width: 79.33%;
+  }
+
+  .col-11 {
+    width: 87.66%;
+  }
+
+  .col-12 {
+    width: 96%;
+  }
+
+  .hidden-sm {
+    display: block;
+  }
+}
+
+@media only screen and (min-width: 60em) { /* 960px */
+  .container {
+    width: 75%;
+    max-width: 60rem;
+  }
+}