jekyll-theme-pirati 4.1.0 → 4.2.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: a76681b55f0517b6487380c2a8ace87ab35a62cabfe18a1d7ba5b9e767744a6f
4
- data.tar.gz: ecb4ed49364f3466b6801748db3e614d7e9f33911d5bae06bfe83b8ea698a6a6
3
+ metadata.gz: fd30e980264ac27fb9a665e08b9022ae7e2f03312ed75749ff918edeaae5be86
4
+ data.tar.gz: 56cbea99cd4923ebd38b69a8c1e1bdfb3aa43a4708aa81a651101bec2a094aed
5
5
  SHA512:
6
- metadata.gz: 026c997a91a7a13a98d1efec9862aba3dfea22b20976cc8a9061997e0747197714f159868ffb01344281c9dbe0a6afda35bdab8a030aac4aa74870130de0af26
7
- data.tar.gz: 5dd3d87282e7afe3a59a9dd9428532fb215be3545c4b01a0dab1efa60da2a973c6abea53544e5ba11350f6b461363ed32770460cd49449f4b4013ade6e07ccdf
6
+ metadata.gz: 6a32ff91ebcc3960819c900faf768fcb7dc0d7633cab16b602f63b59c5801337651ebf786201726ad329c2e9ab520a239dcff5fcc77382483c570a89a0f7bed3
7
+ data.tar.gz: 4c935297f2f739d34a6351a6e07ed779fd76cc245f24bfc0fb61a16640990795a953d7938e5fabd965f9394dd2b45c3c2943a0a2c5d64e8d8f74e4a1d7099478
@@ -20,27 +20,12 @@ main:
20
20
  name: Komunální volby
21
21
  match: komunalni-volby
22
22
  submenu:
23
- - link: /komunalni-volby/praha2018
24
- name: Program na radnici
25
- match: radnice
26
- - link: /komunalni-volby/senat
27
- name: Senát
28
- match: senat
29
- campaigns:
30
- - title: Program na radnici
31
- category: praha2018
32
- candidates:
33
- - prvni.leader
34
- - mistni.predseda
35
- - jakub.pirat
36
- - aktivni.priznivec
37
- - title: Senát
38
- category: senat
39
- candidates:
40
- - jakub.pirat
41
- - link: /kontakt/
42
- name: Kontakt
43
- match: kontakt
23
+ - link: /komunalni-volby/praha2018
24
+ name: Program na radnici
25
+ match: radnice
26
+ - link: /komunalni-volby/senat
27
+ name: Senát
28
+ match: senat
44
29
 
45
30
  bottom:
46
31
  - class: small-12 medium-4
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="c-article-listing__row">
5
5
  <div class="c-article-listing__photobox">
6
- <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-article-listing__image" itemscope="">
6
+ <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-article-listing__image {% if include.article.youtubeVideoId %}c-article-listing__image--videoicon{% endif %}" itemscope="">
7
7
  {% capture imgPath %}{% asset '{{ include.article.image }}' magick:resize="348x232^" magick:gravity='center' magick:crop='348x232+0+0' @path %}{% endcapture %}
8
8
  <a href="{{ include.article.url | relative_url }}">
9
9
  <img src="{{ imgPath }}" alt="{{ include.article.title }}">
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="c-article-listing__photobox">
6
6
  <a href="{{ include.article.url | relative_url }}">
7
- <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-article-listing__image" itemscope="">
7
+ <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-article-listing__image {% if include.article.youtubeVideoId %}c-article-listing__image--videoicon{% endif %}" itemscope="">
8
8
  {% capture imgPath %}{% asset '{{ include.article.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
9
9
  <img src="{{ imgPath }}" alt="{{ include.article.title }}">
10
10
  <meta itemprop="url" content="{{ imgPath }}">
@@ -0,0 +1,17 @@
1
+ <div class="o-section-block o-section-block-fill">
2
+ <div class="c-headline-media">
3
+ {% capture imgPath %}{% asset '{{ include.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
4
+ <div class="c-headline-media__background" style="background-image: url({{ imgPath }})"></div>
5
+ <div class="row c-headline-media__body">
6
+ <div class="small-12 columns">
7
+ {% comment %}If youtube video id is provided, it takes precendece over the image{% endcomment %}
8
+ {%- if include.youtubeVideoId %}
9
+ {% include youtube.html width=751 height=422 id=include.youtubeVideoId %}
10
+ {% else %}
11
+ <img src="{{ imgPath }}" alt="{{ include.title }}">
12
+ {%- endif %}
13
+ </div>
14
+ </div>
15
+
16
+ </div>
17
+ </div>
@@ -2,9 +2,9 @@
2
2
  This whole include will be overwritten by built JS files when publishing the
3
3
  theme Gem.
4
4
  {% endcomment %}
5
- <link rel="stylesheet" href="/assets/js/main.7e1dba7862b243eb382c.css" />
6
- <script src="/assets/js/0.main.7e1dba7862b243eb382c.js"></script>
7
- <script src="/assets/js/main.7e1dba7862b243eb382c.js"></script>
5
+ <link rel="stylesheet" href="/assets/js/main.3dd297e4b94da9cfc686.css" />
6
+ <script src="/assets/js/0.main.3dd297e4b94da9cfc686.js"></script>
7
+ <script src="/assets/js/main.3dd297e4b94da9cfc686.js"></script>
8
8
 
9
9
  {% if site.facebook.loadSDK %}
10
10
  <script>
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  {% if include.content %}
8
8
  <div class="columns large-12">
9
- {{ content }}
9
+ {{ include.content }}
10
10
  </div>
11
11
  {% endif %}
12
12
  </div>
@@ -1,26 +1,23 @@
1
1
  {% for menu in site.data.menu.main %}
2
- {% if page.url contains menu.match %}
3
- {% if menu.submenu %}
4
- <nav class="c-top-sub-nav u-center-860-down">
5
- <div class="row">
6
- <div class="c-top-sub-nav-inner">
7
- <div class="u-cf">
8
- <div class="c-top-sub-nav-header">
9
- <div class="c-top-sub-nav__heading"> {{menu.name}} </div>
10
- </div>
11
- <div class="c-top-sub-nav-divider"></div>
12
- <ul class="c-top-sub-nav-items">
13
-
14
- {% for submenu in menu.submenu %}
15
- <li class="c-top-sub-nav__item">
16
- <a href="{{ submenu.link }}"> {{submenu.name}} </a>
17
- </li>
18
- {% endfor %}
19
- </ul>
2
+ {% if page.url contains menu.match %}
3
+ {% if menu.submenu %}
4
+ <nav class="c-top-sub-nav">
5
+ <div class="row">
6
+ <div class="c-top-sub-nav-inner columns">
7
+ <div class="c-top-sub-nav__header">
8
+ <h2 class="c-top-sub-nav__heading">{{ menu.name }}</h2>
20
9
  </div>
10
+ <div class="c-top-sub-nav-divider"></div>
11
+ <ul class="c-top-sub-nav-items">
12
+ {% for submenu in menu.submenu %}
13
+ <li class="c-top-sub-nav__item {% if page.url contains submenu.match %}c-top-sub-nav__item--active{% endif %}">
14
+ <a href="{{ submenu.link }}">{{ submenu.name }} </a>
15
+ </li>
16
+ {% endfor %}
17
+ </ul>
18
+ </div>
21
19
  </div>
22
- </div>
23
- </nav>
24
- {% endif %}
25
- {% endif %}
20
+ </nav>
21
+ {% endif %}
22
+ {% endif %}
26
23
  {% endfor %}
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="row">
6
+ <div class="medium-12 {% unless page.rbar == empty or page.rbar == blank or page.rbar == nil %} large-8{% endunless %} columns">
7
+
8
+ <!-- Article -->
9
+ <article itemtype="http://schema.org/BlogPosting" itemscope="">
10
+ <link itemprop="mainEntityOfPage" href="{{ page.url }}">
11
+ {{ content }}
12
+ </article>
13
+ <!-- /Article -->
14
+ </div>
15
+ {% unless page.rbar == empty or page.rbar == blank or page.rbar == nil %}
16
+ <div class="medium-12 large-4 columns">
17
+ {% include right-bar/rbar.html %}
18
+ </div>
19
+ {% endunless %}
20
+ </div>
@@ -1,26 +1,21 @@
1
1
  ---
2
- layout: page
2
+ layout: blank-article
3
3
  ---
4
- {% assign candidates = site.kandidatka | where: "uid", page.candidateList | first %}
5
- {% assign programCategories = site.program | where: "campaignCategoryUid", page.campaignCategoryUid | sort:"order" %}
6
4
 
7
- {% if candidates.number %}
8
- <div class="row u-stacked">
9
- <div class="columns">
10
- <div class="c-tile c-tile--inverted c-tile--fill">
11
- <div class="c-tile__body u-center">
12
- <h1 class="u-0margin">Volte číslo {{ candidates.number }}!</h1>
13
- </div>
14
- </div>
15
- {% comment %}
16
- Tohle bych tělo ještě tučněji, nějak s tím víc graficky pracovat.
17
- {% endcomment %}
18
- </div>
19
- </div>
20
- {% endif %}
5
+ <div class="c-corner-ribbon-container">
6
+ {% assign candidates = site.candidatelists | where: "uid", page.candidateListUid | first %}
7
+ {% assign programCategories = site.program | where: "campaignCategoryUid", page.campaignCategoryUid | sort:"order" %}
21
8
 
22
- <div class="row u-stacked">
23
- <div class="columns">{{ content }}</div>
9
+ {% capture headline %}{{ page.title }}{% if candidates.number %}<span class="t-subheader u-1margin--left">&raquo; volte č. {{ candidates.number }} &laquo;</span>{% endif %}{% endcapture %}
10
+ {% capture headerContent %}
11
+ <div class="c-emphasized-text">{{ content }}</div>
12
+ {% endcapture %}
13
+
14
+ {% if candidates.number %}
15
+ <div class="c-corner-ribbon c-corner-ribbon--top-right">Volte č. {{ candidates.number }}!</div>
16
+ {% endif %}
17
+
18
+ {% include page-header.html headline=headline content=headerContent %}
24
19
  </div>
25
20
 
26
21
  <div class="o-section">
@@ -95,3 +90,4 @@ layout: page
95
90
  </div>
96
91
  </div>
97
92
  </div>
93
+
@@ -1,21 +1,6 @@
1
1
  ---
2
- layout: default
2
+ layout: blank-article
3
3
  ---
4
4
 
5
- <div class="row">
6
- <div class="medium-12 {% unless page.rbar == empty or page.rbar == blank or page.rbar == nil %} large-8{% endunless %} columns">
7
-
8
- <!-- Article -->
9
- <article itemtype="http://schema.org/BlogPosting" itemscope="">
10
- <link itemprop="mainEntityOfPage" href="{{ page.url }}">
11
- {% capture headline %}{% if page.fullname %}{{ page.fullname }}{% else %}{{ page.title }}{% endif %}{% endcapture %}
12
- {% include page-header.html headline=headline content=content %}
13
- </article>
14
- <!-- /Article -->
15
- </div>
16
- {% unless page.rbar == empty or page.rbar == blank or page.rbar == nil %}
17
- <div class="medium-12 large-4 columns">
18
- {% include right-bar/rbar.html %}
19
- </div>
20
- {% endunless %}
21
- </div>
5
+ {% capture headline %}{% if page.fullname %}{{ page.fullname }}{% else %}{{ page.title }}{% endif %}{% endcapture %}
6
+ {% include page-header.html headline=headline content=content %}
@@ -49,7 +49,7 @@ layout: default
49
49
  </div>
50
50
 
51
51
  {% if page.image %}
52
- {% include headline-image.html image=page.image title=page.title %}
52
+ {% include headline-media.html image=page.image title=page.title youtubeVideoId=page.youtubeVideoId %}
53
53
  {% endif %}
54
54
 
55
55
  <div class="row o-section-block">
@@ -56,7 +56,7 @@ $foundation-palette: (
56
56
  alert: #cc0303,
57
57
  dark: #343434
58
58
  );
59
- $light-gray: #e6e6e6;
59
+ $light-gray: #f3f3f3;
60
60
  $medium-gray: #cacaca;
61
61
  $dark-gray: #8a8a8a;
62
62
  $black: #0a0a0a;
@@ -49,3 +49,22 @@
49
49
  max-width: none;
50
50
  }
51
51
  }
52
+
53
+ .c-article-listing__image--videoicon {
54
+ position: relative;
55
+
56
+ &:before {
57
+ content: '\f144';
58
+ position: absolute;
59
+ width: 90px;
60
+ height: 130px;
61
+ top: 50%;
62
+ left: 50%;
63
+ margin-top: -65px;
64
+ margin-left: -45px;
65
+ font-family: 'FontAwesome';
66
+ font-size: 100px;
67
+ color: $secondary-color;
68
+ opacity: .85;
69
+ }
70
+ }
@@ -0,0 +1,24 @@
1
+ .c-corner-ribbon-container {
2
+ position: relative;
3
+ overflow: hidden;
4
+ }
5
+
6
+ .c-corner-ribbon {
7
+ width: 200px;
8
+ background: $primary-color;
9
+ position: absolute;
10
+ top: 25px;
11
+ left: -50px;
12
+ text-align: center;
13
+ line-height: 50px;
14
+ letter-spacing: 1px;
15
+ color: $secondary-color;
16
+ transform: rotate(-45deg);
17
+ }
18
+
19
+ .c-corner-ribbon--top-right {
20
+ top: 25px;
21
+ right: -50px;
22
+ left: auto;
23
+ transform: rotate(45deg);
24
+ }
@@ -3,10 +3,11 @@
3
3
  * with a stretched image. Over that the image in normal dimensions is shown.
4
4
  */
5
5
 
6
- .c-headline-image {
6
+ .c-headline-media {
7
7
  position: relative;
8
8
  min-height: 420px;
9
9
  background: $secondary-color;
10
+ z-index: 1;
10
11
 
11
12
  @include breakpoint(medium down) {
12
13
  min-height: 250px;
@@ -18,27 +19,23 @@
18
19
  }
19
20
  }
20
21
 
21
- .c-headline-image__background {
22
- margin: 0;
23
- cursor: pointer;
24
- overflow: hidden;
22
+ .c-headline-media__background {
23
+ z-index: -1;
24
+ width: 100%;
25
+ height: 100%;
26
+ min-height: 100%;
25
27
  position: absolute;
26
- top: 0;
27
- right: 0;
28
- bottom: 0;
29
- left: 0;
28
+ background-position: center;
29
+ background-repeat: no-repeat;
30
+ background-size: cover;
31
+ opacity: .15;
32
+ }
33
+
34
+ .c-headline-media__body {
35
+ z-index: 1;
30
36
 
31
- img {
32
- min-width: 100%;
33
- min-height: 100%;
34
- position: absolute;
35
- top: -100%;
36
- right: -100%;
37
- bottom: -100%;
38
- left: -100%;
39
- margin: auto;
40
- opacity: 0.1;
41
- user-select: none;
42
- cursor: default;
37
+ // fixes overflow
38
+ iframe {
39
+ float: left;
43
40
  }
44
41
  }
@@ -1,59 +1,18 @@
1
1
  $tsb-ns: '';
2
2
 
3
3
  nav.#{$tsb-ns}c-top-sub-nav {
4
- background: #f3f3f3;
4
+ background: $light-gray;
5
5
  }
6
6
 
7
7
  .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-inner {
8
- position: relative;
9
- padding: 45px 2rem;
8
+ display: flex;
9
+ padding-top: 2rem;
10
+ padding-bottom: 2rem;
10
11
  overflow-y: hidden;
11
12
 
12
- &:before {
13
- content: '';
14
- position: absolute;
15
- display: block;
16
- width: 335px;
17
- height: 150px;
18
- // background: url('../img/miscellaneous/vbox.png') no-repeat;
19
- bottom: -20px;
20
- right: 10px;
21
- }
22
-
23
13
  @include breakpoint(mobile down) {
24
- padding: 35px 1.25rem;
25
- }
26
-
27
- @include breakpoint(medium down) {
28
-
29
- &:before {
30
- right: 20px;
31
- }
32
-
33
- }
34
-
35
- @include breakpoint(860px down) {
36
- padding-bottom: 130px;
37
-
38
- &:before {
39
- transform: translateX(50%);
40
- right: 50%;
41
- bottom: 0;
42
- }
43
- }
44
-
45
- &:after {
46
- content: '';
47
- display: block;
48
- position: absolute;
49
- }
50
- }
51
-
52
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-header {
53
- display: inline-block;
54
-
55
- @include breakpoint(860px down) {
56
- display: block;
14
+ text-align: center;
15
+ flex-direction: column;
57
16
  }
58
17
  }
59
18
 
@@ -61,10 +20,11 @@ nav.#{$tsb-ns}c-top-sub-nav {
61
20
  font-size: 1.5rem;
62
21
  font-weight: 500;
63
22
  font-family: $header-font-family;
23
+ margin: 0;
64
24
  }
65
25
 
66
26
  .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-divider {
67
- margin: 10px auto;
27
+ margin: 0 2rem;
68
28
 
69
29
  &:before {
70
30
  content: '\f105';
@@ -72,115 +32,44 @@ nav.#{$tsb-ns}c-top-sub-nav {
72
32
  font-size: 1.3rem;
73
33
  }
74
34
 
75
- @include breakpoint(800px) {
76
- display: inline-block;
77
- width: 1px;
78
- height: 22px;
79
- margin: auto 30px;
80
- vertical-align: baseline;
81
- }
82
-
83
- @include breakpoint(860px down) {
35
+ @include breakpoint(mobile down) {
84
36
  display: block;
85
- margin: 10px auto;
86
37
 
87
38
  &:before {
88
39
  content: '\f107';
89
40
  margin-left: -7px;
90
41
  }
91
42
  }
92
-
93
- @include breakpoint(mobile down) {
94
- margin: 0px auto;
95
- }
96
43
  }
97
44
 
98
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-items {
99
- display: inline-block;
45
+ .#{$tsb-ns}c-top-sub-nav-items {
100
46
  list-style-type: none;
101
47
  margin-left: 0;
102
48
  margin-bottom: 0;
103
-
104
- @include breakpoint(800px down) {
105
- display: block;
106
- }
107
-
108
49
  }
109
50
 
110
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-items.#{$tsb-ns}c-top-sub-nav-items--bigLh {
111
-
112
- @include breakpoint(mobile down) {
113
- line-height: 2;
114
- }
115
-
116
- }
117
-
118
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav__item {
51
+ .#{$tsb-ns}c-top-sub-nav__item {
119
52
  display: inline-block;
120
53
  margin-left: 0;
121
54
  font-size: 1.15rem;
122
55
 
123
56
  a {
124
- color: #0a0a0a;
125
57
  text-decoration: underline;
126
58
  }
127
59
 
128
- a:hover {
129
- text-decoration: none;
130
- }
131
-
132
- }
133
-
134
- .#{$tsb-ns}c-top-sub-nav {
135
-
136
- @include breakpoint(medium) {
137
-
138
- .#{$tsb-ns}c-top-sub-nav__item +
139
- .#{$tsb-ns}c-top-sub-nav__item {
140
- margin-left: 25px;
141
- }
142
-
143
- .#{$tsb-ns}c-top-sub-nav__item.#{$tsb-ns}c-top-sub-nav__item--smallerSpace +
144
- .#{$tsb-ns}c-top-sub-nav__item.#{$tsb-ns}c-top-sub-nav__item--smallerSpace {
145
- margin-left: 12px;
146
- }
147
-
148
- }
149
-
150
- @include breakpoint(820px down) {
151
-
152
- .#{$tsb-ns}c-top-sub-nav__item +
153
- .#{$tsb-ns}c-top-sub-nav__item {
154
- margin-left: 20px;
155
- }
156
-
157
- .#{$tsb-ns}c-top-sub-nav__item.#{$tsb-ns}c-top-sub-nav__item--smallerSpace +
158
- .#{$tsb-ns}c-top-sub-nav__item.#{$tsb-ns}c-top-sub-nav__item--smallerSpace {
159
- margin-left: 10px;
160
- }
161
-
162
- }
163
-
164
- }
165
-
166
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav__section {
167
- display: inline-block;
168
- font-weight: bold;
169
- vertical-align: middle;
170
-
171
60
  @include breakpoint(mobile down) {
172
61
  display: block;
173
62
  }
174
-
175
63
  }
64
+ .#{$tsb-ns}c-top-sub-nav__item +
65
+ .#{$tsb-ns}c-top-sub-nav__item {
66
+ margin-left: 2rem;
176
67
 
177
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav__item {
178
-
179
- a:hover .#{$tsb-ns}c-top-sub-nav__itemDescription {
180
- text-decoration: underline;
68
+ @include breakpoint(medium down) {
69
+ margin-left: 1rem;
181
70
  }
182
71
 
183
- .#{$tsb-ns}c-top-sub-nav__itemDescription {
184
- margin-left: 5px;
72
+ @include breakpoint(mobile down) {
73
+ margin: 0;
185
74
  }
186
75
  }