locomotivecms_wagon 2.4.0.rc2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/generators/foundation/public/javascripts/vendor/foundation.js +10839 -6523
- data/generators/foundation/public/javascripts/vendor/foundation.min.js +5 -3
- data/generators/foundation/public/stylesheets/_settings.scss +455 -115
- data/generators/foundation/public/stylesheets/app.css +0 -3
- data/generators/foundation/public/stylesheets/app.scss +15 -6
- data/generators/foundation/public/stylesheets/foundation.css +4191 -1885
- data/generators/foundation/public/stylesheets/foundation6/_global.scss +106 -54
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +157 -14
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +71 -28
- data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +17 -9
- data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +33 -10
- data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +168 -30
- data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +165 -44
- data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +9 -18
- data/generators/foundation/public/stylesheets/foundation6/components/_card.scss +129 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +54 -13
- data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +108 -33
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +215 -64
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +22 -7
- data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +1 -68
- data/generators/foundation/public/stylesheets/foundation6/components/_flex.scss +117 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +16 -8
- data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +50 -10
- data/generators/foundation/public/stylesheets/foundation6/components/_menu-icon.scss +9 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +373 -91
- data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +418 -83
- data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +17 -7
- data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +77 -45
- data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +16 -35
- data/generators/foundation/public/stylesheets/foundation6/components/_responsive-embed.scss +70 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +59 -34
- data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +17 -38
- data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +5 -4
- data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +52 -36
- data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +197 -79
- data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +126 -67
- data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +17 -4
- data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +61 -21
- data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +74 -24
- data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +128 -10
- data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +6 -5
- data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +14 -9
- data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +12 -5
- data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +6 -6
- data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +11 -9
- data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +82 -10
- data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +2 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_meter.scss +116 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_progress.scss +94 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_range.scss +149 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +36 -14
- data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +53 -27
- data/generators/foundation/public/stylesheets/foundation6/foundation.scss +59 -17
- data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +100 -56
- data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +22 -22
- data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +164 -96
- data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +19 -4
- data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +61 -10
- data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +49 -5
- data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +14 -9
- data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +42 -15
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +11 -4
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +4 -1
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/prototype/_arrow.scss +36 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_border-box.scss +35 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_border-none.scss +35 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_bordered.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_box.scss +23 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_display.scss +50 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_font-styling.scss +95 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_list-style-type.scss +95 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_overflow.scss +72 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_position.scss +114 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_prototype.scss +87 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_relation.scss +157 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_rotate.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_rounded.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_separator.scss +96 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_shadow.scss +43 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_sizing.scss +73 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_spacing.scss +204 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_text-decoration.scss +48 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss +48 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_text-utilities.scss +88 -0
- data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +454 -116
- data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +9 -8
- data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +128 -55
- data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +7 -4
- data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +22 -9
- data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +0 -2
- data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +213 -47
- data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +105 -17
- data/generators/foundation/public/stylesheets/foundation6/util/_direction.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_flex.scss +85 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_math.scss +72 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +161 -38
- data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +5 -3
- data/generators/foundation/public/stylesheets/foundation6/util/_typography.scss +26 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +100 -17
- data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +4 -5
- data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +68 -25
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_cell.scss +169 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_classes.scss +476 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_collapse.scss +74 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_frame.scss +85 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_grid.scss +35 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_gutters.scss +45 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_layout.scss +33 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_position.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_xy-grid.scss +51 -0
- data/lib/locomotive/wagon/tools/styled_yaml.rb +1 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +2 -2
- data/spec/fixtures/cassettes/authenticate.yml +102 -48
- data/spec/fixtures/cassettes/delete.yml +519 -259
- data/spec/fixtures/cassettes/push.yml +2724 -1486
- metadata +61 -10
- data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +0 -4
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize.scss +0 -424
@@ -0,0 +1,74 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Collapses the grid a cells within it.
|
10
|
+
///
|
11
|
+
/// @param {String} $selector [.cell] - The child element to remove the gutter from.
|
12
|
+
/// @param {Keyword} $gutter-type [margin] - The type of gutter to remove.
|
13
|
+
/// @param {List} $gutter-position [right left] - The positions to remove gutters from. Accepts `top`, `bottom`, `left`, `right` in any combination.
|
14
|
+
@mixin xy-grid-collapse(
|
15
|
+
$selector: '.cell',
|
16
|
+
$gutter-type: margin,
|
17
|
+
$gutter-position: right left,
|
18
|
+
$min-breakpoint: $-zf-zero-breakpoint
|
19
|
+
) {
|
20
|
+
// First, lets negate any margins on the top level
|
21
|
+
@if ($gutter-type == 'margin') {
|
22
|
+
|
23
|
+
@include breakpoint($min-breakpoint) {
|
24
|
+
@each $value in $gutter-position {
|
25
|
+
margin-#{$value}: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
> #{$selector} {
|
29
|
+
@each $value in $gutter-position {
|
30
|
+
margin-#{$value}: 0;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
$excluded-bps: -zf-breakpoints-less-than($min-breakpoint);
|
36
|
+
|
37
|
+
// Output new widths to not include gutters
|
38
|
+
@each $bp in $breakpoint-classes {
|
39
|
+
@if(sl-contain($excluded-bps, $bp)) {
|
40
|
+
@include breakpoint($min-breakpoint) {
|
41
|
+
@for $i from 1 through $grid-columns {
|
42
|
+
// Sizing (percentage)
|
43
|
+
> .#{$bp}-#{$i} {
|
44
|
+
@include xy-cell-static($i, $gutter-output: false, $gutter-type: padding);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
} @else {
|
49
|
+
@include breakpoint($bp) {
|
50
|
+
@for $i from 1 through $grid-columns {
|
51
|
+
// Sizing (percentage)
|
52
|
+
> .#{$bp}-#{$i} {
|
53
|
+
@include xy-cell-static($i, $gutter-output: false, $gutter-type: padding);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
@else {
|
61
|
+
|
62
|
+
@include breakpoint($min-breakpoint) {
|
63
|
+
@each $value in $gutter-position {
|
64
|
+
margin-#{$value}: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
> #{$selector} {
|
68
|
+
@each $value in $gutter-position {
|
69
|
+
padding-#{$value}: 0;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/// Modifies a grid to give it "frame" behavior (no overflow, no wrap, stretch behavior)
|
2
|
+
///
|
3
|
+
/// @param {Boolean} $vertical [false] - Is grid vertical or horizontal. Should match grid.
|
4
|
+
/// @param {Boolean} $nested [false] - Is grid nested or not. If nested is true this sets the frame to 100% height, otherwise will be 100vh.
|
5
|
+
/// @param {Number|Map} $gutters [null] - Map or single value for gutters.
|
6
|
+
/// @param {String} $breakpoint [null] - The name of the breakpoint size in your gutters map to get the size from.
|
7
|
+
/// @param {Boolean} $include-base [true] - Include the base styles that don't vary per breakpoint.
|
8
|
+
@mixin xy-grid-frame(
|
9
|
+
$vertical: false,
|
10
|
+
$nested: false,
|
11
|
+
$gutters: null,
|
12
|
+
$breakpoint: null,
|
13
|
+
$include-base: true
|
14
|
+
) {
|
15
|
+
|
16
|
+
@if $include-base {
|
17
|
+
overflow: hidden;
|
18
|
+
position: relative;
|
19
|
+
flex-wrap: nowrap;
|
20
|
+
align-items: stretch;
|
21
|
+
}
|
22
|
+
|
23
|
+
@if $breakpoint == null and type-of($gutters) == 'map' {
|
24
|
+
@include -zf-each-breakpoint() {
|
25
|
+
@include xy-grid-frame($vertical, $nested, $gutters, $-zf-size, false);
|
26
|
+
}
|
27
|
+
} @else {
|
28
|
+
// Get our gutters if applicable
|
29
|
+
$gutter: -zf-get-bp-val($gutters, $breakpoint);
|
30
|
+
|
31
|
+
// If we have a gutter, add it to the width/height
|
32
|
+
@if $gutter {
|
33
|
+
@if $vertical == true {
|
34
|
+
$unit: if($nested == true, 100%, 100vh);
|
35
|
+
$gutter: rem-calc($gutter);
|
36
|
+
height: calc(#{$unit} + #{$gutter});
|
37
|
+
} @else {
|
38
|
+
$unit: if($nested == true, 100%, 100vw);
|
39
|
+
$gutter: rem-calc($gutter);
|
40
|
+
width: calc(#{$unit} + #{$gutter});
|
41
|
+
}
|
42
|
+
}
|
43
|
+
@else {
|
44
|
+
@if $vertical == true {
|
45
|
+
height: if($nested == true, 100%, 100vh);
|
46
|
+
} @else {
|
47
|
+
width: if($nested == true, 100%, 100vw);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
/// Modifies a cell to give it "block" behavior (overflow auto, inertial scrolling)
|
54
|
+
///
|
55
|
+
/// @param {Boolean} $vertical [false] - Is grid vertical or horizontal. Should match grid.
|
56
|
+
@mixin xy-cell-block(
|
57
|
+
$vertical: false
|
58
|
+
) {
|
59
|
+
$property: if($vertical == true, 'overflow-y', 'overflow-x');
|
60
|
+
|
61
|
+
@if $vertical == true {
|
62
|
+
overflow-y: auto;
|
63
|
+
max-height: 100%;
|
64
|
+
} @else {
|
65
|
+
overflow-x: auto;
|
66
|
+
max-width: 100%;
|
67
|
+
}
|
68
|
+
|
69
|
+
-webkit-overflow-scrolling: touch;
|
70
|
+
-ms-overflow-stype: -ms-autohiding-scrollbar;
|
71
|
+
}
|
72
|
+
|
73
|
+
/// Container for inside a grid frame containing multiple blocks. Typically used
|
74
|
+
/// as a modifier for a `.cell` to allow the cell to pass along flex sizing
|
75
|
+
/// constraints / from parents to children.
|
76
|
+
@mixin xy-cell-block-container() {
|
77
|
+
display: flex;
|
78
|
+
flex-direction: column;
|
79
|
+
max-height: 100%;
|
80
|
+
|
81
|
+
> .grid-x {
|
82
|
+
max-height: 100%;
|
83
|
+
flex-wrap: nowrap;
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Creates a max width container, designed to house your grid content.
|
10
|
+
///
|
11
|
+
/// @param {Number} $width [$grid-container] - a width to limit the container to.
|
12
|
+
@mixin xy-grid-container(
|
13
|
+
$width: $grid-container,
|
14
|
+
$padding: $grid-container-padding
|
15
|
+
) {
|
16
|
+
@include xy-gutters($gutters: $padding, $gutter-type: padding);
|
17
|
+
|
18
|
+
max-width: $width;
|
19
|
+
margin: 0 auto;
|
20
|
+
}
|
21
|
+
|
22
|
+
/// Creates a container for your flex cells.
|
23
|
+
///
|
24
|
+
/// @param {Keyword} $direction [horizontal] - Either horizontal or vertical direction of cells within.
|
25
|
+
/// @param {Boolean} $wrap [true] - If the cells within should wrap or not.
|
26
|
+
@mixin xy-grid(
|
27
|
+
$direction: horizontal,
|
28
|
+
$wrap: true
|
29
|
+
) {
|
30
|
+
$direction: if($direction == 'horizontal', row, column);
|
31
|
+
$wrap: if($wrap, wrap, nowrap);
|
32
|
+
|
33
|
+
display: flex;
|
34
|
+
flex-flow: $direction $wrap;
|
35
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Create gutters for a cell/container.
|
10
|
+
///
|
11
|
+
/// @param {Number|Map} $gutters [$grid-margin-gutters] - Map or single value for gutters.
|
12
|
+
/// @param {Keyword} $gutter-type [margin] - Type of gutter to output. Accepts either margin or padding.
|
13
|
+
/// @param {List} $gutter-position [right left] - The position to apply gutters to. Accepts `top`, `bottom`, `left`, `right` in any combination.
|
14
|
+
/// @param {Boolean} $negative [false] - Whether to apply the gutter as a negative value. Commonly used for nested grids.
|
15
|
+
@mixin xy-gutters(
|
16
|
+
$gutters: $grid-margin-gutters,
|
17
|
+
$gutter-type: margin,
|
18
|
+
$gutter-position: right left,
|
19
|
+
$negative: false
|
20
|
+
) {
|
21
|
+
$operator: if($negative, '-', '');
|
22
|
+
|
23
|
+
// If we have declared negative gutters, force type to `margin.
|
24
|
+
$gutter-type: if($negative, 'margin', $gutter-type);
|
25
|
+
|
26
|
+
// Output our margin gutters.
|
27
|
+
@if (type-of($gutters) == 'map') {
|
28
|
+
@include -zf-breakpoint-value(auto, $gutters) {
|
29
|
+
$gutter: rem-calc($-zf-bp-value) / 2;
|
30
|
+
|
31
|
+
// Loop through each gutter position
|
32
|
+
@each $value in $gutter-position {
|
33
|
+
#{$gutter-type}-#{$value}: #{$operator}$gutter;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
@elseif (type-of($gutters) == 'number') {
|
38
|
+
$gutter: rem-calc($gutters) / 2;
|
39
|
+
|
40
|
+
// Loop through each gutter position
|
41
|
+
@each $value in $gutter-position {
|
42
|
+
#{$gutter-type}-#{$value}: #{$operator}$gutter;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-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 ['.cell'] - Selector(s) to use for child elements.
|
13
|
+
/// @param {Boolean} $gutter-output [true] - Whether or not to output gutters
|
14
|
+
/// @param {Number|Map} $gutters [$grid-margin-gutters] - Map or single value for gutters.
|
15
|
+
/// @param {Keyword} $gutter-type [margin] - Type of gutter to output. Accepts `margin` or `padding`.
|
16
|
+
/// @param {List} $gutter-position [right left] - The position to apply gutters to. Accepts `top`, `bottom`, `left`, `right` in any combination.
|
17
|
+
/// @param {Boolean} $vertical [false] - Set to true to output vertical (height) styles rather than widths.
|
18
|
+
@mixin xy-grid-layout(
|
19
|
+
$n,
|
20
|
+
$selector: '.cell',
|
21
|
+
$gutter-output: true,
|
22
|
+
$gutters: $grid-margin-gutters,
|
23
|
+
$gutter-type: margin,
|
24
|
+
$gutter-position: right left,
|
25
|
+
$breakpoint: $-zf-zero-breakpoint,
|
26
|
+
$vertical: false
|
27
|
+
) {
|
28
|
+
$size: percentage(1/$n);
|
29
|
+
|
30
|
+
& > #{$selector} {
|
31
|
+
@include xy-cell($size, $gutter-output, $gutters, $gutter-type, $gutter-position, $breakpoint, $vertical);
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Offsets a column to the right/bottom by `$n` columns.
|
10
|
+
///
|
11
|
+
/// @param {Number|List} $n - Size to offset by. You can pass in any value accepted by the `zf-cell()` mixin, such as `6`, `50%`, or `1 of 2`.
|
12
|
+
/// @param {Boolean} $vertical [false] Sets the direction of the offset. If set to true will apply margin-top instead.
|
13
|
+
@mixin xy-cell-offset(
|
14
|
+
$n,
|
15
|
+
$gutters: $grid-margin-gutters,
|
16
|
+
$gutter-type: margin,
|
17
|
+
$breakpoint: $-zf-zero-breakpoint,
|
18
|
+
$vertical: false
|
19
|
+
) {
|
20
|
+
$direction: if($vertical, 'top', $global-left);
|
21
|
+
|
22
|
+
@include -zf-breakpoint-value($breakpoint, $gutters) {
|
23
|
+
$gutter: rem-calc($-zf-bp-value) / 2;
|
24
|
+
$size: if($gutter-type == 'margin', calc(#{xy-cell-size($n)} + #{$gutter}), #{xy-cell-size($n)});
|
25
|
+
|
26
|
+
margin-#{$direction}: #{$size};
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Enables the XY grid.
|
10
|
+
/// @type Boolean
|
11
|
+
$xy-grid: true !default;
|
12
|
+
|
13
|
+
/// The maximum width of a grid container.
|
14
|
+
/// @type Number
|
15
|
+
$grid-container: $global-width !default;
|
16
|
+
|
17
|
+
/// The number of columns used in the grid.
|
18
|
+
/// @type Number
|
19
|
+
$grid-columns: 12 !default;
|
20
|
+
|
21
|
+
/// The amount of margin between cells at different screen sizes when using the margin grid. To use just one size, set the variable to a number instead of a map.
|
22
|
+
/// @type Map | Length
|
23
|
+
$grid-margin-gutters: (
|
24
|
+
small: 20px,
|
25
|
+
medium: 30px
|
26
|
+
) !default;
|
27
|
+
|
28
|
+
/// The amount of padding in cells at different screen sizes when using the padding grid. To use just one size, set the variable to a number instead of a map.
|
29
|
+
/// @type Map | Length
|
30
|
+
$grid-padding-gutters: $grid-margin-gutters !default;
|
31
|
+
|
32
|
+
/// The amount of padding to use when padding the grid-container.
|
33
|
+
/// @type Map | Length
|
34
|
+
$grid-container-padding: $grid-padding-gutters !default;
|
35
|
+
|
36
|
+
/// The maximum width to apply to a grid container
|
37
|
+
/// @type Number
|
38
|
+
$grid-container-max: $global-width !default;
|
39
|
+
|
40
|
+
/// The maximum number of cells in an XY block grid.
|
41
|
+
/// @type Number
|
42
|
+
$xy-block-grid-max: 8 !default;
|
43
|
+
|
44
|
+
@import 'gutters';
|
45
|
+
@import 'grid';
|
46
|
+
@import 'cell';
|
47
|
+
@import 'frame';
|
48
|
+
@import 'position';
|
49
|
+
@import 'layout';
|
50
|
+
@import 'collapse';
|
51
|
+
@import 'classes';
|
@@ -105,7 +105,7 @@ module StyledYAML
|
|
105
105
|
# A Psych.dump alternative that uses the custom TreeBuilder
|
106
106
|
def self.dump obj, io = nil, options = {}
|
107
107
|
real_io = io || StringIO.new(''.encode('utf-8'))
|
108
|
-
visitor = YAMLTree.
|
108
|
+
visitor = YAMLTree.create(options, TreeBuilder.new)
|
109
109
|
visitor << obj
|
110
110
|
ast = visitor.tree
|
111
111
|
|
data/locomotivecms_wagon.gemspec
CHANGED
@@ -27,8 +27,8 @@ Gem::Specification.new do |gem|
|
|
27
27
|
gem.add_dependency 'netrc', '~> 0.11.0'
|
28
28
|
|
29
29
|
gem.add_dependency 'locomotivecms_common', '~> 0.3.0'
|
30
|
-
gem.add_dependency 'locomotivecms_coal', '~> 1.5.
|
31
|
-
gem.add_dependency 'locomotivecms_steam', '~> 1.4.0
|
30
|
+
gem.add_dependency 'locomotivecms_coal', '~> 1.5.1'
|
31
|
+
gem.add_dependency 'locomotivecms_steam', '~> 1.4.0'
|
32
32
|
|
33
33
|
gem.add_dependency 'haml', '~> 4.0.7'
|
34
34
|
gem.add_dependency 'listen', '~> 3.1.5'
|
@@ -20,21 +20,31 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Content-Type:
|
22
22
|
- application/json
|
23
|
-
|
24
|
-
-
|
23
|
+
Content-Length:
|
24
|
+
- '40'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Status:
|
28
|
+
- 401 Unauthorized
|
25
29
|
Cache-Control:
|
26
30
|
- no-cache
|
27
|
-
X-
|
28
|
-
-
|
31
|
+
X-Error-Detail:
|
32
|
+
- Invalid email or password.
|
29
33
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
|
32
|
-
-
|
34
|
+
- '0.218876'
|
35
|
+
X-Request-Id:
|
36
|
+
- d1fdb5d1-5e08-4b9f-9153-7ac91689d986
|
37
|
+
Date:
|
38
|
+
- Wed, 26 Sep 2018 20:37:08 GMT
|
39
|
+
X-Powered-By:
|
40
|
+
- Phusion Passenger 5.3.1
|
41
|
+
Server:
|
42
|
+
- nginx/1.14.0 + Phusion Passenger 5.3.1
|
33
43
|
body:
|
34
44
|
encoding: UTF-8
|
35
45
|
string: '{"message":"Invalid email or password."}'
|
36
46
|
http_version:
|
37
|
-
recorded_at:
|
47
|
+
recorded_at: Wed, 26 Sep 2018 20:37:08 GMT
|
38
48
|
- request:
|
39
49
|
method: post
|
40
50
|
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
@@ -55,21 +65,31 @@ http_interactions:
|
|
55
65
|
headers:
|
56
66
|
Content-Type:
|
57
67
|
- application/json
|
58
|
-
|
59
|
-
-
|
68
|
+
Content-Length:
|
69
|
+
- '250'
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
Status:
|
73
|
+
- 201 Created
|
60
74
|
Cache-Control:
|
61
75
|
- max-age=0, private, must-revalidate
|
62
|
-
|
63
|
-
-
|
76
|
+
ETag:
|
77
|
+
- W/"dee6b1c938803658bf23ded93edc449f"
|
64
78
|
X-Runtime:
|
65
|
-
- '0.
|
66
|
-
|
67
|
-
-
|
79
|
+
- '0.037922'
|
80
|
+
X-Request-Id:
|
81
|
+
- 0a6fd119-299d-48f5-9065-2d635aaa53f9
|
82
|
+
Date:
|
83
|
+
- Wed, 26 Sep 2018 20:37:08 GMT
|
84
|
+
X-Powered-By:
|
85
|
+
- Phusion Passenger 5.3.1
|
86
|
+
Server:
|
87
|
+
- nginx/1.14.0 + Phusion Passenger 5.3.1
|
68
88
|
body:
|
69
89
|
encoding: UTF-8
|
70
|
-
string: '{"_id":"
|
90
|
+
string: '{"_id":"5babedf4a9533064ec0350d4","created_at":"2018-09-26T20:37:08Z","updated_at":"2018-09-26T20:37:08Z","name":"John","email":"john@doe.net","locale":"en","api_key":"8ed79fb207e4eacf922a7d030138be545f98ccda","super_admin":false,"local_admin":false}'
|
71
91
|
http_version:
|
72
|
-
recorded_at:
|
92
|
+
recorded_at: Wed, 26 Sep 2018 20:37:08 GMT
|
73
93
|
- request:
|
74
94
|
method: post
|
75
95
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -90,24 +110,34 @@ http_interactions:
|
|
90
110
|
headers:
|
91
111
|
Content-Type:
|
92
112
|
- application/json
|
93
|
-
|
94
|
-
-
|
113
|
+
Content-Length:
|
114
|
+
- '32'
|
115
|
+
Connection:
|
116
|
+
- keep-alive
|
117
|
+
Status:
|
118
|
+
- 201 Created
|
95
119
|
Cache-Control:
|
96
120
|
- max-age=0, private, must-revalidate
|
97
|
-
|
98
|
-
-
|
121
|
+
ETag:
|
122
|
+
- W/"54fbe8a83f4a578879f58ded5b7adf50"
|
99
123
|
X-Runtime:
|
100
|
-
- '0.
|
101
|
-
|
102
|
-
-
|
124
|
+
- '0.007055'
|
125
|
+
X-Request-Id:
|
126
|
+
- db76cb6c-9e85-4233-b4ca-b31760b02ec0
|
127
|
+
Date:
|
128
|
+
- Wed, 26 Sep 2018 20:37:08 GMT
|
129
|
+
X-Powered-By:
|
130
|
+
- Phusion Passenger 5.3.1
|
131
|
+
Server:
|
132
|
+
- nginx/1.14.0 + Phusion Passenger 5.3.1
|
103
133
|
body:
|
104
134
|
encoding: UTF-8
|
105
|
-
string: '{"token":"
|
135
|
+
string: '{"token":"hE1AJhyKRVCvfaWUAqWF"}'
|
106
136
|
http_version:
|
107
|
-
recorded_at:
|
137
|
+
recorded_at: Wed, 26 Sep 2018 20:37:08 GMT
|
108
138
|
- request:
|
109
139
|
method: get
|
110
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=
|
140
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=hE1AJhyKRVCvfaWUAqWF
|
111
141
|
body:
|
112
142
|
encoding: US-ASCII
|
113
143
|
string: ''
|
@@ -119,7 +149,7 @@ http_interactions:
|
|
119
149
|
X-Locomotive-Account-Email:
|
120
150
|
- admin@locomotivecms.com
|
121
151
|
X-Locomotive-Account-Token:
|
122
|
-
-
|
152
|
+
- hE1AJhyKRVCvfaWUAqWF
|
123
153
|
response:
|
124
154
|
status:
|
125
155
|
code: 200
|
@@ -127,24 +157,36 @@ http_interactions:
|
|
127
157
|
headers:
|
128
158
|
Content-Type:
|
129
159
|
- application/json
|
130
|
-
|
131
|
-
-
|
160
|
+
Transfer-Encoding:
|
161
|
+
- chunked
|
162
|
+
Connection:
|
163
|
+
- keep-alive
|
164
|
+
Status:
|
165
|
+
- 200 OK
|
132
166
|
Cache-Control:
|
133
167
|
- max-age=0, private, must-revalidate
|
134
|
-
|
135
|
-
-
|
168
|
+
ETag:
|
169
|
+
- W/"9c825b2ccbfb0b1db27457250e1d163a"
|
136
170
|
X-Runtime:
|
137
|
-
- '0.
|
138
|
-
|
139
|
-
-
|
171
|
+
- '0.018540'
|
172
|
+
X-Request-Id:
|
173
|
+
- c361da84-e02e-4234-a800-7be054d333b9
|
174
|
+
Date:
|
175
|
+
- Wed, 26 Sep 2018 20:37:08 GMT
|
176
|
+
X-Powered-By:
|
177
|
+
- Phusion Passenger 5.3.1
|
178
|
+
Server:
|
179
|
+
- nginx/1.14.0 + Phusion Passenger 5.3.1
|
180
|
+
Content-Encoding:
|
181
|
+
- gzip
|
140
182
|
body:
|
141
183
|
encoding: UTF-8
|
142
|
-
string: '{"_id":"
|
184
|
+
string: '{"_id":"5babed90a9533062ea501b61","created_at":"2018-09-26T20:35:28Z","updated_at":"2018-09-26T20:35:28Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
143
185
|
http_version:
|
144
|
-
recorded_at:
|
186
|
+
recorded_at: Wed, 26 Sep 2018 20:37:08 GMT
|
145
187
|
- request:
|
146
188
|
method: get
|
147
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=
|
189
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=hE1AJhyKRVCvfaWUAqWF
|
148
190
|
body:
|
149
191
|
encoding: US-ASCII
|
150
192
|
string: ''
|
@@ -156,7 +198,7 @@ http_interactions:
|
|
156
198
|
X-Locomotive-Account-Email:
|
157
199
|
- admin@locomotivecms.com
|
158
200
|
X-Locomotive-Account-Token:
|
159
|
-
-
|
201
|
+
- hE1AJhyKRVCvfaWUAqWF
|
160
202
|
response:
|
161
203
|
status:
|
162
204
|
code: 200
|
@@ -164,19 +206,31 @@ http_interactions:
|
|
164
206
|
headers:
|
165
207
|
Content-Type:
|
166
208
|
- application/json
|
167
|
-
|
168
|
-
-
|
209
|
+
Transfer-Encoding:
|
210
|
+
- chunked
|
211
|
+
Connection:
|
212
|
+
- keep-alive
|
213
|
+
Status:
|
214
|
+
- 200 OK
|
169
215
|
Cache-Control:
|
170
216
|
- max-age=0, private, must-revalidate
|
171
|
-
|
172
|
-
-
|
217
|
+
ETag:
|
218
|
+
- W/"9c825b2ccbfb0b1db27457250e1d163a"
|
173
219
|
X-Runtime:
|
174
|
-
- '0.
|
175
|
-
|
176
|
-
-
|
220
|
+
- '0.008966'
|
221
|
+
X-Request-Id:
|
222
|
+
- c87ad837-8491-4467-8eff-4601cae4e617
|
223
|
+
Date:
|
224
|
+
- Wed, 26 Sep 2018 20:37:08 GMT
|
225
|
+
X-Powered-By:
|
226
|
+
- Phusion Passenger 5.3.1
|
227
|
+
Server:
|
228
|
+
- nginx/1.14.0 + Phusion Passenger 5.3.1
|
229
|
+
Content-Encoding:
|
230
|
+
- gzip
|
177
231
|
body:
|
178
232
|
encoding: UTF-8
|
179
|
-
string: '{"_id":"
|
233
|
+
string: '{"_id":"5babed90a9533062ea501b61","created_at":"2018-09-26T20:35:28Z","updated_at":"2018-09-26T20:35:28Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
180
234
|
http_version:
|
181
|
-
recorded_at:
|
235
|
+
recorded_at: Wed, 26 Sep 2018 20:37:08 GMT
|
182
236
|
recorded_with: VCR 4.0.0
|