jekyll-theme-pirati 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +55 -0
  5. data/_includes/accordeon/accordeon-column.html +8 -0
  6. data/_includes/accordeon/accordeon.html +12 -0
  7. data/_includes/article-list/featured_article.html +55 -0
  8. data/_includes/article-list/list-3col.html +55 -0
  9. data/_includes/article-list/pagination.html +36 -0
  10. data/_includes/article-list/standard_article.html +45 -0
  11. data/_includes/disqus_comments.html +20 -0
  12. data/_includes/footer.html +23 -0
  13. data/_includes/google-analytics.html +12 -0
  14. data/_includes/head.html +60 -0
  15. data/_includes/header.html +115 -0
  16. data/_includes/icon-github.html +1 -0
  17. data/_includes/icon-github.svg +1 -0
  18. data/_includes/icon-twitter.html +1 -0
  19. data/_includes/icon-twitter.svg +1 -0
  20. data/_includes/js/custom.js +245 -0
  21. data/_includes/js/fb.js +15 -0
  22. data/_includes/js/main.html +18 -0
  23. data/_includes/js/piwik.js +11 -0
  24. data/_includes/js/tw.js +15 -0
  25. data/_includes/people/item.html +31 -0
  26. data/_includes/people/list-2col.html +25 -0
  27. data/_includes/right-bar/bar_cal.html +15 -0
  28. data/_includes/right-bar/bar_fb.html +23 -0
  29. data/_includes/right-bar/bar_foto.html +20 -0
  30. data/_includes/right-bar/bar_map.html +37 -0
  31. data/_includes/right-bar/bar_people.html +25 -0
  32. data/_includes/right-bar/bar_program.html +35 -0
  33. data/_includes/right-bar/bar_teams_summary.html +22 -0
  34. data/_includes/right-bar/bar_teams_toc.html +31 -0
  35. data/_includes/right-bar/bar_textbox.html +23 -0
  36. data/_includes/right-bar/bar_toc.html +77 -0
  37. data/_includes/right-bar/bar_tw.html +16 -0
  38. data/_includes/right-bar/bar_video.html +23 -0
  39. data/_includes/right-bar/rbar.html +39 -0
  40. data/_includes/right-bar/social-bar.html +16 -0
  41. data/_includes/social.html +14 -0
  42. data/_includes/submenu.html +22 -0
  43. data/_includes/title/title_header.html +9 -0
  44. data/_layouts/blank.html +14 -0
  45. data/_layouts/compress.html +10 -0
  46. data/_layouts/default.html +23 -0
  47. data/_layouts/home.html +34 -0
  48. data/_layouts/page.html +34 -0
  49. data/_layouts/post.html +110 -0
  50. data/_layouts/redirected.html +13 -0
  51. data/_layouts/team.html +45 -0
  52. data/_sass/_base.scss +24 -0
  53. data/_sass/_settings.scss +569 -0
  54. data/_sass/_sprites.scss +0 -0
  55. data/_sass/components/BasicPage.scss +464 -0
  56. data/_sass/components/BlogPosting.scss +274 -0
  57. data/_sass/components/Person.scss +42 -0
  58. data/_sass/components/Slider.scss +0 -0
  59. data/_sass/components/banner.scss +75 -0
  60. data/_sass/components/blockquote.scss +53 -0
  61. data/_sass/components/card.scss +154 -0
  62. data/_sass/components/contact-bar.scss +93 -0
  63. data/_sass/components/content-card.scss +31 -0
  64. data/_sass/components/cta-button.scss +54 -0
  65. data/_sass/components/header-bar.scss +108 -0
  66. data/_sass/components/hero.scss +164 -0
  67. data/_sass/components/highlight.scss +60 -0
  68. data/_sass/components/icon.scss +25 -0
  69. data/_sass/components/pagination.scss +75 -0
  70. data/_sass/components/pripoj-se.scss +97 -0
  71. data/_sass/components/scroll-top.scss +32 -0
  72. data/_sass/components/simple-accordion.scss +85 -0
  73. data/_sass/components/tag.scss +30 -0
  74. data/_sass/components/top-bar.scss +492 -0
  75. data/_sass/components/top-sub-nav.scss +186 -0
  76. data/_sass/components/vertical-navigation.scss +68 -0
  77. data/_sass/components/welcome-header.scss +188 -0
  78. data/_sass/components/widget-accordion.scss +293 -0
  79. data/_sass/components/widget-share-box.scss +57 -0
  80. data/_sass/components/widget-simple-text.scss +15 -0
  81. data/_sass/foundation/_global.scss +638 -0
  82. data/_sass/foundation/components/_accordion-menu.scss +32 -0
  83. data/_sass/foundation/components/_accordion.scss +129 -0
  84. data/_sass/foundation/components/_badge.scss +55 -0
  85. data/_sass/foundation/components/_breadcrumbs.scss +95 -0
  86. data/_sass/foundation/components/_button-group.scss +195 -0
  87. data/_sass/foundation/components/_button.scss +265 -0
  88. data/_sass/foundation/components/_callout.scss +105 -0
  89. data/_sass/foundation/components/_close-button.scss +61 -0
  90. data/_sass/foundation/components/_drilldown.scss +79 -0
  91. data/_sass/foundation/components/_dropdown-menu.scss +221 -0
  92. data/_sass/foundation/components/_dropdown.scss +65 -0
  93. data/_sass/foundation/components/_flex-video.scss +63 -0
  94. data/_sass/foundation/components/_flex.scss +28 -0
  95. data/_sass/foundation/components/_float.scss +27 -0
  96. data/_sass/foundation/components/_label.scss +55 -0
  97. data/_sass/foundation/components/_media-object.scss +115 -0
  98. data/_sass/foundation/components/_menu-icon.scss +9 -0
  99. data/_sass/foundation/components/_menu.scss +314 -0
  100. data/_sass/foundation/components/_off-canvas.scss +177 -0
  101. data/_sass/foundation/components/_orbit.scss +193 -0
  102. data/_sass/foundation/components/_pagination.scss +162 -0
  103. data/_sass/foundation/components/_progress-bar.scss +64 -0
  104. data/_sass/foundation/components/_reveal.scss +172 -0
  105. data/_sass/foundation/components/_slider.scss +133 -0
  106. data/_sass/foundation/components/_sticky.scss +38 -0
  107. data/_sass/foundation/components/_switch.scss +232 -0
  108. data/_sass/foundation/components/_table.scss +234 -0
  109. data/_sass/foundation/components/_tabs.scss +165 -0
  110. data/_sass/foundation/components/_thumbnail.scss +54 -0
  111. data/_sass/foundation/components/_title-bar.scss +89 -0
  112. data/_sass/foundation/components/_tooltip.scss +104 -0
  113. data/_sass/foundation/components/_top-bar.scss +168 -0
  114. data/_sass/foundation/components/_visibility.scss +132 -0
  115. data/_sass/foundation/forms/_checkbox.scss +40 -0
  116. data/_sass/foundation/forms/_error.scss +84 -0
  117. data/_sass/foundation/forms/_fieldset.scss +54 -0
  118. data/_sass/foundation/forms/_forms.scss +34 -0
  119. data/_sass/foundation/forms/_help-text.scss +30 -0
  120. data/_sass/foundation/forms/_input-group.scss +128 -0
  121. data/_sass/foundation/forms/_label.scss +48 -0
  122. data/_sass/foundation/forms/_meter.scss +109 -0
  123. data/_sass/foundation/forms/_progress.scss +85 -0
  124. data/_sass/foundation/forms/_range.scss +144 -0
  125. data/_sass/foundation/forms/_select.scss +67 -0
  126. data/_sass/foundation/forms/_text.scss +163 -0
  127. data/_sass/foundation/foundation.scss +102 -0
  128. data/_sass/foundation/grid/_classes.scss +151 -0
  129. data/_sass/foundation/grid/_column.scss +126 -0
  130. data/_sass/foundation/grid/_flex-grid.scss +274 -0
  131. data/_sass/foundation/grid/_grid.scss +60 -0
  132. data/_sass/foundation/grid/_gutter.scss +34 -0
  133. data/_sass/foundation/grid/_layout.scss +51 -0
  134. data/_sass/foundation/grid/_position.scss +73 -0
  135. data/_sass/foundation/grid/_row.scss +95 -0
  136. data/_sass/foundation/grid/_size.scss +24 -0
  137. data/_sass/foundation/settings/_settings.scss +567 -0
  138. data/_sass/foundation/typography/_alignment.scss +22 -0
  139. data/_sass/foundation/typography/_base.scss +443 -0
  140. data/_sass/foundation/typography/_helpers.scss +77 -0
  141. data/_sass/foundation/typography/_print.scss +77 -0
  142. data/_sass/foundation/typography/_typography.scss +28 -0
  143. data/_sass/foundation/util/_breakpoint.scss +275 -0
  144. data/_sass/foundation/util/_color.scss +60 -0
  145. data/_sass/foundation/util/_flex.scss +68 -0
  146. data/_sass/foundation/util/_mixins.scss +235 -0
  147. data/_sass/foundation/util/_selector.scss +40 -0
  148. data/_sass/foundation/util/_unit.scss +90 -0
  149. data/_sass/foundation/util/_util.scss +11 -0
  150. data/_sass/foundation/util/_value.scss +107 -0
  151. data/_sass/main.scss +40 -0
  152. data/_sass/minima.scss +51 -0
  153. data/_sass/minima/_base.scss +254 -0
  154. data/_sass/minima/_layout.scss +255 -0
  155. data/_sass/minima/_syntax-highlighting.scss +71 -0
  156. data/_sass/objects/media.scss +55 -0
  157. data/_sass/objects/section.scss +247 -0
  158. data/_sass/objects/space.scss +7 -0
  159. data/_sass/scroll-top.scss +31 -0
  160. data/_sass/utilities/utilities.scss +190 -0
  161. data/assets/css/main.scss +110 -0
  162. data/assets/favicon/apple-touch-icon-114x114.png +0 -0
  163. data/assets/favicon/apple-touch-icon-120x120.png +0 -0
  164. data/assets/favicon/apple-touch-icon-144x144.png +0 -0
  165. data/assets/favicon/apple-touch-icon-152x152.png +0 -0
  166. data/assets/favicon/apple-touch-icon-57x57.png +0 -0
  167. data/assets/favicon/apple-touch-icon-60x60.png +0 -0
  168. data/assets/favicon/apple-touch-icon-72x72.png +0 -0
  169. data/assets/favicon/apple-touch-icon-76x76.png +0 -0
  170. data/assets/favicon/favicon-128.png +0 -0
  171. data/assets/favicon/favicon-16x16.png +0 -0
  172. data/assets/favicon/favicon-196x196.png +0 -0
  173. data/assets/favicon/favicon-32x32.png +0 -0
  174. data/assets/favicon/favicon-96x96.png +0 -0
  175. data/assets/favicon/favicon.ico +0 -0
  176. data/assets/favicon/mstile-144x144.png +0 -0
  177. data/assets/favicon/mstile-150x150.png +0 -0
  178. data/assets/favicon/mstile-310x150.png +0 -0
  179. data/assets/favicon/mstile-310x310.png +0 -0
  180. data/assets/favicon/mstile-70x70.png +0 -0
  181. data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
  182. data/assets/fonts/bebasneue_regular-webfont.svg +3906 -0
  183. data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
  184. data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
  185. data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
  186. data/assets/icons/blog.png +0 -0
  187. data/assets/icons/compass.png +0 -0
  188. data/assets/icons/facebook.png +0 -0
  189. data/assets/icons/github.png +0 -0
  190. data/assets/icons/googleplus.png +0 -0
  191. data/assets/icons/instagram.png +0 -0
  192. data/assets/icons/linkedin.png +0 -0
  193. data/assets/icons/pinterest.png +0 -0
  194. data/assets/icons/piratewiki.png +0 -0
  195. data/assets/icons/redmine.png +0 -0
  196. data/assets/icons/twitter.png +0 -0
  197. data/assets/icons/vkontakte.png +0 -0
  198. data/assets/icons/youtube.png +0 -0
  199. data/assets/img/brand/logo-group.png +0 -0
  200. data/assets/img/brand/logo-group.svg +27 -0
  201. data/assets/img/brand/logo-round.png +0 -0
  202. data/assets/img/brand/logo-round.svg +104 -0
  203. data/assets/img/brand/logo.ai +5083 -16
  204. data/assets/img/brand/logo.pdf +1405 -4
  205. data/assets/img/brand/logo.png +0 -0
  206. data/assets/img/brand/logo.svg +10 -0
  207. data/assets/img/brand/logo_easy.png +0 -0
  208. data/assets/img/brand/logo_napis.ai +5003 -21
  209. data/assets/img/brand/logo_napis.pdf +1482 -3
  210. data/assets/img/brand/logo_napis.png +0 -0
  211. data/assets/img/brand/logo_napis.svg +48 -0
  212. data/assets/img/brand/logo_napis_male.png +0 -0
  213. data/assets/img/brand/logo_napis_white.ai +5106 -16
  214. data/assets/img/brand/logo_napis_white.pdf +1532 -2
  215. data/assets/img/brand/logo_napis_white.png +0 -0
  216. data/assets/img/brand/logo_napis_white.svg +51 -0
  217. data/assets/img/brand/logo_white.ai +5194 -23
  218. data/assets/img/brand/logo_white.pdf +1388 -4
  219. data/assets/img/brand/logo_white.png +0 -0
  220. data/assets/img/brand/logo_white.svg +14 -0
  221. data/assets/img/brand/logotyp_email.png +0 -0
  222. data/assets/img/brand/logow.svg +19 -0
  223. data/assets/img/header/background.jpg +0 -0
  224. data/assets/img/people/jakub-pirat.jpg +0 -0
  225. data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
  226. data/assets/img/tiles/lightGrey.png +0 -0
  227. data/assets/img/tiles/tableOfContent.png +0 -0
  228. data/assets/js/common-libs.min.js +1 -0
  229. data/assets/js/custom.min.js +1 -0
  230. data/assets/people/piratska-strana.png +0 -0
  231. data/assets/people/ppp.jpg +0 -0
  232. metadata +316 -0
@@ -0,0 +1,274 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group flex-grid
7
+ ////
8
+
9
+ /// Creates a container for a flex grid row.
10
+ ///
11
+ /// @param {Keyword|List} $behavior [null]
12
+ /// Modifications to the default grid styles. `nest` indicates the row will be placed inside another row. `collapse` indicates that the columns inside this row will not have padding. `nest collapse` combines both behaviors.
13
+ /// @param {Number} $width [$grid-row-width] - Maximum width of the row.
14
+ /// @param {Number} $columns [null] - Number of columns to use for this row. If set to `null` (the default), the global column count will be used.
15
+ /// @param {Boolean} $base [true] - Set to `false` to prevent basic styles from being output. Useful if you're calling this mixin on the same element twice, as it prevents duplicate CSS output.
16
+ /// @param {Number} $gutter [$grid-column-gutter] - Gutter to use when inverting margins, in case the row is nested.
17
+ @mixin flex-grid-row(
18
+ $behavior: null,
19
+ $width: $grid-row-width,
20
+ $columns: null,
21
+ $base: true,
22
+ $gutter: $grid-column-gutter
23
+ ) {
24
+ $margin: auto;
25
+
26
+ @if index($behavior, nest) != null {
27
+ @include grid-row-nest($gutter);
28
+
29
+ @if index($behavior, collapse) != null {
30
+ margin-left: 0;
31
+ margin-right: 0;
32
+ }
33
+ }
34
+ @else {
35
+ max-width: $width;
36
+ margin-left: auto;
37
+ margin-right: auto;
38
+ }
39
+
40
+ @if $base {
41
+ display: flex;
42
+ flex-flow: row wrap;
43
+ }
44
+
45
+ @if $columns != null {
46
+ @include grid-context($columns, $base) {
47
+ @content;
48
+ }
49
+ }
50
+ }
51
+
52
+ /// Calculates the `flex` property for a flex grid column. It accepts all of the same values as the basic `grid-column()` function, along with two extras:
53
+ /// - `null` (the default) will make the column expand to fill space.
54
+ /// - `shrink` will make the column contract, so it only takes up the horizontal space it needs.
55
+ ///
56
+ /// @param {Mixed} $columns [null] - Width of the column.
57
+ @function flex-grid-column($columns: null) {
58
+ // scss-lint:disable ZeroUnit
59
+ $flex: 1 1 0px;
60
+
61
+ @if $columns == shrink {
62
+ $flex: 0 0 auto;
63
+ }
64
+ @else if $columns != null {
65
+ $flex: 0 0 grid-column($columns);
66
+ }
67
+
68
+ @return $flex;
69
+ }
70
+
71
+ /// Creates a column for a flex grid. By default, the column will stretch to the full width of its container, but this can be overridden with sizing classes, or by using the `unstack` class on the parent flex row.
72
+ ///
73
+ /// @param {Mixed} $columns [null] - Width of the column. Refer to the `flex-grid-column()` function to see possible values.
74
+ /// @param {Number} $gutter [$grid-column-gutter] - Space between columns, added as a left and right padding.
75
+ @mixin flex-grid-column(
76
+ $columns: null,
77
+ $gutter: $grid-column-gutter
78
+ ) {
79
+ // Base properties
80
+ flex: flex-grid-column($columns);
81
+
82
+ // Gutters
83
+ @if type-of($gutter) == 'map' {
84
+ @each $breakpoint, $value in $gutter {
85
+ $padding: rem-calc($value) / 2;
86
+
87
+ @include breakpoint($breakpoint) {
88
+ padding-left: $padding;
89
+ padding-right: $padding;
90
+ }
91
+ }
92
+ }
93
+ @else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
94
+ $padding: rem-calc($gutter) / 2;
95
+ padding-left: $padding;
96
+ padding-right: $padding;
97
+ }
98
+
99
+ // fixes recent Chrome version not limiting child width
100
+ // https://stackoverflow.com/questions/34934586/white-space-nowrap-and-flexbox-did-not-work-in-chrome
101
+ @if $columns == null {
102
+ min-width: initial;
103
+ }
104
+ // max-width fixes IE 10/11 not respecting the flex-basis property
105
+ @if $columns != null and $columns != shrink {
106
+ max-width: grid-column($columns);
107
+ }
108
+ }
109
+
110
+ /// Creates a block grid for a flex grid row.
111
+ ///
112
+ /// @param {Number} $n - Number of columns to display on each row.
113
+ /// @param {String} $selector - Selector to use to target columns within the row.
114
+ @mixin flex-grid-layout(
115
+ $n,
116
+ $selector: '.column'
117
+ ) {
118
+ flex-wrap: wrap;
119
+
120
+ > #{$selector} {
121
+ $pct: percentage(1/$n);
122
+
123
+ flex: 0 0 $pct;
124
+ max-width: $pct;
125
+ }
126
+ }
127
+
128
+ /// Changes the source order of a flex grid column. Columns with lower numbers appear first in the layout.
129
+ /// @param {Number} $order [0] - Order number to apply.
130
+ @mixin flex-grid-order($order: 0) {
131
+ @warn 'This mixin is being replaced by flex-order(). flex-grid-order() will be removed in Foundation 6.3.';
132
+ @include flex-order($order);
133
+ }
134
+
135
+ /// Horizontally or vertically aligns the columns within a flex row. Apply this mixin to a flex row.
136
+ ///
137
+ /// @param {Keyword} $x [null] - Horizontal alignment to use. Can be `left`, `right`, `center`, `justify`, or `spaced`. Or, set it to `null` (the default) to not set horizontal alignment.
138
+ /// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
139
+ @mixin flex-grid-row-align($x: null, $y: null) {
140
+ @warn 'This mixin is being replaced by flex-align(). flex-grid-row-align() will be removed in Foundation 6.3.';
141
+ @include flex-align($x, $y);
142
+ }
143
+
144
+ /// Vertically align a single column within a flex row. Apply this mixin to a flex column.
145
+ ///
146
+ /// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
147
+ @mixin flex-grid-column-align($y: null) {
148
+ @warn 'This mixin is being replaced by flex-align-self(). flex-grid-column-align() will be removed in Foundation 6.3.';
149
+ @include flex-align-self($y);
150
+ }
151
+
152
+ @mixin foundation-flex-grid {
153
+ // Row
154
+ .row {
155
+ @include flex-grid-row;
156
+
157
+ // Nesting behavior
158
+ & & {
159
+ @include flex-grid-row(nest, $base: false);
160
+ }
161
+
162
+ // Expanded row
163
+ &.expanded {
164
+ max-width: none;
165
+ }
166
+
167
+ &.collapse {
168
+ > .column { @include grid-col-collapse; }
169
+ }
170
+ }
171
+
172
+ // Column
173
+ .column {
174
+ @include flex-grid-column;
175
+ }
176
+
177
+ // Column row
178
+ // The double .row class is needed to bump up the specificity
179
+ .column.row.row {
180
+ float: none;
181
+ display: block;
182
+
183
+ // To properly nest a column row, padding and margin is removed
184
+ .row & {
185
+ padding-left: 0;
186
+ padding-right: 0;
187
+ margin-left: 0;
188
+ margin-right: 0;
189
+ }
190
+ }
191
+
192
+ @include -zf-each-breakpoint {
193
+ @for $i from 1 through $grid-column-count {
194
+ // Sizing (percentage)
195
+ .#{$-zf-size}-#{$i} {
196
+ flex: flex-grid-column($i);
197
+ max-width: grid-column($i);
198
+ }
199
+
200
+ // Offsets
201
+ $o: $i - 1;
202
+
203
+ .#{$-zf-size}-offset-#{$o} {
204
+ @include grid-column-offset($o);
205
+ }
206
+ }
207
+
208
+ // Source ordering
209
+ @for $i from 1 through 6 {
210
+ .#{$-zf-size}-order-#{$i} {
211
+ @include flex-order($i);
212
+ }
213
+ }
214
+
215
+ // Block grid
216
+ @for $i from 1 through $block-grid-max {
217
+ .#{$-zf-size}-up-#{$i} {
218
+ @include flex-grid-layout($i);
219
+ }
220
+ }
221
+
222
+ @if $-zf-size != $-zf-zero-breakpoint {
223
+ // Sizing (expand)
224
+ @include breakpoint($-zf-size) {
225
+ .#{$-zf-size}-expand {
226
+ flex: flex-grid-column();
227
+ }
228
+ }
229
+
230
+ // Auto-stacking/unstacking
231
+ @at-root (without: media) {
232
+ .row.#{$-zf-size}-unstack {
233
+ > .column {
234
+ flex: flex-grid-column(100%);
235
+
236
+ @include breakpoint($-zf-size) {
237
+ flex: flex-grid-column();
238
+ }
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
+ // Responsive collapsing
245
+ .#{$-zf-size}-collapse {
246
+ > .column { @include grid-col-collapse; }
247
+ }
248
+
249
+ .#{$-zf-size}-uncollapse {
250
+ $gutter: -zf-get-bp-val($grid-column-gutter, $-zf-size);
251
+
252
+ > .column { @include grid-col-uncollapse($gutter); }
253
+ }
254
+ }
255
+
256
+ // Sizing (shrink)
257
+ .shrink {
258
+ flex: flex-grid-column(shrink);
259
+ max-width: 100%;
260
+ }
261
+
262
+ // Vertical alignment using align-items and align-self
263
+ // Remove these in 6.3
264
+ @each $vdir, $prop in $-zf-flex-align {
265
+ .column.align-#{$vdir} {
266
+ @include flex-align-self($vdir);
267
+ }
268
+ }
269
+
270
+ .columns {
271
+ // scss-lint:disable PlaceholderInExtend
272
+ @extend .column;
273
+ }
274
+ }
@@ -0,0 +1,60 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// The maximum width of a row.
10
+ /// @type Number
11
+ $grid-row-width: $global-width !default;
12
+
13
+ /// The default column count of a grid. Changing this value affects the logic of the grid mixins, and the number of CSS classes output.
14
+ /// @type Number
15
+ $grid-column-count: 12 !default;
16
+
17
+ /// The amount of space between columns at different screen sizes. To use just one size, set the variable to a number instead of a map.
18
+ /// @type Map | Length
19
+ /// @since 6.1.0
20
+ $grid-column-gutter: (
21
+ small: 20px,
22
+ medium: 30px,
23
+ ) !default;
24
+
25
+ /// If `true`, the last column in a row will align to the opposite edge of the row.
26
+ /// @type Boolean
27
+ $grid-column-align-edge: true !default;
28
+
29
+ /// The highest number of `.x-up` classes available when using the block grid CSS.
30
+ /// @type Number
31
+ $block-grid-max: 8 !default;
32
+
33
+ // Internal value to store the end column float direction
34
+ $-zf-end-float: if($grid-column-align-edge, $global-right, $global-left);
35
+
36
+ // The last piece to transition the responsive gutter feature
37
+ // Remove this in 6.3
38
+ $grid-column-responsive-gutter: null !default;
39
+ @if $grid-column-responsive-gutter {
40
+ // scss-lint:disable DebugStatement
41
+ @warn 'Rename $grid-column-responsive-gutter to $grid-column-gutter to remove this warning.';
42
+ $grid-column-gutter: $grid-column-responsive-gutter;
43
+ }
44
+
45
+ // If a single value is passed as a gutter, convert it to a map so the code knows what to do with it
46
+ @if type-of($grid-column-gutter) == 'number' {
47
+ $grid-column-gutter: (
48
+ small: $grid-column-gutter,
49
+ );
50
+ }
51
+
52
+ @import 'row';
53
+ @import 'column';
54
+ @import 'size';
55
+ @import 'position';
56
+ @import 'gutter';
57
+ @import 'classes';
58
+ @import 'layout';
59
+
60
+ @import 'flex-grid';
@@ -0,0 +1,34 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Collapse the gutters on a column by removing the padding. **Note:** only use this mixin within a breakpoint. To collapse a column's gutters on all screen sizes, use the `$gutter` parameter of the `grid-column()` mixin instead.
10
+ @mixin grid-column-collapse {
11
+ padding-left: 0;
12
+ padding-right: 0;
13
+ }
14
+
15
+ /// Un-collapse the gutters on a column by re-adding the padding.
16
+ ///
17
+ /// @param {Number} $gutter [$grid-column-gutter] - Spacing between columns.
18
+ @mixin grid-column-uncollapse($gutter: $grid-column-gutter) {
19
+ $gutter: rem-calc($gutter) / 2;
20
+ padding-left: $gutter;
21
+ padding-right: $gutter;
22
+ }
23
+
24
+ /// Shorthand for `grid-column-collapse()`.
25
+ /// @alias grid-column-collapse
26
+ @mixin grid-col-collapse {
27
+ @include grid-column-collapse;
28
+ }
29
+
30
+ /// Shorthand for `grid-column-uncollapse()`.
31
+ /// @alias grid-column-uncollapse
32
+ @mixin grid-col-uncollapse($gutter: $grid-column-gutter) {
33
+ @include grid-column-uncollapse($gutter);
34
+ }
@@ -0,0 +1,51 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Sizes child elements so that `$n` number of items appear on each row.
10
+ ///
11
+ /// @param {Number} $n - Number of elements to display per row.
12
+ /// @param {String} $selector ['.column'] - Selector(s) to use for child elements.
13
+ @mixin grid-layout(
14
+ $n,
15
+ $selector: '.column'
16
+ ) {
17
+ & > #{$selector} {
18
+ width: percentage(1/$n);
19
+ float: $global-left;
20
+
21
+ &:nth-of-type(1n) {
22
+ clear: none;
23
+ }
24
+
25
+ &:nth-of-type(#{$n}n+1) {
26
+ clear: both;
27
+ }
28
+
29
+ &:last-child {
30
+ float: left;
31
+ }
32
+ }
33
+ }
34
+
35
+ /// Adds extra CSS to block grid children so the last items in the row center automatically. Apply this to the columns, not the row.
36
+ ///
37
+ /// @param {Number} $n - Number of items that appear in each row.
38
+ @mixin grid-layout-center-last($n) {
39
+ @for $i from 1 to $n {
40
+ @if $i == 1 {
41
+ &:nth-child(#{$n}n+1):last-child {
42
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
43
+ }
44
+ }
45
+ @else {
46
+ &:nth-child(#{$n}n+1):nth-last-child(#{$i}) {
47
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,73 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Reposition a column.
10
+ ///
11
+ /// @param {Number|Keyword} $position - Direction and amount to move. The column will move equal to the width of the column count specified. A positive number will push the column to the right, while a negative number will pull it to the left. Set to center to center the column.
12
+ @mixin grid-column-position($position) {
13
+ @if type-of($position) == 'number' {
14
+ $offset: percentage($position / $grid-column-count);
15
+
16
+ position: relative;
17
+ #{$global-left}: $offset;
18
+ }
19
+ @else if $position == center {
20
+ float: none;
21
+ margin-left: auto;
22
+ margin-right: auto;
23
+ }
24
+ @else {
25
+ @warn 'Wrong syntax for grid-column-position(). Enter a positive or negative number, or center.';
26
+ }
27
+ }
28
+
29
+ /// Reset a position definition.
30
+ @mixin grid-column-unposition {
31
+ position: static;
32
+ margin-left: 0;
33
+ margin-right: 0;
34
+ float: left;
35
+ }
36
+
37
+ /// Offsets a column to the right by `$n` columns.
38
+ /// @param {Number|List} $n - Width to offset by. You can pass in any value accepted by the `grid-column()` mixin, such as `6`, `50%`, or `1 of 2`.
39
+ @mixin grid-column-offset($n) {
40
+ margin-#{$global-left}: grid-column($n);
41
+ }
42
+
43
+ /// Disable the default behavior of the last column in a row aligning to the opposite edge.
44
+ @mixin grid-column-end {
45
+ // This extra specificity is required for the property to be applied
46
+ &:last-child:last-child {
47
+ float: $global-left;
48
+ }
49
+ }
50
+
51
+ /// Shorthand for `grid-column-position()`.
52
+ /// @alias grid-column-position
53
+ @mixin grid-col-pos($position) {
54
+ @include grid-column-position($position);
55
+ }
56
+
57
+ /// Shorthand for `grid-column-unposition()`.
58
+ /// @alias grid-column-unposition
59
+ @mixin grid-col-unpos {
60
+ @include grid-column-unposition;
61
+ }
62
+
63
+ /// Shorthand for `grid-column-offset()`.
64
+ /// @alias grid-column-offset
65
+ @mixin grid-col-off($n) {
66
+ @include grid-column-offset($n);
67
+ }
68
+
69
+ /// Shorthand for `grid-column-end()`.
70
+ /// @alias grid-column-end
71
+ @mixin grid-col-end {
72
+ @include grid-column-end;
73
+ }