jekyll-theme-pirati 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +55 -0
- data/_includes/accordeon/accordeon-column.html +8 -0
- data/_includes/accordeon/accordeon.html +12 -0
- data/_includes/article-list/featured_article.html +55 -0
- data/_includes/article-list/list-3col.html +55 -0
- data/_includes/article-list/pagination.html +36 -0
- data/_includes/article-list/standard_article.html +45 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +23 -0
- data/_includes/google-analytics.html +12 -0
- data/_includes/head.html +60 -0
- data/_includes/header.html +115 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_includes/icon-twitter.html +1 -0
- data/_includes/icon-twitter.svg +1 -0
- data/_includes/js/custom.js +245 -0
- data/_includes/js/fb.js +15 -0
- data/_includes/js/main.html +18 -0
- data/_includes/js/piwik.js +11 -0
- data/_includes/js/tw.js +15 -0
- data/_includes/people/item.html +31 -0
- data/_includes/people/list-2col.html +25 -0
- data/_includes/right-bar/bar_cal.html +15 -0
- data/_includes/right-bar/bar_fb.html +23 -0
- data/_includes/right-bar/bar_foto.html +20 -0
- data/_includes/right-bar/bar_map.html +37 -0
- data/_includes/right-bar/bar_people.html +25 -0
- data/_includes/right-bar/bar_program.html +35 -0
- data/_includes/right-bar/bar_teams_summary.html +22 -0
- data/_includes/right-bar/bar_teams_toc.html +31 -0
- data/_includes/right-bar/bar_textbox.html +23 -0
- data/_includes/right-bar/bar_toc.html +77 -0
- data/_includes/right-bar/bar_tw.html +16 -0
- data/_includes/right-bar/bar_video.html +23 -0
- data/_includes/right-bar/rbar.html +39 -0
- data/_includes/right-bar/social-bar.html +16 -0
- data/_includes/social.html +14 -0
- data/_includes/submenu.html +22 -0
- data/_includes/title/title_header.html +9 -0
- data/_layouts/blank.html +14 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +23 -0
- data/_layouts/home.html +34 -0
- data/_layouts/page.html +34 -0
- data/_layouts/post.html +110 -0
- data/_layouts/redirected.html +13 -0
- data/_layouts/team.html +45 -0
- data/_sass/_base.scss +24 -0
- data/_sass/_settings.scss +569 -0
- data/_sass/_sprites.scss +0 -0
- data/_sass/components/BasicPage.scss +464 -0
- data/_sass/components/BlogPosting.scss +274 -0
- data/_sass/components/Person.scss +42 -0
- data/_sass/components/Slider.scss +0 -0
- data/_sass/components/banner.scss +75 -0
- data/_sass/components/blockquote.scss +53 -0
- data/_sass/components/card.scss +154 -0
- data/_sass/components/contact-bar.scss +93 -0
- data/_sass/components/content-card.scss +31 -0
- data/_sass/components/cta-button.scss +54 -0
- data/_sass/components/header-bar.scss +108 -0
- data/_sass/components/hero.scss +164 -0
- data/_sass/components/highlight.scss +60 -0
- data/_sass/components/icon.scss +25 -0
- data/_sass/components/pagination.scss +75 -0
- data/_sass/components/pripoj-se.scss +97 -0
- data/_sass/components/scroll-top.scss +32 -0
- data/_sass/components/simple-accordion.scss +85 -0
- data/_sass/components/tag.scss +30 -0
- data/_sass/components/top-bar.scss +492 -0
- data/_sass/components/top-sub-nav.scss +186 -0
- data/_sass/components/vertical-navigation.scss +68 -0
- data/_sass/components/welcome-header.scss +188 -0
- data/_sass/components/widget-accordion.scss +293 -0
- data/_sass/components/widget-share-box.scss +57 -0
- data/_sass/components/widget-simple-text.scss +15 -0
- data/_sass/foundation/_global.scss +638 -0
- data/_sass/foundation/components/_accordion-menu.scss +32 -0
- data/_sass/foundation/components/_accordion.scss +129 -0
- data/_sass/foundation/components/_badge.scss +55 -0
- data/_sass/foundation/components/_breadcrumbs.scss +95 -0
- data/_sass/foundation/components/_button-group.scss +195 -0
- data/_sass/foundation/components/_button.scss +265 -0
- data/_sass/foundation/components/_callout.scss +105 -0
- data/_sass/foundation/components/_close-button.scss +61 -0
- data/_sass/foundation/components/_drilldown.scss +79 -0
- data/_sass/foundation/components/_dropdown-menu.scss +221 -0
- data/_sass/foundation/components/_dropdown.scss +65 -0
- data/_sass/foundation/components/_flex-video.scss +63 -0
- data/_sass/foundation/components/_flex.scss +28 -0
- data/_sass/foundation/components/_float.scss +27 -0
- data/_sass/foundation/components/_label.scss +55 -0
- data/_sass/foundation/components/_media-object.scss +115 -0
- data/_sass/foundation/components/_menu-icon.scss +9 -0
- data/_sass/foundation/components/_menu.scss +314 -0
- data/_sass/foundation/components/_off-canvas.scss +177 -0
- data/_sass/foundation/components/_orbit.scss +193 -0
- data/_sass/foundation/components/_pagination.scss +162 -0
- data/_sass/foundation/components/_progress-bar.scss +64 -0
- data/_sass/foundation/components/_reveal.scss +172 -0
- data/_sass/foundation/components/_slider.scss +133 -0
- data/_sass/foundation/components/_sticky.scss +38 -0
- data/_sass/foundation/components/_switch.scss +232 -0
- data/_sass/foundation/components/_table.scss +234 -0
- data/_sass/foundation/components/_tabs.scss +165 -0
- data/_sass/foundation/components/_thumbnail.scss +54 -0
- data/_sass/foundation/components/_title-bar.scss +89 -0
- data/_sass/foundation/components/_tooltip.scss +104 -0
- data/_sass/foundation/components/_top-bar.scss +168 -0
- data/_sass/foundation/components/_visibility.scss +132 -0
- data/_sass/foundation/forms/_checkbox.scss +40 -0
- data/_sass/foundation/forms/_error.scss +84 -0
- data/_sass/foundation/forms/_fieldset.scss +54 -0
- data/_sass/foundation/forms/_forms.scss +34 -0
- data/_sass/foundation/forms/_help-text.scss +30 -0
- data/_sass/foundation/forms/_input-group.scss +128 -0
- data/_sass/foundation/forms/_label.scss +48 -0
- data/_sass/foundation/forms/_meter.scss +109 -0
- data/_sass/foundation/forms/_progress.scss +85 -0
- data/_sass/foundation/forms/_range.scss +144 -0
- data/_sass/foundation/forms/_select.scss +67 -0
- data/_sass/foundation/forms/_text.scss +163 -0
- data/_sass/foundation/foundation.scss +102 -0
- data/_sass/foundation/grid/_classes.scss +151 -0
- data/_sass/foundation/grid/_column.scss +126 -0
- data/_sass/foundation/grid/_flex-grid.scss +274 -0
- data/_sass/foundation/grid/_grid.scss +60 -0
- data/_sass/foundation/grid/_gutter.scss +34 -0
- data/_sass/foundation/grid/_layout.scss +51 -0
- data/_sass/foundation/grid/_position.scss +73 -0
- data/_sass/foundation/grid/_row.scss +95 -0
- data/_sass/foundation/grid/_size.scss +24 -0
- data/_sass/foundation/settings/_settings.scss +567 -0
- data/_sass/foundation/typography/_alignment.scss +22 -0
- data/_sass/foundation/typography/_base.scss +443 -0
- data/_sass/foundation/typography/_helpers.scss +77 -0
- data/_sass/foundation/typography/_print.scss +77 -0
- data/_sass/foundation/typography/_typography.scss +28 -0
- data/_sass/foundation/util/_breakpoint.scss +275 -0
- data/_sass/foundation/util/_color.scss +60 -0
- data/_sass/foundation/util/_flex.scss +68 -0
- data/_sass/foundation/util/_mixins.scss +235 -0
- data/_sass/foundation/util/_selector.scss +40 -0
- data/_sass/foundation/util/_unit.scss +90 -0
- data/_sass/foundation/util/_util.scss +11 -0
- data/_sass/foundation/util/_value.scss +107 -0
- data/_sass/main.scss +40 -0
- data/_sass/minima.scss +51 -0
- data/_sass/minima/_base.scss +254 -0
- data/_sass/minima/_layout.scss +255 -0
- data/_sass/minima/_syntax-highlighting.scss +71 -0
- data/_sass/objects/media.scss +55 -0
- data/_sass/objects/section.scss +247 -0
- data/_sass/objects/space.scss +7 -0
- data/_sass/scroll-top.scss +31 -0
- data/_sass/utilities/utilities.scss +190 -0
- data/assets/css/main.scss +110 -0
- data/assets/favicon/apple-touch-icon-114x114.png +0 -0
- data/assets/favicon/apple-touch-icon-120x120.png +0 -0
- data/assets/favicon/apple-touch-icon-144x144.png +0 -0
- data/assets/favicon/apple-touch-icon-152x152.png +0 -0
- data/assets/favicon/apple-touch-icon-57x57.png +0 -0
- data/assets/favicon/apple-touch-icon-60x60.png +0 -0
- data/assets/favicon/apple-touch-icon-72x72.png +0 -0
- data/assets/favicon/apple-touch-icon-76x76.png +0 -0
- data/assets/favicon/favicon-128.png +0 -0
- data/assets/favicon/favicon-16x16.png +0 -0
- data/assets/favicon/favicon-196x196.png +0 -0
- data/assets/favicon/favicon-32x32.png +0 -0
- data/assets/favicon/favicon-96x96.png +0 -0
- data/assets/favicon/favicon.ico +0 -0
- data/assets/favicon/mstile-144x144.png +0 -0
- data/assets/favicon/mstile-150x150.png +0 -0
- data/assets/favicon/mstile-310x150.png +0 -0
- data/assets/favicon/mstile-310x310.png +0 -0
- data/assets/favicon/mstile-70x70.png +0 -0
- data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
- data/assets/fonts/bebasneue_regular-webfont.svg +3906 -0
- data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
- data/assets/icons/blog.png +0 -0
- data/assets/icons/compass.png +0 -0
- data/assets/icons/facebook.png +0 -0
- data/assets/icons/github.png +0 -0
- data/assets/icons/googleplus.png +0 -0
- data/assets/icons/instagram.png +0 -0
- data/assets/icons/linkedin.png +0 -0
- data/assets/icons/pinterest.png +0 -0
- data/assets/icons/piratewiki.png +0 -0
- data/assets/icons/redmine.png +0 -0
- data/assets/icons/twitter.png +0 -0
- data/assets/icons/vkontakte.png +0 -0
- data/assets/icons/youtube.png +0 -0
- data/assets/img/brand/logo-group.png +0 -0
- data/assets/img/brand/logo-group.svg +27 -0
- data/assets/img/brand/logo-round.png +0 -0
- data/assets/img/brand/logo-round.svg +104 -0
- data/assets/img/brand/logo.ai +5083 -16
- data/assets/img/brand/logo.pdf +1405 -4
- data/assets/img/brand/logo.png +0 -0
- data/assets/img/brand/logo.svg +10 -0
- data/assets/img/brand/logo_easy.png +0 -0
- data/assets/img/brand/logo_napis.ai +5003 -21
- data/assets/img/brand/logo_napis.pdf +1482 -3
- data/assets/img/brand/logo_napis.png +0 -0
- data/assets/img/brand/logo_napis.svg +48 -0
- data/assets/img/brand/logo_napis_male.png +0 -0
- data/assets/img/brand/logo_napis_white.ai +5106 -16
- data/assets/img/brand/logo_napis_white.pdf +1532 -2
- data/assets/img/brand/logo_napis_white.png +0 -0
- data/assets/img/brand/logo_napis_white.svg +51 -0
- data/assets/img/brand/logo_white.ai +5194 -23
- data/assets/img/brand/logo_white.pdf +1388 -4
- data/assets/img/brand/logo_white.png +0 -0
- data/assets/img/brand/logo_white.svg +14 -0
- data/assets/img/brand/logotyp_email.png +0 -0
- data/assets/img/brand/logow.svg +19 -0
- data/assets/img/header/background.jpg +0 -0
- data/assets/img/people/jakub-pirat.jpg +0 -0
- data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
- data/assets/img/tiles/lightGrey.png +0 -0
- data/assets/img/tiles/tableOfContent.png +0 -0
- data/assets/js/common-libs.min.js +1 -0
- data/assets/js/custom.min.js +1 -0
- data/assets/people/piratska-strana.png +0 -0
- data/assets/people/ppp.jpg +0 -0
- metadata +316 -0
@@ -0,0 +1,115 @@
|
|
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
|
+
}
|
@@ -0,0 +1,314 @@
|
|
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
|
+
}
|
@@ -0,0 +1,177 @@
|
|
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
|
+
}
|