Correction layout menu principal
authorFelip Manyer i Ballester <git@res-telae.cat>
Thu, 29 Dec 2016 17:24:25 +0000 (18:24 +0100)
committerFelip Manyer i Ballester <git@res-telae.cat>
Thu, 29 Dec 2016 17:24:25 +0000 (18:24 +0100)
docroot/profiles/fonamental/themes/custom/byrrh/scss/components/_primary-menu.scss
docroot/profiles/fonamental/themes/custom/byrrh/templates/base/page.html.twig

index c19d5ea..6861392 100644 (file)
@@ -1,9 +1,19 @@
 // Heavily inspired by Bartik.
 
-.region-primary-menu {
+#primary-navigation {
   margin: 1em 0;
   background-color: $blue;
 
+  @include media(max-width 460px) {
+    .outer-wrapper {
+      padding: 0;
+    }
+  }
+}
+
+.region-primary-menu {
+  margin: 0;
+
   .menu {
     font-size: 0.929em;
     margin: 0 5px;
index e8d17b0..2fa0de2 100644 (file)
@@ -9,7 +9,9 @@
 
   {% if page.primary_menu %}
     <header id="primary-navigation" class="navigation" role="banner">
-      {{ page.primary_menu }}
+      <div class="outer-wrapper">
+        {{ page.primary_menu }}
+      </div>
     </header>
   {% endif %}