smock 0.1.6 → 0.1.7

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 (120) hide show
  1. data/Gemfile.lock +3 -3
  2. data/README.md +5 -0
  3. data/app/assets/stylesheets/includes/_colors.css.sass +16 -0
  4. data/app/assets/stylesheets/includes/_forms.css.sass +29 -0
  5. data/app/assets/stylesheets/includes/_grid.css.sass +13 -0
  6. data/app/assets/stylesheets/includes/_layouts.css.sass +28 -0
  7. data/app/assets/stylesheets/includes/_mixins.css.sass +66 -0
  8. data/app/assets/stylesheets/includes/_typography.css.sass +58 -0
  9. data/app/assets/stylesheets/includes/_typography_settings.sass +22 -0
  10. data/app/assets/stylesheets/includes/icons.css.sass +149 -0
  11. data/app/assets/stylesheets/modules/_asset_uploader.css.sass +54 -0
  12. data/app/assets/stylesheets/modules/_categories.css.sass +32 -0
  13. data/app/assets/stylesheets/modules/_footer.css.sass +100 -0
  14. data/app/assets/stylesheets/modules/_header.css.sass +32 -0
  15. data/app/assets/stylesheets/modules/_hero.css.sass +69 -0
  16. data/app/assets/stylesheets/modules/_nav.css.sass +19 -0
  17. data/app/assets/stylesheets/modules/_pagination.css.sass +5 -0
  18. data/app/assets/stylesheets/modules/_search_filters.css.sass +34 -0
  19. data/app/assets/stylesheets/modules/_service.css.sass +58 -0
  20. data/app/assets/stylesheets/modules/_styleguide.css.sass +73 -0
  21. data/app/assets/stylesheets/modules/_testimonials.css.sass +27 -0
  22. data/app/assets/stylesheets/modules/form/_credit_card.css.sass +15 -0
  23. data/app/assets/stylesheets/modules/form/_payment_method.css.sass +28 -0
  24. data/app/assets/stylesheets/modules/header/_categories.css.sass +40 -0
  25. data/app/assets/stylesheets/modules/header/_dropdown.css.sass +55 -0
  26. data/app/assets/stylesheets/modules/header/_nav.css.sass +58 -0
  27. data/app/assets/stylesheets/modules/header/_search.css.sass +32 -0
  28. data/app/assets/stylesheets/modules/service/_favorites.css.sass +82 -0
  29. data/app/assets/stylesheets/smock.sass +181 -0
  30. data/app/assets/stylesheets/thirdparty/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
  31. data/app/assets/stylesheets/thirdparty/bourbon/_bourbon.scss +74 -0
  32. data/app/assets/stylesheets/thirdparty/bourbon/addons/_button.scss +374 -0
  33. data/app/assets/stylesheets/thirdparty/bourbon/addons/_clearfix.scss +23 -0
  34. data/app/assets/stylesheets/thirdparty/bourbon/addons/_directional-values.scss +111 -0
  35. data/app/assets/stylesheets/thirdparty/bourbon/addons/_ellipsis.scss +7 -0
  36. data/app/assets/stylesheets/thirdparty/bourbon/addons/_font-family.scss +5 -0
  37. data/app/assets/stylesheets/thirdparty/bourbon/addons/_hide-text.scss +10 -0
  38. data/app/assets/stylesheets/thirdparty/bourbon/addons/_html5-input-types.scss +110 -0
  39. data/app/assets/stylesheets/thirdparty/bourbon/addons/_position.scss +32 -0
  40. data/app/assets/stylesheets/thirdparty/bourbon/addons/_prefixer.scss +45 -0
  41. data/app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss +31 -0
  42. data/app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss +44 -0
  43. data/app/assets/stylesheets/thirdparty/bourbon/addons/_timing-functions.scss +32 -0
  44. data/app/assets/stylesheets/thirdparty/bourbon/addons/_triangle.scss +86 -0
  45. data/app/assets/stylesheets/thirdparty/bourbon/addons/_word-wrap.scss +8 -0
  46. data/app/assets/stylesheets/thirdparty/bourbon/css3/_animation.scss +52 -0
  47. data/app/assets/stylesheets/thirdparty/bourbon/css3/_appearance.scss +3 -0
  48. data/app/assets/stylesheets/thirdparty/bourbon/css3/_backface-visibility.scss +6 -0
  49. data/app/assets/stylesheets/thirdparty/bourbon/css3/_background-image.scss +48 -0
  50. data/app/assets/stylesheets/thirdparty/bourbon/css3/_background.scss +103 -0
  51. data/app/assets/stylesheets/thirdparty/bourbon/css3/_border-image.scss +56 -0
  52. data/app/assets/stylesheets/thirdparty/bourbon/css3/_border-radius.scss +22 -0
  53. data/app/assets/stylesheets/thirdparty/bourbon/css3/_box-sizing.scss +4 -0
  54. data/app/assets/stylesheets/thirdparty/bourbon/css3/_calc.scss +4 -0
  55. data/app/assets/stylesheets/thirdparty/bourbon/css3/_columns.scss +47 -0
  56. data/app/assets/stylesheets/thirdparty/bourbon/css3/_filter.scss +5 -0
  57. data/app/assets/stylesheets/thirdparty/bourbon/css3/_flex-box.scss +321 -0
  58. data/app/assets/stylesheets/thirdparty/bourbon/css3/_font-face.scss +23 -0
  59. data/app/assets/stylesheets/thirdparty/bourbon/css3/_font-feature-settings.scss +10 -0
  60. data/app/assets/stylesheets/thirdparty/bourbon/css3/_hidpi-media-query.scss +10 -0
  61. data/app/assets/stylesheets/thirdparty/bourbon/css3/_hyphens.scss +4 -0
  62. data/app/assets/stylesheets/thirdparty/bourbon/css3/_image-rendering.scss +14 -0
  63. data/app/assets/stylesheets/thirdparty/bourbon/css3/_inline-block.scss +8 -0
  64. data/app/assets/stylesheets/thirdparty/bourbon/css3/_keyframes.scss +35 -0
  65. data/app/assets/stylesheets/thirdparty/bourbon/css3/_linear-gradient.scss +38 -0
  66. data/app/assets/stylesheets/thirdparty/bourbon/css3/_perspective.scss +8 -0
  67. data/app/assets/stylesheets/thirdparty/bourbon/css3/_placeholder.scss +8 -0
  68. data/app/assets/stylesheets/thirdparty/bourbon/css3/_radial-gradient.scss +39 -0
  69. data/app/assets/stylesheets/thirdparty/bourbon/css3/_transform.scss +15 -0
  70. data/app/assets/stylesheets/thirdparty/bourbon/css3/_transition.scss +77 -0
  71. data/app/assets/stylesheets/thirdparty/bourbon/css3/_user-select.scss +3 -0
  72. data/app/assets/stylesheets/thirdparty/bourbon/functions/_color-lightness.scss +13 -0
  73. data/app/assets/stylesheets/thirdparty/bourbon/functions/_flex-grid.scss +39 -0
  74. data/app/assets/stylesheets/thirdparty/bourbon/functions/_golden-ratio.scss +3 -0
  75. data/app/assets/stylesheets/thirdparty/bourbon/functions/_grid-width.scss +13 -0
  76. data/app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss +13 -0
  77. data/app/assets/stylesheets/thirdparty/bourbon/functions/_modular-scale.scss +66 -0
  78. data/app/assets/stylesheets/thirdparty/bourbon/functions/_px-to-em.scss +13 -0
  79. data/app/assets/stylesheets/thirdparty/bourbon/functions/_px-to-rem.scss +15 -0
  80. data/app/assets/stylesheets/thirdparty/bourbon/functions/_radial-gradient.scss +23 -0
  81. data/app/assets/stylesheets/thirdparty/bourbon/functions/_strip-units.scss +5 -0
  82. data/app/assets/stylesheets/thirdparty/bourbon/functions/_tint-shade.scss +9 -0
  83. data/app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss +22 -0
  84. data/app/assets/stylesheets/thirdparty/bourbon/functions/_unpack.scss +17 -0
  85. data/app/assets/stylesheets/thirdparty/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  86. data/app/assets/stylesheets/thirdparty/bourbon/helpers/_linear-positions-parser.scss +61 -0
  87. data/app/assets/stylesheets/thirdparty/bourbon/helpers/_radial-arg-parser.scss +69 -0
  88. data/app/assets/stylesheets/thirdparty/bourbon/helpers/_radial-positions-parser.scss +18 -0
  89. data/app/assets/stylesheets/thirdparty/bourbon/helpers/_render-gradients.scss +26 -0
  90. data/app/assets/stylesheets/thirdparty/bourbon/helpers/_shape-size-stripper.scss +10 -0
  91. data/app/assets/stylesheets/thirdparty/bourbon/settings/_asset-pipeline.scss +1 -0
  92. data/app/assets/stylesheets/thirdparty/bourbon/settings/_prefixer.scss +6 -0
  93. data/app/assets/stylesheets/thirdparty/bourbon/settings/_px-to-em.scss +1 -0
  94. data/app/assets/stylesheets/thirdparty/flexbox_mixins.scss +395 -0
  95. data/app/assets/stylesheets/thirdparty/jquery.fancybox.css.erb +274 -0
  96. data/app/assets/stylesheets/thirdparty/neat/_neat-helpers.scss +7 -0
  97. data/app/assets/stylesheets/thirdparty/neat/_neat.scss +21 -0
  98. data/app/assets/stylesheets/thirdparty/neat/functions/_new-breakpoint.scss +16 -0
  99. data/app/assets/stylesheets/thirdparty/neat/functions/_private.scss +125 -0
  100. data/app/assets/stylesheets/thirdparty/neat/grid/_fill-parent.scss +7 -0
  101. data/app/assets/stylesheets/thirdparty/neat/grid/_grid.scss +5 -0
  102. data/app/assets/stylesheets/thirdparty/neat/grid/_media.scss +38 -0
  103. data/app/assets/stylesheets/thirdparty/neat/grid/_omega.scss +61 -0
  104. data/app/assets/stylesheets/thirdparty/neat/grid/_outer-container.scss +8 -0
  105. data/app/assets/stylesheets/thirdparty/neat/grid/_pad.scss +8 -0
  106. data/app/assets/stylesheets/thirdparty/neat/grid/_private.scss +43 -0
  107. data/app/assets/stylesheets/thirdparty/neat/grid/_reset.scss +12 -0
  108. data/app/assets/stylesheets/thirdparty/neat/grid/_row.scss +17 -0
  109. data/app/assets/stylesheets/thirdparty/neat/grid/_shift.scss +16 -0
  110. data/app/assets/stylesheets/thirdparty/neat/grid/_span-columns.scss +43 -0
  111. data/app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss +57 -0
  112. data/app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss +41 -0
  113. data/app/assets/stylesheets/thirdparty/neat/settings/_grid.scss +7 -0
  114. data/app/assets/stylesheets/thirdparty/neat/settings/_visual-grid.scss +5 -0
  115. data/app/assets/stylesheets/thirdparty/normalize.css +425 -0
  116. data/app/assets/stylesheets/thirdparty/nprogress.css +81 -0
  117. data/app/assets/stylesheets/thirdparty/typecsset.scss +352 -0
  118. data/app/assets/stylesheets/thirdparty/video-js.css +775 -0
  119. data/smock.gemspec +2 -2
  120. metadata +121 -5
@@ -0,0 +1,274 @@
1
+ /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
2
+ .fancybox-wrap,
3
+ .fancybox-skin,
4
+ .fancybox-outer,
5
+ .fancybox-inner,
6
+ .fancybox-image,
7
+ .fancybox-wrap iframe,
8
+ .fancybox-wrap object,
9
+ .fancybox-nav,
10
+ .fancybox-nav span,
11
+ .fancybox-tmp
12
+ {
13
+ padding: 0;
14
+ margin: 0;
15
+ border: 0;
16
+ outline: none;
17
+ vertical-align: top;
18
+ }
19
+
20
+ .fancybox-wrap {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ z-index: 8020;
25
+ }
26
+
27
+ .fancybox-skin {
28
+ position: relative;
29
+ background: #f9f9f9;
30
+ color: #444;
31
+ text-shadow: none;
32
+ -webkit-border-radius: 4px;
33
+ -moz-border-radius: 4px;
34
+ border-radius: 4px;
35
+ }
36
+
37
+ .fancybox-opened {
38
+ z-index: 8030;
39
+ }
40
+
41
+ .fancybox-opened .fancybox-skin {
42
+ -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
43
+ -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
44
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
45
+ }
46
+
47
+ .fancybox-outer, .fancybox-inner {
48
+ position: relative;
49
+ }
50
+
51
+ .fancybox-inner {
52
+ overflow: hidden;
53
+ }
54
+
55
+ .fancybox-type-iframe .fancybox-inner {
56
+ -webkit-overflow-scrolling: touch;
57
+ }
58
+
59
+ .fancybox-error {
60
+ color: #444;
61
+ font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
62
+ margin: 0;
63
+ padding: 15px;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ .fancybox-image, .fancybox-iframe {
68
+ display: block;
69
+ width: 100%;
70
+ height: 100%;
71
+ }
72
+
73
+ .fancybox-image {
74
+ max-width: 100%;
75
+ max-height: 100%;
76
+ }
77
+
78
+ #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
79
+ background-image: url("<%= image_path 'fancybox_sprite.png' %>");
80
+ }
81
+
82
+ #fancybox-loading {
83
+ position: fixed;
84
+ top: 50%;
85
+ left: 50%;
86
+ margin-top: -22px;
87
+ margin-left: -22px;
88
+ background-position: 0 -108px;
89
+ opacity: 0.8;
90
+ cursor: pointer;
91
+ z-index: 8060;
92
+ }
93
+
94
+ #fancybox-loading div {
95
+ width: 44px;
96
+ height: 44px;
97
+ background: url("<%= image_path 'fancybox_loading.gif' %>") center center no-repeat;
98
+ }
99
+
100
+ .fancybox-close {
101
+ position: absolute;
102
+ top: -18px;
103
+ right: -18px;
104
+ width: 36px;
105
+ height: 36px;
106
+ cursor: pointer;
107
+ z-index: 8040;
108
+ }
109
+
110
+ .fancybox-nav {
111
+ position: absolute;
112
+ top: 0;
113
+ width: 40%;
114
+ height: 100%;
115
+ cursor: pointer;
116
+ text-decoration: none;
117
+ background: transparent url("<%= image_path 'blank.gif' %>"); /* helps IE */
118
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
119
+ z-index: 8040;
120
+ }
121
+
122
+ .fancybox-prev {
123
+ left: 0;
124
+ }
125
+
126
+ .fancybox-next {
127
+ right: 0;
128
+ }
129
+
130
+ .fancybox-nav span {
131
+ position: absolute;
132
+ top: 50%;
133
+ width: 36px;
134
+ height: 34px;
135
+ margin-top: -18px;
136
+ cursor: pointer;
137
+ z-index: 8040;
138
+ visibility: hidden;
139
+ }
140
+
141
+ .fancybox-prev span {
142
+ left: 10px;
143
+ background-position: 0 -36px;
144
+ }
145
+
146
+ .fancybox-next span {
147
+ right: 10px;
148
+ background-position: 0 -72px;
149
+ }
150
+
151
+ .fancybox-nav:hover span {
152
+ visibility: visible;
153
+ }
154
+
155
+ .fancybox-tmp {
156
+ position: absolute;
157
+ top: -99999px;
158
+ left: -99999px;
159
+ visibility: hidden;
160
+ max-width: 99999px;
161
+ max-height: 99999px;
162
+ overflow: visible !important;
163
+ }
164
+
165
+ /* Overlay helper */
166
+
167
+ .fancybox-lock {
168
+ overflow: hidden !important;
169
+ width: auto;
170
+ }
171
+
172
+ .fancybox-lock body {
173
+ overflow: hidden !important;
174
+ }
175
+
176
+ .fancybox-lock-test {
177
+ overflow-y: hidden !important;
178
+ }
179
+
180
+ .fancybox-overlay {
181
+ position: absolute;
182
+ top: 0;
183
+ left: 0;
184
+ overflow: hidden;
185
+ display: none;
186
+ z-index: 8010;
187
+ background: url("<%= image_path 'fancybox_overlay.png' %>");
188
+ }
189
+
190
+ .fancybox-overlay-fixed {
191
+ position: fixed;
192
+ bottom: 0;
193
+ right: 0;
194
+ }
195
+
196
+ .fancybox-lock .fancybox-overlay {
197
+ overflow: auto;
198
+ overflow-y: scroll;
199
+ }
200
+
201
+ /* Title helper */
202
+
203
+ .fancybox-title {
204
+ visibility: hidden;
205
+ font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
206
+ position: relative;
207
+ text-shadow: none;
208
+ z-index: 8050;
209
+ }
210
+
211
+ .fancybox-opened .fancybox-title {
212
+ visibility: visible;
213
+ }
214
+
215
+ .fancybox-title-float-wrap {
216
+ position: absolute;
217
+ bottom: 0;
218
+ right: 50%;
219
+ margin-bottom: -35px;
220
+ z-index: 8050;
221
+ text-align: center;
222
+ }
223
+
224
+ .fancybox-title-float-wrap .child {
225
+ display: inline-block;
226
+ margin-right: -100%;
227
+ padding: 2px 20px;
228
+ background: transparent; /* Fallback for web browsers that doesn't support RGBa */
229
+ background: rgba(0, 0, 0, 0.8);
230
+ -webkit-border-radius: 15px;
231
+ -moz-border-radius: 15px;
232
+ border-radius: 15px;
233
+ text-shadow: 0 1px 2px #222;
234
+ color: #FFF;
235
+ font-weight: bold;
236
+ line-height: 24px;
237
+ white-space: nowrap;
238
+ }
239
+
240
+ .fancybox-title-outside-wrap {
241
+ position: relative;
242
+ margin-top: 10px;
243
+ color: #fff;
244
+ }
245
+
246
+ .fancybox-title-inside-wrap {
247
+ padding-top: 10px;
248
+ }
249
+
250
+ .fancybox-title-over-wrap {
251
+ position: absolute;
252
+ bottom: 0;
253
+ left: 0;
254
+ color: #fff;
255
+ padding: 10px;
256
+ background: #000;
257
+ background: rgba(0, 0, 0, .8);
258
+ }
259
+
260
+ /*Retina graphics!*/
261
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
262
+ only screen and (min--moz-device-pixel-ratio: 1.5),
263
+ only screen and (min-device-pixel-ratio: 1.5){
264
+
265
+ #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
266
+ background-image: url("<%= image_path 'fancybox_sprite@2x.png' %>");
267
+ background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
268
+ }
269
+
270
+ #fancybox-loading div {
271
+ background-image: url("<%= image_path 'fancybox_loading@2x.gif' %>");
272
+ background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
273
+ }
274
+ }
@@ -0,0 +1,7 @@
1
+ // Functions
2
+ @import "functions/private";
3
+ @import "functions/new-breakpoint";
4
+
5
+ // Settings
6
+ @import "settings/grid";
7
+ @import "settings/visual-grid";
@@ -0,0 +1,21 @@
1
+ // Bourbon Neat 1.6.0.pre
2
+ // MIT Licensed
3
+ // Copyright (c) 2012-2013 thoughtbot, inc.
4
+
5
+ // Helpers
6
+ @import "neat-helpers";
7
+
8
+ // Grid
9
+ @import "grid/private";
10
+ @import "grid/reset";
11
+ @import "grid/grid";
12
+ @import "grid/omega";
13
+ @import "grid/outer-container";
14
+ @import "grid/span-columns";
15
+ @import "grid/row";
16
+ @import "grid/shift";
17
+ @import "grid/pad";
18
+ @import "grid/fill-parent";
19
+ @import "grid/media";
20
+ @import "grid/to-deprecate";
21
+ @import "grid/visual-grid";
@@ -0,0 +1,16 @@
1
+ @function new-breakpoint($query:$feature $value $columns, $total-columns: $grid-columns) {
2
+
3
+ @if length($query) == 1 {
4
+ $query: $default-feature nth($query, 1) $total-columns;
5
+ }
6
+
7
+ @else if length($query) % 2 == 0 {
8
+ $query: append($query, $total-columns);
9
+ }
10
+
11
+ @if not belongs-to($query, $visual-grid-breakpoints) {
12
+ $visual-grid-breakpoints: append($visual-grid-breakpoints, $query, comma) !global;
13
+ }
14
+
15
+ @return $query;
16
+ }
@@ -0,0 +1,125 @@
1
+ // Checks if a number is even
2
+ @function is-even($int) {
3
+ @if $int%2 == 0 {
4
+ @return true;
5
+ }
6
+
7
+ @return false;
8
+ }
9
+
10
+ // Checks if an element belongs to a list
11
+ @function belongs-to($tested-item, $list) {
12
+ @each $item in $list {
13
+ @if $item == $tested-item {
14
+ @return true;
15
+ }
16
+ }
17
+
18
+ @return false;
19
+ }
20
+
21
+ // Contains display value
22
+ @function contains-display-value($query) {
23
+ @if belongs-to(table, $query) or belongs-to(block, $query) or belongs-to(inline-block, $query) or belongs-to(inline, $query) {
24
+ @return true;
25
+ }
26
+
27
+ @return false;
28
+ }
29
+
30
+ // Parses the first argument of span-columns()
31
+ @function container-span($span: $span) {
32
+ @if length($span) == 3 {
33
+ $container-columns: nth($span, 3);
34
+ @return $container-columns;
35
+ }
36
+
37
+ @else if length($span) == 2 {
38
+ $container-columns: nth($span, 2);
39
+ @return $container-columns;
40
+ }
41
+
42
+ @else {
43
+ @return $grid-columns;
44
+ }
45
+ }
46
+
47
+ @function container-shift($shift: $shift) {
48
+ $parent-columns: $grid-columns !global !default;
49
+
50
+ @if length($shift) == 3 {
51
+ $container-columns: nth($shift, 3);
52
+ @return $container-columns;
53
+ }
54
+
55
+ @else if length($shift) == 2 {
56
+ $container-columns: nth($shift, 2);
57
+ @return $container-columns;
58
+ }
59
+
60
+ @else {
61
+ @return $parent-columns;
62
+ }
63
+ }
64
+
65
+ // Generates a striped background
66
+ @function gradient-stops($grid-columns, $color: $visual-grid-color) {
67
+ $transparent: rgba(0,0,0,0);
68
+
69
+ $column-width: flex-grid(1, $grid-columns);
70
+ $gutter-width: flex-gutter($grid-columns);
71
+ $column-offset: $column-width;
72
+
73
+ $values: ($transparent 0, $color 0);
74
+
75
+ @for $i from 1 to $grid-columns*2 {
76
+ @if is-even($i) {
77
+ $values: append($values, $transparent $column-offset, comma);
78
+ $values: append($values, $color $column-offset, comma);
79
+ $column-offset: $column-offset + $column-width;
80
+ }
81
+
82
+ @else {
83
+ $values: append($values, $color $column-offset, comma);
84
+ $values: append($values, $transparent $column-offset, comma);
85
+ $column-offset: $column-offset + $gutter-width;
86
+ }
87
+ }
88
+
89
+ @return $values;
90
+ }
91
+
92
+ // Layout direction
93
+ @function get-direction($layout, $default) {
94
+ $direction: nil;
95
+
96
+ @if $layout == LTR or $layout == RTL {
97
+ $direction: direction-from-layout($layout);
98
+ } @else {
99
+ $direction: direction-from-layout($default);
100
+ }
101
+
102
+ @return $direction;
103
+ }
104
+
105
+ @function direction-from-layout($layout) {
106
+ $direction: nil;
107
+
108
+ @if $layout == LTR {
109
+ $direction: right;
110
+ } @else {
111
+ $direction: left;
112
+ }
113
+
114
+ @return $direction;
115
+ }
116
+
117
+ @function get-opposite-direction($direction) {
118
+ $opposite-direction: left;
119
+
120
+ @if $direction == left {
121
+ $opposite-direction: right;
122
+ }
123
+
124
+ @return $opposite-direction;
125
+ }