modularis 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +24 -0
  3. data/.idea/scopes/scope_settings.xml +5 -0
  4. data/.rbenv-version +1 -0
  5. data/CONTRIBUTING.md +53 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +19 -0
  8. data/Gruntfile.js +27 -0
  9. data/LICENSE +22 -0
  10. data/README.md +27 -0
  11. data/Rakefile +2 -0
  12. data/docs/CHANGELOG.md +260 -0
  13. data/docs/Capfile +4 -0
  14. data/docs/Gemfile +13 -0
  15. data/docs/Gemfile.lock +45 -0
  16. data/docs/Procfile +2 -0
  17. data/docs/README.md +1 -0
  18. data/docs/_sidebar-components.html.erb +115 -0
  19. data/docs/_sidebar.html.erb +115 -0
  20. data/docs/changelog.html.erb +33 -0
  21. data/docs/compile.rb +34 -0
  22. data/docs/components/alert-boxes.html.erb +204 -0
  23. data/docs/components/block-grid.html.erb +132 -0
  24. data/docs/components/breadcrumbs.html.erb +156 -0
  25. data/docs/components/button-groups.html.erb +230 -0
  26. data/docs/components/buttons.html.erb +222 -0
  27. data/docs/components/clearing.html.erb +152 -0
  28. data/docs/components/custom-forms.html.erb +309 -0
  29. data/docs/components/dropdown-buttons.html.erb +235 -0
  30. data/docs/components/dropdown.html.erb +188 -0
  31. data/docs/components/flex-video.html.erb +95 -0
  32. data/docs/components/forms.html.erb +477 -0
  33. data/docs/components/global.html.erb +92 -0
  34. data/docs/components/grid.html.erb +366 -0
  35. data/docs/components/inline-lists.html.erb +91 -0
  36. data/docs/components/joyride.html.erb +183 -0
  37. data/docs/components/keystrokes.html.erb +76 -0
  38. data/docs/components/kitchen-sink.html.erb +870 -0
  39. data/docs/components/labels.html.erb +102 -0
  40. data/docs/components/magellan.html.erb +86 -0
  41. data/docs/components/orbit.html.erb +276 -0
  42. data/docs/components/pagination.html.erb +183 -0
  43. data/docs/components/panels.html.erb +123 -0
  44. data/docs/components/pricing-tables.html.erb +156 -0
  45. data/docs/components/progress-bars.html.erb +123 -0
  46. data/docs/components/reveal.html.erb +162 -0
  47. data/docs/components/section.html.erb +496 -0
  48. data/docs/components/side-nav.html.erb +124 -0
  49. data/docs/components/split-buttons.html.erb +220 -0
  50. data/docs/components/sub-nav.html.erb +122 -0
  51. data/docs/components/switch.html.erb +290 -0
  52. data/docs/components/tables.html.erb +125 -0
  53. data/docs/components/thumbnails.html.erb +89 -0
  54. data/docs/components/tooltips.html.erb +75 -0
  55. data/docs/components/top-bar.html.erb +283 -0
  56. data/docs/components/type.html.erb +396 -0
  57. data/docs/components/visibility.html.erb +110 -0
  58. data/docs/config/deploy.rb +36 -0
  59. data/docs/config.ru +12 -0
  60. data/docs/controller.rb +53 -0
  61. data/docs/css/_coderay.scss +116 -0
  62. data/docs/css/_settings.scss +1 -0
  63. data/docs/css/docs.scss +185 -0
  64. data/docs/css/normalize.scss +396 -0
  65. data/docs/css/qunit-composite.css +13 -0
  66. data/docs/css/qunit.css +235 -0
  67. data/docs/faq.html.erb +63 -0
  68. data/docs/img/demos/demo1-th.jpg +0 -0
  69. data/docs/img/demos/demo1.jpg +0 -0
  70. data/docs/img/demos/demo2-th.jpg +0 -0
  71. data/docs/img/demos/demo2.jpg +0 -0
  72. data/docs/img/demos/demo3-th.jpg +0 -0
  73. data/docs/img/demos/demo3.jpg +0 -0
  74. data/docs/img/demos/demo4-th.jpg +0 -0
  75. data/docs/img/demos/demo4.jpg +0 -0
  76. data/docs/img/demos/demo5-th.jpg +0 -0
  77. data/docs/img/demos/demo5.jpg +0 -0
  78. data/docs/index.html.erb +285 -0
  79. data/docs/javascript.html.erb +134 -0
  80. data/docs/js/docs.js +3 -0
  81. data/docs/js/qunit-composite.js +105 -0
  82. data/docs/js/qunit.js +1977 -0
  83. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  84. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  85. data/docs/js/tests/tooltips/tooltips.html +39 -0
  86. data/docs/js/tests/tooltips/tooltips.js +11 -0
  87. data/docs/layout.html.erb +128 -0
  88. data/docs/media-queries.html.erb +96 -0
  89. data/docs/rails.html.erb +76 -0
  90. data/docs/rtl.html.erb +53 -0
  91. data/docs/sass.html.erb +1295 -0
  92. data/docs/support.html.erb +143 -0
  93. data/docs/test/_test-scripts.html.erb +36 -0
  94. data/docs/test/cards.html.erb +77 -0
  95. data/docs/test/flexbox-grid.html.erb +68 -0
  96. data/docs/test/flip-nav.html.erb +54 -0
  97. data/docs/test/layout.html.erb +15 -0
  98. data/docs/test/off-canvas1.html.erb +64 -0
  99. data/docs/test/off-canvas2.html.erb +75 -0
  100. data/docs/test/off-canvas3.html.erb +65 -0
  101. data/docs/test_layout.html.erb +128 -0
  102. data/js/modularis/index.js +18 -0
  103. data/js/vendor/custom.modernizr.js +4 -0
  104. data/js/vendor/jquery.js +9597 -0
  105. data/js/vendor/zepto.js +1884 -0
  106. data/lib/modularis/engine.rb +18 -0
  107. data/lib/modularis/generators/USAGE +15 -0
  108. data/lib/modularis/generators/install_generator.rb +54 -0
  109. data/lib/modularis/generators/templates/application.html.erb +46 -0
  110. data/lib/modularis/generators/templates/application.html.haml +31 -0
  111. data/lib/modularis/generators/templates/application.html.slim +28 -0
  112. data/lib/modularis/version.rb +3 -0
  113. data/lib/modularis.rb +17 -0
  114. data/modularis.gemspec +20 -0
  115. data/package.json +15 -0
  116. data/scss/compagecss/_variables.scss +1192 -0
  117. data/scss/compagecss/components/_alert-boxes.scss +106 -0
  118. data/scss/compagecss/components/_block-grid.scss +70 -0
  119. data/scss/compagecss/components/_breadcrumbs.scss +124 -0
  120. data/scss/compagecss/components/_button-groups.scss +88 -0
  121. data/scss/compagecss/components/_buttons.scss +226 -0
  122. data/scss/compagecss/components/_clearing.scss +217 -0
  123. data/scss/compagecss/components/_custom-forms.scss +246 -0
  124. data/scss/compagecss/components/_dropdown-buttons.scss +114 -0
  125. data/scss/compagecss/components/_dropdown.scss +149 -0
  126. data/scss/compagecss/components/_flex-video.scss +45 -0
  127. data/scss/compagecss/components/_flexbox-grid.scss +225 -0
  128. data/scss/compagecss/components/_flip.scss +105 -0
  129. data/scss/compagecss/components/_forms.scss +361 -0
  130. data/scss/compagecss/components/_global.scss +289 -0
  131. data/scss/compagecss/components/_grid.scss +184 -0
  132. data/scss/compagecss/components/_inline-lists.scss +52 -0
  133. data/scss/compagecss/components/_joyride.scss +210 -0
  134. data/scss/compagecss/components/_keystrokes.scss +56 -0
  135. data/scss/compagecss/components/_labels.scss +84 -0
  136. data/scss/compagecss/components/_magellan.scss +21 -0
  137. data/scss/compagecss/components/_off-canvas.scss +86 -0
  138. data/scss/compagecss/components/_orbit.scss +209 -0
  139. data/scss/compagecss/components/_pagination.scss +99 -0
  140. data/scss/compagecss/components/_panels.scss +76 -0
  141. data/scss/compagecss/components/_pricing-tables.scss +130 -0
  142. data/scss/compagecss/components/_progress-bars.scss +70 -0
  143. data/scss/compagecss/components/_reveal.scss +131 -0
  144. data/scss/compagecss/components/_section.scss +303 -0
  145. data/scss/compagecss/components/_side-nav.scss +68 -0
  146. data/scss/compagecss/components/_split-buttons.scss +166 -0
  147. data/scss/compagecss/components/_sub-nav.scss +67 -0
  148. data/scss/compagecss/components/_switch.scss +249 -0
  149. data/scss/compagecss/components/_tables.scss +80 -0
  150. data/scss/compagecss/components/_thumbs.scss +47 -0
  151. data/scss/compagecss/components/_tooltips.scss +113 -0
  152. data/scss/compagecss/components/_top-bar.scss +462 -0
  153. data/scss/compagecss/components/_type.scss +422 -0
  154. data/scss/compagecss/components/_visibility.scss +320 -0
  155. data/scss/modularis.scss +49 -0
  156. data/scss/normalize.scss +402 -0
  157. data/templates/project/.gitignore +44 -0
  158. data/templates/project/MIT-LICENSE.txt +20 -0
  159. data/templates/project/config.rb +26 -0
  160. data/templates/project/humans.txt +8 -0
  161. data/templates/project/index.html +124 -0
  162. data/templates/project/manifest.rb +44 -0
  163. data/templates/project/robots.txt +4 -0
  164. data/templates/project/scss/app.scss +48 -0
  165. data/templates/upgrade/manifest.rb +34 -0
  166. metadata +235 -0
@@ -0,0 +1,422 @@
1
+ //
2
+ // Typography Variables
3
+ //
4
+
5
+ // We use these to control header font styles
6
+ $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
7
+ $header-font-weight: bold !default;
8
+ $header-font-style: normal !default;
9
+ $header-font-color: #222 !default;
10
+ $header-line-height: 1.4 !default;
11
+ $header-top-margin: .2em !default;
12
+ $header-bottom-margin: .5em !default;
13
+ $header-text-rendering: optimizeLegibility !default;
14
+
15
+ // We use these to control header font sizes
16
+ $h1-font-size: emCalc(44px) !default;
17
+ $h2-font-size: emCalc(37px) !default;
18
+ $h3-font-size: emCalc(27px) !default;
19
+ $h4-font-size: emCalc(23px) !default;
20
+ $h5-font-size: emCalc(18px) !default;
21
+ $h6-font-size: 1em !default;
22
+
23
+ // These control how subheaders are styled.
24
+ $subheader-line-height: 1.4 !default;
25
+ $subheader-font-color: lighten($header-font-color, 30%) !default;
26
+ $subheader-font-weight: 300 !default;
27
+ $subheader-top-margin: .2em !default;
28
+ $subheader-bottom-margin: .5em !default;
29
+
30
+ // A general <small> styling
31
+ $small-font-size: 60% !default;
32
+ $small-font-color: lighten($header-font-color, 30%) !default;
33
+
34
+ // We use these to style paragraphs
35
+ $paragraph-font-family: inherit !default;
36
+ $paragraph-font-weight: normal !default;
37
+ $paragraph-font-size: 1em !default;
38
+ $paragraph-line-height: 1.6 !default;
39
+ $paragraph-margin-bottom: emCalc(20px) !default;
40
+ $paragraph-aside-font-size: emCalc(14px) !default;
41
+ $paragraph-aside-line-height: 1.35 !default;
42
+ $paragraph-aside-font-style: italic !default;
43
+ $paragraph-text-rendering: optimizeLegibility !default;
44
+
45
+ // We use these to style <code> tags
46
+ $code-color: darken($alert-color, 15%) !default;
47
+ $code-font-family: Consolas, 'Liberation Mono', Courier, monospace !default;
48
+ $code-font-weight: bold !default;
49
+
50
+ // We use these to style anchors
51
+ $anchor-text-decoration: none !default;
52
+ $anchor-font-color: $primary-color !default;
53
+ $anchor-font-color-hover: darken($primary-color, 5%) !default;
54
+
55
+ // We use these to style the <hr> element
56
+ $hr-border-width: 1px !default;
57
+ $hr-border-style: solid !default;
58
+ $hr-border-color: #ddd !default;
59
+ $hr-margin: emCalc(20px) !default;
60
+
61
+ // We use these to style lists
62
+ $list-style-position: outside !default;
63
+ $list-side-margin: emCalc(20px) !default;
64
+ $definition-list-header-weight: bold !default;
65
+ $definition-list-header-margin-bottom: .3em !default;
66
+ $definition-list-margin-bottom: emCalc(12px) !default;
67
+
68
+ // We use these to style blockquotes
69
+ $blockquote-font-color: lighten($header-font-color, 30%) !default;
70
+ $blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px) !default;
71
+ $blockquote-border: 1px solid #ddd !default;
72
+ $blockquote-cite-font-size: emCalc(13px) !default;
73
+ $blockquote-cite-font-color: lighten($header-font-color, 20%) !default;
74
+ $blockquote-cite-link-color: $blockquote-cite-font-color !default;
75
+
76
+ // Acronym styles
77
+ $acronym-underline: 1px dotted #ddd !default;
78
+
79
+ // We use these to control padding and margin
80
+ $microformat-padding: emCalc(10px) emCalc(12px) !default;
81
+ $microformat-margin: 0 0 emCalc(20px) 0 !default;
82
+
83
+ // We use these to control the border styles
84
+ $microformat-border-width: 1px !default;
85
+ $microformat-border-style: solid !default;
86
+ $microformat-border-color: #ddd !default;
87
+
88
+ // We use these to control full name font styles
89
+ $microformat-fullname-font-weight: bold !default;
90
+ $microformat-fullname-font-size: emCalc(15px) !default;
91
+
92
+ // We use this to control the summary font styles
93
+ $microformat-summary-font-weight: bold !default;
94
+
95
+ // We use this to control abbr padding
96
+ $microformat-abbr-padding: 0 emCalc(1px) !default;
97
+
98
+ // We use this to control abbr font styles
99
+ $microformat-abbr-font-weight: bold !default;
100
+ $microformat-abbr-font-decoration: none !default;
101
+
102
+
103
+ //
104
+ // Typography Placeholders
105
+ //
106
+ %lead {
107
+ font-size: $paragraph-font-size + emCalc(3.5px);
108
+ line-height: 1.6;
109
+ }
110
+
111
+ %subheader {
112
+ line-height: $subheader-line-height;
113
+ color: $subheader-font-color;
114
+ font-weight: $subheader-font-weight;
115
+ margin-top: $subheader-top-margin;
116
+ margin-bottom: $subheader-bottom-margin;
117
+ }
118
+
119
+
120
+ /* Typography resets */
121
+ div,
122
+ dl,
123
+ dt,
124
+ dd,
125
+ ul,
126
+ ol,
127
+ li,
128
+ h1,
129
+ h2,
130
+ h3,
131
+ h4,
132
+ h5,
133
+ h6,
134
+ pre,
135
+ form,
136
+ p,
137
+ blockquote,
138
+ th,
139
+ td {
140
+ margin:0;
141
+ padding:0;
142
+ direction: $text-direction;
143
+ }
144
+
145
+ /* Default Link Styles */
146
+ a {
147
+ color: $anchor-font-color;
148
+ text-decoration: $anchor-text-decoration;
149
+ line-height: inherit;
150
+
151
+ &:hover,
152
+ &:focus { color: $anchor-font-color-hover; }
153
+
154
+ img { border:none; }
155
+ }
156
+
157
+ /* Default paragraph styles */
158
+ p {
159
+ font-family: $paragraph-font-family;
160
+ font-weight: $paragraph-font-weight;
161
+ font-size: $paragraph-font-size;
162
+ line-height: $paragraph-line-height;
163
+ margin-bottom: $paragraph-margin-bottom;
164
+ text-rendering: $paragraph-text-rendering;
165
+
166
+ &.lead { @extend %lead; }
167
+
168
+ & aside {
169
+ font-size: $paragraph-aside-font-size;
170
+ line-height: $paragraph-aside-line-height;
171
+ font-style: $paragraph-aside-font-style;
172
+ }
173
+ }
174
+
175
+ /* Default header styles */
176
+ h1, h2, h3, h4, h5, h6 {
177
+ font-family: $header-font-family;
178
+ font-weight: $header-font-weight;
179
+ font-style: $header-font-style;
180
+ color: $header-font-color;
181
+ text-rendering: $header-text-rendering;
182
+ margin-top: $header-top-margin;
183
+ margin-bottom: $header-bottom-margin;
184
+ line-height: $header-line-height - emCalc(3px);
185
+
186
+ small {
187
+ font-size: $small-font-size;
188
+ color: $small-font-color;
189
+ line-height: 0;
190
+ }
191
+ }
192
+
193
+ h1 { font-size: $h1-font-size - emCalc(10px); }
194
+ h2 { font-size: $h2-font-size - emCalc(10px); }
195
+ h3 { font-size: $h3-font-size - emCalc(5px); }
196
+ h4 { font-size: $h4-font-size - emCalc(5px); }
197
+ h5 { font-size: $h5-font-size; }
198
+ h6 { font-size: $h6-font-size; }
199
+
200
+ .subheader { @extend %subheader; }
201
+
202
+ hr {
203
+ border: $hr-border-style $hr-border-color;
204
+ border-width: $hr-border-width 0 0;
205
+ clear: both;
206
+ margin: $hr-margin 0 ($hr-margin - emCalc(1px));
207
+ height: 0;
208
+ }
209
+
210
+ /* Helpful Typography Defaults */
211
+ em,
212
+ i {
213
+ font-style: italic;
214
+ line-height: inherit;
215
+ }
216
+
217
+ strong,
218
+ b {
219
+ font-weight: bold;
220
+ line-height: inherit;
221
+ }
222
+
223
+ small {
224
+ font-size: $small-font-size;
225
+ line-height: inherit;
226
+ }
227
+
228
+ code {
229
+ font-family: $code-font-family;
230
+ font-weight: $code-font-weight;
231
+ color: $code-color;
232
+ }
233
+
234
+ /* Lists */
235
+ ul,
236
+ ol,
237
+ dl {
238
+ font-size: $paragraph-font-size;
239
+ line-height: $paragraph-line-height;
240
+ margin-bottom: $paragraph-margin-bottom;
241
+ list-style-position: $list-style-position;
242
+ font-family: $paragraph-font-family;
243
+ }
244
+
245
+ /* Unordered Lists */
246
+ ul {
247
+ li {
248
+ ul,
249
+ ol {
250
+ margin-#{$default-float}: $list-side-margin;
251
+ margin-bottom: 0;
252
+ font-size: 1em; /* Override nested font-size change */
253
+ }
254
+ }
255
+ &.square,
256
+ &.circle,
257
+ &.disc {
258
+ li ul { list-style: inherit; }
259
+ }
260
+
261
+ &.square { list-style-type: square; }
262
+ &.circle { list-style-type: circle; }
263
+ &.disc { list-style-type: disc; }
264
+ &.no-bullet { list-style: none; }
265
+ }
266
+
267
+ /* Ordered Lists */
268
+ ol {
269
+ li {
270
+ ul,
271
+ ol {
272
+ margin-#{$default-float}: $list-side-margin;
273
+ margin-bottom: 0;
274
+ }
275
+ }
276
+ }
277
+
278
+ /* Definition Lists */
279
+ dl {
280
+ dt {
281
+ margin-bottom: $definition-list-header-margin-bottom;
282
+ font-weight: $definition-list-header-weight;
283
+ }
284
+ dd { margin-bottom: $definition-list-margin-bottom; }
285
+ }
286
+
287
+ /* Abbreviations */
288
+ abbr,
289
+ acronym {
290
+ text-transform: uppercase;
291
+ font-size: 90%;
292
+ color: $body-font-color;
293
+ border-bottom: $acronym-underline;
294
+ cursor: help;
295
+ }
296
+ abbr {
297
+ text-transform: none;
298
+ }
299
+
300
+ /* Blockquotes */
301
+ blockquote {
302
+ margin: 0 0 $paragraph-margin-bottom;
303
+ padding: $blockquote-padding;
304
+ border-#{$default-float}: $blockquote-border;
305
+
306
+ cite {
307
+ display: block;
308
+ font-size: $blockquote-cite-font-size;
309
+ color: $blockquote-cite-font-color;
310
+ &:before {
311
+ content: "\2014 \0020";
312
+ }
313
+
314
+ a,
315
+ a:visited {
316
+ color: $blockquote-cite-link-color;
317
+ }
318
+ }
319
+ }
320
+ blockquote,
321
+ blockquote p {
322
+ line-height: $paragraph-line-height;
323
+ color: $blockquote-font-color;
324
+ }
325
+
326
+ /* Microformats */
327
+ .vcard {
328
+ display: inline-block;
329
+ margin: $microformat-margin;
330
+ border: $microformat-border-width $microformat-border-style $microformat-border-color;
331
+ padding: $microformat-padding;
332
+
333
+ li {
334
+ margin: 0;
335
+ display: block;
336
+ }
337
+ .fn {
338
+ font-weight: $microformat-fullname-font-weight;
339
+ font-size: $microformat-fullname-font-size;
340
+ }
341
+ }
342
+
343
+ .vevent {
344
+ .summary { font-weight: $microformat-summary-font-weight; }
345
+
346
+ abbr {
347
+ cursor: default;
348
+ text-decoration: $microformat-abbr-font-decoration;
349
+ font-weight: $microformat-abbr-font-weight;
350
+ border: none;
351
+ padding: $microformat-abbr-padding;
352
+ }
353
+ }
354
+
355
+
356
+ @media #{$small} {
357
+ h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
358
+ h1 { font-size: $h1-font-size; }
359
+ h2 { font-size: $h2-font-size; }
360
+ h3 { font-size: $h3-font-size; }
361
+ h4 { font-size: $h4-font-size; }
362
+ }
363
+
364
+ // Only include these styles if you want them.
365
+ @if $include-print-styles {
366
+ /*
367
+ * Print styles.
368
+ *
369
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
370
+ * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
371
+ */
372
+ .print-only { display: none !important; }
373
+ @media print {
374
+ * {
375
+ background: transparent !important;
376
+ color: #000 !important; /* Black prints faster: h5bp.com/s */
377
+ box-shadow: none !important;
378
+ text-shadow: none !important;
379
+ }
380
+
381
+ a,
382
+ a:visited { text-decoration: underline;}
383
+ a[href]:after { content: " (" attr(href) ")"; }
384
+
385
+ abbr[title]:after { content: " (" attr(title) ")"; }
386
+
387
+ // Don't show links for images, or javascript/internal links
388
+ .ir a:after,
389
+ a[href^="javascript:"]:after,
390
+ a[href^="#"]:after { content: ""; }
391
+
392
+ pre,
393
+ blockquote {
394
+ border: 1px solid #999;
395
+ page-break-inside: avoid;
396
+ }
397
+
398
+ thead { display: table-header-group; /* h5bp.com/t */ }
399
+
400
+ tr,
401
+ img { page-break-inside: avoid; }
402
+
403
+ img { max-width: 100% !important; }
404
+
405
+ @page { margin: 0.5cm; }
406
+
407
+ p,
408
+ h2,
409
+ h3 {
410
+ orphans: 3;
411
+ widows: 3;
412
+ }
413
+
414
+ h2,
415
+ h3 { page-break-after: avoid; }
416
+
417
+ .hide-on-print { display: none !important; }
418
+ .print-only { display: block !important; }
419
+ .hide-for-print { display: none !important; }
420
+ .show-for-print { display: inherit !important; }
421
+ }
422
+ }