});
+ $('[data-lang]').click(function() {
+
+ that.changeLanguage($(this).attr('data-lang'));
+
+ });
+
};
LangSelector.prototype.changeLanguage = function(lang) {
$color-black-light: #343432;
$color-background: #000F24;
+$color-accent: #FF203C;
// Layout
$header-pre-height: 34px;
-$header-height: 78px;
+$header-height: 45px;
$header-height-tablet: 70px;
$header-height-mobile: 70px;
$sidenav-width-tablet: 450px;
xxs: 0px,
xs: 752px,
sm: 972px,
- md: 1072px,
- lg: 1372px
+ md: 1172px,
+ lg: 1440px
);
$grid-columns: 16;
.lh1 {
@include line-height(1);
}
+.lh5 {
+ @include line-height(1.5);
+}
.lh2 {
@include line-height(2);
}
left: 0;
z-index: 100;
height: $header-height-tablet;
- overflow: hidden;
@include mq($until: xs) {
height: $header-height-mobile;
}
&--accent {
- background-color: white;
+ background-color: $color-accent;
color: $color-background;
text-align: center;
font-family: $serif;
#{$module} {
@include padding-bottom(1);
+ /* Rectangle 2: */
+ background-image: -webkit-linear-gradient(bottom, rgba(79,227,194,0.00) 0%, rgba(80,227,194,0.30) 100%);
+ background-image: -o-linear-gradient(bottom, rgba(79,227,194,0.00) 0%, rgba(80,227,194,0.30) 100%);
+ background-image: linear-gradient(to top, rgba(79,227,194,0.00) 0%, rgba(80,227,194,0.30) 100%);
&__menu {
list-style-type: none;
margin: 0;
padding: 0;
- text-align: center;
+ text-align: left;
- @include margin(.5 0);
+ @include margin(.5 0 0 0);
@include mq($until: sm) {
@include margin(0);
vertical-align: top;
position: relative;
- &:after {
+ &:before {
content: "";
display: block;
height: $header-height;
background: black;
position: absolute;
top: 0;
- right: -1px;
+ left: -1px;
+
+ @include margin-right(.5);
- @include margin-left(.5);
+ @include mq($until: lg) {
+ height: $header-height - 10px;
+ }
+ }
+
+ &--no-separator {
+ &:before {
+ display: none;
+ }
+ }
+
+ &--separator {
+ @include padding-left(1.5);
+ &:before {
+ @include margin(0 1);
+ }
+
+ @include mq($until: md) {
+ @include padding-left(1);
+ &:before {
+ @include margin(0 .5);
+ }
+ }
}
&:first-child {
display: none;
+ z-index: 3;
+ &:before {
+ display: none;
+ }
+ }
+
+ &:nth-child(2) {
+ &:before {
+ display: none;
+ }
}
&:last-child {
}*/
}
+ &--image-big {
+ vertical-align: top;
+ @include margin(0 1 0 2.5);
+ @include padding-right(.50);
+
+ @include mq($until: lg) {
+ height: $header-height - 10px;
+ img {
+ width: 200px;
+ }
+ }
+ @include mq($until: md) {
+ height: $header-height - 10px;
+ img {
+ width: 160px;
+ }
+ }
+
+ @include mq($until: sm) {
+ position: absolute;
+ top: 20px;
+ left: 0;
+ width: 100%;
+ z-index: 2;
+ @include padding(0);
+ @include margin(0);
+ text-align: center;
+ img {
+ width: auto;
+ height: 70px;
+ display: block;
+ margin: 0 auto;
+ }
+ }
+
+ @include mq($until: xs) {
+
+ img {
+ width: 200px;
+ height: auto;
+ display: block;
+ margin: 0 auto;
+ }
+
+ }
+
+ height: $header-height;
+
+ }
+
&--special {
+ z-index: 3;
vertical-align: top;
@include margin(0 0 0 .5);
@include padding-right(.5);
}
&--centered {
- line-height: $header-height;
+ z-index: 3;
+ line-height: $header-height - 10px;
+ @include mq($until: lg) {
+ line-height: $header-height - 13px;
+ }
@include mq($until: sm) {
line-height: $header-height-tablet;
- height: $header-height-tablet;
+ height: $header-height-tablet - 10px;
}
@include mq($until: xs) {
line-height: $header-height-mobile;
- height: $header-height-mobile;
+ height: $header-height-mobile - 10px;
}
}
+ &--right {
+
+ float: right;
+
+ }
+
&.hover {
&:before {
content: "";
&__item-link {
- text-transform: lowercase;
- color: inherit;
+ text-transform: uppercase;
+ color: $color-background;
text-decoration: none;
position: relative;
z-index: 4;
vertical-align: top;
- @include font-size(xl);
+ @include font-size(l);
@include line-height($header-pre-height);
@include typeface(sans-serif);
@include padding-right(1);
- @include mq($until: md) {
+ @include mq($until: lg) {
+ @include font-size(m);
@include padding-right(.75);
}
- /*@include mq($until: lg) {
- @include font-size(l);
- }*/
+ @include mq($until: md) {
+ @include font-size(s);
+ @include padding-right(.5);
+ }
+
&:before {
- display: inline;
+ display: inline-block;
content: '.';
vertical-align: top;
+ @include margin-right(.25);
+ }
+
+ &--no-dot {
+
+ @include padding-right(.25);
+ font-weight: weight(light);
+
+ &:before {
+ content: '';
+ }
+
+ &.active {
+ font-weight: weight(regular);
+ &:after {
+ display: none !important;
+ }
+ }
+
}
&.active {
&:after {
position: absolute;
- height: 40%;
+ height: 80%;
display: block;
- top: 30%;
- left: 1px;
+ top: 10%;
+ left: 0px;
content: "";
- background: #F8E71C;
+ background: $color-main;
z-index: -1;
- right: 0px;
+ right: 1px;
}
}
display: none;
}
- &:nth-child(2) {
- @include margin-bottom(1.5);
- }
-
- &:nth-child(6) {
- @include margin-bottom(0);
- &:after {
-
- display: block;
- position: static;
- content: "";
- background: #979797;
- width: 240px;
- height: 1px;
- @include margin(1.5 0 .5 0);
-
- }
- }
-
&.hover {
&:before {
display: none;
}
}
+ &--image-big {
+ position: static;
+ height: auto;
+ margin-top: 10px;
+ @include margin-bottom(3);
+ }
+
&--special {
display: inline-block;
}
}
+ &--right {
+ float: none;
+ }
+
+ &--separator {
+ @include margin-top(3);
+ @include padding(0);
+ }
+
+ &:before {
+ display: none;
+ }
+
}
&__item-link {
- color: black;
- @include font-size(xxl);
+ color: $color-background;
+ @include font-size(l);
&:hover {
- color: black;
+ color: $color-background;
+ }
+
+ &--no-dot {
+ display: inline-block;
+ width: auto;
}
}
padding: 0;
}
+ ul:first-child {
+ margin-top: 0;
+ }
+
}
.pushy-left {
<div class="container">
<div class="row header__nav">
- <div class="col-md-10 tac">
+ <div class="col-md-16 tal">
<div id="navHeader">
{% page_menu "pages/menus/header.html" %}
</div>
</div>
- <div class="col-md-6 tac">
- {% include "includes/languages.html" %}
- </div>
</div>
</div>
{% block content_footer %}{% endblock %}
</main>
+ {% include "twitter/tweets.html" %}
+
<footer class="footer" role="footer">
{% include "includes/footer.html" %}
</footer>
<div class="page__block page__block--accent">
<div class="container">
<div class="row">
- <div class="col-xs-16 col-md-16 col-lg-14 col-lg-push-1">
+ <div class="col-xs-16 col-md-16 col-lg-10 fsxl lh5 ffss fwl">
{{ host_organization.bio|safe }}
- <h2>hello</h2>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Necessitatibus blanditiis ullam inventore nesciunt cumque rem. Nostrum debitis perferendis sed soluta molestiae. Commodi quis repudiandae voluptates delectus, laudantium libero corporis tenetur!
- </p>
</div>
</div>
</div>
<div class="col-xxs-16">
- {% include 'pages/page/includes/linked_organization_footer.html' %}
+ NEWSLETTER HERE
</div>
{% nevercache %}
{% include "includes/language_selector.html" %}
{% endnevercache %}
- <ul class="lang-switcher" id="langSelector">
- {% for language in languages %}
- {% if language.code == LANGUAGE_CODE %}
- <li class="lang-switcher__item active">
- <a href="#">
- {{ language.code|title }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
- {% for language in languages %}
- {% if language.code != LANGUAGE_CODE %}
- <li class="lang-switcher__item">
- <a href="#" data-lang="{{ language.code }}">
- {{ language.code|title }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
- </ul>
+ {% for language in languages %}
+ <a data-lang="{{ language.code }}" href="#" class="nav-header__item-link nav-header__item-link--no-dot {% if language.code == LANGUAGE_CODE %} active{% endif %}">{{ language.code|title }}</a>
+ {% endfor %}
{% endif %}
<div class="sidebar">
{% page_menu "pages/menus/header.html" %}
- {% page_menu "pages/menus/action.html" %}
-
- <ul class="sidebar__menu">
- <li class="sidebar__menu-item">
- <a href="#" title="{% trans "Magazine" %}">{% trans "Magazine" %}</a>
- {% page_menu "pages/menus/magazine.html" %}
- </li>
- <li class="sidebar__menu-item">
- <a href="{% url 'organization-playlist-list' %}" title="{% trans "Medias" %}">{% trans "Medias" %}</a>
- </li>
- </ul>
-
- <ul class="lang-switcher" id="langSelectorMobile">
- {% for language in languages %}
- {% if language.code == LANGUAGE_CODE %}
- <li class="lang-switcher__item active">
- <a href="#">
- {{ language.code|title }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
- {% for language in languages %}
- {% if language.code != LANGUAGE_CODE %}
- <li class="lang-switcher__item">
- <a href="#" data-lang="{{ language.code }}">
- {{ language.code|title }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
- </ul>
</div>
{% block main %}
- <div class="home-mobile-nav">
- {% page_menu "pages/menus/header.html" %}
- </div>
-
{% include "home/inc/slider.html" %}
{% include "home/inc/body.html" %}
- <div class="home-mobile-subnav">
- <hr class="mt0" />
- {% page_menu "pages/menus/header.html" %}
- </div>
-
{% include "home/inc/bio.html" %}
{% include "home/inc/services.html" %}
<span class="first"></span>
<span class="second"></span>
</li>
- <li class="nav-header__item nav-header__item--image">
+ <li class="nav-header__item nav-header__item--image-big">
<a href="{% url "home" %}" title="{% trans 'Home' %}">
{% with host_organization.images|get_type:"logo_header" as images %}
{% if images %}
{% with images|first as img %}
- <img src="{{ MEDIA_URL }}{{ img }}" title="{{ img.title }}" width="118" height="80" />
+ <img src="{{ MEDIA_URL }}{{ img }}" title="{{ img.title }}" width="242" height="70" />
{% endwith %}
{% endif %}
{% endwith %}
{% endif %}
{% if page.is_primary %}
{% if forloop.last %}
- <li class="nav-header__item nav-header__item--special nav-header__item--centered">
+
+ <li class="nav-header__item nav-header__item--right nav-header__item--separator">
+ {% include "includes/languages.html" %}
+ </li>
+ <li class="nav-header__item nav-header__item--centered nav-header__item--right nav-header__item--no-separator">
<a href="#" class="fsxl" data-open-button="search" data-search-button><i class="fa fa-search" aria-hidden="true"></i></a>
</li>
+
</ul>
{% endif %}
{% endif %}