@import 'search';
@import 'pattern';
@import 'tag';
+@import 'share-links';
// Typography modules
@import 'dashed';
#{$module} {
+ &__sidebar {
+
+ @include mq($until: sm) {
+ background: white;
+ }
+
+ }
+
&__slider {
background: white;
}
+ &__meta {
+
+ @include margin-bottom(2);
+
+ }
+
+ &__meta-separator {
+
+ height: 1px;
+ background: black;
+ width: 45px;
+
+ @include margin(1 0);
+
+ }
+
+ &__meta-date {
+
+ @include font-size(l);
+ @include line-height(1);
+ @include typeface(serif);
+ font-weight: weight(heavy);
+
+ }
+
+ &__meta-title {
+
+ @include font-size(l);
+ @include line-height(1);
+ @include typeface(serif);
+ font-weight: weight(heavy);
+
+ }
+
}
--- /dev/null
+$module: ".share-links";
+
+#{$module} {
+
+ list-style-type: none;
+ padding: 0;
+ margin: 0;
+
+ &__item {
+
+ display: inline-block;
+ font-size: 1.5rem;
+ @include margin-right(.5);
+
+ }
+
+}
&--level-0 {
- @include mq($until: sm) {
- @include margin-bottom(3);
- }
+ @include margin-bottom(2);
}
list-style-type: none;
margin: 0;
padding: 0;
- height: 520px;
//
// Not lightslider, lets go with Flexbox W00t W00t
}
.flexbox & {
visibility: visible;
+ padding: 0 5px;
@include mq($from: sm) {
-webkit-order: 0;
-ms-flex-order: 0;
{% load i18n %}
-<ul class="share__links">
- <li>
- <a class="share__link__item share-facebook" target="_blank" href="http://facebook.com/sharer.php?u={{ request.build_absolute_uri }}&t={{ object.title|urlencode }}"><i class="icon icon__facebook"></i> {% trans "Share on Facebook" %}</a>
+<ul class="share-links">
+ <li class="share-links__item share-links__item--facebook">
+ <a target="_blank" href="http://facebook.com/sharer.php?u={{ request.build_absolute_uri }}&t={{ object.title|urlencode }}" title="{% trans "Share on Facebook" %}"><i class="fa fa-facebook-square"></i></a>
</li>
- <li>
- <a class="share__link__item share-twitter" target="_blank" href="http://twitter.com/home?status={{ object.title|urlencode }}%20{{ request.build_absolute_uri }}"><i class="icon icon__twitter"></i> {% trans "Share on Twitter" %}</a>
+ <li class="share-links__item share-links__item--twitter">
+ <a target="_blank" href="http://twitter.com/home?status={{ object.title|urlencode }}%20{{ request.build_absolute_uri }}" title="{% trans "Share on Twitter" %}"><i class="fa fa-twitter-square"></i></a>
</li>
- <li>
- <a class="share__link__item share-email" href="mailto:?subject={{ object.title }}&body={{ request.build_absolute_uri }}"> <i class="icon icon__envelope"></i> {% trans "Share by email" %}</a>
+ <li class="share-links__item share-links__item--email">
+ <a href="mailto:?subject={{ object.title }}&body={{ request.build_absolute_uri }}" title="{% trans "Share by email" %}"> <i class="fa fa-envelope-square"></i></a>
</li>
- <li>
- <a class="share__link__item share-print" href="javascript:window.print()"><i class="icon icon__print"></i> {% trans "Print this page" %}</a>
+ <li class="share-links__item share-links__item--print">
+ <a href="javascript:window.print()" title="{% trans "Print this page" %}"><i class="fa fa-print"></i></a>
</li>
</ul>
{% block page_tags %}
+{% if department_name %}
+ <div class="tag dashed dashed--gray">
+ {{ department_name }}
+ </div>
+{% endif %}
<div class="tag tag--category">
{% trans 'News' %}
</div>
- {% if department_name %}
- <div class="tag dashed dashed--gray">
- {{ department_name }}
- </div>
- {% endif %}
+
{% endblock %}
<h1 class="dotted">{{ article.title }}</h1>
{% endeditable %}
- {% editable article.sub_title %}
- <div class="chapo">
- {{ article.sub_title }}
- </div>
- {% endeditable %}
+ {% if article.sub_title %}
+ {% editable article.sub_title %}
+ <div class="chapo">
+ {{ article.sub_title }}
+ </div>
+ {% endeditable %}
+ {% endif %}
{% endblock %}
{% block page_sidebar %}
- <div class="page__meta">
+ <div class="page__meta" data-sticky data-sticky-parent="row" data-sticky-offset="100" data-sticky-detach-at="971">
{% editable article.publish_date %}
- <h6 class="post-meta">
+ <div class="page__meta-date">
{{ article.publish_date|date:"DATE_FORMAT" }}
- </h6>
+ </div>
{% endeditable %}
+ <div class="page__meta-separator">
+
+ </div>
+ {% if article.categories.all.length > 0 %}
+ <div class="page__meta-date">
+ {% for category in article.categories.all %}
+ {% if forloop.first %} | {% endif %}
+ {% if not forloop.first %}, {% endif %}
+ <strong>{{ category }}</strong>
+ {% endfor %}
+ </div>
+ {% endif %}
{% with article as object %}
{% include "includes/share_buttons.html" %}
{% endwith %}
{% trans 'News' %}
</div>
{% if article.department %}
- <div class="tag tag--small dashed dashed--gray">
- {{ article.department.name }}
- </div>
+ <div class="tag tag--small dashed dashed--gray">
+ {{ article.department.name }}
+ </div>
{% endif %}
</div>
</div>