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.
- checksums.yaml +4 -4
- data/README.md +5 -17
- data/_data/menu.yml +53 -0
- data/_includes/candidate_badge.html +6 -15
- data/_includes/footer.html +92 -12
- data/_includes/head.html +24 -25
- data/_includes/header.html +14 -14
- data/_includes/js/main.html +71 -14
- data/_includes/menu.html +43 -51
- data/_includes/people/profile_badge.html +1 -3
- data/_includes/right-bar/bar_cal.html +4 -6
- data/_includes/right-bar/bar_fb.html +3 -3
- data/_includes/right-bar/bar_garant.html +3 -2
- data/_includes/right-bar/bar_people.html +21 -18
- data/_includes/right-bar/bar_person_contact.html +11 -55
- data/_includes/right-bar/rbar.html +3 -3
- data/_layouts/komunalni-volby.html +9 -7
- data/_sass/_base.scss +114 -1
- data/_sass/_settings.scss +1 -1
- data/_sass/components/BasicPage.scss +6 -1
- data/_sass/components/hero.scss +2 -2
- data/_sass/components/icon.scss +5 -1
- data/_sass/components/program.scss +5 -1
- data/_sass/components/top-bar.scss +236 -491
- data/_sass/components/top-sub-nav.scss +1 -1
- data/_sass/objects/media.scss +46 -38
- data/_sass/utilities/utilities.scss +6 -6
- data/assets/css/main.scss +40 -106
- data/assets/js/apps.js +8 -0
- data/assets/js/apps/scroll-top/ScrollTop.vue +83 -0
- data/assets/js/apps/scroll-top/index.js +9 -0
- data/assets/js/apps/site-search/SiteSearch.vue +85 -0
- data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +29 -0
- data/assets/js/apps/site-search/index.js +14 -0
- data/assets/js/index.js +52 -0
- metadata +9 -91
- data/_includes/js/custom.js +0 -245
- data/_includes/js/fb.js +0 -15
- data/_includes/js/piwik.js +0 -11
- data/_includes/js/tw.js +0 -15
- data/_includes/people/item.html +0 -49
- data/_includes/people/list-2col.html +0 -24
- data/_includes/people/list-group.html +0 -12
- data/_includes/title/title_header.html +0 -9
- data/_sass/components/scroll-top.scss +0 -32
- data/_sass/components/welcome-header.scss +0 -188
- data/_sass/foundation/_global.scss +0 -638
- data/_sass/foundation/components/_accordion-menu.scss +0 -32
- data/_sass/foundation/components/_accordion.scss +0 -129
- data/_sass/foundation/components/_badge.scss +0 -55
- data/_sass/foundation/components/_breadcrumbs.scss +0 -95
- data/_sass/foundation/components/_button-group.scss +0 -195
- data/_sass/foundation/components/_button.scss +0 -265
- data/_sass/foundation/components/_callout.scss +0 -105
- data/_sass/foundation/components/_close-button.scss +0 -61
- data/_sass/foundation/components/_drilldown.scss +0 -79
- data/_sass/foundation/components/_dropdown-menu.scss +0 -221
- data/_sass/foundation/components/_dropdown.scss +0 -65
- data/_sass/foundation/components/_flex-video.scss +0 -63
- data/_sass/foundation/components/_flex.scss +0 -28
- data/_sass/foundation/components/_float.scss +0 -27
- data/_sass/foundation/components/_label.scss +0 -55
- data/_sass/foundation/components/_media-object.scss +0 -115
- data/_sass/foundation/components/_menu-icon.scss +0 -9
- data/_sass/foundation/components/_menu.scss +0 -314
- data/_sass/foundation/components/_off-canvas.scss +0 -177
- data/_sass/foundation/components/_orbit.scss +0 -193
- data/_sass/foundation/components/_pagination.scss +0 -162
- data/_sass/foundation/components/_progress-bar.scss +0 -64
- data/_sass/foundation/components/_reveal.scss +0 -172
- data/_sass/foundation/components/_slider.scss +0 -133
- data/_sass/foundation/components/_sticky.scss +0 -38
- data/_sass/foundation/components/_switch.scss +0 -232
- data/_sass/foundation/components/_table.scss +0 -234
- data/_sass/foundation/components/_tabs.scss +0 -165
- data/_sass/foundation/components/_thumbnail.scss +0 -54
- data/_sass/foundation/components/_title-bar.scss +0 -89
- data/_sass/foundation/components/_tooltip.scss +0 -104
- data/_sass/foundation/components/_top-bar.scss +0 -168
- data/_sass/foundation/components/_visibility.scss +0 -132
- data/_sass/foundation/forms/_checkbox.scss +0 -40
- data/_sass/foundation/forms/_error.scss +0 -84
- data/_sass/foundation/forms/_fieldset.scss +0 -54
- data/_sass/foundation/forms/_forms.scss +0 -34
- data/_sass/foundation/forms/_help-text.scss +0 -30
- data/_sass/foundation/forms/_input-group.scss +0 -128
- data/_sass/foundation/forms/_label.scss +0 -48
- data/_sass/foundation/forms/_meter.scss +0 -109
- data/_sass/foundation/forms/_progress.scss +0 -85
- data/_sass/foundation/forms/_range.scss +0 -144
- data/_sass/foundation/forms/_select.scss +0 -67
- data/_sass/foundation/forms/_text.scss +0 -163
- data/_sass/foundation/foundation.scss +0 -102
- data/_sass/foundation/grid/_classes.scss +0 -151
- data/_sass/foundation/grid/_column.scss +0 -126
- data/_sass/foundation/grid/_flex-grid.scss +0 -274
- data/_sass/foundation/grid/_grid.scss +0 -60
- data/_sass/foundation/grid/_gutter.scss +0 -34
- data/_sass/foundation/grid/_layout.scss +0 -51
- data/_sass/foundation/grid/_position.scss +0 -73
- data/_sass/foundation/grid/_row.scss +0 -95
- data/_sass/foundation/grid/_size.scss +0 -24
- data/_sass/foundation/settings/_settings.scss +0 -567
- data/_sass/foundation/typography/_alignment.scss +0 -22
- data/_sass/foundation/typography/_base.scss +0 -443
- data/_sass/foundation/typography/_helpers.scss +0 -77
- data/_sass/foundation/typography/_print.scss +0 -77
- data/_sass/foundation/typography/_typography.scss +0 -28
- data/_sass/foundation/util/_breakpoint.scss +0 -275
- data/_sass/foundation/util/_color.scss +0 -60
- data/_sass/foundation/util/_flex.scss +0 -68
- data/_sass/foundation/util/_mixins.scss +0 -235
- data/_sass/foundation/util/_selector.scss +0 -40
- data/_sass/foundation/util/_unit.scss +0 -90
- data/_sass/foundation/util/_util.scss +0 -11
- data/_sass/foundation/util/_value.scss +0 -107
- data/_sass/jquery-ui.scss +0 -1311
- data/_sass/main.scss +0 -41
- data/_sass/minima.scss +0 -51
- data/_sass/minima/_base.scss +0 -254
- data/_sass/minima/_layout.scss +0 -255
- data/_sass/minima/_syntax-highlighting.scss +0 -71
- data/_sass/scroll-top.scss +0 -31
- data/assets/js/common-libs.min.js +0 -1
- data/assets/js/custom.min.js +0 -1
- data/assets/snippet/profile.html +0 -19
@@ -1,115 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
////
|
6
|
-
/// @group media-object
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Bottom margin of a media object.
|
10
|
-
/// @type Number
|
11
|
-
$mediaobject-margin-bottom: $global-margin !default;
|
12
|
-
|
13
|
-
/// Left and right padding on sections within a media object.
|
14
|
-
/// @type Number
|
15
|
-
$mediaobject-section-padding: $global-padding !default;
|
16
|
-
|
17
|
-
/// Width of images within a media object, when the object is stacked vertically. Set to 'auto' to use the image's natural width.
|
18
|
-
/// @type Number
|
19
|
-
$mediaobject-image-width-stacked: 100% !default;
|
20
|
-
|
21
|
-
/// Adds styles for a media object container.
|
22
|
-
@mixin media-object-container {
|
23
|
-
margin-bottom: $mediaobject-margin-bottom;
|
24
|
-
display: if($global-flexbox, flex, block);
|
25
|
-
|
26
|
-
@if $global-flexbox {
|
27
|
-
flex-wrap: nowrap;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
/// Adds styles for sections within a media object.
|
32
|
-
/// @param {Number} $padding [$mediaobject-section-padding] - Padding between sections.
|
33
|
-
@mixin media-object-section($padding: $mediaobject-section-padding) {
|
34
|
-
@if $global-flexbox {
|
35
|
-
flex: 0 1 auto;
|
36
|
-
}
|
37
|
-
@else {
|
38
|
-
display: table-cell;
|
39
|
-
vertical-align: top;
|
40
|
-
}
|
41
|
-
|
42
|
-
&:first-child {
|
43
|
-
padding-#{$global-right}: $padding;
|
44
|
-
}
|
45
|
-
|
46
|
-
&:last-child:not(:nth-child(2)) {
|
47
|
-
padding-#{$global-left}: $padding;
|
48
|
-
}
|
49
|
-
|
50
|
-
> :last-child {
|
51
|
-
margin-bottom: 0;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
/// Adds styles to stack sections of a media object. Apply this to the section elements, not the container.
|
56
|
-
@mixin media-object-stack {
|
57
|
-
padding: 0;
|
58
|
-
padding-bottom: $mediaobject-section-padding;
|
59
|
-
|
60
|
-
@if $global-flexbox {
|
61
|
-
flex-basis: 100%;
|
62
|
-
max-width: 100%;
|
63
|
-
}
|
64
|
-
@else {
|
65
|
-
display: block;
|
66
|
-
}
|
67
|
-
|
68
|
-
img {
|
69
|
-
width: $mediaobject-image-width-stacked;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
@mixin foundation-media-object {
|
74
|
-
.media-object {
|
75
|
-
@include media-object-container;
|
76
|
-
|
77
|
-
img {
|
78
|
-
max-width: none;
|
79
|
-
}
|
80
|
-
|
81
|
-
@if $global-flexbox {
|
82
|
-
&.stack-for-#{$-zf-zero-breakpoint} {
|
83
|
-
@include breakpoint($-zf-zero-breakpoint only) {
|
84
|
-
flex-wrap: wrap;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
&.stack-for-#{$-zf-zero-breakpoint} .media-object-section {
|
90
|
-
@include breakpoint($-zf-zero-breakpoint only) {
|
91
|
-
@include media-object-stack;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
.media-object-section {
|
97
|
-
@include media-object-section;
|
98
|
-
|
99
|
-
@if $global-flexbox {
|
100
|
-
// scss-lint:disable ZeroUnit
|
101
|
-
&.main-section {
|
102
|
-
flex: 1 1 0px;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
@else {
|
106
|
-
&.middle {
|
107
|
-
vertical-align: middle;
|
108
|
-
}
|
109
|
-
|
110
|
-
&.bottom {
|
111
|
-
vertical-align: bottom;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
@@ -1,314 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
////
|
6
|
-
/// @group menu
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Margin of a menu.
|
10
|
-
/// @type Number
|
11
|
-
$menu-margin: 0 !default;
|
12
|
-
|
13
|
-
/// Left-hand margin of a nested menu.
|
14
|
-
/// @type Number
|
15
|
-
$menu-margin-nested: 1rem !default;
|
16
|
-
|
17
|
-
/// Padding for items in a menu.
|
18
|
-
/// @type Number
|
19
|
-
$menu-item-padding: 0.7rem 1rem !default;
|
20
|
-
|
21
|
-
/// Text color of an active menu item.
|
22
|
-
/// @type Color
|
23
|
-
$menu-item-color-active: $white !default;
|
24
|
-
|
25
|
-
/// Background color of an active menu item.
|
26
|
-
/// @type Color
|
27
|
-
$menu-item-background-active: map-get($foundation-palette, primary) !default;
|
28
|
-
|
29
|
-
/// Spacing between an icon and text in a menu item.
|
30
|
-
/// @type Number
|
31
|
-
$menu-icon-spacing: 0.25rem !default;
|
32
|
-
|
33
|
-
/// Creates the base styles for a Menu.
|
34
|
-
@mixin menu-base {
|
35
|
-
margin: $menu-margin;
|
36
|
-
list-style-type: none;
|
37
|
-
|
38
|
-
@if $global-flexbox {
|
39
|
-
width: 100%;
|
40
|
-
display: flex;
|
41
|
-
flex-wrap: nowrap;
|
42
|
-
align-items: center;
|
43
|
-
}
|
44
|
-
|
45
|
-
// List items are table cell to allow for vertical alignment
|
46
|
-
> li {
|
47
|
-
@include disable-mouse-outline;
|
48
|
-
|
49
|
-
@if $global-flexbox {
|
50
|
-
flex: 0 0 auto;
|
51
|
-
}
|
52
|
-
@else {
|
53
|
-
display: table-cell;
|
54
|
-
vertical-align: middle;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
// Reset line height to make the height of the overall item easier to calculate
|
59
|
-
> li > a {
|
60
|
-
display: block;
|
61
|
-
padding: $menu-item-padding;
|
62
|
-
line-height: 1;
|
63
|
-
}
|
64
|
-
|
65
|
-
// Reset styles of inner elements
|
66
|
-
input,
|
67
|
-
a,
|
68
|
-
button {
|
69
|
-
margin-bottom: 0;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
/// Expands the items of a Menu, so each item is the same width.
|
74
|
-
@mixin menu-expand {
|
75
|
-
@if $global-flexbox {
|
76
|
-
// scss-lint:disable ZeroUnit
|
77
|
-
> li {
|
78
|
-
flex: 1 1 0px;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
@else {
|
82
|
-
width: 100%;
|
83
|
-
display: table;
|
84
|
-
table-layout: fixed;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
/// Sets the direction of a Menu.
|
89
|
-
/// @param {Keyword} $dir [horizontal] - Direction of the Menu. Can be `horizontal` or `vertical`.
|
90
|
-
@mixin menu-direction($dir: horizontal) {
|
91
|
-
@if $dir == horizontal {
|
92
|
-
@if $global-flexbox {
|
93
|
-
flex-wrap: nowrap;
|
94
|
-
|
95
|
-
> li {
|
96
|
-
flex: 0 0 auto;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
@else {
|
100
|
-
> li {
|
101
|
-
display: table-cell;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
}
|
105
|
-
@else if $dir == vertical {
|
106
|
-
@if $global-flexbox {
|
107
|
-
flex-wrap: wrap;
|
108
|
-
|
109
|
-
> li {
|
110
|
-
flex: 0 0 100%;
|
111
|
-
max-width: 100%;
|
112
|
-
}
|
113
|
-
|
114
|
-
> li > a {
|
115
|
-
align-items: flex-start;
|
116
|
-
justify-content: flex-start;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
@else {
|
120
|
-
> li {
|
121
|
-
display: block;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
@else {
|
126
|
-
@warn 'The direction used for menu-direction() must be horizontal or vertical.';
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
/// Creates a simple Menu, which has no padding or hover state.
|
131
|
-
@mixin menu-simple {
|
132
|
-
li {
|
133
|
-
line-height: 1;
|
134
|
-
display: inline-block;
|
135
|
-
margin-#{$global-right}: get-side($menu-item-padding, $global-right);
|
136
|
-
}
|
137
|
-
|
138
|
-
a {
|
139
|
-
padding: 0;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
/// Adds styles for a nested Menu, by adding `margin-left` to the menu.
|
144
|
-
/// @param {Keyword|Number} $padding [auto] - Length of the margin.
|
145
|
-
@mixin menu-nested($margin: $menu-margin-nested) {
|
146
|
-
margin-#{$global-left}: $margin;
|
147
|
-
}
|
148
|
-
|
149
|
-
/// Adds support for icons to Menu items.
|
150
|
-
/// @param {Keyword} $position [side] - Positioning for icons. Can be `side` (left, or right on RTL) or `top`.
|
151
|
-
/// @param {Boolean} $base [true] - Set to `false` to prevent the shared CSS between side- and top-aligned icons from being printed. Set this to `false` if you're calling the mixin multiple times on the same element.
|
152
|
-
@mixin menu-icons($position: side, $base: true) {
|
153
|
-
@if $base {
|
154
|
-
@if $global-flexbox {
|
155
|
-
> li > a {
|
156
|
-
display: flex;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
@else {
|
160
|
-
> li > a {
|
161
|
-
img,
|
162
|
-
i,
|
163
|
-
svg {
|
164
|
-
vertical-align: middle;
|
165
|
-
|
166
|
-
+ span {
|
167
|
-
vertical-align: middle;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
}
|
171
|
-
}
|
172
|
-
}
|
173
|
-
|
174
|
-
@if $position == side {
|
175
|
-
> li > a {
|
176
|
-
@if $global-flexbox {
|
177
|
-
flex-flow: row nowrap;
|
178
|
-
}
|
179
|
-
|
180
|
-
img,
|
181
|
-
i,
|
182
|
-
svg {
|
183
|
-
margin-#{$global-right}: $menu-icon-spacing;
|
184
|
-
|
185
|
-
@if not $global-flexbox {
|
186
|
-
display: inline-block;
|
187
|
-
}
|
188
|
-
}
|
189
|
-
}
|
190
|
-
}
|
191
|
-
@else if $position == top {
|
192
|
-
> li > a {
|
193
|
-
@if $global-flexbox {
|
194
|
-
flex-flow: column nowrap;
|
195
|
-
}
|
196
|
-
@else {
|
197
|
-
text-align: center;
|
198
|
-
}
|
199
|
-
|
200
|
-
img,
|
201
|
-
i,
|
202
|
-
svg {
|
203
|
-
@if not $global-flexbox {
|
204
|
-
display: block;
|
205
|
-
margin: 0 auto $menu-icon-spacing;
|
206
|
-
}
|
207
|
-
@else {
|
208
|
-
align-self: stretch;
|
209
|
-
text-align: center;
|
210
|
-
margin-bottom: $menu-icon-spacing;
|
211
|
-
}
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
216
|
-
|
217
|
-
@mixin menu-text {
|
218
|
-
font-weight: bold;
|
219
|
-
color: inherit;
|
220
|
-
line-height: 1;
|
221
|
-
padding-top: 0;
|
222
|
-
padding-bottom: 0;
|
223
|
-
padding: $menu-item-padding;
|
224
|
-
}
|
225
|
-
|
226
|
-
@mixin foundation-menu {
|
227
|
-
.menu {
|
228
|
-
@include menu-base;
|
229
|
-
@include menu-icons;
|
230
|
-
|
231
|
-
// Orientation
|
232
|
-
@include menu-direction(horizontal);
|
233
|
-
|
234
|
-
&.vertical {
|
235
|
-
@include menu-direction(vertical);
|
236
|
-
}
|
237
|
-
|
238
|
-
@each $size in $breakpoint-classes {
|
239
|
-
@if $size != $-zf-zero-breakpoint {
|
240
|
-
@include breakpoint($size) {
|
241
|
-
&.#{$size}-horizontal {
|
242
|
-
@include menu-direction(horizontal);
|
243
|
-
}
|
244
|
-
|
245
|
-
&.#{$size}-vertical {
|
246
|
-
@include menu-direction(vertical);
|
247
|
-
}
|
248
|
-
}
|
249
|
-
}
|
250
|
-
}
|
251
|
-
|
252
|
-
// Simple
|
253
|
-
&.simple {
|
254
|
-
@include menu-simple;
|
255
|
-
}
|
256
|
-
|
257
|
-
// Align right
|
258
|
-
&.align-#{$global-right} {
|
259
|
-
@if $global-flexbox {
|
260
|
-
justify-content: flex-end;
|
261
|
-
}
|
262
|
-
@else {
|
263
|
-
@include clearfix;
|
264
|
-
|
265
|
-
> li {
|
266
|
-
float: $global-right;
|
267
|
-
}
|
268
|
-
}
|
269
|
-
}
|
270
|
-
|
271
|
-
// Even-width
|
272
|
-
&.expanded {
|
273
|
-
@include menu-expand;
|
274
|
-
|
275
|
-
> li:first-child:last-child {
|
276
|
-
width: 100%;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
// Vertical icons
|
281
|
-
&.icon-top {
|
282
|
-
@include menu-icons(top, $base: false);
|
283
|
-
}
|
284
|
-
|
285
|
-
// Nesting
|
286
|
-
&.nested {
|
287
|
-
@include menu-nested;
|
288
|
-
}
|
289
|
-
|
290
|
-
// Active state
|
291
|
-
.active > a {
|
292
|
-
color: $menu-item-color-active;
|
293
|
-
background: $menu-item-background-active;
|
294
|
-
}
|
295
|
-
}
|
296
|
-
|
297
|
-
.menu-text {
|
298
|
-
@include menu-text;
|
299
|
-
}
|
300
|
-
|
301
|
-
// Align center
|
302
|
-
.menu-centered {
|
303
|
-
text-align: center;
|
304
|
-
|
305
|
-
> .menu {
|
306
|
-
display: inline-block;
|
307
|
-
}
|
308
|
-
}
|
309
|
-
|
310
|
-
// Prevent FOUC when using the Responsive Menu plugin
|
311
|
-
.no-js [data-responsive-menu] ul {
|
312
|
-
display: none;
|
313
|
-
}
|
314
|
-
}
|
@@ -1,177 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
////
|
6
|
-
/// @group off-canvas
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Width of an off-canvas menu.
|
10
|
-
/// @type Number
|
11
|
-
$offcanvas-size: 250px !default;
|
12
|
-
|
13
|
-
/// Background color of an off-canvas menu.
|
14
|
-
/// @type Color
|
15
|
-
$offcanvas-background: $light-gray !default;
|
16
|
-
|
17
|
-
/// Z-index of an off-canvas menu.
|
18
|
-
/// @type Number
|
19
|
-
$offcanvas-zindex: -1 !default;
|
20
|
-
|
21
|
-
/// Length of the animation on an off-canvas menu.
|
22
|
-
/// @type Number
|
23
|
-
$offcanvas-transition-length: 0.5s !default;
|
24
|
-
|
25
|
-
/// Timing function of the animation on an off-canvas menu.
|
26
|
-
/// @type Keyword
|
27
|
-
$offcanvas-transition-timing: ease !default;
|
28
|
-
|
29
|
-
/// If `true`, a revealed off-canvas will be fixed-position, and scroll with the screen.
|
30
|
-
$offcanvas-fixed-reveal: true !default;
|
31
|
-
|
32
|
-
/// Background color for the overlay that appears when an off-canvas menu is open.
|
33
|
-
/// @type Color
|
34
|
-
$offcanvas-exit-background: rgba($white, 0.25) !default;
|
35
|
-
|
36
|
-
/// CSS class used for the main content area. The off-canvas mixins use this to target the page body.
|
37
|
-
$maincontent-class: 'off-canvas-content' !default;
|
38
|
-
|
39
|
-
/// Box shadow to place under the main content area. This shadow overlaps the off-canvas menus.
|
40
|
-
/// @type Shadow
|
41
|
-
$maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
|
42
|
-
|
43
|
-
/// Adds baseline styles for off-canvas. This CSS is required to make the other pieces work.
|
44
|
-
@mixin off-canvas-basics {
|
45
|
-
// Extra properties needed on <html> and <body> to make off-canvas work
|
46
|
-
html,
|
47
|
-
body {
|
48
|
-
height: 100%;
|
49
|
-
}
|
50
|
-
|
51
|
-
.off-canvas-wrapper {
|
52
|
-
width: 100%;
|
53
|
-
overflow-x: hidden;
|
54
|
-
position: relative;
|
55
|
-
backface-visibility: hidden;
|
56
|
-
-webkit-overflow-scrolling: auto;
|
57
|
-
}
|
58
|
-
|
59
|
-
.off-canvas-wrapper-inner {
|
60
|
-
@include clearfix;
|
61
|
-
position: relative;
|
62
|
-
width: 100%;
|
63
|
-
transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
|
64
|
-
}
|
65
|
-
|
66
|
-
// Container for page content
|
67
|
-
.off-canvas-content,
|
68
|
-
.#{$maincontent-class} {
|
69
|
-
min-height: 100%;
|
70
|
-
background: $body-background;
|
71
|
-
transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
|
72
|
-
backface-visibility: hidden;
|
73
|
-
z-index: 1;
|
74
|
-
padding-bottom: 0.1px; // Prevents margin collapsing, which would reveal the box shadow of the wrapper
|
75
|
-
|
76
|
-
@if has-value($maincontent-shadow) {
|
77
|
-
box-shadow: $maincontent-shadow;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
// Click-to-exit overlay (generated by JavaScript)
|
82
|
-
.js-off-canvas-exit {
|
83
|
-
display: none;
|
84
|
-
position: absolute;
|
85
|
-
top: 0;
|
86
|
-
left: 0;
|
87
|
-
width: 100%;
|
88
|
-
height: 100%;
|
89
|
-
background: $offcanvas-exit-background;
|
90
|
-
cursor: pointer;
|
91
|
-
transition: background $offcanvas-transition-length $offcanvas-transition-timing;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
/// Adds basic styles for an off-canvas menu.
|
96
|
-
@mixin off-canvas-base {
|
97
|
-
@include disable-mouse-outline;
|
98
|
-
position: absolute;
|
99
|
-
background: $offcanvas-background;
|
100
|
-
z-index: $offcanvas-zindex;
|
101
|
-
max-height: 100%;
|
102
|
-
overflow-y: auto;
|
103
|
-
transform: translateX(0);
|
104
|
-
}
|
105
|
-
|
106
|
-
@mixin off-canvas-position(
|
107
|
-
$position: left,
|
108
|
-
$size: $offcanvas-size,
|
109
|
-
$fixed: false
|
110
|
-
) {
|
111
|
-
@if $position == left {
|
112
|
-
left: -$size;
|
113
|
-
top: 0;
|
114
|
-
width: $size;
|
115
|
-
}
|
116
|
-
@else if $position == right {
|
117
|
-
right: -$size;
|
118
|
-
top: 0;
|
119
|
-
width: $size;
|
120
|
-
}
|
121
|
-
|
122
|
-
// Generates an open state class that matches the width of the menu
|
123
|
-
@at-root {
|
124
|
-
.is-open-#{$position} {
|
125
|
-
@if $position == left {
|
126
|
-
transform: translateX($size);
|
127
|
-
}
|
128
|
-
@else if $position == right {
|
129
|
-
transform: translateX(-$size);
|
130
|
-
}
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
|
135
|
-
/// Adds styles that reveal an off-canvas menu.
|
136
|
-
/// @param {Keyword} $position [left] - Position of the off-canvas menu being revealed.
|
137
|
-
@mixin off-canvas-reveal(
|
138
|
-
$position: left
|
139
|
-
) {
|
140
|
-
#{$position}: 0;
|
141
|
-
z-index: auto;
|
142
|
-
|
143
|
-
@if $offcanvas-fixed-reveal {
|
144
|
-
position: fixed;
|
145
|
-
}
|
146
|
-
|
147
|
-
& ~ .#{$maincontent-class} {
|
148
|
-
margin-#{$position}: $offcanvas-size;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
@mixin foundation-off-canvas {
|
153
|
-
@include off-canvas-basics;
|
154
|
-
|
155
|
-
// Off-canvas container
|
156
|
-
.off-canvas {
|
157
|
-
@include off-canvas-base;
|
158
|
-
|
159
|
-
&.position-left { @include off-canvas-position(left); }
|
160
|
-
&.position-right { @include off-canvas-position(right); }
|
161
|
-
}
|
162
|
-
|
163
|
-
// Reveal off-canvas menu on larger screens
|
164
|
-
@each $name, $value in $breakpoint-classes {
|
165
|
-
@if $name != $-zf-zero-breakpoint {
|
166
|
-
@include breakpoint($name) {
|
167
|
-
.position-left.reveal-for-#{$name} {
|
168
|
-
@include off-canvas-reveal(left);
|
169
|
-
}
|
170
|
-
|
171
|
-
.position-right.reveal-for-#{$name} {
|
172
|
-
@include off-canvas-reveal(right);
|
173
|
-
}
|
174
|
-
}
|
175
|
-
}
|
176
|
-
}
|
177
|
-
}
|