]> _ Git - physioassist.git/commitdiff
#simeox : Put online english version
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 23 Mar 2016 12:06:34 +0000 (12:06 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 23 Mar 2016 12:06:34 +0000 (12:06 +0000)
Fix menu position for english version
@0:10

framework/application/views/scripts/common/header.phtml
less/navigation.less

index 9e8f63520f53fb2193ded4fd5ed635ec72e13008..089767779a14fcfae31a6c421cc15455573d3914 100644 (file)
@@ -5,7 +5,7 @@ $this->headScript()->addScriptAndStyle('navigation');
 // Major nav sections
 $sections = array('simeox', 'clinic', 'about', 'contact');
 
-$data=CubeIT_Util_Cms::getCMSDatasOfPage('home');
+$data = CubeIT_Util_Cms::getCMSDatasOfPage('home');
 
 ?>
 <header class="site">
@@ -19,8 +19,8 @@ $data=CubeIT_Util_Cms::getCMSDatasOfPage('home');
                <nav class="primary">
                        <ul>
                                <?php
-                               foreach ($sections as $s) {
-                                       echo '<li><a href="/#' . $s . '">' . $data[$s]['menu_title'] . '</a></li>';
+                               foreach ($sections as $i => $s) {
+                                       echo '<li data-i="' . $i . '"><a href="/#' . $s . '">' . $data[$s]['menu_title'] . '</a></li>';
                                }
                                ?>
                        </ul>
index 460a3583d171848951de857bd6bd41867fd19465..d72877eb3ad8149dacc9ca291fe5ccb3a328aedb 100644 (file)
@@ -1,56 +1,58 @@
-nav  {
-  font-weight: 400;
-
-  ul {
-    list-style: none;
-  }
-  li {
-    display: inline-block;
-    padding-left: 0 !important;
-    background: none !important;
-  }
+nav {
+       font-weight: 400;
+
+       ul {
+               list-style: none;
+       }
+       li {
+               display: inline-block;
+               padding-left: 0 !important;
+               background: none !important;
+       }
 }
 
 nav.primary {
-  float: right;
-  margin-top: 65px;
-  font-size: 18px;
-  transition: all 0.3s ease;
-
-  a {
-    color: #3c3c3b;
-
-    &:hover {
-      color: #1d81c2;
-    }
-  }
-
-  li {
-    margin-left: 68px;
-  }
+       float: right;
+       margin-top: 65px;
+       font-size: 18px;
+       transition: all 0.3s ease;
+
+       a {
+               color: #3c3c3b;
+
+               &:hover {
+                       color: #1d81c2;
+               }
+       }
+
+       li {
+               margin-left: 68px;
+               &[data-i='0'] {
+                       margin-left: 0;
+               }
+       }
 }
 
 nav.locale {
-  font-size: 11px;
-  font-weight: 300;
-  float: right;
-
-  a {
-    display: inline-block;
-    margin: 8px 0 0 5px;
-    width: 28px;
-    height: 28px;
-    line-height: 28px;
-    text-align: center;
-    border-radius: 50%;
-    background-color: #444;
-    color: #999;
-    text-transform: uppercase;
-    display: inline-block;
-
-    &:hover, &.active {
-      background: #0080c8;
-      color: #fff;
-    }
-  }
+       font-size: 11px;
+       font-weight: 300;
+       float: right;
+
+       a {
+               display: inline-block;
+               margin: 8px 0 0 5px;
+               width: 28px;
+               height: 28px;
+               line-height: 28px;
+               text-align: center;
+               border-radius: 50%;
+               background-color: #444;
+               color: #999;
+               text-transform: uppercase;
+
+               &:hover, &.active {
+                       background: #0080c8;
+                       color: #fff;
+               }
+       }
 }
\ No newline at end of file