.white-bg {
background: white;
}
+
+//
+// lol helpers
+//
+.hide-from-xs {
+ @include mq($from: xs) {
+ display: none !important;
+ }
+}
+.hide-until-xs {
+ @include mq($until: xs) {
+ display: none !important;
+ }
+}
}
+ //
+ // Home mobile nav overrides
+ //
+ .home-mobile-nav & {
+
+ &__item {
+
+ display: none;
+
+ &:nth-child(3),
+ &:nth-child(4),
+ &:nth-child(5),
+ &:nth-child(6) {
+ display: inline-block;
+ }
+
+ }
+
+ &__item-link {
+
+ padding: 0 5px;
+
+ @include mq($until: sm) {
+ font-size: 18px;
+ }
+
+ @include mq($until: xs) {
+ font-size: 14px;
+ }
+
+ }
+
+ }
+
+ //
+ // Home mobile subnav overrides
+ //
+ .home-mobile-subnav & {
+
+ &__item {
+
+ display: none;
+ margin: 0;
+ padding: 0;
+
+ &:nth-child(7),
+ &:nth-child(8) {
+ display: inline-block;
+ }
+
+ &--image {
+ width: 45%;
+ img {
+ display: inline-block;
+ height: auto;
+ width: 80%;
+ }
+ }
+
+ }
+
+ }
+
//
// Sidenav overrides
//
@include margin-bottom(1);
}
+ @include mq($until: xs) {
+ display: none;
+ }
+
ul {
list-style-type: none;
margin: 0;
margin-top: -($header-height + $header-pre-height);
padding-top: 0;
+ @include mq($until: sm) {
+ margin-top: 0;
+ }
+
}
&__menu {
}
}
+
+.home-mobile-nav {
+ display: none;
+
+ background: $color-main;
+ border-top: 1px solid $color-black;
+
+ @include mq($until: sm) {
+ display: block;
+ }
+
+ @include mq($until: xs) {
+ @include margin-bottom(1);
+ }
+}
+
+.home-mobile-subnav {
+ display: none;
+
+ @include mq($until: xs) {
+ display: block;
+ @include margin(0 0 1 0);
+ }
+}
+{% load i18n pages_tags mezzanine_tags media_tags organization_tags %}
<div class="container">
<div class="row">
+ {% for slider in home.dynamiccontenthomeslider_set.all %}
+ {% with slider.content_object.images.all|get_type:'slider' as images %}
+ {% if images %}
+ <div class="col-xs-4 hide-from-xs">
+ {% if slider.content_type.model == "brief" %}
+ {% include "magazine/brief/inc/brief_card.html" %}
+ {% elif slider.content_type.model == "article" %}
+ {% with slider.content_object as article %}
+ {% include "magazine/article/includes/article_card.html" %}
+ {% endwith %}
+ {% elif slider.content_type.model == "event" %}
+ {% with slider.content_object as event %}
+ {% include "agenda/includes/event_card.html" %}
+ {% endwith %}
+ {% elif slider.content_type.model == "custompage" %}
+ {% with slider.content_object as page %}
+ {% include "pages/includes/page_card.html" %}
+ {% endwith %}
+ {% endif %}
+ </div>
+ {% endif %}
+ {% endwith %}
+ {% endfor %}
{% for content in home.dynamiccontenthomebody_set.all %}
- <div class="col-xs-4">
+ <div class="col-xs-4{% if forloop.counter > 3 %} hide-until-xs{% endif %}">
{% if content.content_type.model == "brief" %}
{% include "magazine/brief/inc/brief_card.html" %}
{% elif content.content_type.model == "article" %}
{% block main %}
+ <div class="home-mobile-nav">
+ {% page_menu "pages/menus/header.html" %}
+ </div>
+
{% include "home/inc/slider.html" %}
<ul class="home__menu">
{% include "home/inc/body.html" %}
+ <div class="home-mobile-subnav">
+ {% page_menu "pages/menus/header.html" %}
+ </div>
+
{% include "home/inc/bio.html" %}
{% include "home/inc/services.html" %}