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,32 @@
1
+ ////
2
+ /// @group accordion-menu
3
+ ////
4
+
5
+ /// Sets if accordion menus have the default arrow styles.
6
+ /// @type Boolean
7
+ $accordionmenu-arrows: true !default;
8
+
9
+ /// Sets accordion menu arrow color if arrow is used.
10
+ /// @type Color
11
+ $accordionmenu-arrow-color: $primary-color !default;
12
+
13
+ @mixin foundation-accordion-menu {
14
+ @if $accordionmenu-arrows {
15
+ .is-accordion-submenu-parent > a {
16
+ position: relative;
17
+
18
+ &::after {
19
+ @include css-triangle(6px, $accordionmenu-arrow-color, down);
20
+ position: absolute;
21
+ top: 50%;
22
+ margin-top: -4px;
23
+ right: 1rem;
24
+ }
25
+ }
26
+
27
+ .is-accordion-submenu-parent[aria-expanded='true'] > a::after {
28
+ transform-origin: 50% 50%;
29
+ transform: scaleY(-1);
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,129 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group accordion
7
+ ////
8
+
9
+ /// Default background color of an accordion group.
10
+ /// @type Color
11
+ $accordion-background: $white !default;
12
+
13
+ /// If `true`, adds plus and minus icons to the side of each accordion title.
14
+ /// @type Boolean
15
+ $accordion-plusminus: true !default;
16
+
17
+ /// Default text color for items in a Menu.
18
+ /// @type Color
19
+ $accordion-item-color: foreground($accordion-background, $primary-color) !default;
20
+
21
+ /// Default background color on hover for items in a Menu.
22
+ /// @type Color
23
+ $accordion-item-background-hover: $light-gray !default;
24
+
25
+ /// Default padding of an accordion item.
26
+ /// @type Number | List
27
+ $accordion-item-padding: 1.25rem 1rem !default;
28
+
29
+ /// Default background color of tab content.
30
+ /// @type Color
31
+ $accordion-content-background: $white !default;
32
+
33
+ /// Default border color of tab content.
34
+ /// @type Color
35
+ $accordion-content-border: 1px solid $light-gray !default;
36
+
37
+ /// Default text color of tab content.
38
+ /// @type Color
39
+ $accordion-content-color: foreground($accordion-content-background, $body-font-color) !default;
40
+
41
+ /// Default padding for tab content.
42
+ /// @type Number | List
43
+ $accordion-content-padding: 1rem !default;
44
+
45
+ /// Adds styles for an accordion container. Apply this to the same element that gets `data-accordion`.
46
+ @mixin accordion-container {
47
+ list-style-type: none;
48
+ background: $accordion-background;
49
+ margin-#{$global-left}: 0;
50
+ }
51
+
52
+ /// Adds styles for the accordion item. Apply this to the list item within an accordion ul.
53
+ @mixin accordion-item {
54
+ &:first-child > :first-child {
55
+ border-radius: $global-radius $global-radius 0 0;
56
+ }
57
+
58
+ &:last-child > :last-child {
59
+ border-radius: 0 0 $global-radius $global-radius;
60
+ }
61
+ }
62
+
63
+ /// Adds styles for the title of an accordion item. Apply this to the link within an accordion item.
64
+ @mixin accordion-title {
65
+ display: block;
66
+ padding: $accordion-item-padding;
67
+ line-height: 1;
68
+ font-size: rem-calc(12);
69
+ color: $accordion-item-color;
70
+ position: relative;
71
+ border: $accordion-content-border;
72
+ border-bottom: 0;
73
+
74
+ :last-child:not(.is-active) > & {
75
+ border-radius: 0 0 $global-radius $global-radius;
76
+ border-bottom: $accordion-content-border;
77
+ }
78
+
79
+ &:hover,
80
+ &:focus {
81
+ background-color: $accordion-item-background-hover;
82
+ }
83
+
84
+ @if $accordion-plusminus {
85
+ &::before {
86
+ content: '+';
87
+ position: absolute;
88
+ #{$global-right}: 1rem;
89
+ top: 50%;
90
+ margin-top: -0.5rem;
91
+ }
92
+
93
+ .is-active > &::before {
94
+ content: '–';
95
+ }
96
+ }
97
+ }
98
+
99
+ /// Adds styles for accordion content. Apply this to the content pane below an accordion item's title.
100
+ @mixin accordion-content {
101
+ padding: $accordion-content-padding;
102
+ display: none;
103
+ border: $accordion-content-border;
104
+ border-bottom: 0;
105
+ background-color: $accordion-content-background;
106
+ color: $accordion-content-color;
107
+
108
+ :last-child > &:last-child {
109
+ border-bottom: $accordion-content-border;
110
+ }
111
+ }
112
+
113
+ @mixin foundation-accordion {
114
+ .accordion {
115
+ @include accordion-container;
116
+ }
117
+
118
+ .accordion-item {
119
+ @include accordion-item;
120
+ }
121
+
122
+ .accordion-title {
123
+ @include accordion-title;
124
+ }
125
+
126
+ .accordion-content {
127
+ @include accordion-content;
128
+ }
129
+ }
@@ -0,0 +1,55 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group badge
7
+ ////
8
+
9
+ /// Default background color for badges.
10
+ /// @type Color
11
+ $badge-background: $primary-color !default;
12
+
13
+ /// Default text color for badges.
14
+ /// @type Color
15
+ $badge-color: foreground($badge-background) !default;
16
+
17
+ /// Default padding inside badges.
18
+ /// @type Number
19
+ $badge-padding: 0.3em !default;
20
+
21
+ /// Minimum width of a badge.
22
+ /// @type Number
23
+ $badge-minwidth: 2.1em !default;
24
+
25
+ /// Default font size for badges.
26
+ /// @type Number
27
+ $badge-font-size: 0.6rem !default;
28
+
29
+ /// Generates the base styles for a badge.
30
+ @mixin badge {
31
+ display: inline-block;
32
+ padding: $badge-padding;
33
+ min-width: $badge-minwidth;
34
+ font-size: $badge-font-size;
35
+ text-align: center;
36
+ border-radius: 50%;
37
+ }
38
+
39
+ @mixin foundation-badge {
40
+ .badge {
41
+ @include badge;
42
+
43
+ background: $badge-background;
44
+ color: $badge-color;
45
+
46
+ @each $name, $color in $foundation-palette {
47
+ @if $name != primary {
48
+ &.#{$name} {
49
+ background: $color;
50
+ color: foreground($color);
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,95 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group breadcrumbs
7
+ ////
8
+
9
+ /// Margin around a breadcrumbs container.
10
+ /// @type Number
11
+ $breadcrumbs-margin: 0 0 $global-margin 0 !default;
12
+
13
+ /// Font size of breadcrumb links.
14
+ /// @type Number
15
+ $breadcrumbs-item-font-size: rem-calc(11) !default;
16
+
17
+ /// Color of breadcrumb links.
18
+ /// @type Color
19
+ $breadcrumbs-item-color: $primary-color !default;
20
+
21
+ /// Color of the active breadcrumb link.
22
+ /// @type Color
23
+ $breadcrumbs-item-color-current: $black !default;
24
+
25
+ /// Opacity of disabled breadcrumb links.
26
+ /// @type Number
27
+ $breadcrumbs-item-color-disabled: $medium-gray !default;
28
+
29
+ /// Margin between breadcrumb items.
30
+ /// @type Number
31
+ $breadcrumbs-item-margin: 0.75rem !default;
32
+
33
+ /// If `true`, makes breadcrumb links uppercase.
34
+ /// @type Boolean
35
+ $breadcrumbs-item-uppercase: true !default;
36
+
37
+ /// If `true`, adds a slash between breadcrumb links.
38
+ /// @type Boolean
39
+ $breadcrumbs-item-slash: true !default;
40
+
41
+ /// Adds styles for a breadcrumbs container, along with the styles for the `<li>` and `<a>` elements inside of it.
42
+ @mixin breadcrumbs-container {
43
+ @include clearfix;
44
+ list-style: none;
45
+ margin: $breadcrumbs-margin;
46
+
47
+ // Item wrapper
48
+ li {
49
+ float: #{$global-left};
50
+ color: $breadcrumbs-item-color-current;
51
+ font-size: $breadcrumbs-item-font-size;
52
+ cursor: default;
53
+
54
+ @if $breadcrumbs-item-uppercase {
55
+ text-transform: uppercase;
56
+ }
57
+
58
+ @if $breadcrumbs-item-slash {
59
+ // Need to escape the backslash
60
+ $slash: if($global-text-direction == 'ltr', '/', '\\');
61
+
62
+ &:not(:last-child)::after {
63
+ color: $medium-gray;
64
+ content: $slash;
65
+ margin: 0 $breadcrumbs-item-margin;
66
+ position: relative;
67
+ top: 1px;
68
+ opacity: 1;
69
+ }
70
+ }
71
+ @else {
72
+ margin-#{$global-right}: $breadcrumbs-item-margin;
73
+ }
74
+ }
75
+
76
+ // Page links
77
+ a {
78
+ color: $breadcrumbs-item-color;
79
+
80
+ &:hover {
81
+ text-decoration: underline;
82
+ }
83
+ }
84
+ }
85
+
86
+ @mixin foundation-breadcrumbs {
87
+ .breadcrumbs {
88
+ @include breadcrumbs-container;
89
+
90
+ .disabled {
91
+ color: $breadcrumbs-item-color-disabled;
92
+ cursor: not-allowed;
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,195 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group button-group
7
+ ////
8
+
9
+ /// Margin for button groups.
10
+ /// @type Number
11
+ $buttongroup-margin: 1rem !default;
12
+
13
+ /// Margin between buttons in a button group.
14
+ /// @type Border
15
+ $buttongroup-spacing: 1px !default;
16
+
17
+ /// Selector for the buttons inside a button group.
18
+ /// @type String
19
+ $buttongroup-child-selector: '.button' !default;
20
+
21
+ /// Maximum number of buttons that can be in an even-width button group.
22
+ /// @type Number
23
+ $buttongroup-expand-max: 6 !default;
24
+
25
+ /// Add styles for a button group container.
26
+ /// @param {String} $child-selector [$buttongroup-child-selector] - Selector for the buttons inside a button group.
27
+ @mixin button-group(
28
+ $child-selector: $buttongroup-child-selector
29
+ ) {
30
+ @include clearfix;
31
+ margin-bottom: $buttongroup-margin;
32
+
33
+ @if $global-flexbox {
34
+ display: flex;
35
+ flex-wrap: nowrap;
36
+ align-items: stretch;
37
+ }
38
+ @else {
39
+ font-size: 0;
40
+ }
41
+
42
+ #{$child-selector} {
43
+ margin: 0;
44
+ margin-#{$global-right}: $buttongroup-spacing;
45
+ margin-bottom: $buttongroup-spacing;
46
+ font-size: map-get($button-sizes, default);
47
+
48
+ @if $global-flexbox {
49
+ flex: 0 0 auto;
50
+ }
51
+
52
+ &:last-child {
53
+ margin-#{$global-right}: 0;
54
+ }
55
+ }
56
+ }
57
+
58
+ /// Creates a full-width button group, making each button equal width.
59
+ /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside a button group.
60
+ @mixin button-group-expand(
61
+ $selector: $buttongroup-child-selector,
62
+ $count: null
63
+ ) {
64
+ @if not $global-flexbox {
65
+ margin-#{$global-right}: -$buttongroup-spacing;
66
+
67
+ &::before,
68
+ &::after {
69
+ display: none;
70
+ }
71
+ }
72
+
73
+ // scss-lint:disable ZeroUnit
74
+ #{$selector} {
75
+ @if $global-flexbox {
76
+ flex: 1 1 0px;
77
+ }
78
+ @else {
79
+ @for $i from 2 through $buttongroup-expand-max {
80
+ &:first-child:nth-last-child(#{$i}) {
81
+ &, &:first-child:nth-last-child(#{$i}) ~ #{$selector} {
82
+ display: inline-block;
83
+ width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing});
84
+ margin-#{$global-right}: $buttongroup-spacing;
85
+
86
+ &:last-child {
87
+ margin-#{$global-right}: $buttongroup-spacing * -$buttongroup-expand-max;
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ /// Stacks the buttons in a button group.
97
+ /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside the button group.
98
+ @mixin button-group-stack(
99
+ $selector: $buttongroup-child-selector
100
+ ) {
101
+ @if $global-flexbox {
102
+ flex-wrap: wrap;
103
+ }
104
+
105
+ #{$selector} {
106
+ @if $global-flexbox {
107
+ flex: 0 0 100%;
108
+ }
109
+ @else {
110
+ width: 100%;
111
+ }
112
+
113
+ &:last-child {
114
+ margin-bottom: 0;
115
+ }
116
+ }
117
+ }
118
+
119
+ /// Un-stacks the buttons in a button group.
120
+ /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside the button group.
121
+ @mixin button-group-unstack(
122
+ $selector: $buttongroup-child-selector
123
+ ) {
124
+ // scss-lint:disable ZeroUnit
125
+ #{$selector} {
126
+ @if $global-flexbox {
127
+ flex: 1 1 0px;
128
+ }
129
+ @else {
130
+ width: auto;
131
+ }
132
+ margin-bottom: 0;
133
+ }
134
+ }
135
+
136
+ @mixin foundation-button-group {
137
+ .button-group {
138
+ @include button-group;
139
+
140
+ // Sizes
141
+ @each $size, $value in map-remove($button-sizes, default) {
142
+ &.#{$size} #{$buttongroup-child-selector} {
143
+ font-size: $value;
144
+ }
145
+ }
146
+
147
+ // Even-width Group
148
+ &.expanded { @include button-group-expand; }
149
+
150
+ // Colors
151
+ @each $name, $color in $foundation-palette {
152
+ @if $button-fill != hollow {
153
+ &.#{$name} #{$buttongroup-child-selector} {
154
+ @include button-style($color, auto, auto);
155
+ }
156
+ }
157
+ @else {
158
+ &.#{$name} #{$buttongroup-child-selector} {
159
+ @include button-hollow;
160
+ @include button-hollow-style($color);
161
+ }
162
+ }
163
+ }
164
+
165
+ &.stacked,
166
+ &.stacked-for-small,
167
+ &.stacked-for-medium {
168
+ @include button-group-stack;
169
+ }
170
+
171
+ &.stacked-for-small {
172
+ @include breakpoint(medium) {
173
+ @include button-group-unstack;
174
+ }
175
+ }
176
+
177
+ &.stacked-for-medium {
178
+ @include breakpoint(large) {
179
+ @include button-group-unstack;
180
+ }
181
+ }
182
+
183
+ // scss-lint:disable MergeableSelector
184
+ &.stacked-for-small.expanded {
185
+ @include breakpoint(small only) {
186
+ display: block;
187
+
188
+ #{$buttongroup-child-selector} {
189
+ display: block;
190
+ margin-#{$global-right}: 0;
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }