kickstart_rails 3.0.36 → 3.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kickstart_rails/version.rb +1 -1
  3. metadata +2 -154
  4. data/app/assets/javascripts/kickstart_rails/docs.js +0 -166
  5. data/app/assets/javascripts/kickstart_rails/docs/throttler_edge.js +0 -2
  6. data/app/assets/javascripts/kickstart_rails/docs/throttler_edgeActions.js +0 -8
  7. data/app/assets/javascripts/kickstart_rails/docs/throttler_edgePreload.js +0 -18
  8. data/app/assets/javascripts/kickstart_rails/kickstart.js +0 -450
  9. data/app/assets/javascripts/kickstart_rails/kickstart.min.js +0 -1
  10. data/app/assets/javascripts/kickstart_rails/navbar-fixer.js +0 -19
  11. data/app/assets/javascripts/kickstart_rails/test.js +0 -6705
  12. data/app/assets/javascripts/kickstart_rails/throttler_edge.js +0 -2
  13. data/app/assets/javascripts/kickstart_rails/throttler_edgeActions.js +0 -8
  14. data/app/assets/javascripts/kickstart_rails/throttler_edgePreload.js +0 -18
  15. data/app/assets/stylesheets/components/_alerts.sass +0 -23
  16. data/app/assets/stylesheets/components/_buttons.sass +0 -159
  17. data/app/assets/stylesheets/components/_dropdown_menu.sass +0 -69
  18. data/app/assets/stylesheets/components/_forms.sass +0 -106
  19. data/app/assets/stylesheets/components/_growls.sass +0 -2
  20. data/app/assets/stylesheets/components/_hr.sass +0 -5
  21. data/app/assets/stylesheets/components/_images.sass +0 -40
  22. data/app/assets/stylesheets/components/_labels.sass +0 -15
  23. data/app/assets/stylesheets/components/_modals.sass +0 -73
  24. data/app/assets/stylesheets/components/_nav.sass +0 -219
  25. data/app/assets/stylesheets/components/_navbar.sass +0 -270
  26. data/app/assets/stylesheets/components/_notifications.sass +0 -20
  27. data/app/assets/stylesheets/components/_pagination.sass +0 -11
  28. data/app/assets/stylesheets/components/_progress.sass +0 -12
  29. data/app/assets/stylesheets/components/_root-element.sass +0 -12
  30. data/app/assets/stylesheets/components/_status.sass +0 -12
  31. data/app/assets/stylesheets/components/_tables.sass +0 -70
  32. data/app/assets/stylesheets/components/_tabs.sass +0 -37
  33. data/app/assets/stylesheets/components/_tiles.sass +0 -42
  34. data/app/assets/stylesheets/components/_tooltips.sass +0 -26
  35. data/app/assets/stylesheets/components/_typography.sass +0 -141
  36. data/app/assets/stylesheets/core/_animations.sass +0 -8
  37. data/app/assets/stylesheets/core/_base.sass +0 -16
  38. data/app/assets/stylesheets/core/_base_components.sass +0 -15
  39. data/app/assets/stylesheets/core/_components.sass +0 -20
  40. data/app/assets/stylesheets/core/_dependent_components.sass +0 -12
  41. data/app/assets/stylesheets/core/_direct-apply.sass +0 -337
  42. data/app/assets/stylesheets/core/_grid.sass +0 -142
  43. data/app/assets/stylesheets/core/_icons.sass +0 -3
  44. data/app/assets/stylesheets/core/_index.sass +0 -7
  45. data/app/assets/stylesheets/core/_mixins.sass +0 -22
  46. data/app/assets/stylesheets/core/_normalize.sass +0 -339
  47. data/app/assets/stylesheets/core/_root-element.sass +0 -17
  48. data/app/assets/stylesheets/core/_typography.sass +0 -180
  49. data/app/assets/stylesheets/core/components/_alerts.sass +0 -23
  50. data/app/assets/stylesheets/core/components/_buttons.sass +0 -159
  51. data/app/assets/stylesheets/core/components/_dropdown_menu.sass +0 -69
  52. data/app/assets/stylesheets/core/components/_forms.sass +0 -106
  53. data/app/assets/stylesheets/core/components/_growls.sass +0 -2
  54. data/app/assets/stylesheets/core/components/_hr.sass +0 -5
  55. data/app/assets/stylesheets/core/components/_images.sass +0 -40
  56. data/app/assets/stylesheets/core/components/_labels.sass +0 -15
  57. data/app/assets/stylesheets/core/components/_modals.sass +0 -73
  58. data/app/assets/stylesheets/core/components/_navbar.sass +0 -270
  59. data/app/assets/stylesheets/core/components/_notifications.sass +0 -20
  60. data/app/assets/stylesheets/core/components/_pagination.sass +0 -11
  61. data/app/assets/stylesheets/core/components/_progress.sass +0 -12
  62. data/app/assets/stylesheets/core/components/_tables.sass +0 -70
  63. data/app/assets/stylesheets/core/components/_tabs.sass +0 -37
  64. data/app/assets/stylesheets/core/components/_tooltips.sass +0 -26
  65. data/app/assets/stylesheets/docs.sass +0 -99
  66. data/app/assets/stylesheets/external/_index.sass +0 -9
  67. data/app/assets/stylesheets/foovendor/_fooindex.sass +0 -9
  68. data/app/assets/stylesheets/fullpage.sass +0 -7
  69. data/app/assets/stylesheets/kickstart-semantic.sass +0 -10
  70. data/app/assets/stylesheets/kickstart.sass +0 -344
  71. data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +0 -8
  72. data/app/assets/stylesheets/kickstart_rails/core/_base.sass +0 -16
  73. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +0 -15
  74. data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +0 -12
  75. data/app/assets/stylesheets/kickstart_rails/core/_direct-apply.sass +0 -337
  76. data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +0 -142
  77. data/app/assets/stylesheets/kickstart_rails/core/_icons.sass +0 -3
  78. data/app/assets/stylesheets/kickstart_rails/core/_index.sass +0 -7
  79. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +0 -22
  80. data/app/assets/stylesheets/kickstart_rails/core/_normalize.sass +0 -339
  81. data/app/assets/stylesheets/kickstart_rails/core/_root-element.sass +0 -17
  82. data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +0 -180
  83. data/app/assets/stylesheets/kickstart_rails/core/components/_alerts.sass +0 -23
  84. data/app/assets/stylesheets/kickstart_rails/core/components/_buttons.sass +0 -159
  85. data/app/assets/stylesheets/kickstart_rails/core/components/_dropdown_menu.sass +0 -69
  86. data/app/assets/stylesheets/kickstart_rails/core/components/_forms.sass +0 -106
  87. data/app/assets/stylesheets/kickstart_rails/core/components/_growls.sass +0 -2
  88. data/app/assets/stylesheets/kickstart_rails/core/components/_hr.sass +0 -5
  89. data/app/assets/stylesheets/kickstart_rails/core/components/_images.sass +0 -40
  90. data/app/assets/stylesheets/kickstart_rails/core/components/_labels.sass +0 -15
  91. data/app/assets/stylesheets/kickstart_rails/core/components/_modals.sass +0 -73
  92. data/app/assets/stylesheets/kickstart_rails/core/components/_navbar.sass +0 -270
  93. data/app/assets/stylesheets/kickstart_rails/core/components/_notifications.sass +0 -20
  94. data/app/assets/stylesheets/kickstart_rails/core/components/_pagination.sass +0 -11
  95. data/app/assets/stylesheets/kickstart_rails/core/components/_progress.sass +0 -12
  96. data/app/assets/stylesheets/kickstart_rails/core/components/_tables.sass +0 -70
  97. data/app/assets/stylesheets/kickstart_rails/core/components/_tabs.sass +0 -37
  98. data/app/assets/stylesheets/kickstart_rails/core/components/_tooltips.sass +0 -26
  99. data/app/assets/stylesheets/kickstart_rails/docs.sass +0 -99
  100. data/app/assets/stylesheets/kickstart_rails/fullpage.sass +0 -7
  101. data/app/assets/stylesheets/kickstart_rails/kickstart-semantic.sass +0 -10
  102. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +0 -344
  103. data/app/assets/stylesheets/kickstart_rails/pages/docs/form.sass +0 -0
  104. data/app/assets/stylesheets/kickstart_rails/pages/docs/grid.sass +0 -73
  105. data/app/assets/stylesheets/kickstart_rails/pages/docs/index.sass +0 -210
  106. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/alerts.sass +0 -5
  107. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/buttons.sass +0 -52
  108. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/forms.sass +0 -31
  109. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/images.sass +0 -7
  110. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/labels.sass +0 -10
  111. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/modals.sass +0 -18
  112. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/navigation.sass +0 -14
  113. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/notifications.sass +0 -17
  114. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tables.sass +0 -13
  115. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tabs.sass +0 -7
  116. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/tooltips.sass +0 -7
  117. data/app/assets/stylesheets/kickstart_rails/pages/docs/ui/typography.sass +0 -56
  118. data/app/assets/stylesheets/kickstart_rails/pages/index.sass +0 -105
  119. data/app/assets/stylesheets/kickstart_rails/themes/default/theme.sass +0 -264
  120. data/app/assets/stylesheets/kickstart_rails/vendor/_index.sass +0 -10
  121. data/app/assets/stylesheets/kickstart_rails/vendor/switch/README.md +0 -34
  122. data/app/assets/stylesheets/kickstart_rails/vendor/switch/example.sass +0 -14
  123. data/app/assets/stylesheets/kickstart_rails/vendor/switch/gulpfile.js +0 -16
  124. data/app/assets/stylesheets/kickstart_rails/vendor/switch/index.html +0 -18
  125. data/app/assets/stylesheets/kickstart_rails/vendor/switch/package.json +0 -24
  126. data/app/assets/stylesheets/kickstart_rails/vendor/switch/switch.sass +0 -53
  127. data/app/assets/stylesheets/pages/docs/form.sass +0 -0
  128. data/app/assets/stylesheets/pages/docs/grid.sass +0 -73
  129. data/app/assets/stylesheets/pages/docs/index.sass +0 -210
  130. data/app/assets/stylesheets/pages/docs/ui/alerts.sass +0 -5
  131. data/app/assets/stylesheets/pages/docs/ui/buttons.sass +0 -52
  132. data/app/assets/stylesheets/pages/docs/ui/forms.sass +0 -31
  133. data/app/assets/stylesheets/pages/docs/ui/image.sass +0 -4
  134. data/app/assets/stylesheets/pages/docs/ui/images.sass +0 -7
  135. data/app/assets/stylesheets/pages/docs/ui/labels.sass +0 -10
  136. data/app/assets/stylesheets/pages/docs/ui/modals.sass +0 -18
  137. data/app/assets/stylesheets/pages/docs/ui/navigation.sass +0 -14
  138. data/app/assets/stylesheets/pages/docs/ui/notifications.sass +0 -17
  139. data/app/assets/stylesheets/pages/docs/ui/tables.sass +0 -13
  140. data/app/assets/stylesheets/pages/docs/ui/tabs.sass +0 -7
  141. data/app/assets/stylesheets/pages/docs/ui/tooltips.sass +0 -7
  142. data/app/assets/stylesheets/pages/docs/ui/typography.sass +0 -56
  143. data/app/assets/stylesheets/pages/index.sass +0 -105
  144. data/app/assets/stylesheets/themes/_canary.sass +0 -266
  145. data/app/assets/stylesheets/themes/_default.sass +0 -264
  146. data/app/assets/stylesheets/themes/_shabbychic.sass +0 -252
  147. data/app/assets/stylesheets/themes/default/theme.sass +0 -264
  148. data/app/assets/stylesheets/vendor/_index.sass +0 -10
  149. data/app/assets/stylesheets/vendor/switch/README.md +0 -34
  150. data/app/assets/stylesheets/vendor/switch/example.sass +0 -14
  151. data/app/assets/stylesheets/vendor/switch/gulpfile.js +0 -16
  152. data/app/assets/stylesheets/vendor/switch/index.html +0 -18
  153. data/app/assets/stylesheets/vendor/switch/index.sass +0 -53
  154. data/app/assets/stylesheets/vendor/switch/package.json +0 -24
  155. data/app/assets/stylesheets/vendor/switch/switch.sass +0 -53
@@ -1,8 +0,0 @@
1
- @keyframes fadeInDown
2
- 0%
3
- opacity: 0
4
- transform: translateY(-20px)
5
-
6
- 100%
7
- opacity: 1
8
- transform: translateY(0)
@@ -1,16 +0,0 @@
1
- *
2
- box-sizing: border-box
3
-
4
- iframe
5
- width: 100%
6
- border: 0
7
- padding: 15px
8
- margin-bottom: 25px
9
-
10
- =above-footer
11
- flex: 1
12
-
13
- =screen
14
- display: flex
15
- min-height: 100vh
16
- flex-direction: column
@@ -1,15 +0,0 @@
1
- // Base Components
2
- // ===============
3
- // These are the base components from which dependent components can extend.
4
-
5
- // Components
6
- @import components/_alerts
7
- @import components/_buttons
8
- @import components/_hr
9
- @import components/_images
10
- @import components/_labels
11
- @import components/_modals
12
- @import components/_progress
13
- @import components/_tables
14
- @import components/_dropdown_menu
15
- @import components/_navbar
@@ -1,12 +0,0 @@
1
- // Dependent Components
2
- // ====================
3
- // These components extend the core and base components.
4
-
5
- // Components
6
- @import components/_growls
7
- @import components/_modals
8
- @import components/_notifications
9
- @import components/_tabs
10
- @import components/_tooltips
11
- @import components/_forms
12
- @import components/_pagination
@@ -1,337 +0,0 @@
1
- // Direct applications
2
- // ===================
3
- // Regardless of semantic or non-semantic usage, some styles
4
- // Should be applied directly to classes or elements no matter
5
- // what. This include should be included near the end of the
6
- // import chain but before kickstart.sass to accomplish this.
7
-
8
- body
9
- &.dismiss-modal
10
- cursor: pointer
11
-
12
- // Buttons
13
- // -------
14
-
15
- button,
16
- input[type="submit"],
17
- input[type="button"],
18
- +button
19
-
20
- input[type="file"]::-webkit-file-upload-button
21
- +button
22
-
23
- +dropdown_menu
24
-
25
- // Forms
26
- // -----
27
-
28
- %error_message
29
- font-style: italic
30
- margin:
31
- top: 7px
32
- bottom: 14px
33
-
34
- form
35
- .errors, .warnings, .successes
36
- p
37
- @extend %error_message
38
-
39
- .errors
40
- +field-colors(map-get($colors, red))
41
-
42
- .warnings
43
- +field-colors(map-get($colors, yellow))
44
-
45
- .successes
46
- +field-colors(map-get($colors, green))
47
-
48
- p
49
- &.error, &.warning, &.success
50
- @extend %error_message
51
-
52
- label, span, p
53
- &.error
54
- color: map-get($colors, red)
55
-
56
- &.warning
57
- color: map-get($colors, yellow)
58
-
59
- &.success
60
- color: map-get($colors, green)
61
-
62
- input, select
63
- &.error
64
- border-color: map-get($colors, red)
65
-
66
- &.warning
67
- border-color: map-get($colors, yellow)
68
-
69
- &.success
70
- border-color: map-get($colors, green)
71
-
72
-
73
- // Growls
74
- // ------
75
-
76
- .growl_container
77
- position: fixed
78
- top: 0
79
- right: 0
80
- padding: $space/2
81
- z-index: 2000
82
- width: 300px
83
- overflow: auto
84
- max-height: 100vh
85
-
86
- .growl
87
- box-shadow: 0px 0px $space/2 rgba(0, 0, 0, 0.5)
88
- transition: all 0.5s
89
-
90
- &.show, &.hide
91
- +fadeInDown
92
-
93
- &.hide
94
- animation-direction: reverse
95
-
96
- +growl
97
-
98
- // Status
99
- // ------
100
-
101
- .status_bar
102
- +status_bar
103
- .status_bar-status
104
- &[data-type="status-red"]
105
- +label(map-get($colors, red))
106
-
107
- &[data-type="status-orange"]
108
- +label(map-get($colors, orange))
109
-
110
- &[data-type="status-yellow"]
111
- +label(map-get($colors, yellow))
112
-
113
- &[data-type="status-green"]
114
- +label(map-get($colors, green))
115
-
116
- &[data-type="status-blue"]
117
- +label(map-get($colors, blue))
118
-
119
- &[data-type="status-violet"]
120
- +label(map-get($colors, violet))
121
-
122
- // Tabs
123
- // ----
124
-
125
- [data-panel]
126
- display: none
127
-
128
- &.open
129
- display: block
130
-
131
- // Tooltips
132
- // --------
133
-
134
- =tooltip_base
135
- margin-bottom: 0
136
- position: absolute
137
- display: block
138
- opacity: 0
139
- bottom: 100%
140
- box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.25)
141
- pointer-events: none
142
- max-width: 350px
143
- min-width: 100px
144
- text-align: center
145
- transition: all 0.25s
146
-
147
- =tooltip_arrow
148
- border-top-style: solid
149
- border-top-width: 10px
150
- border-left: 10px solid transparent
151
- border-right: 10px solid transparent
152
- width: 0px
153
- height: 0px
154
- content: ' '
155
- display: block
156
- background: transparent
157
- position: absolute
158
- left: 50%
159
- margin-left: -8px
160
- opacity: 0
161
-
162
- =pseudo-tooltip-color($color: $primary-color)
163
- &:after
164
- +label($color)
165
- margin-bottom: 0
166
-
167
- &:before
168
- border-top-color: $color
169
-
170
- [data-ks-tooltip]
171
- position: relative
172
-
173
- +pseudo-tooltip-color
174
-
175
- &:after
176
- content: attr(data-ks-tooltip)
177
- +tooltip_base
178
- transform: translateY(0px)
179
- z-index: 10
180
-
181
- &:before
182
- +tooltip_arrow
183
- bottom: 100%
184
- z-index: 100
185
-
186
- &:hover
187
- &:after, &:before
188
- opacity: 1
189
-
190
- &:after
191
- transform: translateY(-8px)
192
- transition: transform 0.25s
193
-
194
- // Positioning
195
-
196
- &[data-ks-tooltip-position="bottom"]
197
- &:after
198
- top: 100%
199
- bottom: auto
200
- margin-top: 15px
201
- transform: translateY(-6px)
202
-
203
- &:before
204
- transform: rotate(180deg)
205
- top: 100%
206
- bottom: auto
207
-
208
- &[data-ks-tooltip-position="left"]
209
- &:after
210
- transform: translateY(6px)
211
- top: 50%
212
- bottom: auto
213
- margin:
214
- top: -19px
215
- right: 12px
216
- left: auto
217
- right: 100%
218
-
219
- &:before
220
- transform: rotate(-90deg)
221
- top: 50%
222
- margin-top: -4px
223
- bottom: auto
224
- left: auto
225
- right: 100%
226
-
227
- &[data-ks-tooltip-position="right"]
228
- &:after
229
- transform: translateY(6px)
230
- top: 50%
231
- bottom: auto
232
- margin:
233
- top: -19px
234
- left: 16px
235
- left: 100%
236
- right: auto
237
-
238
- &:before
239
- transform: rotate(90deg)
240
- top: 50%
241
- margin-top: -4px
242
- margin-left: 4px
243
- bottom: auto
244
- left: 100%
245
- right: auto
246
-
247
- &[data-ks-tooltip-color="red"]
248
- +pseudo-tooltip-color(map-get($colors, red))
249
-
250
- &[data-ks-tooltip-color="orange"]
251
- +pseudo-tooltip-color(map-get($colors, orange))
252
-
253
- &[data-ks-tooltip-color="yellow"]
254
- +pseudo-tooltip-color(map-get($colors, yellow))
255
-
256
- &[data-ks-tooltip-color="green"]
257
- +pseudo-tooltip-color(map-get($colors, green))
258
-
259
- &[data-ks-tooltip-color="blue"]
260
- +pseudo-tooltip-color(map-get($colors, blue))
261
-
262
- &[data-ks-tooltip-color="violet"]
263
- +pseudo-tooltip-color(map-get($colors, violet))
264
-
265
- .tooltip
266
- +tooltip_base
267
- left: -30px
268
- right: -30px
269
- transform: translateY(8px)
270
- z-index: 10
271
- +label(map-get($colors, blue))
272
- margin: 10px auto
273
-
274
- &:after
275
- +tooltip_arrow
276
- top: 100%
277
-
278
- &.tooltip-bottom
279
- top: 100%
280
- bottom: auto
281
-
282
- &:after
283
- bottom: 100%
284
- top: auto
285
- transform: rotate(180deg)
286
-
287
- &.tooltip-left
288
- right: 100%
289
- left: auto
290
-
291
- &:after
292
- transform: rotate(-90deg)
293
- left: 100%
294
-
295
- &.tooltip-right
296
- left: 100%
297
- right: auto
298
-
299
- &:after
300
- transform: rotate(90deg)
301
- left: auto
302
- right: 100%
303
- margin:
304
- left: 0
305
- right: -8px
306
-
307
- &.tooltip-right, &.tooltip-left
308
- top: 0
309
- bottom: auto
310
- margin: 0
311
-
312
- &:after
313
- top: 8px
314
-
315
- &.tooltip-red
316
- +label(map-get($colors, red))
317
-
318
- &.tooltip-orange
319
- +label(map-get($colors, orange))
320
-
321
- &.tooltip-yellow
322
- +label(map-get($colors, yellow))
323
-
324
- &.tooltip-green
325
- +label(map-get($colors, green))
326
-
327
- &.tooltip-blue
328
- +label(map-get($colors, blue))
329
-
330
- &.tooltip-violet
331
- +label(map-get($colors, violet))
332
-
333
- &.tooltip-primary
334
- +label(map-get($colors, primary))
335
-
336
- &.tooltip-secondary
337
- +label(map-get($colors, secondary))
@@ -1,142 +0,0 @@
1
- // Still playing with this
2
- $mobile: (
3
- default: 360px,
4
- large: 480px,
5
- larger: 600px,
6
- largest: 768px
7
- )
8
-
9
- //
10
- $display: (
11
- smallest: 960px,
12
- smaller: 1024px,
13
- small: 1200px,
14
- default: 1400px
15
- )
16
-
17
- $phone: 360px
18
- $phablet: 480px
19
- $tablet: 768px
20
- $tablet-landscape: 960px
21
- $desktop: 1024px
22
- $large-monitor: 1200px
23
- $xl-monitor: 1400px
24
- $xxl-monitor: 1800px
25
-
26
- $grid-columns: 12
27
- $grid-gutter: 15px
28
-
29
- // Grid breakpoints
30
- // ----------------
31
- // Critical breakpoints where offsets and alternative grid styles will
32
- // be displayed
33
-
34
- $showOffsets: $tablet-landscape // Offsets render at this breakpoint
35
- $showColumns: $phablet // Allow < 12 columns
36
- $showPartialColumns: $tablet // Simpler alternative to actual columns
37
- $showFullColumns: $desktop // Actual user-defined column measurement
38
-
39
- =container-default($fluid: false)
40
- margin: 0px auto
41
-
42
- @if $fluid == false
43
- max-width: $tablet
44
- padding:
45
- left: $space
46
- right: $space
47
-
48
- @if $fluid == false
49
- @media screen and (min-width: $showOffsets)
50
- max-width: $desktop
51
-
52
- @media screen and (min-width: $xxl-monitor)
53
- max-width: $large-monitor
54
-
55
- =row
56
- display: flex
57
- width: 100%
58
- justify-content: space-between
59
- align-items: stretch
60
- flex-wrap: wrap
61
-
62
- =measure-columns($columns, $prop)
63
- // TODO: DRY this somehow?
64
- @if $prop == "width"
65
- width: calc(#{percentage($columns/$grid-columns)} - #{(($grid-columns/$columns - 1) * $grid-gutter)/($grid-columns/$columns)})
66
-
67
- @else if $prop == "margin-left"
68
- margin-left: calc(#{percentage($columns/$grid-columns)} - #{(($grid-columns/$columns - 1) * $grid-gutter)/($grid-columns/$columns) - $grid-gutter})
69
-
70
- @else if $prop == "margin-right"
71
- margin-right: calc(#{percentage($columns/$grid-columns)} - #{(($grid-columns/$columns - 1) * $grid-gutter)/($grid-columns/$columns) - $grid-gutter})
72
-
73
- =set-offset($columns, $side: "margin-right")
74
- // Never show leftes and rights on mobile
75
- // +measure-columns(0, $side)
76
-
77
- // Look for keywords
78
- @if $columns == "half"
79
- @media screen and (min-width: $showPartialColumns)
80
- +measure-columns(6, $side)
81
-
82
- @else if $columns == "third"
83
- @media screen and (min-width: $showPartialColumns)
84
- +measure-columns(6, $side)
85
-
86
- @media screen and (min-width: $showFullColumns)
87
- +measure-columns(4, $side)
88
-
89
- @else if $columns == "twothirds"
90
- @media screen and (min-width: $showPartialColumns)
91
- +measure-columns(6, $side)
92
-
93
- @media screen and (min-width: $showFullColumns)
94
- +measure-columns(8, $side)
95
-
96
- @else
97
- @media screen and (min-width: $showPartialColumns)
98
- +measure-columns($columns, $side)
99
-
100
- // Convenience mixins
101
- =right($columns)
102
- +set-offset($columns, "margin-right")
103
- =left($columns)
104
- +set-offset($columns, "margin-left")
105
-
106
- =set-column($columns, $right, $left)
107
- +measure-columns($columns, "width")
108
- clear: none
109
- display: block
110
- // margin-left: 0
111
-
112
- @if $right != 0
113
- +set-offset($right, "margin-right")
114
-
115
- @if $left != 0
116
- +set-offset($left, "margin-left")
117
-
118
- =column($columns: 12, $right: 0, $left: 0)
119
- // Everything is a full width column on mobile by default
120
- +set-column(12, 0, 0)
121
-
122
- // Look for keywords
123
- @if $columns == "half"
124
- @media screen and (min-width: $showPartialColumns)
125
- +set-column($grid-columns/2, $right, $left)
126
-
127
- @else if $columns == "third"
128
- @media screen and (min-width: $showPartialColumns)
129
- +set-column($grid-columns/2, $right, $left)
130
- @media screen and (min-width: $showFullColumns)
131
- +set-column($grid-columns/3, $right, $left)
132
-
133
- @else if $columns == "twothirds"
134
- @media screen and (min-width: $showPartialColumns)
135
- +set-column($grid-columns/2, $right, $left)
136
- @media screen and (min-width: $showFullColumns)
137
- +set-column(($grid-columns * 2/3), $right, $left)
138
-
139
- @else
140
- // No keywords found, pass in values.
141
- @media screen and (min-width: $showColumns)
142
- +set-column($columns, $right, $left)