jekyll-theme-pirati 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bdb68d4647d5442cb21cf54b3ee08ed94bcfd5fa48606cde0bf0853108f4105
4
- data.tar.gz: ede8168c9b023d3a2ac8d45d052a8af2499a2a22183e7269ff6e53c698290b3c
3
+ metadata.gz: df41724db282a19da49db4917e49dfd3685d4a0d0e0ea6d155bdd2fd918e9fac
4
+ data.tar.gz: db704cb039df80b45846873c2653afee1096e6a3da09d817eef535dd72438467
5
5
  SHA512:
6
- metadata.gz: af3b18b8c6172f4230873a38a26f0ac90d2172e5f06121df38caa0c7c5928d9e369bde6a5b51733a828253c70a3b6e1781b037ad334d0db88ce07ad3c1f97a56
7
- data.tar.gz: 6591a84e4f4fdae1c9b510194129e2acaa902f913c8dbe9da0d65b4efe7eb19c1cbbb0e0f15e9b774d9d6331d5d2bf9f1998342d98ffb4be06ac7e16fb4f3456
6
+ metadata.gz: ac3ee0393efd2c411a70ae2b2c5d19f0909b2a5c7f3642d5ff49763bd3c50768b287e658ffb890b33924620b79e764ec9a3b75ed0aece91edcb311b65d0b73f1
7
+ data.tar.gz: 55ff58cfa52e2549abe88948a2b57ebf2488601d5e4085f1798c7ceb4c6735c65fa1361349fa018ef276e74d36a6cfbca07ccd47310de986e67d654488148993
@@ -0,0 +1,29 @@
1
+ <div class="c-program-candidate-badge {% if include.leader %}c-program-candidate-badge--leader{% endif %}">
2
+ <div class="c-program-candidate-badge__body">
3
+ <div class="c-program-candidate-badge__avatar">
4
+ <a href="{{ include.candidate.url | relative_url }}">
5
+ <span class="c-program-candidate-badge__rank"><span>{{ include.candidate.cityCandidatePosition }}.</span></span>
6
+
7
+ {% if include.candidate.img %}
8
+ <div class="o-media__image o-media__image--lgspace">
9
+ <object data= "{{ include.candidate.img | prepend: '/assets/img/' | relative_url }}" type="image/jpg">
10
+ <div class="o-media__image o-media__image--lgspace">
11
+ <img src="{{ '/assets/img/people/ppp.jpg' | relative_url }}" alt="{{item.title}}">
12
+ </div>
13
+ </object>
14
+ </div>
15
+ {% else %}
16
+ <div class="o-media__image o-media__image--lgspace">
17
+ <img src="{{ '/assets/img/people/ppp.jpg' | relative_url }}" alt="{{item.title}}">
18
+ </div>
19
+ {% endif %}
20
+
21
+ </a>
22
+ </div>
23
+ <div class="c-program-candidate-badge__description">
24
+ <h4 class="c-program-candidate-badge__name"><a href="{{ include.candidate.url | relative_url }}">{{ include.candidate.fullname }}</a></h4>
25
+ <strong class="c-program-candidate-badge__profession">{{ include.candidate.profession }}</strong>
26
+ <p class="c-program-candidate-badge__bio">{{ include.candidate.candidateDescription }}</p>
27
+ </div>
28
+ </div>
29
+ </div>
@@ -4,33 +4,51 @@
4
4
  <div class="o-section-inner" style="padding: 3px;">
5
5
  <div class="medium-12 columns">
6
6
  <ul class="c-header-bar-items">
7
+ {% if site.data.links.group.facebook_page %}
7
8
  <li class="c-header-bar__item c-header-bar__item--smallerSpace">
8
- <a href="{{site.fb}}" rel="noopener noreferrer" target="_blank" title="Facebook - Česká pirátská strana">
9
+ <a href="{{site.data.links.group.facebook_page}}" rel="noopener noreferrer" target="_blank" title="Naše stránka na Facebooku">
9
10
  <i class="fa fa-facebook" aria-hidden="true"></i>
10
11
  </a></li>
12
+ {% endif %}
13
+ {% if site.data.links.group.twitter %}
11
14
  <li class="c-header-bar__item c-header-bar__item--smallerSpace">
12
- <a href="https://www.twitter.com/{{site.tw}}" rel="noopener noreferrer" target="_blank" title="Twitter - Česká pirátská strana">
15
+ <a href="{{site.data.links.group.twitter}}" rel="noopener noreferrer" target="_blank" title="Náš účet na Twitteru">
13
16
  <i class="fa fa-twitter" aria-hidden="true"></i>
14
17
  </a>
15
18
  </li>
19
+ {% endif %}
20
+ {% if site.data.links.group.name %}
16
21
  <li class="c-header-bar__item c-header-bar__item--smallerSpace">
17
- <a href="https://www.instagram.com/pirati.cz/" rel="noopener noreferrer" target="_blank" title="Instagram - Česká pirátská strana">
22
+ <a href="{{'/feed.xml' | relative_url }}" rel="noopener noreferrer" target="_blank" title="Články tohoto webu v RSS">
23
+ <i class="fa fa-rss" aria-hidden="true"></i>
24
+ </a>
25
+ </li>
26
+ {% endif %}
27
+ {% if site.data.links.group.instagram %}
28
+ <li class="c-header-bar__item c-header-bar__item--smallerSpace">
29
+ <a href={{ site.data.links.group.instagram }} rel="noopener noreferrer" target="_blank" title="Instagram - Česká pirátská strana">
18
30
  <i class="fa fa-instagram" aria-hidden="true"></i>
19
- </a></li>
31
+ </a>
32
+ </li>
33
+ {% endif %}
34
+ {% if site.data.links.group.googleplus %}
20
35
  <li class="c-header-bar__item c-header-bar__item--smallerSpace">
21
- <a href="https://plus.google.com/u/0/+piratskastrana" rel="noopener noreferrer" target="_blank" title="Google Plus - Česká pirátská strana">
36
+ <a href={{ site.data.links.group.instagram }} rel="noopener noreferrer" target="_blank" title="Google Plus - Česká pirátská strana">
22
37
  <i class="fa fa-google-plus" aria-hidden="true"></i>
23
38
  </a>
24
39
  </li>
40
+ {% endif %}
41
+ {% if site.data.links.group.flicker %}
25
42
  <li class="c-header-bar__item c-header-bar__item--smallerSpace">
26
- <a href="https://www.flickr.com/photos/pirati/" rel="noopener noreferrer" target="_blank" title="Flickr - Česká pirátská strana">
43
+ <a href={{ site.data.links.group.instagram }} rel="noopener noreferrer" target="_blank" title="Flickr - Česká pirátská strana">
27
44
  <i class="fa fa-flickr" aria-hidden="true"></i>
28
45
  </a>
29
46
  </li>
47
+ {% endif %}
30
48
  </ul>
31
49
  <div class="c-header-bar-divider"></div>
32
50
  <ul class="c-header-bar-items c-header-bar-items--bigLh">
33
- {% for item in site.data.top-menu %}
51
+ {% for item in site.data.links.top-menu %}
34
52
  <li class="c-header-bar__item">
35
53
  <a href="{{ item.url }}" rel="noopener noreferrer" target="_blank">
36
54
  <i class="{{ item.icon }}" aria-hidden="true"></i>
@@ -43,73 +61,3 @@
43
61
  </div>
44
62
  </div>
45
63
  </aside>
46
-
47
-
48
-
49
- <div class="c-top-bar">
50
- <div class="row">
51
- <div class="c-top-bar-inner u-cf">
52
-
53
- {% if page.url != '/' %}
54
- <div class="top-bar-title">
55
- <a href="{{ '/' | relative_url }}">
56
- <img src="{{ '/assets/img/brand/logo_napis.svg' | relative_url }}" alt="Pirátská strana">
57
- </a>
58
- </div>
59
- {% endif %}
60
-
61
- <ul class="c-top-bar-searchbar c-top-bar-searchbar--asTitle menu">
62
- <li>
63
- <input type="search" id="search" placeholder="Hledaný výraz">
64
- </li>
65
- <li class="c-top-bar-searchbar__submit">
66
- <button type="button" class="button" id="searchsub">
67
- <i class="fa fa-search" aria-hidden="true"></i>
68
- </button>
69
- </li>
70
- </ul>
71
-
72
- <div class="menu-toggle-container hide-for-large">
73
- <span data-responsive-toggle="responsive-menu" id="menuTogge" data-hide-for="large">
74
- <button class="" type="button" data-toggle="">
75
- <span class="menu-toggle-inner">
76
- <span class="menu-toggle-description">Menu</span>
77
- <i class="menu-icon dark"></i>
78
- </span>
79
- </button>
80
- </span>
81
- </div>
82
- <div id="responsive-menu" class="c-top-bar-menu">
83
- <div class="responsive-menu-inner">
84
- <div class="top-bar-left top-bar-footer-group">
85
- <ul class="dropdown menu" data-dropdown-menu="">
86
-
87
- <li {% if page.url contains 'aktuality' %} class="is-active"{% endif %}>
88
- <a href="{{'/aktuality/' | relative_url }}">Aktuality</a>
89
- </li>
90
-
91
- <li{% if page.url contains 'o-nas' or page.url contains 'lide' or page.url contains 'regiony'%} class="is-active"{% endif %}>
92
- <a href="{{ '/lide/' | relative_url }}">O nás</a>
93
- <ul class="menu vertical">
94
- <li{% if page.url contains 'lide'%} class="is-active"{% endif %}>
95
- <a href="{{ '/lide/' | relative_url }}">Naši lidé</a>
96
- </li>
97
- </ul>
98
- </li>
99
-
100
- <li{% if page.url contains 'program' %} class="is-active"{% endif %}>
101
- <a href="{{ '/program/' | relative_url }}">Program</a>
102
- </li>
103
-
104
-
105
- </ul>
106
- </div>
107
- </div>
108
- </div>
109
-
110
-
111
-
112
- </div>
113
- </div>
114
- </div>
115
- <div class="c-top-bar-border"> </div>
@@ -0,0 +1,64 @@
1
+ <div class="c-top-bar">
2
+ <div class="row">
3
+ <div class="c-top-bar-inner u-cf">
4
+
5
+ {% if page.url != '/' %}
6
+ <div class="top-bar-title">
7
+ <a href="{{ '/' | relative_url }}">
8
+ <img src="{{ '/assets/img/brand/logo_napis.svg' | relative_url }}" alt="Pirátská strana">
9
+ </a>
10
+ </div>
11
+ {% endif %}
12
+
13
+ <ul class="c-top-bar-searchbar c-top-bar-searchbar--asTitle menu">
14
+ <li>
15
+ <input type="search" id="search" placeholder="Hledaný výraz">
16
+ </li>
17
+ <li class="c-top-bar-searchbar__submit">
18
+ <button type="button" class="button" id="searchsub">
19
+ <i class="fa fa-search" aria-hidden="true"></i>
20
+ </button>
21
+ </li>
22
+ </ul>
23
+
24
+ <div class="menu-toggle-container hide-for-large">
25
+ <span data-responsive-toggle="responsive-menu" id="menuTogge" data-hide-for="large">
26
+ <button class="" type="button" data-toggle="">
27
+ <span class="menu-toggle-inner">
28
+ <span class="menu-toggle-description">Menu</span>
29
+ <i class="menu-icon dark"></i>
30
+ </span>
31
+ </button>
32
+ </span>
33
+ </div>
34
+ <div id="responsive-menu" class="c-top-bar-menu">
35
+ <div class="responsive-menu-inner">
36
+ <div class="top-bar-left top-bar-footer-group">
37
+ <ul class="dropdown menu" data-dropdown-menu="">
38
+
39
+ {% for item in site.data.menu %}
40
+ <li{% if page.url contains 'o-nas' or page.url contains 'lide' or page.url contains 'regiony'%} class="is-active"{% endif %}>
41
+ <a href="{{ item.link | relative_url }}"> {{ item.name }} </a>
42
+ {% if item.submenu %}
43
+ <ul class="menu vertical">
44
+ {% for subitem in item.submenu %}
45
+ <li{% if page.url contains 'lide'%} class="is-active"{% endif %}>
46
+ <a href="{{ subitem.lik | relative_url }}"> {{ subitem.name }} </a>
47
+ </li>
48
+ {% endfor %}
49
+ </ul>
50
+ {% endif %}
51
+ </li>
52
+ {% endfor %}
53
+
54
+ </ul>
55
+ </div>
56
+ </div>
57
+ </div>
58
+
59
+
60
+
61
+ </div>
62
+ </div>
63
+ </div>
64
+ <div class="c-top-bar-border"> </div>
@@ -0,0 +1,47 @@
1
+ {% capture label %}
2
+ {% if include.item.name %}{{ include.item.name }}{% else %}{{ include.item.title }}{% endif %}
3
+ {% endcapture %}
4
+ {% if include.item.url contains 'http' %}
5
+ {% assign url = include.item.url %}
6
+ {% else %}
7
+ {% assign url = include.item.url | relative_url %}
8
+ {% endif %}
9
+ <div class="o-media o-media-list">
10
+ <div class="o-media__image o-media__image--lgspace {% if include.imgStyle == 'round' %}o-media__image--round{% endif %}">
11
+ {% if include.imgSize != 'big' %}
12
+ <a href="{{ url }}">{% asset '{{ include.item.img }}' magick:resize='100x100^' magick:gravity='center' magick:crop='100x100+0+0' alt='{{ label }}' %}</a>
13
+ {% else %}
14
+ <a href="{{ url }}">{% asset '{{ include.item.img }}' magick:resize='165x165^' magick:gravity='center' magick:crop='165x165+0+0' alt='{{ label }}' %}</a>
15
+ {% endif %}
16
+ </div>
17
+ <div class="o-media__body">
18
+ <div class="o-media__body-inner {% if include.style == 'card' %}o-media__body-inner--padded{% endif %}">
19
+ <h2 class="o-media__headline">
20
+ <a href="{{ url }}">{{ label }}</a>
21
+ </h2>
22
+ {% unless include.showDescription == false %}
23
+ <p>
24
+ {% if include.description %}
25
+ {{ include.description }}
26
+ {% else %}
27
+ {{ include.item.description }}
28
+ {% endif %}
29
+ </p>
30
+ {% endunless %}
31
+
32
+ {% unless include.showContactInfo == false %}
33
+ {% if include.item.mob or include.item.mail %}
34
+ <p>
35
+ {% if include.item.mob %}
36
+ <i class="fa fa-phone"></i> <a href="tel:{{ include.item.mob }}">{{ include.item.mob }}</a>
37
+ <br>
38
+ {% endif %}
39
+ {% if include.item.mail %}
40
+ <i class="fa fa-envelope-o"></i> <a href="mailto:{{ include.item.mail }}">{{ include.item.mail }}</a>
41
+ {% endif %}
42
+ </p>
43
+ {% endif %}
44
+ {% endunless %}
45
+ </div>
46
+ </div>
47
+ </div>
@@ -2,16 +2,22 @@
2
2
  <ul class="c-widget-accordion c-widget-accordion--dark" data-accordion="" data-allow-all-closed="true">
3
3
  <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
4
  <a href="#" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">Kalendář</span>
5
+ <span class="c-widget-accordion__title">
6
+ {{ site.data.links.calendar.bar_title }}
7
+ </span>
6
8
  <span class="c-widget-accordion__icon c-widget-accordion__icon c-widget-accordion__icon--bottom" aria-hidden="true">
7
9
  <i class="fa fa-calendar-o fa-lg u-rotate-15"></i>
8
10
  </span>
9
11
  </a>
10
12
  <div class="c-widget-accordion-content" data-tab-content="">
11
- <iframe src="{{site.calendar}}" style="border-width:0; width: 100%; height: 410px; border: 0; overflow: hidden;"></iframe>
13
+ <iframe src="{{site.data.links.calendar.bar}}" style="border-width:0; width: 100%; height: 410px; border: 0; overflow: hidden;"></iframe>
14
+
15
+ {% if site.data.links.calendar.page %}
12
16
  <div class="c-widget-accordion-content__cta">
13
- <a class="dark expanded button large" href="{{ '/pripoj-se/kalendar/' | relative_url }}"> Zobrazit všechny akce </a>
17
+ <a class="dark expanded button large" href="{{ site.data.links.calendar.page | relative_url }}"> Zobrazit všechny akce </a>
14
18
  </div>
19
+ {% endif %}
20
+
15
21
  </div>
16
22
  </li>
17
23
  </ul>
@@ -8,10 +8,10 @@
8
8
  </span>
9
9
  </a>
10
10
  <div class="c-widget-accordion-content" data-tab-content="">
11
- <div class="fb-page" data-href="{{ site.fb }}" data-tabs="timeline" data-width="500" data-height="550" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
11
+ <div class="fb-page" data-href="{{site.data.links.group.facebook_page}}" data-tabs="timeline" data-width="500" data-height="550" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
12
12
  <div class="fb-xfbml-parse-ignore">
13
- <blockquote cite="{{site.fb}}">
14
- <a href="{{site.fb}}">
13
+ <blockquote cite="{{site.data.links.group.facebook_page}}">
14
+ <a href="{{site.data.links.group.facebook_page}}">
15
15
  Najdete nás na Facebooku:<br>
16
16
  Česká pirátská strana - Praha</a>
17
17
  </blockquote>
@@ -0,0 +1,20 @@
1
+ {% if page.garant %}
2
+ <div class="o-section-block--spaceBot">
3
+ <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
4
+ <li class="c-widget-accordion-item is-active" data-accordion-item="">
5
+ <a href="#toc" class="c-widget-accordion-link">
6
+ <span class="c-widget-accordion__title">Garant</span>
7
+ <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
8
+ <i class="fa fa-list"></i>
9
+ </span>
10
+ </a>
11
+ <div class="c-widget-accordion-content" data-tab-content="" id="toc">
12
+ <div class="c-widget-accordion-content-inner">
13
+ <div id="garant"></div>
14
+ </div>
15
+ </div>
16
+ </li>
17
+ </ul>
18
+ </div>
19
+ {% endif %}
20
+
@@ -1,46 +1,26 @@
1
1
  <div class="o-section-block--spaceBot show-for-large">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#toc" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">Program</span>
6
- <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
7
- <i class="fa fa-list"></i>
8
- </span>
9
- </a>
10
- <div class="c-widget-accordion-content" data-tab-content="" id="toc">
11
- <div class="c-widget-accordion-content-inner">
12
- <h4 class="c-widget-accordion-list__heading">Program parlament 2017</h4>
13
- <ul class="c-widget-accordion-list">
14
- <ul>
15
- {% assign program = site.program | where: "category","psp2017" %}
16
- {% for item in program %}
17
- <li><a href="{{item.url | relative_url}}">{{item.title}}</a></li>
18
- {% endfor %}
19
- <li><a href="{{'/kalkulacka/' | relative_url}}">Daňová kalkulačka</a></li>
2
+ <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
+ <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
+ <a href="#toc" class="c-widget-accordion-link">
5
+ <span class="c-widget-accordion__title">Komunální volby 2018</span>
6
+ <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
7
+ <i class="fa fa-list"></i>
8
+ </span>
9
+ </a>
10
+ <div class="c-widget-accordion-content" data-tab-content="" id="toc">
11
+ <div class="c-widget-accordion-content-inner">
12
+ <h4 class="c-widget-accordion-list__heading">Program na radnici</h4>
13
+ <ul class="c-widget-accordion-list">
14
+ <ul>
15
+ {% assign program = site.program | sort:"order" %}
16
+ {% for item in program %}
17
+ <li><a {% if page.uid == item.uid %}class="c-widget-accordion-list__seen"{% endif%} href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
18
+ {% endfor %}
19
+ </ul>
20
20
  </ul>
21
- </ul>
22
- <h4 class="c-widget-accordion-list__heading">Dlouhodobý program</h4>
23
- <ul class="c-widget-accordion-list">
24
- {% assign program = site.program | where: "category","dlouhodoby" | group_by:"topic" %}
25
- {% for topic in program %}
26
- {% if topic.name != 'meta' %}
27
- {{topic.name}}<ul>
28
- {% for item in topic.items %}
29
- <li><a href="{{item.url | relative_url}}">{{item.title}}</a></li>
30
- {% endfor %}</ul>{%endif%}
31
- {% endfor%}
32
- </ul>
33
- <!--
34
- <h4 class="c-widget-accordion-list__heading">Parlament 2017</h4>
35
- <ul class="c-widget-accordion-list">
36
- {% assign program = site.program | where: "category","psp2017" %}
37
- {% for item in program %}
38
- <li><a href="{{item.url | relative_url}}">{{item.title}}</a></li>
39
- {% endfor %}
40
- </ul>
41
- -->
21
+ </div>
42
22
  </div>
43
- </div>
44
- </li>
45
- </ul>
46
- </div>
23
+ </li>
24
+ </ul>
25
+ </div>
26
+
@@ -1,17 +1,11 @@
1
1
  <aside class="o-section">
2
2
  <div class="o-section-inner o-section-inner--rightBlock">
3
- {% if page.rbar contains 'snemovna' %}
4
- {% include right-bar/bar_snemovna.html %}
5
- {% endif %}
6
3
  {% if page.rbar contains 'foto' %}
7
4
  {% include right-bar/bar_foto.html %}
8
5
  {% endif %}
9
6
  {% if page.rbar contains 'foto' %}
10
7
  {% include right-bar/bar_person_contact.html %}
11
8
  {% endif %}
12
- {% if page.rbar contains 'program_item' %}
13
- {% include right-bar/bar_program_item.html %}
14
- {% endif %}
15
9
  {% if page.rbar contains 'team-summary' %}
16
10
  {% include right-bar/bar_teams_summary.html %}
17
11
  {% endif %}
@@ -20,6 +14,9 @@
20
14
  {% elsif page.rbar contains 'toc' %}
21
15
  {% include right-bar/bar_toc.html %}
22
16
  {% endif %}
17
+ {% if page.rbar contains 'garant' %}
18
+ {% include right-bar/bar_garant.html %}
19
+ {% endif %}
23
20
  {% if page.rbar contains 'program' %}
24
21
  {% include right-bar/bar_program.html %}
25
22
  {% endif %}
@@ -41,8 +38,5 @@
41
38
  {% if page.rbar contains 'otevrenost' %}
42
39
  {% include right-bar/bar_otevrenost.html %}
43
40
  {% endif %}
44
- {% if page.rbar contains 'slovensko' %}
45
- {% include right-bar/bar_slovensko.html %}
46
- {% endif %}
47
41
  </div>
48
42
  </aside>
@@ -9,6 +9,10 @@
9
9
  <body>
10
10
 
11
11
  {% include header.html %}
12
+
13
+ {% if site.data.menu %}
14
+ {% include menu.html %}
15
+ {% endif %}
12
16
 
13
17
  <div class="page-content">
14
18
  <div class="wrapper">
@@ -0,0 +1,59 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <div class="row">
6
+
7
+ <div class="c-program-intro">
8
+ <p> {{content}} </p>
9
+ </div>
10
+
11
+ <div class="o-section">
12
+ <div class="columns medium-8">
13
+ <div class="o-section-header">
14
+ <h3 class="o-section__heading o-section__heading--small">Kandidátní listina</h3>
15
+ </div>
16
+ <div class="c-program-candidates">
17
+ {% assign team = site.people | where_exp:"item","item.categories contains 'kandidat-obec'" | sort:"cityCandidatePosition" %}
18
+ {% assign leader_candidate = team | first %}
19
+ {% assign other_candidates = team | slice:1,team.size %}
20
+
21
+ {% include candidate_badge.html candidate=leader_candidate leader=true %}
22
+
23
+ {% for candidate in other_candidates %}
24
+ {% assign loopindex = forloop.index | modulo: 3 %}
25
+ {% if loopindex == 1 %}<div class="c-program-candidates__row">{% endif %}
26
+ {% include program/candidate_badge.html candidate=candidate leader=false %}
27
+ {% if loopindex == 0 or forloop.last %}</div>{% endif %}
28
+ {% endfor %}
29
+ </div>
30
+
31
+ {% if page.note %}
32
+ <p><strong>Pozn.:</strong> {{ page.note }}</p>
33
+ {% endif %}
34
+
35
+ </div>
36
+ <div class="columns medium-4">
37
+ <div class="o-section-header">
38
+ <h3 class="o-section__heading o-section__heading--small">Program</h3>
39
+ </div>
40
+ <div class="c-program-items">
41
+ {% assign programCategories = site.program | sort:"order" %}
42
+ {% for category in programCategories %}
43
+ <div class="c-program-items__item">
44
+ <div class="c-program-items__item-wrap">
45
+ <div class="c-program-items__item-inner">
46
+ <a href="{{ category.url | relative_url }}">
47
+ <h3 class="c-program-items__item-title">{{ category.title }}</h3>
48
+ <p>{{ category.perex }}</p>
49
+ </a>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ {% endfor %}
54
+ </div>
55
+
56
+ </div>
57
+ </div>
58
+
59
+ </div>
@@ -7,7 +7,12 @@ layout: default
7
7
  {% endunless%}
8
8
 
9
9
  <div class="row">
10
- <div class="medium-12 {% if page.rbar == empty %}large-12{% else%}large-8{%endif%} columns">
10
+ <div class="medium-12
11
+ {% if page.rbar == empty or page.rbar == blank or page.rbar == nil %}
12
+ large-12
13
+ {% else%}
14
+ large-8
15
+ {%endif%} columns">
11
16
  <div class="o-section o-section--spaceBot">
12
17
  <div class="o-section-inner">
13
18
  <main class="o-section-block">
@@ -26,7 +31,7 @@ layout: default
26
31
  </div>
27
32
  </div>
28
33
  </div>
29
- {% unless page.rbar == blank %}
34
+ {% unless page.rbar == empty or page.rbar == blank or page.rbar == nil %}
30
35
  <div class="medium-12 large-4 columns">
31
36
  {% include right-bar/rbar.html %}
32
37
  </div>
@@ -0,0 +1,198 @@
1
+ $program-item-ns: '';
2
+
3
+ .#{$program-item-ns}c-program-key-point-list {
4
+ dt:not(:first-of-type)::before {
5
+ content: "\A";
6
+ white-space: pre-wrap;
7
+ display: block;
8
+ height: 1em;
9
+ }
10
+
11
+ dt, dd {
12
+ display: inline;
13
+ margin: 0;
14
+ }
15
+ }
16
+
17
+ .o-section-header + .c-program-candidates,
18
+ .o-section-header + .c-program-items {
19
+ margin-top: 1.5rem;
20
+ }
21
+
22
+ .#{$program-item-ns}c-program-intro {
23
+ padding: 1.25rem;
24
+ }
25
+
26
+ .#{$program-item-ns}c-program-items {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ flex-direction: row;
30
+
31
+ @include breakpoint(medium down) {
32
+ flex-direction: column;
33
+ }
34
+ }
35
+
36
+ .#{$program-item-ns}c-program-items__item {
37
+ display: flex;
38
+ max-width: 100%;
39
+ }
40
+
41
+ .#{$program-item-ns}c-program-items__item-wrap {
42
+ display: flex;
43
+ color: $white;
44
+ border: 1px $light-gray solid;
45
+ transition: border-color .2s ease-in-out;
46
+
47
+ &:hover {
48
+ border-color: $primary-color;
49
+ color: $white;
50
+ }
51
+ }
52
+
53
+
54
+ .#{$program-item-ns}c-program-items__item + .#{$program-item-ns}c-program-items__item {
55
+ margin-top: 1.5rem;
56
+ }
57
+
58
+ .#{$program-item-ns}c-program-items__item-inner {
59
+ padding: 1.25rem;
60
+
61
+ .#{$program-item-ns}c-program-items__item-title {
62
+ color: $primary-color;
63
+ text-decoration: underline;
64
+ font-weight: 600;
65
+ font-size: 1.5rem;
66
+ }
67
+
68
+ a:not(.button) {
69
+ color: $black;
70
+ // color: $white;
71
+ text-decoration: none;
72
+ }
73
+ }
74
+
75
+ .#{$program-item-ns}c-program-candidates {
76
+ display: flex;
77
+ flex-direction: row;
78
+ flex-wrap: wrap;
79
+ }
80
+
81
+ .#{$program-item-ns}c-program-candidates__row {
82
+ display: flex;
83
+ flex-direction: row;
84
+ flex-wrap: wrap;
85
+ margin-left: -0.75rem;
86
+ margin-right: -0.75rem;
87
+ margin-bottom: 1.5rem;
88
+ }
89
+
90
+ .#{$program-item-ns}c-program-candidate-badge {
91
+ display: flex; // keep the height uniform
92
+
93
+ .#{$program-item-ns}c-program-candidate-badge__body {
94
+ width: 100%;
95
+ display: flex;
96
+ flex-direction: column;
97
+ border: 1px $light-gray solid;
98
+
99
+ .#{$program-item-ns}c-program-candidate-badge__description {
100
+ padding: 1rem;
101
+ }
102
+
103
+ .#{$program-item-ns}c-program-candidate-badge__name {
104
+ font-size: 1.5rem;
105
+ font-weight: 600;
106
+
107
+ @include breakpoint(medium down) {
108
+ font-size: 1.25rem;
109
+ }
110
+ }
111
+
112
+ .#{$program-item-ns}c-program-candidate-badge__profession {
113
+ display: block;
114
+ margin-bottom: .25rem;
115
+ font-weight: 600;
116
+ }
117
+
118
+ .#{$program-item-ns}c-program-candidate-badge__bio {
119
+ margin-top: 1rem;
120
+ margin-bottom: 0;
121
+
122
+ @include breakpoint(medium down) {
123
+ display: none;
124
+ }
125
+ }
126
+ }
127
+
128
+ .#{$program-item-ns}c-program-candidate-badge__avatar {
129
+ position: relative;
130
+ flex-shrink: 0;
131
+
132
+ }
133
+
134
+ .#{$program-item-ns}c-program-candidate-badge__rank {
135
+ display: block;
136
+ position: absolute;
137
+ right: 10px;
138
+ bottom: -20px;
139
+ background-color: $black;
140
+ border-radius: 50%;
141
+ width: 40px;
142
+ height: 40px;
143
+ line-height: 34px;
144
+ text-align: center;
145
+ font-size: 1.15em;
146
+ font-weight: bold;
147
+ color: $white;
148
+ border: 3px $white solid;
149
+
150
+ span {
151
+ // Compensate for the dot sign.
152
+ padding-left: 3px;
153
+ }
154
+ }
155
+ }
156
+
157
+ @mixin candidate-landscape {
158
+ width: 100%;
159
+
160
+ .#{$program-item-ns}c-program-candidate-badge__body {
161
+ flex-direction: row;
162
+ }
163
+
164
+ .#{$program-item-ns}c-program-candidate-badge__avatar {
165
+ width: calc(33.3333% - 0.75rem);
166
+ }
167
+
168
+ .#{$program-item-ns}c-program-candidate-badge__rank {
169
+ bottom: 10px;
170
+ right: -20px;
171
+ }
172
+
173
+ .#{$program-item-ns}c-program-candidate-badge__description {
174
+ padding-left: 1.5rem;
175
+ }
176
+ }
177
+
178
+ .#{$program-item-ns}c-program-candidates__row .#{$program-item-ns}c-program-candidate-badge {
179
+ width: 33.3333333%;
180
+ padding-left: 0.75rem;
181
+ padding-right: 0.75rem;
182
+
183
+ @include breakpoint(small down) {
184
+ width: 100%;
185
+ margin-bottom: 1.5rem;
186
+
187
+ // note: match leader layout
188
+ @include candidate-landscape();
189
+ }
190
+ }
191
+
192
+ .#{$program-item-ns}c-program-candidate-badge.c-program-candidate-badge--leader {
193
+ @include candidate-landscape();
194
+ }
195
+
196
+ .#{$program-item-ns}c-program-candidate-badge.c-program-candidate-badge--leader + .#{$program-item-ns}c-program-candidates__row {
197
+ margin-top: 1.5rem;
198
+ }
@@ -7,6 +7,7 @@
7
7
  @import 'utilities/utilities';
8
8
 
9
9
  // Import Components
10
+ @import 'components/program';
10
11
  @import 'components/BlogPosting';
11
12
  @import 'components/Person';
12
13
  @import 'components/BasicPage';
@@ -0,0 +1,19 @@
1
+ <article itemtype="http://schema.org/Person" class="c-Person-preview" itemscope="">
2
+ <h2 itemprop="name" class="c-Person-preview__name">
3
+ <a href="{{url}}" itemprop="url" class="c-Person-preview__url">{{name}}</a>
4
+ </h2>
5
+ <div class="c-Person-preview-contentBox">
6
+ {{#if img}}
7
+ <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-Person-preview__image" itemscope="">
8
+ <img src="{{img}}" data-alt="name" style="width: 92px" />
9
+ </div>
10
+ {{/if}}
11
+ {{#if role}}<p><strong>{{role}}</strong></p>
12
+ {{#if mob}}<p>{{mob}}</p>{{/if}}
13
+ {{#if mail}}<p>{{mail}}</p>{{/if}}
14
+ {{/if}}
15
+ {{#if description}}
16
+ <p itemprop="description" class="c-Person-preview-content">{{description}}</p>
17
+ {{/if}}
18
+ </div>
19
+ </article>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-09 00:00:00.000000000 Z
11
+ date: 2018-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,6 +66,7 @@ files:
66
66
  - _includes/article-list/list-3col.html
67
67
  - _includes/article-list/pagination.html
68
68
  - _includes/article-list/standard_article.html
69
+ - _includes/candidate_badge.html
69
70
  - _includes/disqus_comments.html
70
71
  - _includes/footer.html
71
72
  - _includes/google-analytics.html
@@ -80,20 +81,20 @@ files:
80
81
  - _includes/js/main.html
81
82
  - _includes/js/piwik.js
82
83
  - _includes/js/tw.js
84
+ - _includes/menu.html
83
85
  - _includes/people/item.html
84
86
  - _includes/people/list-2col.html
87
+ - _includes/people/profile_badge.html
85
88
  - _includes/right-bar/bar_cal.html
86
89
  - _includes/right-bar/bar_fb.html
87
90
  - _includes/right-bar/bar_foto.html
91
+ - _includes/right-bar/bar_garant.html
88
92
  - _includes/right-bar/bar_list.html
89
93
  - _includes/right-bar/bar_map.html
90
94
  - _includes/right-bar/bar_otevrenost.html
91
95
  - _includes/right-bar/bar_people.html
92
96
  - _includes/right-bar/bar_person_contact.html
93
97
  - _includes/right-bar/bar_program.html
94
- - _includes/right-bar/bar_program_item.html
95
- - _includes/right-bar/bar_slovensko.html
96
- - _includes/right-bar/bar_snemovna.html
97
98
  - _includes/right-bar/bar_teams_summary.html
98
99
  - _includes/right-bar/bar_teams_toc.html
99
100
  - _includes/right-bar/bar_textbox.html
@@ -109,6 +110,7 @@ files:
109
110
  - _layouts/compress.html
110
111
  - _layouts/default.html
111
112
  - _layouts/home.html
113
+ - _layouts/komunalni-volby.html
112
114
  - _layouts/page.html
113
115
  - _layouts/post.html
114
116
  - _layouts/redirected.html
@@ -132,6 +134,7 @@ files:
132
134
  - _sass/components/icon.scss
133
135
  - _sass/components/pagination.scss
134
136
  - _sass/components/pripoj-se.scss
137
+ - _sass/components/program.scss
135
138
  - _sass/components/scroll-top.scss
136
139
  - _sass/components/simple-accordion.scss
137
140
  - _sass/components/tag.scss
@@ -296,6 +299,7 @@ files:
296
299
  - assets/js/custom.min.js
297
300
  - assets/people/piratska-strana.png
298
301
  - assets/people/ppp.jpg
302
+ - assets/snippet/profile.html
299
303
  homepage: http://www.pirati.cz
300
304
  licenses:
301
305
  - MIT
@@ -1,70 +0,0 @@
1
- {% if page.img %}
2
- {% unless page.rbarImgOff %}
3
- <div class="o-section-block--spaceBot show-for-large">
4
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
5
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
6
- <a href="#toc" class="c-widget-accordion-link">
7
- <span class="c-widget-accordion__title">{{page.title}}</span>
8
- <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
9
- <i class="fa fa-list"></i>
10
- </span>
11
- </a>
12
- <div class="c-widget-accordion-content" data-tab-content="" id="toc">
13
- <div class="c-widget-accordion-content-inner">
14
- <img src="{{ page.img | prepend: 'assets/img/program/' | relative_url}}" alt="{{page.title}}">
15
- </div>
16
- </div>
17
- </li>
18
- </ul>
19
- </div>
20
- {% endunless %}
21
- {% endif %}
22
-
23
- {% if page.garant %}
24
- <div class="o-section-block--spaceBot">
25
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
26
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
27
- <a href="#toc" class="c-widget-accordion-link">
28
- <span class="c-widget-accordion__title">Garant</span>
29
- <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
30
- <i class="fa fa-list"></i>
31
- </span>
32
- </a>
33
- <div class="c-widget-accordion-content" data-tab-content="" id="toc">
34
- <div class="c-widget-accordion-content-inner">
35
- <div id="garant"></div>
36
- </div>
37
- </div>
38
- </li>
39
- </ul>
40
- </div>
41
- {% endif %}
42
-
43
- {% if page.relatives %}
44
- <div class="o-section-block--spaceBot">
45
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
46
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
47
- <a href="#toc" class="c-widget-accordion-link">
48
- <span class="c-widget-accordion__title">Související</span>
49
- <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
50
- <i class="fa fa-list"></i>
51
- </span>
52
- </a>
53
- <div class="c-widget-accordion-content" data-tab-content="" id="toc">
54
- <div class="c-widget-accordion-content-inner">
55
- {% for item in page.relatives %}
56
- <h4 class="c-widget-accordion-list__heading">{{item.name}}</h4>
57
- <ul class="c-widget-accordion-list">
58
- <ul>
59
- {% for item in item.items %}
60
- <li><a href="{{item.url}}" alt="{{item.alt}}">{{item.title}}</a></li>
61
- {% endfor %}
62
- </ul>
63
- </ul>
64
- {% endfor %}
65
- </div>
66
- </div>
67
- </li>
68
- </ul>
69
- </div>
70
- {% endif %}
@@ -1,23 +0,0 @@
1
- <div class="o-section-block">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">Jak se zapojit?</span>
6
- <span class="c-widget-accordion__icon c-widget-accordion__icon c-widget-accordion__icon--bottom" aria-hidden="true">
7
- <i class="fa fa-facebook fa-lg"></i>
8
- </span>
9
- </a>
10
- <div class="c-widget-accordion-content" data-tab-content="">
11
- <div class="c-widget-accordion-content-inner">
12
- <ul class="c-widget-accordion-list__heading">
13
- <li><a href="/assets/pdf/podpisovy_harok.pdf">Stáhněte</a> si <b>podpisové archy</b>, oslovte své přátele a známé, a vyplněné je zašlete na adresu uvedenou na archu.</li>
14
- <li>Pro <b>osobní podpis či kontakt</b> na Slovensku <a href="mailto:info@piratskastrana.sk">napište slovenskému Pirátovi Tomáši Vojtekovi</a>.</li>
15
- <li>Tvoříme <b>seznam míst</b>, kde lze petici podepsat. Najděte nejbližší místo k podpisu či domluvte nové ve svém okolí a <a href="mailto:marketa.gregorova@pirati.cz">dejte nám o něm vědět</a>!
16
- </li>
17
- <iframe src="https://www.google.com/maps/d/u/1/embed?mid=1SGdld0N-nfTVb5IK0Ucx8KICNemoc_1z" width="100%"></iframe>
18
- </ul>
19
- </div>
20
- </div>
21
- </li>
22
- </ul>
23
- </div>
@@ -1,39 +0,0 @@
1
- <div class="o-section-block">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">Sněmovna</span>
6
- <span class="c-widget-accordion__icon c-widget-accordion__icon c-widget-accordion__icon--bottom c-widget-accordion__icon--bottomPulled" aria-hidden="true">
7
- <i class="fa fa-users fa-lg"></i>
8
- </span>
9
- </a>
10
- <div class="c-widget-accordion-content" data-tab-content="">
11
- <div class="c-widget-accordion-content-inner">
12
- <h4 class="c-widget-accordion-list__heading">Náš klub</h4>
13
- <ul class="c-widget-accordion-list">
14
- <ul>
15
- <li><a href="{{'/snemovna/#priority' | relative_url}}">Plnění programu</a></li>
16
- <li><a href="{{'/snemovna/#klub' | relative_url}}">Naši poslanci</a></li>
17
- <li><a href="{{'/snemovna/#vykaz' | relative_url}}">Čerpání financí</a></li>
18
- <li><a href="{{'/snemovna/#aktuality' | relative_url}}">Aktuality ze sněmovny</a></li>
19
- <li><a href="{{'/snemovna/zakony/' | relative_url}}">Zákonodárná činnost</a></li>
20
- </ul>
21
- </ul>
22
- <h4 class="c-widget-accordion-list__heading">Program parlament 2017</h4>
23
- <ul class="c-widget-accordion-list">
24
- <ul>
25
- {% assign program = site.program | where: "category","psp2017" %}
26
- {% for item in program %}
27
- <li><a href="{{item.url | relative_url}}">{{item.title}}</a></li>
28
- {% endfor %}
29
- <li><a href="{{'/kalkulacka/' | relative_url}}">Daňová kalkulačka</a></li>
30
- </ul>
31
- </ul>
32
- </div>
33
- <div class="c-widget-accordion-content__cta">
34
- <a class="expanded button large" href="{{ '/snemovna/' | relative_url }}"> Naše práce ve sněmovně </a>
35
- </div>
36
- </div>
37
- </li>
38
- </ul>
39
- </div>