jekyll-theme-pirati 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -17
  3. data/_data/menu.yml +53 -0
  4. data/_includes/candidate_badge.html +6 -15
  5. data/_includes/footer.html +92 -12
  6. data/_includes/head.html +24 -25
  7. data/_includes/header.html +14 -14
  8. data/_includes/js/main.html +71 -14
  9. data/_includes/menu.html +43 -51
  10. data/_includes/people/profile_badge.html +1 -3
  11. data/_includes/right-bar/bar_cal.html +4 -6
  12. data/_includes/right-bar/bar_fb.html +3 -3
  13. data/_includes/right-bar/bar_garant.html +3 -2
  14. data/_includes/right-bar/bar_people.html +21 -18
  15. data/_includes/right-bar/bar_person_contact.html +11 -55
  16. data/_includes/right-bar/rbar.html +3 -3
  17. data/_layouts/komunalni-volby.html +9 -7
  18. data/_sass/_base.scss +114 -1
  19. data/_sass/_settings.scss +1 -1
  20. data/_sass/components/BasicPage.scss +6 -1
  21. data/_sass/components/hero.scss +2 -2
  22. data/_sass/components/icon.scss +5 -1
  23. data/_sass/components/program.scss +5 -1
  24. data/_sass/components/top-bar.scss +236 -491
  25. data/_sass/components/top-sub-nav.scss +1 -1
  26. data/_sass/objects/media.scss +46 -38
  27. data/_sass/utilities/utilities.scss +6 -6
  28. data/assets/css/main.scss +40 -106
  29. data/assets/js/apps.js +8 -0
  30. data/assets/js/apps/scroll-top/ScrollTop.vue +83 -0
  31. data/assets/js/apps/scroll-top/index.js +9 -0
  32. data/assets/js/apps/site-search/SiteSearch.vue +85 -0
  33. data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +29 -0
  34. data/assets/js/apps/site-search/index.js +14 -0
  35. data/assets/js/index.js +52 -0
  36. metadata +9 -91
  37. data/_includes/js/custom.js +0 -245
  38. data/_includes/js/fb.js +0 -15
  39. data/_includes/js/piwik.js +0 -11
  40. data/_includes/js/tw.js +0 -15
  41. data/_includes/people/item.html +0 -49
  42. data/_includes/people/list-2col.html +0 -24
  43. data/_includes/people/list-group.html +0 -12
  44. data/_includes/title/title_header.html +0 -9
  45. data/_sass/components/scroll-top.scss +0 -32
  46. data/_sass/components/welcome-header.scss +0 -188
  47. data/_sass/foundation/_global.scss +0 -638
  48. data/_sass/foundation/components/_accordion-menu.scss +0 -32
  49. data/_sass/foundation/components/_accordion.scss +0 -129
  50. data/_sass/foundation/components/_badge.scss +0 -55
  51. data/_sass/foundation/components/_breadcrumbs.scss +0 -95
  52. data/_sass/foundation/components/_button-group.scss +0 -195
  53. data/_sass/foundation/components/_button.scss +0 -265
  54. data/_sass/foundation/components/_callout.scss +0 -105
  55. data/_sass/foundation/components/_close-button.scss +0 -61
  56. data/_sass/foundation/components/_drilldown.scss +0 -79
  57. data/_sass/foundation/components/_dropdown-menu.scss +0 -221
  58. data/_sass/foundation/components/_dropdown.scss +0 -65
  59. data/_sass/foundation/components/_flex-video.scss +0 -63
  60. data/_sass/foundation/components/_flex.scss +0 -28
  61. data/_sass/foundation/components/_float.scss +0 -27
  62. data/_sass/foundation/components/_label.scss +0 -55
  63. data/_sass/foundation/components/_media-object.scss +0 -115
  64. data/_sass/foundation/components/_menu-icon.scss +0 -9
  65. data/_sass/foundation/components/_menu.scss +0 -314
  66. data/_sass/foundation/components/_off-canvas.scss +0 -177
  67. data/_sass/foundation/components/_orbit.scss +0 -193
  68. data/_sass/foundation/components/_pagination.scss +0 -162
  69. data/_sass/foundation/components/_progress-bar.scss +0 -64
  70. data/_sass/foundation/components/_reveal.scss +0 -172
  71. data/_sass/foundation/components/_slider.scss +0 -133
  72. data/_sass/foundation/components/_sticky.scss +0 -38
  73. data/_sass/foundation/components/_switch.scss +0 -232
  74. data/_sass/foundation/components/_table.scss +0 -234
  75. data/_sass/foundation/components/_tabs.scss +0 -165
  76. data/_sass/foundation/components/_thumbnail.scss +0 -54
  77. data/_sass/foundation/components/_title-bar.scss +0 -89
  78. data/_sass/foundation/components/_tooltip.scss +0 -104
  79. data/_sass/foundation/components/_top-bar.scss +0 -168
  80. data/_sass/foundation/components/_visibility.scss +0 -132
  81. data/_sass/foundation/forms/_checkbox.scss +0 -40
  82. data/_sass/foundation/forms/_error.scss +0 -84
  83. data/_sass/foundation/forms/_fieldset.scss +0 -54
  84. data/_sass/foundation/forms/_forms.scss +0 -34
  85. data/_sass/foundation/forms/_help-text.scss +0 -30
  86. data/_sass/foundation/forms/_input-group.scss +0 -128
  87. data/_sass/foundation/forms/_label.scss +0 -48
  88. data/_sass/foundation/forms/_meter.scss +0 -109
  89. data/_sass/foundation/forms/_progress.scss +0 -85
  90. data/_sass/foundation/forms/_range.scss +0 -144
  91. data/_sass/foundation/forms/_select.scss +0 -67
  92. data/_sass/foundation/forms/_text.scss +0 -163
  93. data/_sass/foundation/foundation.scss +0 -102
  94. data/_sass/foundation/grid/_classes.scss +0 -151
  95. data/_sass/foundation/grid/_column.scss +0 -126
  96. data/_sass/foundation/grid/_flex-grid.scss +0 -274
  97. data/_sass/foundation/grid/_grid.scss +0 -60
  98. data/_sass/foundation/grid/_gutter.scss +0 -34
  99. data/_sass/foundation/grid/_layout.scss +0 -51
  100. data/_sass/foundation/grid/_position.scss +0 -73
  101. data/_sass/foundation/grid/_row.scss +0 -95
  102. data/_sass/foundation/grid/_size.scss +0 -24
  103. data/_sass/foundation/settings/_settings.scss +0 -567
  104. data/_sass/foundation/typography/_alignment.scss +0 -22
  105. data/_sass/foundation/typography/_base.scss +0 -443
  106. data/_sass/foundation/typography/_helpers.scss +0 -77
  107. data/_sass/foundation/typography/_print.scss +0 -77
  108. data/_sass/foundation/typography/_typography.scss +0 -28
  109. data/_sass/foundation/util/_breakpoint.scss +0 -275
  110. data/_sass/foundation/util/_color.scss +0 -60
  111. data/_sass/foundation/util/_flex.scss +0 -68
  112. data/_sass/foundation/util/_mixins.scss +0 -235
  113. data/_sass/foundation/util/_selector.scss +0 -40
  114. data/_sass/foundation/util/_unit.scss +0 -90
  115. data/_sass/foundation/util/_util.scss +0 -11
  116. data/_sass/foundation/util/_value.scss +0 -107
  117. data/_sass/jquery-ui.scss +0 -1311
  118. data/_sass/main.scss +0 -41
  119. data/_sass/minima.scss +0 -51
  120. data/_sass/minima/_base.scss +0 -254
  121. data/_sass/minima/_layout.scss +0 -255
  122. data/_sass/minima/_syntax-highlighting.scss +0 -71
  123. data/_sass/scroll-top.scss +0 -31
  124. data/assets/js/common-libs.min.js +0 -1
  125. data/assets/js/custom.min.js +0 -1
  126. data/assets/snippet/profile.html +0 -19
@@ -15,7 +15,7 @@ nav.#{$tsb-ns}c-top-sub-nav {
15
15
  display: block;
16
16
  width: 335px;
17
17
  height: 150px;
18
- background: url('../img/miscellaneous/vbox.png') no-repeat;
18
+ // background: url('../img/miscellaneous/vbox.png') no-repeat;
19
19
  bottom: -20px;
20
20
  right: 10px;
21
21
  }
@@ -1,55 +1,63 @@
1
1
  .o-media {
2
- display: table;
3
- width: 100%;
2
+ display: flex;
3
+ width: 100%;
4
+ background-color: $white;
4
5
  }
5
6
 
6
7
  .o-media__image,
7
8
  .o-media__body {
8
- display: table-cell;
9
- vertical-align: middle;
10
-
11
- .o-media--top & {
12
- vertical-align: top;
13
- }
14
-
15
- .o-media--bottom & {
16
- vertical-align: bottom;
17
- }
18
-
19
- @include breakpoint(mobile down) {
20
- display: block;
21
- }
22
-
9
+ @include breakpoint(mobile down) {
10
+ display: block;
11
+ }
23
12
  }
24
13
 
25
14
  .o-media__image {
26
- padding-right: 0.85rem;
15
+ padding-right: 0.85rem;
16
+ flex-shrink: 0;
17
+
18
+ img {
19
+ display: block;
20
+ max-width: 100%;
21
+ }
27
22
 
28
- > img {
29
- display: block;
30
- max-width: none;
31
- }
23
+ .o-media--rev & {
24
+ padding-right: 0;
25
+ padding-left: 0.85rem;
26
+ }
32
27
 
33
- .o-media--rev & {
34
- padding-right: 0;
35
- padding-left: 0.85rem;
36
- }
28
+ &.o-media__image--lgspace {
29
+ padding-right: 1.75rem;
30
+ }
37
31
 
38
- &.o-media__image--lgspace {
39
- padding-right: 1.75rem;
40
- }
32
+ &.o-media__image--round img {
33
+ border-radius: 50%;
34
+ }
41
35
 
42
36
  }
43
37
 
44
38
  .o-media__body {
45
- width: 100%;
39
+ width: 100%;
40
+
41
+ > p:last-of-type {
42
+ margin-bottom: 0;
43
+ }
46
44
 
47
- @include breakpoint(mobile down) {
48
- margin-top: 2rem;
49
- }
45
+ @include breakpoint(mobile down) {
46
+ margin-top: 2rem;
47
+ }
50
48
 
51
- .o-media__headline {
52
- font-size: 1.4rem;
53
- color: $primary-color;
54
- }
55
- }
49
+ .o-media__headline {
50
+ font-size: 1.4rem;
51
+ color: $primary-color;
52
+ }
53
+ }
54
+
55
+ .o-media__body-inner {
56
+ &.o-media__body-inner--padded {
57
+ padding: .85rem .85rem .85rem 0;
58
+ }
59
+ }
60
+
61
+ .o-media-list + .o-media-list {
62
+ margin-top: .65rem;
63
+ }
@@ -67,13 +67,13 @@
67
67
 
68
68
  .u-center-medium-only {
69
69
 
70
-
71
- @media screen and #{breakpoint(mobile)} and #{breakpoint(medium down)} {
72
- text-align: center;
73
- margin: 0 auto;
74
- display: block;
70
+ @include breakpoint(medium down) {
71
+ @include breakpoint(mobile) {
72
+ text-align: center;
73
+ margin: 0 auto;
74
+ display: block;
75
+ }
75
76
  }
76
-
77
77
  }
78
78
 
79
79
  .u-center-mobile-down {
data/assets/css/main.scss CHANGED
@@ -1,110 +1,44 @@
1
1
  ---
2
- # Only the main Sass file needs front matter (the dashes are enough)
2
+ # this ensures Jekyll reads the file to be transformed into CSS later
3
+ # only Main files contain this front matter, not partials.
3
4
  ---
4
- @charset "utf-8";
5
-
6
- @import 'main.scss';
7
-
8
- .pricing-table {
9
-
10
- border: solid 1px #DDDDDD;
11
- background: #eee}
12
-
13
- .pricing-table li {
14
-
15
- border-bottom: dotted 1px #DDDDDD;
16
-
17
- // font-size: 0.75rem;
18
-
19
- padding: 0.875rem 1.125rem; }
20
-
21
- .pricing-table li:last-child {
22
-
23
- border-bottom: 0; }
24
-
25
- .pricing-table .title {
26
-
27
- background-color: red;
28
-
29
- color: #EEEEEE;
30
-
31
- font-size: 0.875rem;
32
-
33
- border-bottom: 0; }
34
-
35
- .pricing-table .price {
36
-
37
- color: #333333;
38
-
39
- font-size: 1.75rem;
40
5
 
41
- border-bottom: 0; }
42
-
43
- .pricing-table .description {
44
-
45
- color: #777777;
46
-
47
- // font-size: 0.625rem;
48
- }
49
-
50
- .pricing-table .small {
51
-
52
- color: #777777;
53
- font-size: 0.625rem;
54
- text-align:right;
55
- }
56
-
57
- #mc_embed_signup label {
58
- font-size: 1rem;
59
-
60
-
61
- }
62
-
63
- .pricing-table .button {
64
-
65
- margin: 0; }
66
-
67
- .pricing-table .pricing-table-header-img {
68
-
69
- padding:0px;margin:0px;height:98px;
70
- background-position: 55% 0px;
71
- background-repeat:no-repeat;
72
- }
73
-
74
- #tabs {
75
- padding: 0px;
76
- background: none;
77
- border-width: 0px;
78
- }
79
- #tabs .ui-tabs-nav {
80
- padding-left: 0px;
81
- background: transparent;
82
- border-width: 0px 0px 1px 0px;
83
- -moz-border-radius: 0px;
84
- -webkit-border-radius: 0px;
85
- border-radius: 0px;
86
- }
87
-
88
- .ui-tabs .ui-tabs-nav li {
89
- margin-right: 0.34em;
90
- background: #eee;
91
- }
92
-
93
- .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
94
- background: #007fff !important;}
95
-
96
- #tabs .ui-tabs-panel {
97
- background: #eee;
98
- border-width: 0px 1px 1px 1px;
99
- }
100
-
101
- .asterisk {color:red}
6
+ @charset "utf-8";
102
7
 
103
- #mc_embed_signup_scroll .c-cta-button--primary {
104
- color: rgb(255, 255, 255);
105
- background-color: rgb(92, 184, 92);
106
- border-color: rgb(92, 184, 92);
107
- width:100%;
108
- text-align:center;
109
- margin-top:10px;
110
- }
8
+ @import 'settings';
9
+
10
+ @import "foundation-sites/scss/foundation";
11
+ @include foundation-everything;
12
+
13
+ @import 'base';
14
+ @import 'utilities/utilities';
15
+
16
+ // Import Components
17
+ @import 'components/program';
18
+ @import 'components/BlogPosting';
19
+ @import 'components/Person';
20
+ @import 'components/BasicPage';
21
+ @import 'components/vertical-navigation';
22
+ @import 'components/icon';
23
+ @import 'components/contact-bar';
24
+ @import 'components/header-bar';
25
+ @import 'components/top-bar';
26
+ @import 'components/banner';
27
+ @import 'components/top-sub-nav';
28
+ @import 'components/widget-accordion';
29
+ @import 'components/content-card';
30
+ @import 'components/card';
31
+ @import 'components/tag';
32
+ @import 'components/widget-share-box';
33
+ @import 'components/widget-simple-text';
34
+ @import 'components/pagination';
35
+ @import 'components/Slider';
36
+ @import 'components/simple-accordion';
37
+ @import 'components/hero';
38
+ @import 'components/blockquote';
39
+ @import 'components/cta-button';
40
+
41
+ // Import Objects
42
+ @import 'objects/section';
43
+ @import 'objects/media';
44
+ @import 'objects/space';
data/assets/js/apps.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ import SiteSearch from './apps/site-search';
3
+ import ScrollTop from './apps/scroll-top';
4
+
5
+ export default {
6
+ SiteSearch,
7
+ ScrollTop
8
+ };
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <transition :name="'back-top-fade'" :duration="300">
3
+ <div class="scroll-top" v-show="showBackToTop" @click="toTop">
4
+ <slot><div class="scroll-top__area icon"><i class="fa fa-4x fa-angle-up"></i></div></slot>
5
+ </div>
6
+ </transition>
7
+ </template>
8
+
9
+ <script>
10
+ import { throttle } from 'throttle-debounce';
11
+ import SmoothScroll from 'smoothscroll-polyfill';
12
+
13
+ SmoothScroll.polyfill();
14
+
15
+ export default {
16
+ props: {
17
+ hover: {
18
+ type: Boolean
19
+ },
20
+ scrollFunction: {
21
+ type: Function,
22
+ default: () => {
23
+ window.scroll({ top: 0, left: 0, behavior: "smooth" });
24
+ }
25
+ }
26
+ },
27
+ data() {
28
+ return {
29
+ showBackToTop: false,
30
+ timeout: 0,
31
+ scrollInterval: 20
32
+ };
33
+ },
34
+ methods: {
35
+ toTop() {
36
+ this.showBackToTop = false;
37
+ this.scrollFunction();
38
+ },
39
+ onScroll() {
40
+ const currentScroll = document.body.scrollTop || document.documentElement.scrollTop;
41
+ this.showBackToTop = currentScroll >= 0.1 * document.body.clientHeight;
42
+ }
43
+ },
44
+ mounted() {
45
+ this.throttledScrollHandler = throttle(300, this.onScroll);
46
+ document.addEventListener("scroll", this.throttledScrollHandler);
47
+ },
48
+ beforeDestroy() {
49
+ document.removeEventListener("scroll", this.throttledScrollHandler);
50
+ }
51
+ };
52
+ </script>
53
+
54
+ <style lang="scss">
55
+ @import 'settings';
56
+
57
+ .scroll-top {
58
+ position: fixed;
59
+ right: 30px;
60
+ bottom: 50px;
61
+
62
+
63
+ background: $light-gray;
64
+ cursor: pointer;
65
+ opacity: 1;
66
+ transition: 0.3s;
67
+ display: flex;
68
+ justify-content: center;
69
+ align-items: center;
70
+
71
+ opacity: 1;
72
+ }
73
+
74
+ .scroll-top__area {
75
+ padding:20px;
76
+ }
77
+
78
+ .back-top-fade-enter,
79
+ .back-top-fade-leave-active {
80
+ transform: translateY(-30px);
81
+ opacity: 0;
82
+ }
83
+ </style>
@@ -0,0 +1,9 @@
1
+ import Vue from 'vue';
2
+ import ScrollTop from './ScrollTop.vue';
3
+
4
+ const appFactory = (el, attrs) => {
5
+ // Bootstrap Vue.js.
6
+ new Vue({el, render: h => h(ScrollTop, {attrs})});
7
+ };
8
+
9
+ export default appFactory;
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <div class="c-search">
3
+ <v-autocomplete
4
+ class="autocomplete"
5
+ v-model="item"
6
+ :input-attrs="{class: 'autocomplete__input c-search__input', placeholder: 'Hledaný výraz'}"
7
+ :items="items"
8
+ :get-label="getLabel"
9
+ :component-item="itemTemplate"
10
+ :auto-select-one-item="false"
11
+ :wait="0"
12
+ :min-len="0"
13
+ @item-selected="onItemSelected"
14
+ @update-items="onUpdateItems"></v-autocomplete>
15
+ <button type="button" class="c-search__confirm"><i class="fa fa-search" aria-hidden="true"></i></button>
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+ import ItemTemplate from './SiteSearchItemTemplate.vue';
21
+
22
+ export default {
23
+ name: 'SiteSearch',
24
+ data () {
25
+ return {
26
+ item: null,
27
+ items: [],
28
+ itemTemplate: ItemTemplate
29
+ }
30
+ },
31
+ methods: {
32
+ getLabel (item) {
33
+ return item.label;
34
+ },
35
+ onItemSelected(item) {
36
+ // Redir
37
+ window.location.href = item.value;
38
+ },
39
+ onUpdateItems(searchText) {
40
+ this.items = this.allItems.filter(i => i.label.toLowerCase().indexOf(searchText.toLowerCase()) !== -1);
41
+ }
42
+ },
43
+ mounted() {
44
+ this.$http.get('/api/search.json').then(resp => {
45
+ this.allItems = this.items = resp.body.filter(i => !! i.label);
46
+ });
47
+ }
48
+ }
49
+ </script>
50
+
51
+ <style lang="scss">
52
+ @import 'settings';
53
+
54
+ .v-autocomplete {
55
+ position: relative;
56
+ }
57
+
58
+ .v-autocomplete-list {
59
+ position: absolute;
60
+ z-index: 9999;
61
+ width: 100%;
62
+ top: 40px;
63
+ min-width: 400px;
64
+ text-align: left;
65
+ max-height: 300px;
66
+ overflow-y: auto;
67
+ border: $input-border;
68
+ }
69
+
70
+ .v-autocomplete-list-item {
71
+ cursor: pointer;
72
+ background-color: $white;
73
+ padding: .75em;
74
+ border-bottom: $input-border;
75
+
76
+ &:last-child {
77
+ border-bottom: 0;
78
+ }
79
+
80
+ &:hover {
81
+ background-color: $light-gray;
82
+ }
83
+ }
84
+ </style>
85
+