ratchet_design 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ratchet/_esvg.js +72 -0
  3. data/app/assets/javascripts/ratchet/_icons.js +19 -0
  4. data/app/assets/javascripts/ratchet/_topology.js +19 -0
  5. data/app/assets/javascripts/ratchet/base/form.js +4 -4
  6. data/app/assets/javascripts/ratchet/core.js +15 -8
  7. data/app/assets/javascripts/ratchet/enhancement/{_collapse.js → collapse.js} +3 -3
  8. data/app/assets/javascripts/ratchet/enhancement/lightbox.js +52 -118
  9. data/app/assets/javascripts/ratchet/enhancement/modal.js +185 -0
  10. data/app/assets/javascripts/ratchet/enhancement/smooth-scroll.js +21 -0
  11. data/app/assets/javascripts/ratchet/utility/once.js +42 -0
  12. data/app/assets/stylesheets/ratchet/_colors.yml +54 -0
  13. data/app/assets/stylesheets/ratchet/_core.scss +8 -1
  14. data/app/assets/stylesheets/ratchet/base/_button.scss +22 -31
  15. data/app/assets/stylesheets/ratchet/base/_document.scss +66 -53
  16. data/app/assets/stylesheets/ratchet/base/_form.scss +0 -1
  17. data/app/assets/stylesheets/ratchet/base/_list.scss +6 -15
  18. data/app/assets/stylesheets/ratchet/base/_media.scss +22 -6
  19. data/app/assets/stylesheets/ratchet/base/_section.scss +8 -257
  20. data/app/assets/stylesheets/ratchet/base/_slider.scss +388 -0
  21. data/app/assets/stylesheets/ratchet/base/_table.scss +1 -2
  22. data/app/assets/stylesheets/ratchet/base/_text.scss +13 -29
  23. data/app/assets/stylesheets/ratchet/enhancement/_deployments.scss +26 -0
  24. data/app/assets/stylesheets/ratchet/enhancement/_hero.scss +1 -1
  25. data/app/assets/stylesheets/ratchet/enhancement/_lightbox.scss +35 -76
  26. data/app/assets/stylesheets/ratchet/enhancement/_modal.scss +125 -0
  27. data/app/assets/stylesheets/ratchet/utility/_animations.scss +8 -0
  28. data/app/assets/stylesheets/ratchet/utility/_color.scss +25 -105
  29. data/app/assets/stylesheets/ratchet/utility/_global.scss +30 -24
  30. data/app/assets/stylesheets/ratchet/utility/_grid.scss +152 -15
  31. data/app/assets/svgs/ratchet/_icons/backup.svg +9 -0
  32. data/app/assets/svgs/ratchet/_icons/block.svg +7 -0
  33. data/app/assets/svgs/ratchet/_icons/compose-logomark.svg +8 -0
  34. data/app/assets/svgs/ratchet/_icons/connecting-in.svg +46 -0
  35. data/app/assets/svgs/ratchet/_icons/connecting-out.svg +33 -0
  36. data/app/assets/svgs/ratchet/_icons/customer-buffer.svg +28 -0
  37. data/app/assets/svgs/ratchet/_icons/customer-citrix.svg +12 -0
  38. data/app/assets/svgs/ratchet/_icons/customer-guardian.svg +31 -0
  39. data/app/assets/svgs/ratchet/_icons/customer-roximity.svg +16 -0
  40. data/app/assets/svgs/ratchet/_icons/customer-upworthy.svg +13 -0
  41. data/app/assets/svgs/ratchet/_icons/db-money.svg +31 -0
  42. data/app/assets/svgs/ratchet/_icons/deployment.svg +1 -0
  43. data/app/assets/svgs/ratchet/{facebook.svg → _icons/facebook.svg} +0 -0
  44. data/app/assets/svgs/ratchet/_icons/gear.svg +12 -0
  45. data/app/assets/svgs/ratchet/{github.svg → _icons/github.svg} +0 -0
  46. data/app/assets/svgs/ratchet/{google-plus.svg → _icons/google-plus.svg} +0 -0
  47. data/app/assets/svgs/ratchet/{ibm.svg → _icons/ibm.svg} +0 -0
  48. data/app/assets/svgs/ratchet/{inbox.svg → _icons/inbox.svg} +0 -0
  49. data/app/assets/svgs/ratchet/_icons/index.svg +3 -0
  50. data/app/assets/svgs/ratchet/_icons/keylock.svg +8 -0
  51. data/app/assets/svgs/ratchet/_icons/life-preserver.svg +17 -0
  52. data/app/assets/svgs/ratchet/{linkedin.svg → _icons/linkedin.svg} +0 -0
  53. data/app/assets/svgs/ratchet/_icons/metrics.svg +7 -0
  54. data/app/assets/svgs/ratchet/_icons/money-stack.svg +60 -0
  55. data/app/assets/svgs/ratchet/_icons/notepad.svg +12 -0
  56. data/app/assets/svgs/ratchet/_icons/notepad2.svg +14 -0
  57. data/app/assets/svgs/ratchet/_icons/one-click.svg +6 -0
  58. data/app/assets/svgs/ratchet/{ratchet.svg → _icons/ratchet.svg} +0 -0
  59. data/app/assets/svgs/ratchet/_icons/reliability.svg +12 -0
  60. data/app/assets/svgs/ratchet/_icons/safe.svg +26 -0
  61. data/app/assets/svgs/ratchet/_icons/scaling.svg +16 -0
  62. data/app/assets/svgs/ratchet/{search.svg → _icons/search.svg} +0 -0
  63. data/app/assets/svgs/ratchet/{subscribe.svg → _icons/subscribe.svg} +0 -0
  64. data/app/assets/svgs/ratchet/{twitter.svg → _icons/twitter.svg} +0 -0
  65. data/app/assets/svgs/ratchet/{y-combinator.svg → _icons/y-combinator.svg} +0 -0
  66. data/app/assets/svgs/ratchet/_icons/youtube.svg +3 -0
  67. data/app/assets/svgs/ratchet/_topology/arbiter.svg +1 -0
  68. data/app/assets/svgs/ratchet/_topology/backup.svg +1 -0
  69. data/app/assets/svgs/ratchet/_topology/config.svg +1 -0
  70. data/app/assets/svgs/ratchet/_topology/haproxy-2.svg +1 -0
  71. data/app/assets/svgs/ratchet/_topology/haproxy-storage.svg +1 -0
  72. data/app/assets/svgs/ratchet/_topology/haproxy.svg +1 -0
  73. data/app/assets/svgs/ratchet/_topology/memory.svg +1 -0
  74. data/app/assets/svgs/ratchet/_topology/portal-2.svg +1 -0
  75. data/app/assets/svgs/ratchet/_topology/portal.svg +1 -0
  76. data/app/assets/svgs/ratchet/_topology/sentinel-memory.svg +1 -0
  77. data/app/assets/svgs/ratchet/_topology/sentinel.svg +1 -0
  78. data/app/assets/svgs/ratchet/_topology/storage.svg +1 -0
  79. data/app/helpers/ratchet/application_helper.rb +10 -2
  80. data/app/helpers/ratchet/form_helper.rb +84 -1
  81. data/app/helpers/ratchet/icon_helper.rb +113 -0
  82. data/app/helpers/ratchet/pricing_helper.rb +133 -0
  83. data/app/helpers/ratchet/toggle_nav_helper.rb +101 -0
  84. data/app/views/layouts/ratchet/default.html.slim +3 -3
  85. data/app/views/shared/ratchet/_defs.html.slim +30 -88
  86. data/app/views/shared/ratchet/_fonts.html.slim +88 -0
  87. data/app/views/shared/ratchet/_footer.html.slim +1 -1
  88. data/app/views/shared/ratchet/_header.html.slim +5 -5
  89. data/app/views/shared/ratchet/_icons.html.slim +190 -5
  90. data/lib/ratchet_design/config_data.rb +29 -0
  91. data/lib/ratchet_design/version.rb +1 -1
  92. data/lib/ratchet_design.rb +27 -10
  93. data/public/core-0.1.20.js +22627 -0
  94. data/public/{fonts-woff-0.1.19.css → fonts-woff-0.1.20.css} +0 -0
  95. data/public/{fonts-woff2-0.1.19.css → fonts-woff2-0.1.20.css} +0 -0
  96. metadata +84 -22
  97. data/app/assets/javascripts/ratchet/_svg.js +0 -55
  98. data/public/core-0.1.19.js +0 -138
  99. data/public/core-0.1.19.js.gz +0 -0
  100. data/public/core-0.1.19.map.json +0 -1
  101. data/public/fonts-woff-0.1.19.css.gz +0 -0
  102. data/public/fonts-woff2-0.1.19.css.gz +0 -0
@@ -7,15 +7,9 @@
7
7
  * ------------------------------------- */
8
8
 
9
9
  // Remove styling from unordered lists
10
- @mixin unstyle($reset-padding: on) {
10
+ @mixin unstyle {
11
11
  list-style: none;
12
-
13
- li {
14
- text-indent: 0;
15
- @if $reset-padding == on {
16
- padding-left: 0;
17
- }
18
- }
12
+ padding-left: 0;
19
13
  }
20
14
 
21
15
  // Unstyle list
@@ -27,13 +21,8 @@
27
21
  %list-style {
28
22
  padding-top: 9px;
29
23
  margin-bottom: 21px;
30
- list-style-position: inside;
31
-
32
- // Horizontal alignment
33
- li {
34
- text-indent: -20px;
35
- padding-left: 20px;
36
- }
24
+ margin-left: 0;
25
+ padding-left: 1em;
37
26
  }
38
27
 
39
28
  /* ===================================== *
@@ -85,6 +74,8 @@ ol {
85
74
  line-height: 0;
86
75
  font-weight: 700;
87
76
  margin-right: 8px;
77
+ margin-left: -1em;
78
+ width: 1em;
88
79
  }
89
80
  }
90
81
 
@@ -6,14 +6,26 @@
6
6
  * i. Utility
7
7
  * ------------------------------------- */
8
8
 
9
+ $embed-padding: 3vw;
10
+
9
11
  // Fluid Embeds
10
- @mixin embed {
11
- width: 100%;
12
- // height: calc(9 / 16 * #{$content-width});
12
+ @mixin viewport-embed {
13
+ position: relative;
14
+ width: 100vw - $embed-padding * 2;
15
+ height: calc(9 / 16 * (100vw - #{$embed-padding * 2}));
16
+
17
+ @media (max-height: 56.25vw + $embed-padding) {
18
+ width: calc(16 / 9 * (100vh - #{$embed-padding * 2}));
19
+ height: calc(100vh - #{$embed-padding * 2});
20
+ }
13
21
 
14
- // @media (max-width: $content-width + $content-padding * 2) {
15
- // height: calc(9 / 16 * 100vw - #{$content-padding});
16
- // }
22
+ iframe,
23
+ object,
24
+ embed {
25
+ position: absolute;
26
+ width: 100%;
27
+ height: 100%;
28
+ }
17
29
  }
18
30
 
19
31
  // Image caption mixin
@@ -38,4 +50,8 @@ video {
38
50
  max-width: 100%;
39
51
  height: auto;
40
52
  vertical-align: top;
53
+ }
54
+
55
+ .viewport-embed {
56
+ @include viewport-embed;
41
57
  }
@@ -2,264 +2,15 @@
2
2
  * Contrast section
3
3
  * -------------------------------------------------------------------------- */
4
4
 
5
- /*
6
- * Variables that we need to account for:
7
- * Layout
8
- * Spacing
9
- * Background
10
- * Angle Direction
11
- * One Angle
12
- * Background Image
13
- */
5
+ .container {
6
+ padding: vr(5) calc(50% - #{($site-width/2)}); /* 16em: width/2 */
14
7
 
15
- /* ===================================== *
16
- * a. Utilities
17
- * ------------------------------------- */
18
-
19
- $section-gutter-none: 0;
20
- $section-gutter-xsmall: 5%;
21
- $section-gutter-small: 15%;
22
- $section-gutter-large: 30%;
23
-
24
- @mixin section-offset($num) {
25
- .section-offset-#{$num} {
26
- margin-top: $num * -1%;
8
+ @include until($breakpoint-lg + 30px) {
9
+ padding: vr(4) vr(2);
27
10
  }
28
- }
29
-
30
- @include section-offset(10);
31
- @include section-offset(20);
32
- @include section-offset(30);
33
- @include section-offset(40);
34
- @include section-offset(50);
35
11
 
36
- /* ===================================== *
37
- * b. Common
38
- * ------------------------------------- */
39
-
40
- // Contrast and Angle Sections
41
- .contrast-section,
42
- .angle-section {
43
- padding-top: vr(4);
44
- padding-bottom: vr(6);
45
- position: relative;
46
-
47
- // Background
48
- &:before {
49
- height: calc(100% + .57735027 * 100vw - 1px); // .57735027 = tangent of 30°
50
- top: 0;
51
- content: '';
52
- width: 100vw;
53
- position: absolute;
54
- left: calc(-50vw + 50%);
55
- z-index: -1;
12
+ &.short {
13
+ padding-top: vr(1);
14
+ padding-bottom: vr(1);
56
15
  }
57
- }
58
-
59
- // Angle and Block Heros
60
- // .angle-hero,
61
- // .block-hero {
62
- // position: relative;
63
- // // overflow: hidden;
64
- // color: $white;
65
- // max-height: 1400px;
66
- // text-align: center;
67
-
68
- // &:before {
69
- // bottom: 0;
70
- // z-index: -3;
71
- // content: '';
72
- // width: 100vw;
73
- // position: absolute;
74
- // left: calc(-50vw + 50%);
75
- // }
76
-
77
- // // Hero SVG
78
- // figure {
79
- // bottom: -11%;
80
- // overflow: hidden;
81
- // position: absolute;
82
- // width: 100%;
83
- // z-index: -1;
84
-
85
- // @media (max-width: $breakpoint) {
86
- // @include hidden;
87
- // }
88
- // }
89
- // }
90
-
91
- // // Angle Hero
92
- // .angle-hero {
93
- // // Large Gutter is default for hero to completely set copy within angles
94
- // padding-top: $section-gutter-large;
95
- // padding-bottom: $section-gutter-large;
96
- // margin-top: -$section-gutter-large;
97
-
98
- // &:before {
99
- // top: (-$section-gutter-large - $section-gutter-xsmall);
100
- // height: 100% + $section-gutter-large;
101
- // }
102
-
103
- // // // Adjust height
104
- // // &.left:before,
105
- // // &.right:before {
106
- // // height: 100%;
107
- // // @include until($breakpoint) {
108
- // // height: 110% + $section-gutter-xsmall;
109
- // // };
110
- // // @include between($breakpoint-lg, 1800px) {
111
- // // height: 100% - $section-gutter-xsmall;
112
- // // };
113
- // // }
114
- // }
115
-
116
- // // Block Hero (No Angle)
117
- // .block-hero {
118
- // padding-top: $section-gutter-large * 2;
119
- // padding-bottom: 15%;
120
- // margin-top: -$section-gutter-large * 2;
121
- // margin-bottom: vr(4); // 60px
122
-
123
- // &:before {
124
- // top: 0;
125
- // height: 100%;
126
- // }
127
-
128
- // @include at-least($breakpoint-lg) {
129
- // padding-bottom: 10%;
130
- // };
131
- // }
132
-
133
- // Default Angle Direction - RTL
134
- .angle-section {
135
- &:before { transform: skewY(-$deg); }
136
- }
137
-
138
- // Reverse Angle Direction - LTR
139
- .angle-section.reverse,
140
- .angle-hero.right {
141
- &:before { transform: skewY($deg); }
142
- }
143
-
144
- // // Break full angle ** MAKE INTO MIXIN FOR VARIATIONS ****
145
- // .angle-break {
146
- // background: $white;
147
- // // Need better math here?
148
- // bottom: -95%;
149
- // content: '';
150
- // display: block;
151
- // height: 100%;
152
- // right: 0;
153
- // position: absolute;
154
- // width: 100%;
155
- // transform: skewY(30deg);
156
-
157
- // &.reverse {
158
- // transform: skewY(-30deg);
159
- // }
160
- // }
161
-
162
- .oversized {
163
- &:before{
164
- height: 140%;
165
- }
166
- }
167
-
168
-
169
- /* ===================================== *
170
- * c. Specific Hero SVG Styling
171
- * ------------------------------------- */
172
-
173
- // // Blank isometric grid SVG positioning within hero
174
- // .isometric-grid-hero-bg {
175
- // figure {
176
- // overflow: visible;
177
- // }
178
-
179
- // svg {
180
- // margin-left: -136%;
181
- // margin-bottom: -20%;
182
- // width: 275%;
183
- // }
184
-
185
- // // Different positioning when hero is reversed
186
- // &.reverse {
187
- // svg {
188
- // margin-left: -50%;
189
- // }
190
- // }
191
- // }
192
-
193
- .mongodb-leaves {
194
- svg {
195
- width: 100%;
196
- }
197
- }
198
-
199
- // // Cube Stack SVG positioning within hero
200
- // .cube-stack-hero-bg {
201
- // padding-bottom: 33%;
202
-
203
- // svg {
204
- // margin-left: -6%;
205
- // width: 112%;
206
-
207
- // // Prevent svg from continuing to scale
208
- // @media (min-width: 1500px) {
209
- // max-width: 1500px;
210
- // margin: 0 auto;
211
- // }
212
- // }
213
-
214
- // // Hide svg overflow - right
215
- // &:after {
216
- // background: $white;
217
- // bottom: -95%;
218
- // content: '';
219
- // display: block;
220
- // height: 100%;
221
- // left: 0;
222
- // position: absolute;
223
- // width: 100%;
224
- // transform: skewY(-30deg);
225
- // }
226
- // }
227
-
228
- /* REVISIT BELOW */
229
-
230
- // Need to rethink the gutter for sections
231
- // // No Gutter for Sections
232
- // &.no-gutter {
233
- // padding: {top: $section-gutter-none; bottom: $section-gutter-none;}
234
- // }
235
-
236
- // // Xsmall Gutter for Sections
237
- // &.xsmall-gutter {
238
- // padding: {top: $section-gutter-xsmall; bottom: $section-gutter-xsmall;}
239
- // }
240
-
241
- // // Small Gutter for Sections
242
- // &.small-gutter {
243
- // padding: {top: $section-gutter-small; bottom: $section-gutter-small;}
244
- // }
245
-
246
- // // Large Gutter for Sections
247
- // &.large-gutter {
248
- // padding: {top: $section-gutter-large; bottom: $section-gutter-large;}
249
- // }
250
-
251
- // Need to rethink the gutters for heros
252
- // // No Gutter for Hero
253
- // &.no-gutter {
254
- // padding-bottom: $section-gutter-none;
255
- // }
256
-
257
- // // Xsmall Gutter for Hero
258
- // &.xsmall-gutter {
259
- // padding-bottom: $section-gutter-xsmall;
260
- // }
261
-
262
- // // Small Gutter for Hero
263
- // &.small-gutter {
264
- // padding-bottom: $section-gutter-small;
265
- // }
16
+ }