jekyll-theme-pirati 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,133 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ // [TODO] Check how plugin confirms disabled or vertical status
6
+ // [TODO] Check if transition: all; is necessary
7
+
8
+ ////
9
+ /// @group slider
10
+ ////
11
+
12
+ /// Default slider width of a vertical slider. (Doesn't apply to the native slider.)
13
+ /// @type Number
14
+ $slider-width-vertical: 0.5rem !default;
15
+
16
+ /// Transition properties to apply to the slider handle and fill. (Doesn't apply to the native slider.)
17
+ /// @type Transition
18
+ $slider-transition: all 0.2s ease-in-out !default;
19
+
20
+ /// Adds the general styles for sliders.
21
+ @mixin slider-container {
22
+ position: relative;
23
+ height: $slider-height;
24
+ margin-top: 1.25rem;
25
+ margin-bottom: 2.25rem;
26
+ background-color: $slider-background;
27
+ cursor: pointer;
28
+ user-select: none;
29
+ touch-action: none;
30
+ }
31
+
32
+ /// Adds the general styles for active fill for sliders.
33
+ @mixin slider-fill {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ display: inline-block;
38
+ max-width: 100%;
39
+ height: $slider-height;
40
+ background-color: $slider-fill-background;
41
+ transition: $slider-transition;
42
+
43
+ &.is-dragging {
44
+ transition: all 0s linear;
45
+ }
46
+ }
47
+
48
+ /// Adds the general styles for the slider handles.
49
+ @mixin slider-handle {
50
+ @include disable-mouse-outline;
51
+ @include vertical-center;
52
+ position: absolute;
53
+ left: 0;
54
+ z-index: 1;
55
+ display: inline-block;
56
+ width: $slider-handle-width;
57
+ height: $slider-handle-height;
58
+ background-color: $slider-handle-background;
59
+ transition: $slider-transition;
60
+ touch-action: manipulation;
61
+ border-radius: $slider-radius;
62
+
63
+ &:hover {
64
+ background-color: scale-color($slider-handle-background, $lightness: -15%);
65
+ }
66
+
67
+ &.is-dragging {
68
+ transition: all 0s linear;
69
+ }
70
+ }
71
+
72
+ @mixin slider-disabled {
73
+ opacity: $slider-opacity-disabled;
74
+ cursor: not-allowed;
75
+ }
76
+
77
+ @mixin slider-vertical {
78
+ display: inline-block;
79
+ width: $slider-width-vertical;
80
+ height: 12.5rem;
81
+ margin: 0 1.25rem;
82
+ transform: scale(1, -1);
83
+
84
+ .slider-fill {
85
+ top: 0;
86
+ width: $slider-width-vertical;
87
+ max-height: 100%;
88
+ }
89
+
90
+ .slider-handle {
91
+ position: absolute;
92
+ top: 0;
93
+ left: 50%;
94
+ width: $slider-handle-height;
95
+ height: $slider-handle-width;
96
+ transform: translateX(-50%);
97
+ }
98
+ }
99
+
100
+ @mixin foundation-slider {
101
+ // Container
102
+ .slider {
103
+ @include slider-container;
104
+ }
105
+
106
+ // Fill area
107
+ .slider-fill {
108
+ @include slider-fill;
109
+ }
110
+
111
+ // Draggable handle
112
+ .slider-handle {
113
+ @include slider-handle;
114
+ }
115
+
116
+ // Disabled state
117
+ .slider.disabled,
118
+ .slider[disabled] {
119
+ @include slider-disabled;
120
+ }
121
+
122
+ // Vertical slider
123
+ .slider.vertical {
124
+ @include slider-vertical;
125
+ }
126
+
127
+ // RTL support
128
+ @if $global-text-direction == rtl {
129
+ .slider:not(.vertical) {
130
+ transform: scale(-1, 1);
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,38 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @mixin foundation-sticky {
6
+ .sticky-container {
7
+ position: relative;
8
+ }
9
+
10
+ .sticky {
11
+ position: absolute;
12
+ z-index: 0;
13
+ transform: translate3d(0, 0, 0);
14
+ }
15
+
16
+ .sticky.is-stuck {
17
+ position: fixed;
18
+ z-index: 5;
19
+
20
+ &.is-at-top {
21
+ top: 0;
22
+ }
23
+
24
+ &.is-at-bottom {
25
+ bottom: 0;
26
+ }
27
+ }
28
+
29
+ .sticky.is-anchored {
30
+ position: absolute;
31
+ left: auto;
32
+ right: auto;
33
+
34
+ &.is-at-bottom {
35
+ bottom: 0;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,232 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group switch
7
+ ////
8
+
9
+ /// Background color of a switch.
10
+ /// @type Color
11
+ $switch-background: $medium-gray !default;
12
+
13
+ /// Background active color of a switch.
14
+ /// @type Color
15
+ $switch-background-active: $primary-color !default;
16
+
17
+ /// Height of a switch, with no class applied.
18
+ /// @type Number
19
+ $switch-height: 2rem !default;
20
+
21
+ /// Height of a switch with .tiny class.
22
+ /// @type Number
23
+ $switch-height-tiny: 1.5rem !default;
24
+
25
+ /// Height of a switch with .small class.
26
+ /// @type Number
27
+ $switch-height-small: 1.75rem !default;
28
+
29
+ /// Height of a switch with .large class.
30
+ /// @type Number
31
+ $switch-height-large: 2.5rem !default;
32
+
33
+ /// Border radius of the switch
34
+ /// @type Number
35
+ $switch-radius: $global-radius !default;
36
+
37
+ /// border around a modal.
38
+ /// @type Number
39
+ $switch-margin: $global-margin !default;
40
+
41
+ /// Background color for the switch container and paddle.
42
+ /// @type Color
43
+ $switch-paddle-background: $white !default;
44
+
45
+ /// Spacing between a switch paddle and the edge of the body.
46
+ /// @type Number
47
+ $switch-paddle-offset: 0.25rem !default;
48
+
49
+ /// border radius of the switch paddle
50
+ /// @type Number
51
+ $switch-paddle-radius: $global-radius !default;
52
+
53
+ /// switch transition.
54
+ /// @type Number
55
+ $switch-paddle-transition: all 0.25s ease-out !default;
56
+
57
+ // make them variables
58
+ // ask about accessibility on label
59
+ // change class name for text
60
+
61
+ /// Adds styles for a switch container. Apply this to a container class.
62
+ @mixin switch-container {
63
+ margin-bottom: $switch-margin;
64
+ outline: 0;
65
+ position: relative;
66
+ user-select: none;
67
+
68
+ // These properties cascade down to the switch text
69
+ color: $white;
70
+ font-weight: bold;
71
+ font-size: rem-calc(14);
72
+ }
73
+
74
+ /// Adds styles for a switch input. Apply this to an `<input>` within a switch.
75
+ @mixin switch-input {
76
+ opacity: 0;
77
+ position: absolute;
78
+ }
79
+
80
+ /// Adds styles for the background and paddle of a switch. Apply this to a `<label>` within a switch.
81
+ @mixin switch-paddle {
82
+ background: $switch-background;
83
+ cursor: pointer;
84
+ display: block;
85
+ position: relative;
86
+ width: 4rem;
87
+ height: $switch-height;
88
+ transition: $switch-paddle-transition;
89
+ border-radius: $switch-radius;
90
+
91
+ // Resetting these <label> presets so type styles cascade down
92
+ color: inherit;
93
+ font-weight: inherit;
94
+
95
+ // Needed to override specificity
96
+ input + & {
97
+ margin: 0;
98
+ }
99
+
100
+ // The paddle itself
101
+ &::after {
102
+ background: $switch-paddle-background;
103
+ content: '';
104
+ display: block;
105
+ position: absolute;
106
+ height: 1.5rem;
107
+ #{$global-left}: 0.25rem;
108
+ top: 0.25rem;
109
+ width: 1.5rem;
110
+ transition: $switch-paddle-transition;
111
+ transform: translate3d(0, 0, 0);
112
+ border-radius: $switch-paddle-radius;
113
+ }
114
+
115
+ // Change the visual style when the switch is active
116
+ input:checked ~ & {
117
+ background: $switch-background-active;
118
+
119
+ &::after {
120
+ #{$global-left}: 2.25rem;
121
+ }
122
+ }
123
+
124
+ input:focus ~ & {
125
+ @include disable-mouse-outline;
126
+ }
127
+ }
128
+
129
+ /// Adds base styles for active/inactive text inside a switch. Apply this to text elements inside the switch `<label>`.
130
+ @mixin switch-text {
131
+ position: absolute;
132
+ top: 50%;
133
+ transform: translateY(-50%);
134
+ }
135
+
136
+ /// Adds styles for the active state text within a switch.
137
+ @mixin switch-text-active {
138
+ #{$global-left}: 8%;
139
+ display: none;
140
+
141
+ input:checked + label > & {
142
+ display: block;
143
+ }
144
+ }
145
+
146
+ /// Adds styles for the inactive state text within a switch.
147
+ @mixin switch-text-inactive {
148
+ #{$global-right}: 15%;
149
+
150
+ input:checked + label > & {
151
+ display: none;
152
+ }
153
+ }
154
+
155
+ /// Changes the size of a switch by modifying the size of the body and paddle. Apply this to a switch container.
156
+ /// @param {Number} $font-size [1rem] - Font size of label text within the switch.
157
+ /// @param {Number} $width [4rem] - Width of the switch body.
158
+ /// @param {Number} $height [2rem] - Height of the switch body.
159
+ /// @param {Number} $paddle-width [1.5rem] - Width of the switch paddle.
160
+ /// @param {Number} $paddle-offset [0.25rem] - Spacing between the switch paddle and the edge of the switch body.
161
+ @mixin switch-size(
162
+ $font-size: 1rem,
163
+ $width: 4rem,
164
+ $height: 2rem,
165
+ $paddle-width: 1.5rem,
166
+ $paddle-offset: 0.25rem
167
+ ) {
168
+ $paddle-height: $height - ($paddle-offset * 2);
169
+ $paddle-left-active: $width - $paddle-width - $paddle-offset;
170
+
171
+ .switch-paddle {
172
+ width: $width;
173
+ height: $height;
174
+ font-size: $font-size;
175
+ }
176
+
177
+ .switch-paddle::after {
178
+ width: $paddle-width;
179
+ height: $paddle-height;
180
+ }
181
+
182
+ input:checked ~ .switch-paddle::after {
183
+ #{$global-left}: $paddle-left-active;
184
+ }
185
+ }
186
+
187
+ @mixin foundation-switch {
188
+ // Container class
189
+ .switch {
190
+ @include switch-container;
191
+ }
192
+
193
+ // <input> element
194
+ .switch-input {
195
+ @include switch-input;
196
+ }
197
+
198
+ // <label> element
199
+ .switch-paddle {
200
+ @include switch-paddle;
201
+ }
202
+
203
+ // Base label text styles
204
+ %switch-text {
205
+ @include switch-text;
206
+ }
207
+
208
+ // Active label text styles
209
+ .switch-active {
210
+ @extend %switch-text;
211
+ @include switch-text-active;
212
+ }
213
+
214
+ // Inactive label text styles
215
+ .switch-inactive {
216
+ @extend %switch-text;
217
+ @include switch-text-inactive;
218
+ }
219
+
220
+ // Switch sizes
221
+ .switch.tiny {
222
+ @include switch-size(rem-calc(10), 3rem, $switch-height-tiny, 1rem, $switch-paddle-offset);
223
+ }
224
+
225
+ .switch.small {
226
+ @include switch-size(rem-calc(12), 3.5rem, $switch-height-small, 1.25rem, $switch-paddle-offset);
227
+ }
228
+
229
+ .switch.large {
230
+ @include switch-size(rem-calc(16), 5rem, $switch-height-large, 2rem, $switch-paddle-offset);
231
+ }
232
+ }
@@ -0,0 +1,234 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ // scss-lint:disable MergeableSelector, QualifyingElement
6
+
7
+ ////
8
+ /// @group table
9
+ ////
10
+
11
+ /// Default color for table background.
12
+ /// @type Color
13
+ $table-background: $white !default;
14
+
15
+ /// Default scale for darkening the striped table rows and the table border.
16
+ /// @type Number
17
+ $table-color-scale: 5% !default;
18
+
19
+ /// Default style for table border.
20
+ /// @type List
21
+ $table-border: 1px solid smart-scale($table-background, $table-color-scale) !default;
22
+
23
+ /// Default padding for table.
24
+ /// @type Number
25
+ $table-padding: rem-calc(8 10 10) !default;
26
+
27
+ /// Default scale for darkening the table rows on hover.
28
+ /// @type Number
29
+ $table-hover-scale: 2% !default;
30
+
31
+ /// Default color of standard rows on hover.
32
+ /// @type List
33
+ $table-row-hover: darken($table-background, $table-hover-scale) !default;
34
+
35
+ /// Default color of striped rows on hover.
36
+ /// @type List
37
+ $table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale) !default;
38
+
39
+ /// Default background color for striped rows.
40
+ /// @type Color
41
+ $table-striped-background: smart-scale($table-background, $table-color-scale) !default;
42
+
43
+ /// Default value for showing the stripe on rows of the tables, excluding the header and footer. If even, the even rows will have a background color. If odd, the odd rows will have a background color. If empty, or any other value, the table rows will have no striping.
44
+ /// @type Keyword
45
+ $table-stripe: even !default;
46
+
47
+ /// Default color for header background.
48
+ /// @type Color
49
+ $table-head-background: smart-scale($table-background, $table-color-scale / 2) !default;
50
+
51
+ /// Default color for footer background.
52
+ /// @type Color
53
+ $table-foot-background: smart-scale($table-background, $table-color-scale) !default;
54
+
55
+ /// Default font color for header.
56
+ /// @type Color
57
+ $table-head-font-color: $body-font-color !default;
58
+
59
+ /// Default value for showing the header when using stacked tables.
60
+ /// @type Boolean
61
+ $show-header-for-stacked: false !default;
62
+
63
+ @mixin -zf-table-children-styles($stripe: $table-stripe) {
64
+ thead,
65
+ tbody,
66
+ tfoot {
67
+ border: $table-border;
68
+ background-color: $table-background;
69
+ }
70
+
71
+ // Caption
72
+ caption {
73
+ font-weight: $global-weight-bold;
74
+ padding: $table-padding;
75
+ }
76
+
77
+ // Table head and foot
78
+ thead,
79
+ tfoot {
80
+ background: $table-head-background;
81
+ color: $table-head-font-color;
82
+
83
+ // Rows within head and foot
84
+ tr {
85
+ background: transparent;
86
+ }
87
+
88
+ // Cells within head and foot
89
+ th,
90
+ td {
91
+ padding: $table-padding;
92
+ font-weight: $global-weight-bold;
93
+ text-align: #{$global-left};
94
+ }
95
+ }
96
+
97
+ // Table rows
98
+ tbody {
99
+ tr {
100
+ // If stripe is set to even, darken the even rows.
101
+ @if $stripe == even {
102
+ &:nth-child(even) {
103
+ background-color: $table-striped-background;
104
+ }
105
+ }
106
+
107
+ // If stripe is set to odd, darken the odd rows.
108
+ @else if $stripe == odd {
109
+ &:nth-child(odd) {
110
+ background-color: $table-striped-background;
111
+ }
112
+ }
113
+ }
114
+
115
+ th,
116
+ td {
117
+ padding: $table-padding;
118
+ }
119
+ }
120
+ }
121
+
122
+ /// Adds the general styles for tables.
123
+ /// @param {Keyword} $stripe [$table-stripe] - Uses keywords even, odd, or none to darken rows of the table. The default value is even.
124
+ @mixin table(
125
+ $stripe: $table-stripe,
126
+ $nest: false
127
+ ) {
128
+ width: 100%;
129
+ margin-bottom: $global-margin;
130
+ border-radius: $global-radius;
131
+
132
+ @if $nest {
133
+ @include -zf-table-children-styles($stripe);
134
+ }
135
+ @else {
136
+ @at-root {
137
+ @include -zf-table-children-styles($stripe);
138
+ }
139
+ }
140
+ }
141
+
142
+ /// Adds the ability to horizontally scroll the table when the content overflows horizontally.
143
+ @mixin table-scroll {
144
+ display: block;
145
+ width: 100%;
146
+ overflow-x: auto;
147
+ }
148
+
149
+ /// Slightly darkens the table rows on hover.
150
+ @mixin table-hover {
151
+ tr {
152
+ //Darkens the non-striped table rows on hover.
153
+ &:hover {
154
+ background-color: $table-row-hover;
155
+ }
156
+
157
+ //Darkens the even striped table rows.
158
+ @if($table-stripe == even) {
159
+ &:nth-of-type(even):hover {
160
+ background-color: $table-row-stripe-hover;
161
+ }
162
+ }
163
+
164
+ //Darkens the odd striped table rows.
165
+ @elseif($table-stripe == odd) {
166
+ &:nth-of-type(odd):hover {
167
+ background-color: $table-row-stripe-hover;
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ /// Adds styles for a stacked table. Useful for small-screen layouts.
174
+ /// @param {Boolean} $header [$show-header-for-stacked] - Show the first th of header when stacked.
175
+ @mixin table-stack($header: $show-header-for-stacked) {
176
+ @if $header {
177
+ thead {
178
+ th:first-child {
179
+ display: block;
180
+ }
181
+
182
+ th {
183
+ display: none;
184
+ }
185
+ }
186
+ }
187
+ @else {
188
+ thead {
189
+ display: none;
190
+ }
191
+ }
192
+
193
+ tfoot {
194
+ display: none;
195
+ }
196
+
197
+ tr,
198
+ th,
199
+ td {
200
+ display: block;
201
+ }
202
+
203
+ td {
204
+ border-top: 0;
205
+ }
206
+ }
207
+
208
+ @mixin foundation-table($nest: false) {
209
+ table {
210
+ @include table($nest: $nest);
211
+ }
212
+
213
+ table.stack {
214
+ @include breakpoint(medium down) {
215
+ @include table-stack;
216
+ }
217
+ }
218
+
219
+ table.scroll {
220
+ @include table-scroll;
221
+ }
222
+
223
+ table.hover {
224
+ @include table-hover;
225
+ }
226
+
227
+ .table-scroll {
228
+ overflow-x: auto;
229
+
230
+ table {
231
+ width: auto;
232
+ }
233
+ }
234
+ }