]> _ Git - cubedesigners-v7.git/commitdiff
WIP #2033 @8
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 8 Jan 2019 16:52:32 +0000 (16:52 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 8 Jan 2019 16:52:32 +0000 (16:52 +0000)
framework/application/views/helpers/CasestudiesList.php
framework/application/views/scripts/templates/casestudies.phtml
js/common.js
less/casestudies.less
less/header.less
less/home.less

index 24bb5fc04912689137802617f55c28d62ca1f1a5..495c5635e160b0b7ed4de14e80abfa9fdee00edc 100644 (file)
@@ -167,6 +167,9 @@ class Cubedesigners_View_Helper_CasestudiesList extends CubeIT_View_Helper_Abstr
                $c.= '<h2>' . $s->titre . '</h2>';
                $c.='<h3>' . $s->description . '</h3>';
 
+               // Todo: display names of secondary categories (via join?) using IDs in: $s->tags_secondaires);
+
+
                return $this->link($c, $url, array('data-cat' => $s->categories)) . ' '; // Space needed between elements for justified alignment
        }
 
index 0779798035cd4f94c43cbcc998c4046d0852d55c..2acdcfee1e5e5b4a00c2a941a32036a583271630 100644 (file)
@@ -17,4 +17,9 @@ $this->headScript()->addScriptAndStyle('casestudies');
                echo $this->CasestudiesList($datas);
                ?>
        </div>
-</div>
\ No newline at end of file
+
+    <p class="casestudies-archive-link">
+        <?php echo $this->linkInternal(__('Voir les archives') . $this->linkArrow(), 'Portfolio', array('class' => 'arrow-link')); ?>
+    </p>
+
+</div>
index cfa9b1e6d5f1ccadd54c8dc9502692675c75f1c9..b84b09b46ac3bfba662851624d82a21e6b9af97e 100644 (file)
@@ -58,7 +58,7 @@ function load_commons() {
     $menulink.click(function () {
         $menulink.toggleClass('active');
         $menu.toggleClass('active');
-        //$menulink.parent().toggleClass('menu-active');
+        $menulink.parent().toggleClass('menu-active');
         return false;
     });
 
@@ -80,4 +80,4 @@ function orientationchange() {
         $("[name='viewport']").attr("content", "width=device-width, initial-scale=1.0");
     }
 
-}
\ No newline at end of file
+}
index 89c216d21fc9a2218f33967911368fee478c531a..85b384426cc50afb03c8eda6a6195b26ed44dae1 100644 (file)
@@ -10,7 +10,6 @@
        // Settings specific to the isotope grid
        &.grid {
                display: none; // Hidden until Isotope is ready
-        margin-bottom: 50px;
        }
 
        a {
 
 .casestudies-detail-content {
        background-color: @yellow;
-}
\ No newline at end of file
+}
+
+.casestudies-archive-link {
+  margin-bottom: 4em;
+  text-align: right;
+}
index 38b573cae31d18359efd8abee8f6baaac100a8fe..3bf026d45aa1419d9b155c461c48e8c67185f45c 100644 (file)
@@ -82,8 +82,10 @@ header {
 
                &-symbol, &-text {
                        display: inline-block;
+                       height: 100%;
+
                        svg {
-                               height: 48px;
+                               height: 100%;
                                width: auto;
                        }
                }
@@ -144,7 +146,7 @@ header {
        .nav-icon:after,
        .nav-icon:before,
        .nav-icon div {
-               background-color: #fff;
+               background-color: currentColor;
                border-radius: 3px;
                content: '';
                display: block;
@@ -156,7 +158,12 @@ header {
        .nav-icon.active:after,
        .nav-icon.active:before,
        .nav-icon.active div {
-               background-color: #fff;
+               background-color: currentColor;
+
+               // When menu is open, background is white so icon must be black
+               .menu-active & {
+                       background-color: #000;
+               }
        }
 
        .nav-icon.active {
@@ -186,10 +193,15 @@ header {
                height: auto;
                height: 130px;
                z-index: 10;
+
+               // When menu is open, white background is in place so force dark colour
+               &.menu-active {
+                       color: #222428 !important;
+               }
        }
 
        nav[role=navigation] {
-               background-color: #222428;
+               background-color: #fff;
                //margin: 0 -20px; // To offset the 20px margin from .content
        }
 
@@ -224,11 +236,15 @@ header {
 
                        a {
                                border: none !important;
+
+                               &:after {
+                                       display: none;
+                               }
                        }
                }
 
                a {
-                       color: #fff !important;
+                       color: currentColor;
                        display: block;
                        &:hover {
                                border-radius: 0;
index e44872ff4f5008342b537d2b557d7642c23d60fb..3a64b606c99be7c94c540be6c1b51a0cad36ba4b 100644 (file)
@@ -72,7 +72,7 @@ nav.active[role="navigation"] {
                                        //                  -webkit-animation: bg-anim 15s linear 1s infinite;
                                        //                  transform: scale(1);
                                        display: block;
-                                       z-index: -2;
+                                       //z-index: -2; // Why was this here?? Doesn't seem to be needed and causes a bug with first slide display now
                                }
 
                                > div {
@@ -186,4 +186,4 @@ nav.active[role="navigation"] {
                }
        }
 
-}
\ No newline at end of file
+}