]> git.parisson.com Git - mezzo.git/commitdiff
Fix role switcher on mobile devices
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 24 Oct 2016 08:29:38 +0000 (10:29 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 24 Oct 2016 08:29:38 +0000 (10:29 +0200)
app/static/src/sass/modules/_role-switcher.scss
app/templates/pages/menus/action.html

index 38d5895746f0b0367cffaa6101ca91a51a8bb935..33c140672fcef6c1c52089e477c9064c42990d59 100644 (file)
@@ -102,6 +102,42 @@ $module: ".role-switcher";
 
     }
 
+    //
+    // Sidenav overrides
+    //
+    .sidebar & {
+
+        &:before {
+
+            display: block;
+            content: "";
+            background: black;
+            width: 240px;
+            height: 6px;
+            @include margin(1.5 0 .5 0);
+
+        }
+
+        #{$module}__item {
+
+            &:first-child {
+                display: none;
+            }
+
+            position: static;
+            margin-left: 0;
+            display: block;
+            padding: 0;
+            @include margin(0 0 .5 0);
+
+            >a {
+                color: black;
+                @include font-size(l);
+            }
+
+        }
+
+    }
 
 
 }
index 795109ea1d08bf0b05fe38eef7c6f70f088a351a..d9571e6a5f5d942619c48c5c39f88dff8e764f11 100644 (file)
                 <a class="nav-actions__item-link" href="{{ page.get_absolute_url }}">{{ page.title }}</a>
             </li>
         {% endif %}
-        <!--{% if page.is_primary %}
+        {% if page.is_primary %}
             {% if forloop.last %}
                 <li class="nav-actions__item">
                     {% page_menu "pages/menus/vous_etes.html" %}
                 </li>
                 </ul>
             {% endif %}
-        {% endif %}-->
+        {% endif %}
     {% endfor %}
 {% endif %}
 {% endspaceless %}