fixing broken styles in on the front page
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 13 Apr 2018 20:10:06 +0000 (16:10 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 13 Apr 2018 20:10:06 +0000 (16:10 -0400)
functions.php
style.css

index fe984dd..c709487 100644 (file)
@@ -273,4 +273,27 @@ function glm_get_header() {
     echo '<div class="small-12 columns">';
     echo '</div>';
     echo '</div>';
+}
+/**
+ * Return the client info option for the given key
+ *
+ * @param type $name Name of the client info option to return
+ *
+ * @return string Option
+ */
+if (!function_exists('glm_get_clientinfo_option')) {
+    function glm_get_clientinfo_option($name)
+    {
+        $settings = get_option('glmclientinfo_settings');
+        $states   = get_option('glmclientinfo_states');
+        if ($name == 'stateFull' && $settings['state']) {
+            return $states[$settings['state']];
+        }
+        if ($name == 'state2Full' && $settings['state2']) {
+            return $states[$settings['state2']];
+        }
+        return ($settings && $settings[$name])
+            ? $settings[$name]
+            : null;
+    }
 }
\ No newline at end of file
index 98275ee..1420c5d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -590,9 +590,19 @@ Content
     width: 1000px;
     margin: 0 auto;
 }
-.parallax-section .mid-content{
-    width: 1200px;
+
+@media screen and (min-width: 1200px){
+    .home .mid-content{
+        width: 1200px;
+        margin: 0 auto;
+    }
 }
+
+/* @media (min-width: 770px){
+    .parallax-section .mid-content{
+        width: 1200px;
+    }
+} */
 .parallax-section {
     padding: 60px 0 80px;
     position: relative;