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,396 @@
1
+ <% @side_nav = "type" %>
2
+ <div class="row">
3
+ <div class="large-9 push-3 columns">
4
+
5
+ <% @page_title = "Typography" %>
6
+ <div class="row">
7
+ <div class="large-12 columns">
8
+ <h2><%= @page_title %></h2>
9
+ <h4 class="subheader">Modularis 4 typography is built with ems, making it easier to fine-tune your type across different breakpoints. By default, we include a single breakpoint in typography sizes and styles, but you can add more if you'd like.</h4>
10
+
11
+ <p>We're no longer depending on modular scale in the core of Modularis. We made an effort with this release to be dependancy free other than Sass. This way people can use whatever framework and gems they want on top of Modularis. We'll still use <a href="http://compass-style.org">Compass</a>.</p>
12
+
13
+ <hr>
14
+
15
+ </div>
16
+ </div>
17
+
18
+
19
+ <div class="row">
20
+ <div class="large-12 columns">
21
+
22
+ <h1>h1. This is a very large header.</h1>
23
+ <h2>h2. This is a large header.</h2>
24
+ <h3>h3. This is a medium header.</h3>
25
+ <h4>h4. This is a moderate header.</h4>
26
+ <h5>h5. This is a small header. h1.</h5>
27
+ <h6>h6. This is a tiny header. h1.</h6>
28
+
29
+ <%= code_example '
30
+ <h1>h1. This is a very large header.</h1>
31
+ <h2>h2. This is a large header.</h2>
32
+ <h3>h3. This is a medium header.</h3>
33
+ <h4>h4. This is a moderate header.</h4>
34
+ <h5>h5. This is a small header. h1.</h5>
35
+ <h6>h6. This is a tiny header. h1.</h6>
36
+ ', :html %>
37
+
38
+ <hr>
39
+
40
+ <h1 class="subheader">h1.subheader</h1>
41
+ <h2 class="subheader">h2.subheader</h2>
42
+ <h3 class="subheader">h3.subheader</h3>
43
+ <h4 class="subheader">h4.subheader</h4>
44
+ <h5 class="subheader">h5.subheader</h5>
45
+ <h6 class="subheader">h6.subheader</h6>
46
+
47
+ <%= code_example '
48
+ <h1 class="subheader">h1.subheader</h1>
49
+ <h2 class="subheader">h2.subheader</h2>
50
+ <h3 class="subheader">h3.subheader</h3>
51
+ <h4 class="subheader">h4.subheader</h4>
52
+ <h5 class="subheader">h5.subheader</h5>
53
+ <h6 class="subheader">h6.subheader</h6>
54
+ ', :html %>
55
+
56
+ <hr>
57
+
58
+ <h1>h1. <small>Small segment header.</small></h1>
59
+ <h2>h2. <small>Small segment header.</small></h2>
60
+ <h3>h3. <small>Small segment header.</small></h3>
61
+ <h4>h4. <small>Small segment header.</small></h4>
62
+ <h5>h5. <small>Small segment header.</small></h5>
63
+ <h6>h6. <small>Small segment header.</small></h6>
64
+
65
+ <%= code_example '
66
+ <h1>h1. <small>Small segment header.</small></h1>
67
+ <h2>h2. <small>Small segment header.</small></h2>
68
+ <h3>h3. <small>Small segment header.</small></h3>
69
+ <h4>h4. <small>Small segment header.</small></h4>
70
+ <h5>h5. <small>Small segment header.</small></h5>
71
+ <h6>h6. <small>Small segment header.</small></h6>
72
+ ', :html %>
73
+
74
+
75
+ <hr>
76
+
77
+ <p>This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall vertical rhythm. To show what a paragraph looks like this needs a little more content so, did you know that there are storms occurring on Jupiter that are larger than the Earth? Pretty cool. Wrap <code>&lt;strong&gt;</code> around type to <strong>make it bold!</strong>. You can also you <code>&lt;em&gt;</code> to <em>italicize your words</em>.</p>
78
+
79
+ <%= code_example '
80
+ <p>This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall vertical rhythm. To show what a paragraph looks like this needs a little more content so, did you know that there are storms occurring on Jupiter that are larger than the Earth? Pretty cool. Wrap <strong> around type to <strong>make it bold!</strong>. You can also you <em> to <em>italicize your words</em>.</p>
81
+ ', :html %>
82
+
83
+ <hr>
84
+
85
+ <h3>Links</h3>
86
+ <p>Links are very standard, and the <a href="http://www.youtube.com/watch?v=oHg5SJYRHA0">color is preset</a> to the Modularis primary color.</p>
87
+
88
+ <%= code_example '
89
+ <p>Links are very standard, and the <a href="#">color is preset</a> to the Modularis primary color.</p>
90
+ ', :html %>
91
+
92
+ <hr>
93
+
94
+ <h3>Lists</h3>
95
+ <p>Lists are helpful for, well, lists of things.</p>
96
+
97
+ <div class="row">
98
+ <div class="large-4 columns">
99
+ <h6>ul.disc</h6>
100
+ <ul class="disc">
101
+ <li>List item with a much longer description or more content.</li>
102
+ <li>List item</li>
103
+ <li>List item
104
+ <ul>
105
+ <li>Nested List Item</li>
106
+ <li>Nested List Item</li>
107
+ <li>Nested List Item</li>
108
+ </ul>
109
+ </li>
110
+ <li>List item</li>
111
+ <li>List item</li>
112
+ <li>List item</li>
113
+ </ul>
114
+ </div>
115
+
116
+ <div class="large-4 columns">
117
+ <h6>ul.circle</h6>
118
+ <ul class="circle">
119
+ <li>List item with a much longer description or more content.</li>
120
+ <li>List item</li>
121
+ <li>List item
122
+ <ul>
123
+ <li>Nested List Item</li>
124
+ <li>Nested List Item</li>
125
+ <li>Nested List Item</li>
126
+ </ul>
127
+ </li>
128
+ <li>List item</li>
129
+ <li>List item</li>
130
+ <li>List item</li>
131
+ </ul>
132
+ </div>
133
+
134
+ <div class="large-4 columns">
135
+ <h6>ul.square</h6>
136
+ <ul class="square">
137
+ <li>List item with a much longer description or more content.</li>
138
+ <li>List item</li>
139
+ <li>List item
140
+ <ul>
141
+ <li>Nested List Item</li>
142
+ <li>Nested List Item</li>
143
+ <li>Nested List Item</li>
144
+ </ul>
145
+ </li>
146
+ <li>List item</li>
147
+ <li>List item</li>
148
+ <li>List item</li>
149
+ </ul>
150
+ </div>
151
+ </div>
152
+
153
+ <div class="row">
154
+ <div class="large-4 columns">
155
+ <h6>ul.no-bullet</h6>
156
+ <ul class="no-bullet">
157
+ <li>List item with a much longer description or more content.</li>
158
+ <li>List item</li>
159
+ <li>List item
160
+ <ul>
161
+ <li>Nested List Item</li>
162
+ <li>Nested List Item</li>
163
+ <li>Nested List Item</li>
164
+ </ul>
165
+ </li>
166
+ <li>List item</li>
167
+ </ul>
168
+ </div>
169
+ <div class="large-4 columns">
170
+ <h6>Ordered Lists</h6>
171
+ <ol>
172
+ <li>List Item 1</li>
173
+ <li>List Item 2
174
+ <ol>
175
+ <li>Nested List Item</li>
176
+ <li>Nested List Item</li>
177
+ <li>Nested List Item</li>
178
+ </ol>
179
+ </li>
180
+ <li>List Item 3</li>
181
+ </ol>
182
+ </div>
183
+ <div class="large-4 columns">
184
+ <h6>Defition Lists</h6>
185
+ <dl>
186
+ <dt>Definition Title</dt>
187
+ <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
188
+ </dl>
189
+ </div>
190
+ </div>
191
+
192
+ <%= code_example '
193
+ <!-- Use .circle or .square to change the style of the bullets -->
194
+ <ul class="disc">
195
+ <li>List item with a much longer description or more content.</li>
196
+ <li>List item</li>
197
+ <li>List item
198
+ <ul>
199
+ <li>Nested List Item</li>
200
+ <li>Nested List Item</li>
201
+ <li>Nested List Item</li>
202
+ </ul>
203
+ </li>
204
+ <li>List item</li>
205
+ <li>List item</li>
206
+ <li>List item</li>
207
+ </ul>
208
+
209
+ <!-- Sometimes you don\'t want bullets at all -->
210
+ <ul class="no-bullet">
211
+ <li>List item with a much longer description or more content.</li>
212
+ <li>List item</li>
213
+ <li>List item
214
+ <ul>
215
+ <li>Nested List Item</li>
216
+ <li>Nested List Item</li>
217
+ <li>Nested List Item</li>
218
+ </ul>
219
+ </li>
220
+ <li>List item</li>
221
+ </ul>
222
+
223
+ <!-- Ordered lists are great for lists that need order, duh -->
224
+ <ol>
225
+ <li>List Item 1</li>
226
+ <li>List Item 2</li>
227
+ <li>List Item 3</li>
228
+ </ol>
229
+
230
+ <!-- Definition lists are great for small block of copy that describe the header -->
231
+ <dl>
232
+ <dt>Definition List</dt>
233
+ <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
234
+ </dl>
235
+ ', :html %>
236
+
237
+ <hr>
238
+
239
+ <a name="blockquotes"></a>
240
+ <h3>Blockquotes</h3>
241
+ <p>Sometimes other people say smart things, and you may want to mention that through a blockquote callout. We've got you covered.</p>
242
+
243
+ <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
244
+
245
+ <%= code_example '
246
+ <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
247
+ ', :html %>
248
+
249
+ <hr>
250
+
251
+ <h3>V-Cards</h3>
252
+ <p>Here's a handy microformat-friendly list to <em>address</em> all your needs.</p>
253
+
254
+ <ul class="vcard">
255
+ <li class="fn">Gaius Baltar</li>
256
+ <li class="street-address">123 Colonial Ave.</li>
257
+ <li class="locality">Caprica City</li>
258
+ <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
259
+ <li class="email"><a href="#">g.baltar@cmail.com</a></li>
260
+ </ul>
261
+
262
+ <%= code_example '
263
+ <ul class="vcard">
264
+ <li class="fn">Gaius Baltar</li>
265
+ <li class="street-address">123 Colonial Ave.</li>
266
+ <li class="locality">Caprica City</li>
267
+ <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
268
+ <li class="email"><a href="#">g.baltar@cmail.com</a></li>
269
+ </ul>
270
+ ', :html %>
271
+
272
+ <hr>
273
+
274
+ <h3>Print Styles</h3>
275
+ <p>Modularis includes print styles developed by HTML5 Boilerplate to give you some basic print-specific styles. These are activated when you print through a media query. It includes:</p>
276
+
277
+ <ul class="disc">
278
+ <li>Clearing out backgrounds, box shadows, and text shadows</li>
279
+ <li>Appending link URLs after the anchor text</li>
280
+ <li>Bordering blockquotes and pre elements</li>
281
+ <li>Page cleanup and window minimization</li>
282
+ </ul>
283
+
284
+ <p>On top of that, Modularis includes a couple of simple classes you can use to control elements printing, or not printing. Simply attach <code>.print-only</code> to an element to only show when printing, and <code>.hide-on-print</code> to hide something when printing.</p>
285
+
286
+ <hr>
287
+
288
+ <h3>Available SCSS Variables</h3>
289
+ <p>We've got a ton of variables for you to use to customize your typography.</p>
290
+
291
+ <%= code_example '
292
+ /* We use these to control header font styles */
293
+ $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
294
+ $header-font-weight: bold;
295
+ $header-font-style: normal;
296
+ $header-font-color: #222;
297
+ $header-line-height: 1.4;
298
+ $header-top-margin: .2em;
299
+ $header-bottom-margin: .5em;
300
+ $header-text-rendering: optimizeLegibility;
301
+
302
+ /* We use these to control header font sizes */
303
+ $h1-font-size: emCalc(44px);
304
+ $h2-font-size: emCalc(37px);
305
+ $h3-font-size: emCalc(27px);
306
+ $h4-font-size: emCalc(23px);
307
+ $h5-font-size: emCalc(18px);
308
+ $h6-font-size: 1em;
309
+
310
+ /* These control how subheaders are styled. */
311
+ $subheader-line-height: 1.4;
312
+ $subheader-font-color: lighten($header-font-color, 30%);
313
+ $subheader-font-weight: 300;
314
+ $subheader-top-margin: .2em;
315
+ $subheader-bottom-margin: .5em;
316
+
317
+ /* A general <small> styling */
318
+ $small-font-size: 60%;
319
+ $small-font-color: lighten($header-font-color, 30%);
320
+
321
+ /* We use these to style paragraphs */
322
+ $paragraph-font-family: inherit;
323
+ $paragraph-font-weight: normal;
324
+ $paragraph-font-size: 1em;
325
+ $paragraph-line-height: 1.6;
326
+ $paragraph-margin-bottom: emCalc(20px);
327
+ $paragraph-aside-font-size: emCalc(14px);
328
+ $paragraph-aside-line-height: 1.35;
329
+ $paragraph-aside-font-style: italic;
330
+ $paragraph-text-rendering: optimizeLegibility;
331
+
332
+ /* We use these to style <code> tags */
333
+ $code-color: darken($alert-color, 15%);
334
+ $code-font-family: Consolas, "Liberation Mono", Courier, monospace;
335
+ $code-font-weight: bold;
336
+
337
+ /* We use these to style anchors */
338
+ $anchor-text-decoration: none;
339
+ $anchor-font-color: $primary-color;
340
+ $anchor-font-color-hover: darken($primary-color, 5%);
341
+
342
+ /* We use these to style the <hr> element */
343
+ $hr-border-width: 1px;
344
+ $hr-border-style: solid;
345
+ $hr-border-color: #ddd;
346
+ $hr-margin: emCalc(20px);
347
+
348
+ /* We use these to style lists */
349
+ $list-style-position: outside;
350
+ $list-side-margin: emCalc(18px);
351
+ $definition-list-header-weight: bold;
352
+ $definition-list-header-margin-bottom: .3em;
353
+ $definition-list-margin-bottom: emCalc(12px);
354
+
355
+ /* We use these to style blockquotes */
356
+ $blockquote-font-color: lighten($header-font-color, 30%);
357
+ $blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px);
358
+ $blockquote-border: 1px solid #ddd;
359
+ $blockquote-cite-font-size: emCalc(13px);
360
+ $blockquote-cite-font-color: lighten($header-font-color, 20%);
361
+ $blockquote-cite-link-color: $blockquote-cite-font-color;
362
+
363
+ /* Acronym styles */
364
+ $acronym-underline: 1px dotted #ddd;
365
+
366
+ /* We use these to control padding and margin */
367
+ $microformat-padding: emCalc(10px) emCalc(12px);
368
+ $microformat-margin: 0 0 emCalc(20px) 0;
369
+
370
+ /* We use these to control the border styles */
371
+ $microformat-border-width: 1px;
372
+ $microformat-border-style: solid;
373
+ $microformat-border-color: #ddd;
374
+
375
+ /* We use these to control full name font styles */
376
+ $microformat-fullname-font-weight: bold;
377
+ $microformat-fullname-font-size: emCalc(15px);
378
+
379
+ /* We use this to control the summary font styles */
380
+ $microformat-summary-font-weight: bold;
381
+
382
+ /* We use this to control abbr padding */
383
+ $microformat-abbr-padding: 0 emCalc(1px);
384
+
385
+ /* We use this to control abbr font styles */
386
+ $microformat-abbr-font-weight: bold;
387
+ $microformat-abbr-font-decoration: none;
388
+ ', :css %>
389
+
390
+ </div>
391
+ </div>
392
+ </div>
393
+ <div class="large-3 pull-9 columns">
394
+ <%= render "_sidebar-components.html.erb" %>
395
+ </div>
396
+ </div>
@@ -0,0 +1,110 @@
1
+ <% @side_nav = "using" %>
2
+
3
+ <div class="row">
4
+ <div class="large-9 push-3 columns">
5
+
6
+ <% @page_title = "Visibility Classes" %>
7
+ <div class="row">
8
+ <div class="large-12 columns">
9
+ <h2><%= @page_title %></h2>
10
+ <h4 class="subheader">Modularis allows you to easily turn elements on and off based on certain device criteria, like screen size, touch or orientation.</h4>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="row">
15
+ <div class="large-12 columns">
16
+ <h5>Screen Size Visibility Control (Show)</h5>
17
+ <p>The following text should describe the screen size you're using:</p>
18
+ <p class="panel">
19
+ <strong class="show-for-small">You are on a small screen.</strong>
20
+ <strong class="show-for-medium">You are on a medium screen.</strong>
21
+ <strong class="show-for-medium-up">You are on a medium, large or xlarge screen.</strong>
22
+ <strong class="show-for-medium-down">You are on a medium or small screen.</strong>
23
+ <strong class="show-for-large">You are on a large screen.</strong>
24
+ <strong class="show-for-large-up">You are on a large or xlarge screen.</strong>
25
+ <strong class="show-for-large-down">You are on a large, medium or small screen.</strong>
26
+ <strong class="show-for-xlarge">You are on a xlarge screen.</strong>
27
+ </p>
28
+
29
+ <h5>Screen Size Visibility Control (Hide)</h5>
30
+ <p>The following text should describe the screen size you aren't using:</p>
31
+ <p class="panel">
32
+ <strong class="hide-for-small">You are <em>not</em> on a small screen.</strong>
33
+ <strong class="hide-for-medium">You are <em>not</em> on a medium screen.</strong>
34
+ <strong class="hide-for-medium-up">You are <em>not</em> on a medium, large or xlarge screen.</strong>
35
+ <strong class="hide-for-medium-down">You are <em>not</em> on a medium or small screen.</strong>
36
+ <strong class="hide-for-large">You are <em>not</em> on a large screen.</strong>
37
+ <strong class="hide-for-large-up">You are <em>not</em> on a large or xlarge screen.</strong>
38
+ <strong class="hide-for-large-down">You are <em>not</em> on a large, medium or small screen.</strong>
39
+ <strong class="hide-for-xlarge">You are <em>not</em> on a xlarge screen.</strong>
40
+ </p>
41
+
42
+ <h5>Orientation Detection</h5>
43
+ <p>The following text should describe the device orientation you're using:</p>
44
+ <p class="panel">
45
+ <strong class="show-for-landscape">You are in landscape orientation.</strong>
46
+ <strong class="show-for-portrait">You are in portrait orientation.</strong>
47
+ </p>
48
+
49
+ <h5>Touch Detection</h5>
50
+ <p>The following text should describe if you're using a touch device:</p>
51
+ <p class="panel">
52
+ <strong class="show-for-touch">You are on a touch-enabled device.</strong>
53
+ <strong class="hide-for-touch">You are not on a touch-enabled device.</strong>
54
+ </p>
55
+
56
+ <hr>
57
+
58
+ <h3>Using our HTML Classes With CSS</h3>
59
+ <p>The standard way of working with the Modularis visibility control is to use the predefined HTML classes. Yes, this adds classes to your markup, but they are semantic to the function they provide rather than from a presentational point of view.</p>
60
+
61
+ <%= code_example '
62
+ /* The show classes */
63
+ .show-for-small /* Visible up to 768px */
64
+ .show-for-medium-down /* Visible from 1280px down */
65
+ .show-for-medium /* Visible between 768px and 1280px */
66
+ .show-for-medium-up /* Visible from 1280px up */
67
+ .show-for-large-down /* Visible from 1440px down */
68
+ .show-for-large /* Visible between 1280px and 1440px */
69
+ .show-for-large-up /* Visible from 1440px up */
70
+ .show-for-xlarge /* Visible above 1440px only */
71
+
72
+ /* The hide classes */
73
+ .hide-for-small /* Hidden up to 768px */
74
+ .hide-for-medium-down /* Hidden from 1280px down */
75
+ .hide-for-medium /* Hidden between 768px and 1280px */
76
+ .hide-for-medium-up /* Hidden from 1280px up */
77
+ .hide-for-large-down /* Hidden from 1440px down */
78
+ .hide-for-large /* Hidden between 1280px and 1440px */
79
+ .hide-for-large-up /* Hidden from 1440px up */
80
+ .hide-for-xlarge /* Hidden above 1440px only */
81
+
82
+ /* The orientation classes */
83
+ .show-for-landscape /* Visible for landscape orientation */
84
+ .show-for-portrait /* Visible for portrait orientation */
85
+ .hide-for-landscape /* Hidden for landscape orientation */
86
+ .hide-for-portrait /* Hidden for portrait orientation */
87
+
88
+ /* The touch detection classes */
89
+ .show-for-touch /* Visible for touch enabled devices */
90
+ .hide-for-touch /* Hidden for touch enabled devices */
91
+ ', :css %>
92
+
93
+ <p><strong>Note:</strong> We've also included specific table hide/show visibility classes that follow the same structure, just prepended with table, thead, th, tbody, tr or td. The display property will go from 'none' to whatever its default display should be.</p>
94
+
95
+ <hr>
96
+
97
+ <h3>Using SCSS?</h3>
98
+ <p>So, you hate the idea of including these classes in your markup? Well, we thought of that too! You can easily <code>@extend</code> these classes to whatever element you want. Extending a visibility class looks like this:</p>
99
+
100
+ <%= code_example '
101
+ .your-class-name { @extend .hide-for-small; }
102
+ ', :css %>
103
+
104
+ </div>
105
+ </div>
106
+ </div>
107
+ <div class="large-3 pull-9 columns">
108
+ <%= render "_sidebar-components.html.erb" %>
109
+ </div>
110
+ </div>
@@ -0,0 +1,36 @@
1
+ # use local key for authentication
2
+ ssh_options[:forward_agent] = true
3
+ default_run_options[:pty] = true
4
+
5
+ set :application, "modularis"
6
+ set :repository, "git@github.com:themepile/#{application}.git"
7
+ set :user, application
8
+ set :deploy_to, "/var/www/modularis-docs"
9
+ set :deploy_via, :remote_cache
10
+ set :use_sudo, false
11
+ set :branch, "master"
12
+ set :bundle_gemfile, "docs/Gemfile"
13
+
14
+ set :scm, :git
15
+
16
+ modularis1_ip = '166.78.3.108'
17
+ modularis2_ip = '166.78.18.29'
18
+
19
+ role :web, modularis1_ip, modularis2_ip
20
+
21
+ after "deploy:update_code", "deploy:generate_static_site"
22
+ set :keep_releases, 3
23
+ after "deploy:update", "deploy:cleanup"
24
+
25
+ namespace :deploy do
26
+ task :default do
27
+ update
28
+ end
29
+
30
+ task :generate_static_site do
31
+ run "cd #{release_path}/docs && bundle exec ruby #{release_path}/docs/compile.rb"
32
+ end
33
+
34
+ end
35
+
36
+ require "bundler/capistrano"
data/docs/config.ru ADDED
@@ -0,0 +1,12 @@
1
+ require 'sprockets'
2
+ require 'sass'
3
+
4
+ map '/assets' do
5
+ environment = Sprockets::Environment.new
6
+ environment.append_path File.expand_path('../../scss', __FILE__)
7
+ environment.append_path File.expand_path('../css', __FILE__)
8
+ environment.append_path File.expand_path('../../test/js', __FILE__)
9
+ environment.append_path File.expand_path('../../js', __FILE__)
10
+ environment.append_path File.expand_path('../js', __FILE__)
11
+ run environment
12
+ end
@@ -0,0 +1,53 @@
1
+ require 'socket'
2
+ layout 'layout.html.erb'
3
+
4
+ ignore /css\//
5
+ ignore /js\//
6
+ ignore /.+.md/
7
+ ignore /Gemfile.*/
8
+ ignore /Procfile/
9
+ ignore /compile.rb/
10
+
11
+ before /test\/.*html\.erb/ do
12
+ layout 'test/layout.html.erb'
13
+ end
14
+
15
+ helpers do
16
+ def asset_path
17
+ if @_stasis.options[:asset_path]
18
+ @_stasis.options[:asset_path]
19
+ elsif Socket.gethostname == "modularis"
20
+ "http://modularis.themepile.com/docs/assets"
21
+ else
22
+ "http://#{Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.getnameinfo[0]}:4001/assets"
23
+ end
24
+ end
25
+
26
+ def code_example(code, lang=:ruby)
27
+ "<div class='#{lang}'>" + CodeRay.scan(code, lang).div(:css => :class) + "</div>"
28
+ end
29
+
30
+ def modularis_home_path
31
+ '/'
32
+ end
33
+
34
+ def features_path
35
+ '/grid.php'
36
+ end
37
+
38
+ def training_path
39
+ '/training.php'
40
+ end
41
+
42
+ def add_ons_path
43
+ '/templates.php'
44
+ end
45
+
46
+ def case_studies_path
47
+ '/case-jacquelinewest.php'
48
+ end
49
+
50
+ def docs_path
51
+ '/docs/'
52
+ end
53
+ end