Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #110 from mmz-srf/SRFCMS-6772-fef-navigation-renam…
Browse files Browse the repository at this point in the history
…ing-task

Srfcms 6772 fef renaming task
  • Loading branch information
mms-pabo authored Jun 1, 2017
2 parents cbbc484 + 23c24c9 commit ea37ba1
Show file tree
Hide file tree
Showing 178 changed files with 263 additions and 216 deletions.
2 changes: 1 addition & 1 deletion source/_data/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"articleText": {
"title": "Vorbild für den «Chaos Computer Club»",
"text": "Es ist erstaunlich, wie viele Themen Barlow bereits vor 20 Jahren angesprochen hat. Noch heute bezieht sich der Hackerverein <a target='blank' href='http://www.google.ch'>«Chaos Computer Club»</a> auf einige Stellen seines Manifestes. Denn auch der Chaos Computer Club kämpft für freien Zugang zu Information sowie sichere Datenübermittlung im Netz und wehrt sich gegen staatliche Überwachung und Internetzensur. Hernani Marques, Aktivist und Pressesprecher vom Schweizer Ableger des Chaos Computer Club, erwähnt aber auch Punkte in Barlows Manifest, die 2016 nicht mehr so aussehen: Die Unterscheidung von realem Leben und Cyberspace liesse sich heute nicht mehr so deutlich machen – man denke nur an die Smartphones, mit denen das Internet heute allgegenwärtig sei. Barlow habe auch nicht vorausgesehen, wie stark das Internet automatisiert werden sollte."
"text": "Es ist erstaunlich, wie viele Themen Barlow bereits vor 20 Jahren angesprochen hat. Noch heute bezieht sich der Hackerverein «Chaos Computer Club» auf einige Stellen seines Manifestes. Denn auch der Chaos Computer Club kämpft für freien Zugang zu Information sowie sichere Datenübermittlung im Netz und wehrt sich gegen staatliche Überwachung und Internetzensur. Hernani Marques, Aktivist und Pressesprecher vom Schweizer Ableger des Chaos Computer Club, erwähnt aber auch Punkte in Barlows Manifest, die 2016 nicht mehr so aussehen: Die Unterscheidung von realem Leben und Cyberspace liesse sich heute nicht mehr so deutlich machen – man denke nur an die Smartphones, mit denen das Internet heute allgegenwärtig sei. Barlow habe auch nicht vorausgesehen, wie stark das Internet automatisiert werden sollte."
},
"blockquote": {
"text": "Ich habe nicht ein Verbrechen gegen meine Verantwortung begangen.",
Expand Down
4 changes: 2 additions & 2 deletions source/_patterns/00-introduction/intro.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<ul class="text-list text-list--unordered">
<li>The main idea behind our <a href="#BEM">BEM blocks</a> is that they could be used independently and anywhere. A vision is that - when we are ready to use http/2 - each block will have a separate generated CSS file so that just the styles for blocks used on a web page need to be included. Therefore: Avoid global styles and code a block in a way that all its styling is in one Sass file.</li>
<li>Maintainability should be the primary goal when writing CSS/Sass-Code for the framework even if it results in more code.</li>
<li>Top and bottom spaces between elements/components should be ruled by
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing" target="_blank">collapsing margins</a>. The element with the larger margin wins.
<li>Top and bottom spaces between components should be ruled by
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing" target="_blank">collapsing margins</a>. The component with the larger margin wins.
Therefore only use margins not padding for top and bottom spaces. Sometimes it is necessary to add a wrapper <code>&lt;div&gt;</code> to make margins work as desired.</li>
<li>You are allowed to use flexbox - so use it ;-)</li>
</ul>
Expand Down
6 changes: 0 additions & 6 deletions source/_patterns/05-elements/article/_article-text.twig

This file was deleted.

3 changes: 3 additions & 0 deletions source/_patterns/10-atoms/article/_article-text.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>{{ articleText.text }} Dann kam <a href="http://www.srf.ch">das Internet</a>. John Perry Barlow benützte es bereits.</p>
<p>John Perry Barlow ist heute 68 Jahre alt. Er hat volles Haar, einen verschmitzten Blick und trägt ein goldenes Amulett um den Hals.</p>
<p>Früher schrieb er Songtexte für <strong>The Grateful Dead</strong>, nahm LSD und züchtete Rinder in Wyoming.</p>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
src="{{ src }}">
{% block image_carousel_counter %}
{% if currentIndex and totalCount %}
{% include 'elements-carousel-counter' with { 'currentIndex': currentIndex, 'totalCount': totalCount, 'accessibilityInfo' : 'Bild' } %}
{% include 'atoms-carousel-counter' with { 'currentIndex': currentIndex, 'totalCount': totalCount, 'accessibilityInfo' : 'Bild' } %}
{% endif %}
{% endblock %}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
{% endif %}
</span>
</div>
{% include 'elements-legend' %}
{% include 'atoms-legend' %}
</figcaption>

This file was deleted.

11 changes: 0 additions & 11 deletions source/_patterns/10-components/ch-map/ch-map.twig

This file was deleted.

9 changes: 0 additions & 9 deletions source/_patterns/10-components/image-figure/image-figure.twig

This file was deleted.

20 changes: 0 additions & 20 deletions source/_patterns/10-components/linkbox/linkbox.twig

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions source/_patterns/15-templates/article.twig

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<header class="article-header">
{% include 'atoms-article-overline' %}
{% include 'atoms-article-title' %}
{% include 'atoms-article-lead' %}
{% include 'atoms-article-author' %}
{% include 'atoms-horizontal-separator' with {'styleModifier': 'horizontal-separator--content-max-width'} %}
</header>
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<ol class="audio-gallery">
{% for audio in audios %}
<li class="audio-gallery__item">
{% include 'components-audio' with {
{% include 'molecules-audio' with {
"audios": [audio]
} %}
</li>
<li class="audio-gallery__item">
{% include 'components-audio' with {
{% include 'molecules-audio' with {
"audios": [audio]
} %}
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
{% endblock %}

{% block play_icon %}
{% include 'elements-play-icon' with {'media': 'audio'} %}
{% include 'atoms-play-icon' with {'media': 'audio'} %}
{% endblock %}
{% block loading_spinner %}
{% include 'elements-spinner' with { 'styleModifier' : 'spinner__circle--dash-white' } %}
{% include 'atoms-spinner' with { 'styleModifier' : 'spinner__circle--dash-white' } %}
{% endblock %}
</div>
{% block audio_caption %}
Expand Down
11 changes: 11 additions & 0 deletions source/_patterns/20-molecules/ch-map/ch-map.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<figure id="map-{{ chmap.id }}" class="chmap-wrapper" data-src="../../assets/demo/chmap-data.json" aria-hidden="true">
<div id="loader"></div>
{% include 'atoms-chmap.svg' with { 'idReference' : chmap.id } %}

{% include 'atoms-media-caption-with-legend' with { 'styleModifier': 'media-caption--chmap', 'styleModifierContent': 'media-caption__content--chmap' } %}

<div class="menu-wrapper">
{% include 'atoms-select' %}
</div>
<div id="infowindow-{{ chmap.id }}" class="chmap-infowindow"></div>
</figure>
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

<figure class="chart__container">
<div id="chartdiv__id--column" class="chart" data-src="../../assets/demo/chart-data-column.json"></div>
{% include 'elements-media-caption-with-image' %}
{% include 'atoms-media-caption-with-image' %}
</figure>

<figure class="chart__container">
<div id="chartdiv__id--pie" class="chart" data-src="../../assets/demo/chart-data-pie.json"></div>
{% include 'elements-media-caption' %}
{% include 'atoms-media-caption' %}
</figure>

<figure class="chart__container">
<div id="chartdiv__id--line" class="chart" data-src="../../assets/demo/chart-data-line.json"></div>
{% include 'elements-media-caption-with-image' %}
{% include 'atoms-media-caption-with-image' %}
</figure>
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<input type="hidden" name="reply_to" class="js-comment_reply_to" value="0">{# replytocomment #}
<input type="hidden" name="user_token" class="js-comment_user_token" value="0">{# replytocomment #}
</fieldset>
{% include 'elements-button' with { 'styleModifier' : 'button--inactive', 'buttonText' : 'Kommentieren' } %}
{% include 'atoms-button' with { 'styleModifier' : 'button--inactive', 'buttonText' : 'Kommentieren' } %}
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
<div id="sectionAll" role="tabpanel">
<ul class="comments comments--shrink comments--main">
{% block comments %}
{% include 'components-comment' with { 'comments': comments.comments, 'allowsComments': true } %}
{% include 'molecules-comment' with { 'comments': comments.comments, 'allowsComments': true } %}
{% endblock %}
</ul>
{% block more_button %}
{% include 'elements-load-more' %}
{% include 'atoms-load-more' %}
{% endblock %}
{% block more_button_spinner %}
{% include 'elements-spinner' %}
{% include 'atoms-spinner' %}
{% endblock %}
</div>
{% if popularComments is not empty %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
<fieldset class="form-fieldset">
<legend class="form-fieldset__legend">{{ form.legend }}</legend>
{% set hintFieldID = 'checkbox-fieldset-ID' %}
{% include 'elements-checkbox' with { 'fieldID': 'checkbox-ID1', 'required': true, 'hintFieldlID': hintFieldID } %}
{% include 'elements-checkbox' with { 'fieldID': 'checkbox-ID2', 'required': false, 'hintFieldlID': hintFieldID } %}
{% include 'atoms-checkbox' with { 'fieldID': 'checkbox-ID1', 'required': true, 'hintFieldlID': hintFieldID } %}
{% include 'atoms-checkbox' with { 'fieldID': 'checkbox-ID2', 'required': false, 'hintFieldlID': hintFieldID } %}
<span class="form-fieldset__hint {{ styleModifier }}"
id="{{ hintFieldID }}-hint">{{ hintText|default("Hint") }}</span>
</fieldset>
<fieldset class="form-fieldset">
<legend class="form-fieldset__legend">{{ form.legend }}</legend>
{% set hintFieldID = 'radio-button-fieldset-ID' %}
{% include 'elements-radio-button' with { 'fieldID': 'radio-button-ID1', 'hintFieldlID': hintFieldID } %}
{% include 'elements-radio-button' with { 'fieldID': 'radio-button-ID2', 'hintFieldlID': hintFieldID } %}
{% include 'atoms-radio-button' with { 'fieldID': 'radio-button-ID1', 'hintFieldlID': hintFieldID } %}
{% include 'atoms-radio-button' with { 'fieldID': 'radio-button-ID2', 'hintFieldlID': hintFieldID } %}
<span class="form-fieldset__hint {{ styleModifier }}"
id="{{ hintFieldID }}-hint">{{ hintText|default("Hint") }}</span>
</fieldset>
<fieldset class="form-fieldset">
{% if legendTitle is defined %}
<legend class="form-fieldset__legend">{{ legendTitle|default('') }}</legend>{% endif %}
{% include 'elements-input-field' with { 'labelText': 'Name, Vorname', 'hintText': '', 'fieldID': 'input-ID1', 'inputType': 'text', 'required': true } %}
{% include 'elements-input-field' with { 'labelText': 'Geburtstag', 'hintText': 'Format: dd.mm.YYY', 'fieldID': 'input-ID2', 'inputType': 'date', 'required': true } %}
{% include 'elements-select' with { 'fieldID': 'menu-ID', 'labelText': 'Bitte wählen', 'required': false } %}
{% include 'elements-button' with { 'styleModifier' : 'button--secondary', 'buttonText' : form.button.upload } %}
{% include 'atoms-input-field' with { 'labelText': 'Name, Vorname', 'hintText': '', 'fieldID': 'input-ID1', 'inputType': 'text', 'required': true } %}
{% include 'atoms-input-field' with { 'labelText': 'Geburtstag', 'hintText': 'Format: dd.mm.YYY', 'fieldID': 'input-ID2', 'inputType': 'date', 'required': true } %}
{% include 'atoms-select' with { 'fieldID': 'menu-ID', 'labelText': 'Bitte wählen', 'required': false } %}
{% include 'atoms-button' with { 'styleModifier' : 'button--secondary', 'buttonText' : form.button.upload } %}
</fieldset>
<p class="form__hint">{{ form.hint }}</p>
{% include 'elements-button' %}
{% include 'atoms-button' %}
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="carousel carousel__js" id="{{ image_carousel.ID }}">
{% for image in images %}
<div class="carousel__item">
{% include 'components-image-figure' with {
{% include 'molecules-image-figure' with {
'styleModifier': imageCaptionStyle,
'images': [image],
'currentIndex': loop.index,
Expand Down
9 changes: 9 additions & 0 deletions source/_patterns/20-molecules/image-figure/image-figure.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<figure class="image-figure {{ styleModifier }}">
{% block image_wrapper %}
{% include 'atoms-image' with {'styleModifier': imageCaptionStyle } %}
{% endblock %}

{% block image_caption %}
{% include 'atoms-media-caption' with {'styleModifier': imageCaptionStyle } %}
{% endblock %}
</figure>
20 changes: 20 additions & 0 deletions source/_patterns/20-molecules/linkbox/linkbox.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div class="linkbox {{ styleModifier }}">
<h4 class="linkbox__title">{{ title }}</h4>
<ul class="linkbox__list">
<li>
{% include 'atoms-block-link' with {'styleModifier': 'block-link--internal'} %}
</li>
<li>
{% include 'atoms-block-link' with {'styleModifier': 'block-link--external'} %}
</li>
<li>
{% include 'atoms-block-link' with {'styleModifier': 'block-link--document'} %}
</li>
<li>
{% include 'atoms-block-link' with {'styleModifier': 'block-link--docx'} %}
</li>
<li>
{% include 'atoms-block-link' with {'styleModifier': 'block-link--pdf'} %}
</li>
</ul>
</div>
Loading

0 comments on commit ea37ba1

Please sign in to comment.