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,235 @@
1
+ /**
2
+ * QUnit v1.10.0 - A JavaScript Unit Testing Framework
3
+ *
4
+ * http://qunitjs.com
5
+ *
6
+ * Copyright 2012 jQuery Modularis and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ */
10
+
11
+ /** Font Family and Sizes */
12
+
13
+ #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
14
+ font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
15
+ }
16
+
17
+ #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
18
+ #qunit-tests { font-size: smaller; }
19
+
20
+
21
+ /** Resets */
22
+
23
+ #qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
24
+ margin: 0;
25
+ padding: 0;
26
+ }
27
+
28
+
29
+ /** Header */
30
+
31
+ #qunit-header {
32
+ padding: 0.5em 0 0.5em 1em;
33
+
34
+ color: #8699a4;
35
+ background-color: #0d3349;
36
+
37
+ font-size: 1.5em;
38
+ line-height: 1em;
39
+ font-weight: normal;
40
+
41
+ border-radius: 5px 5px 0 0;
42
+ -moz-border-radius: 5px 5px 0 0;
43
+ -webkit-border-top-right-radius: 5px;
44
+ -webkit-border-top-left-radius: 5px;
45
+ }
46
+
47
+ #qunit-header a {
48
+ text-decoration: none;
49
+ color: #c2ccd1;
50
+ }
51
+
52
+ #qunit-header a:hover,
53
+ #qunit-header a:focus {
54
+ color: #fff;
55
+ }
56
+
57
+ #qunit-testrunner-toolbar label {
58
+ display: inline-block;
59
+ padding: 0 .5em 0 .1em;
60
+ }
61
+
62
+ #qunit-banner {
63
+ height: 5px;
64
+ }
65
+
66
+ #qunit-testrunner-toolbar {
67
+ padding: 0.5em 0 0.5em 2em;
68
+ color: #5E740B;
69
+ background-color: #eee;
70
+ overflow: hidden;
71
+ }
72
+
73
+ #qunit-userAgent {
74
+ padding: 0.5em 0 0.5em 2.5em;
75
+ background-color: #2b81af;
76
+ color: #fff;
77
+ text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
78
+ }
79
+
80
+ #qunit-modulefilter-container {
81
+ float: right;
82
+ }
83
+
84
+ /** Tests: Pass/Fail */
85
+
86
+ #qunit-tests {
87
+ list-style-position: inside;
88
+ }
89
+
90
+ #qunit-tests li {
91
+ padding: 0.4em 0.5em 0.4em 2.5em;
92
+ border-bottom: 1px solid #fff;
93
+ list-style-position: inside;
94
+ }
95
+
96
+ #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
97
+ display: none;
98
+ }
99
+
100
+ #qunit-tests li strong {
101
+ cursor: pointer;
102
+ }
103
+
104
+ #qunit-tests li a {
105
+ padding: 0.5em;
106
+ color: #c2ccd1;
107
+ text-decoration: none;
108
+ }
109
+ #qunit-tests li a:hover,
110
+ #qunit-tests li a:focus {
111
+ color: #000;
112
+ }
113
+
114
+ #qunit-tests ol {
115
+ margin-top: 0.5em;
116
+ padding: 0.5em;
117
+
118
+ background-color: #fff;
119
+
120
+ border-radius: 5px;
121
+ -moz-border-radius: 5px;
122
+ -webkit-border-radius: 5px;
123
+ }
124
+
125
+ #qunit-tests table {
126
+ border-collapse: collapse;
127
+ margin-top: .2em;
128
+ }
129
+
130
+ #qunit-tests th {
131
+ text-align: right;
132
+ vertical-align: top;
133
+ padding: 0 .5em 0 0;
134
+ }
135
+
136
+ #qunit-tests td {
137
+ vertical-align: top;
138
+ }
139
+
140
+ #qunit-tests pre {
141
+ margin: 0;
142
+ white-space: pre-wrap;
143
+ word-wrap: break-word;
144
+ }
145
+
146
+ #qunit-tests del {
147
+ background-color: #e0f2be;
148
+ color: #374e0c;
149
+ text-decoration: none;
150
+ }
151
+
152
+ #qunit-tests ins {
153
+ background-color: #ffcaca;
154
+ color: #500;
155
+ text-decoration: none;
156
+ }
157
+
158
+ /*** Test Counts */
159
+
160
+ #qunit-tests b.counts { color: black; }
161
+ #qunit-tests b.passed { color: #5E740B; }
162
+ #qunit-tests b.failed { color: #710909; }
163
+
164
+ #qunit-tests li li {
165
+ padding: 5px;
166
+ background-color: #fff;
167
+ border-bottom: none;
168
+ list-style-position: inside;
169
+ }
170
+
171
+ /*** Passing Styles */
172
+
173
+ #qunit-tests li li.pass {
174
+ color: #3c510c;
175
+ background-color: #fff;
176
+ border-left: 10px solid #C6E746;
177
+ }
178
+
179
+ #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
180
+ #qunit-tests .pass .test-name { color: #366097; }
181
+
182
+ #qunit-tests .pass .test-actual,
183
+ #qunit-tests .pass .test-expected { color: #999999; }
184
+
185
+ #qunit-banner.qunit-pass { background-color: #C6E746; }
186
+
187
+ /*** Failing Styles */
188
+
189
+ #qunit-tests li li.fail {
190
+ color: #710909;
191
+ background-color: #fff;
192
+ border-left: 10px solid #EE5757;
193
+ white-space: pre;
194
+ }
195
+
196
+ #qunit-tests > li:last-child {
197
+ border-radius: 0 0 5px 5px;
198
+ -moz-border-radius: 0 0 5px 5px;
199
+ -webkit-border-bottom-right-radius: 5px;
200
+ -webkit-border-bottom-left-radius: 5px;
201
+ }
202
+
203
+ #qunit-tests .fail { color: #000000; background-color: #EE5757; }
204
+ #qunit-tests .fail .test-name,
205
+ #qunit-tests .fail .module-name { color: #000000; }
206
+
207
+ #qunit-tests .fail .test-actual { color: #EE5757; }
208
+ #qunit-tests .fail .test-expected { color: green; }
209
+
210
+ #qunit-banner.qunit-fail { background-color: #EE5757; }
211
+
212
+
213
+ /** Result */
214
+
215
+ #qunit-testresult {
216
+ padding: 0.5em 0.5em 0.5em 2.5em;
217
+
218
+ color: #2b81af;
219
+ background-color: #D2E0E6;
220
+
221
+ border-bottom: 1px solid white;
222
+ }
223
+ #qunit-testresult .module-name {
224
+ font-weight: bold;
225
+ }
226
+
227
+ /** Fixture */
228
+
229
+ #qunit-fixture {
230
+ position: absolute;
231
+ top: -10000px;
232
+ left: -10000px;
233
+ width: 1000px;
234
+ height: 1000px;
235
+ }
data/docs/faq.html.erb ADDED
@@ -0,0 +1,63 @@
1
+ <% @page_title = "faq" %>
2
+
3
+ <div class="row">
4
+
5
+ <div class="large-9 push-3 columns">
6
+
7
+ <% @page_title = "FAQ" %>
8
+ <h2><%= @page_title %></h2>
9
+
10
+ <h4 class="subheader">We hear a lot of questions from people using Modularis and realized that a lot of the same ones were being asked. We put together this list of FAQs to help you find answers to common questions.</h4>
11
+
12
+ <h4>Why doesn't Modularis 4 support IE7 or IE8?</h4>
13
+ <p>Modularis 4 is mobile-first, meaning it relies on media queries to layer in more complex layouts and components. Browsers or devices that don't support media queries will be restricted to a simple, single-column layout. In some ways, Modularis 4 better supports IE6-7 inasmuch as it provides a mobile but not broken experience. In IE8 Modularis 4 will provide less than Modularis 3, but with IE8's market share in such steep decline we thought this was the right time.</p>
14
+
15
+ <p>If IE8 support is important for your users / customers, you can use <a href="../files/modularis-3.2.5.zip">Modularis 3.2</a>, which supports IE8. It's not mobile first but it's pretty good stuff.</p>
16
+
17
+ <h4>Can I use Modularis for something I'm going to sell?</h4>
18
+ <p>Yes! Modularis is licensed under the MIT open source license, meaning you can do almost anything with it. The only thing you can't do is imply that Modularis itself is what you're selling.</p>
19
+
20
+ <h4>Is Modularis tested on [some other device or browser]?</h4>
21
+ <p>We try and be comprehensive in our testing, but there are thousands of devices so it's often just not feasible. We'd love to hear about Modularis's behaviour on other devices, but the list above is what we test each release on. If your browser or device is not listed your results may vary.</p>
22
+
23
+ <h4>Where can I find the Modularis 3 docs?</h4>
24
+ <p>For those of you still working on Modularis 3 sites, or who need to continue supporting IE8 with Modularis, we keep the Modularis 3 docs available. <a href="../old-docs/f3">View the Modularis 3 Docs &rarr;</a></p>
25
+
26
+ <hr>
27
+
28
+ <h2>Getting Help</h2>
29
+ <h5 class="subheader">If the documentation and questions above aren't enough, there are several avenues of support available for you to pursue.</h5>
30
+
31
+ <h5><a href="https://groups.google.com/forum/?fromgroups#!forum/modularis-framework-">Modularis Framework Google Group</a></h5>
32
+ <p>This is an active group of Modularis users who can answer questions about implementation or approach. If you aren't sure how to do something, or something isn't working like you'd expect, reach out here.</p>
33
+
34
+ <h5><a href="http://github.com/themepile/modularis/issues">Github Issues</a></h5>
35
+ <p>If you've found a bug in the framework (or think you have) you can file it here. We try and address these as part of ongoing development. Please use this only for bugs or things that seem incorrect, support requests will not be addressed quickly here.</p>
36
+
37
+ <h5><a href="http://twitter.com/modularisthemepile">@modularisthemepile</a></h5>
38
+ <p><a href="http://twitter.com/modularisthemepile">Follow us on Twitter</a> to hear about new sites using Modularis, code examples, playground pieces from ZURB and more. You can also ping us with quick questions or other support issues, we're usually pretty speedy.</p>
39
+
40
+ <h5><a href="mailto:modularis@themepile.com">Get in Touch</a></h5>
41
+ <p>If you're totally stuck and need some help, shoot us <a href="mailto:modularis@themepile.com">an email</a> and we'll typically get back within a day or two.</p>
42
+
43
+ <hr>
44
+
45
+ <div class="panel">
46
+ <h3>What's Changed Recently?</h3>
47
+ <h5 class="subheader">Modularis is the most advanced front-end framework in existence. We've ditched IE7 so that we can do more awesome things and push the web to where it needs to be. Take a look at our changelog to know what's recently been changed or updated.</h5>
48
+ <a class="button" href="support.html">Browser Support &raquo;</a> <a class="secondary button" href="changelog.html">See the Version Changelog &raquo;</a>
49
+ </div>
50
+
51
+ </div>
52
+ <div class="large-3 pull-9 columns">
53
+ <%= render "_sidebar.html.erb" %>
54
+ </div>
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,285 @@
1
+ <% @side_nav = "using" %>
2
+ <% @page_title = "Getting Started" %>
3
+ <div class="row">
4
+ <div class="large-9 push-3 columns">
5
+
6
+ <h2>Getting Started</h2>
7
+ <h5 class="subheader">Whether you are using Scss or CSS, we've made it easy to start a project so that you can help take over the world one responsive site at a time.</h5>
8
+ <p>Modularis is developed in <a href="http://www.sass-lang.com">Sass</a>, which is powerful CSS pre-processor that helps you write cleaner, more organized, CSS that you can more easily maintain over time without the typical headaches of vanilla CSS. On top of our minimal styling, we've written powerful Javascript plugins that will make useful interactions easier to implement across screen sizes.</p>
9
+
10
+ <div class="" style="font-size: 14px;">
11
+ <p><strong>Looking for Modularis 3?</strong><br>
12
+ We're still supporting Modularis 3 for those who don't want to take the leap into the future with us. You can view the docs, download a package or visit the Github page.</p>
13
+ <ul class="button-group">
14
+ <li><a class="small button secondary" style="margin-bottom: 0;" href="../download-f3.php">Download</a></li>
15
+ <li><a class="small button secondary" style="margin-bottom: 0;" href="../old-docs/f3">Docs</a></li>
16
+ <li><a class="small button secondary" style="margin-bottom: 0;" href="https://github.com/themepile/modularis/tree/3-2-stable">Github</a></li>
17
+ </ul>
18
+
19
+ <hr>
20
+
21
+ <p><strong>Ready to Move to 4?</strong><br>
22
+ We've got you covered with a migration guide that explains the differences.</p>
23
+
24
+ <a class="small button secondary" href="../migration.php">Migration Guide</a>
25
+ </div>
26
+
27
+ <hr>
28
+
29
+ <h3>What comes with Modularis?</h3>
30
+ <h5 class="subheader">We've got you covered when it comes to useful features and we've made it easy to take out what you don't need. Here's what you'll get when you create a project using our Sass version or the default CSS version:</h5>
31
+
32
+ <div class="row">
33
+ <div class="large-4 columns">
34
+ <dl>
35
+ <dt><h5><a href="components/grid.html">The Grid</a></h5></dt>
36
+ <dd>Our grid works on almost any device and has support for nesting, source ordering, offsets and device presentation. It almost makes creating layouts too easy!</dd>
37
+ </dl>
38
+ </div>
39
+ <div class="large-4 columns">
40
+ <dl>
41
+ <dt><h5><a href="components/type.html">Typography</a></h5></dt>
42
+ <dd>Our type is based on a golden ratio modular scale that creates meaningful relationships for the copy on the page. It's easily updated using Scss or our CSS customizer.</dd>
43
+ </dl>
44
+ </div>
45
+ <div class="large-4 columns">
46
+ <dl>
47
+ <dt><h5><a href="components/buttons.html">Buttons</a></h5></dt>
48
+ <dd>Buttons are a core interactive element of the Web. We've included styles for creating simple marketing CTAs to complex application toolbars.</dd>
49
+ </dl>
50
+ </div>
51
+ </div>
52
+
53
+ <div class="row">
54
+ <div class="large-4 columns">
55
+ <dl>
56
+ <dt><h5><a href="components/top-bar.html">Navigation</a></h5></dt>
57
+ <dd>People have to get around. Navigation styles in Modularis include a complex top bar that supports 3-level dropdown navigation for simple bars, sidebars and subnav pills.</dd>
58
+ </dl>
59
+ </div>
60
+ <div class="large-4 columns">
61
+ <dl>
62
+ <dt><h5><a href="components/forms.html">Forms</a></h5></dt>
63
+ <dd>Built with the Modularis Grid, you can create simple or complicated forms quickly and easily&mdash; validation states, custom select, radio buttons and more.</dd>
64
+ </dl>
65
+ </div>
66
+ <div class="large-4 columns">
67
+ <dl>
68
+ <dt><h5><a href="components/panels.html">UI Elements</a></h5></dt>
69
+ <dd>We've also included lots of useful elements like visibility classes (to hide or show things based on screen size or orientation), labels, alerts, tooltips, panels and a lot more.</dd>
70
+ </dl>
71
+ </div>
72
+ </div>
73
+
74
+ <div class="row">
75
+ <div class="large-4 columns">
76
+ <dl>
77
+ <dt><h5><a href="components/section.html">Section</a></h5></dt>
78
+ <dd>Whether it's entire pages or simple tabbed content, Modularis's tabs get the job done. Not only stylish, but interactive out of the box.</dd>
79
+ </dl>
80
+ </div>
81
+ <div class="large-4 columns">
82
+ <dl>
83
+ <dt><h5><a href="components/orbit.html">Orbit</a></h5></dt>
84
+ <dd>A powerful image or content slider that works responsively and includes tons of useful options, such as timers, paddles, bullet thumbs and more.</dd>
85
+ </dl>
86
+ </div>
87
+ <div class="large-4 columns">
88
+ <dl>
89
+ <dt><h5><a href="components/reveal.html">Reveal</a></h5></dt>
90
+ <dd>You can easily call modals without writing any JS, even spawn subsequent modals cleanly on the same page. Reveal works across devices.</dd>
91
+ </dl>
92
+ </div>
93
+ </div>
94
+
95
+ <div class="row">
96
+ <div class="large-4 columns">
97
+ <dl>
98
+ <dt><h5><a href="components/clearing.html">Clearing</a></h5></dt>
99
+ <dd>Show off your images in style with our easy to use gallery plugin. It's built with simple unordered lists that can be styled to your hearts content.</dd>
100
+ </dl>
101
+ </div>
102
+ <div class="large-4 columns">
103
+ <dl>
104
+ <dt><h5><a href="components/magellan.html">Magellan</a></h5></dt>
105
+ <dd>A flexible sticky navigation that knows where you are on the page. You just tell it what to recognize and set it off.</dd>
106
+ </dl>
107
+ </div>
108
+ <div class="large-4 columns">
109
+ <dl>
110
+ <dt><h5><a href="components/joyride.html">Joyride</a></h5></dt>
111
+ <dd>This plugin lets you give users a tour of your site or app. Joyride is easy to customize using CSS or our Scss variables.</dd>
112
+ </dl>
113
+ </div>
114
+ </div>
115
+
116
+ <div class="row">
117
+ <div class="large-4 columns">
118
+ <dl>
119
+ <dt><h5><a href="components/tooltips.html">Tooltips</a></h5></dt>
120
+ <dd>Tooltips lets you add quick hover or tap tooltips to elements.</dd>
121
+ </dl>
122
+ </div>
123
+ <div class="large-4 columns end">
124
+ <dl>
125
+ <dt><h5><a href="components/dropdown.html">Dropdown</a></h5></dt>
126
+ <dd>We've made a dropdown plugin that makes it easy to attach a popover dropdown to any element on the page.</dd>
127
+ </dl>
128
+ </div>
129
+ </div>
130
+
131
+ <hr>
132
+
133
+ <h3>How is a project structured?</h3>
134
+ <h5 class="subheader">We follow common patterns for directory structure that are logical and easily maintained. Below is an explanation of each file you'll get when you create a project using our gem or download via our <a href="http://modularis.themepile.com/migration.php">customizer</a>.</h5>
135
+
136
+ <div class="row">
137
+ <div class="large-4 columns">
138
+ <dl>
139
+ <dt><h5>css</h5></dt>
140
+ <dd>Includes <code>modularis.css</code> and <code>modularis.min.css</code> so you can choose which to use. You can add <code>app.css</code> or any other stylesheet to use for custom styles that will sit on top of the Modularis core as overrides.</dd>
141
+ </dl>
142
+ </div>
143
+ <div class="large-4 columns">
144
+ <dl>
145
+ <dt><h5>js</h5></dt>
146
+ <dd>All of our plugins and the necessary JavaScript to make Modularis work properly. <strong>All JS is initiated by default</strong>.</dd>
147
+ </dl>
148
+ </div>
149
+ <div class="large-4 columns">
150
+ <dl>
151
+ <dt><h5>img</h5></dt>
152
+ <dd>This directory actually comes empty in Modularis 4! We no longer have any images included in the core of Modularis.</dd>
153
+ </dl>
154
+ </div>
155
+ </div>
156
+
157
+ <div class="row">
158
+ <div class="large-4 columns">
159
+ <dl>
160
+ <dt><h5>index.html</h5></dt>
161
+ <dd>A sample structure for page content, giving you something to use as a basic structural template for the rest of the pages in your project.</dd>
162
+ </dl>
163
+ </div>
164
+ <div class="large-4 columns">
165
+ <dl>
166
+ <dt><h5>humans.txt</h5></dt>
167
+ <dd>A way to tell the world about the people that worked on the sites you build, giving them kudos they deserve.</dd>
168
+ </dl>
169
+ </div>
170
+ <div class="large-4 columns">
171
+ <dl>
172
+ <dt><h5>robots.txt</h5></dt>
173
+ <dd>Give instructions to web robots so search engines know what to do when they crawl your site for content.</dd>
174
+ </dl>
175
+ </div>
176
+ </div>
177
+ <br>
178
+ <div class="row">
179
+ <div class="large-12 columns">
180
+ <div class="panel">
181
+ <h6 class="subheader"><strong>Using the Gem?</strong> You'll see a couple extra pieces in your project upon creation. These are:</h6>
182
+ <dl>
183
+ <dt>scss/</dt>
184
+ <dd>Your main style folder is named <strong>scss/</strong> and contains <code>app.scss</code> (which has the modularis gem import and commented portions you can pick and choose.) and <code>normalize.scss</code>. Override the Modularis styles within your app.scss file. You can see the compiled CSS in your stylesheets directory after you manually <span class="has-tip top" title="$ compass compile <filename>">compile</span> or <span class="has-tip top" title="$ compass watch <directory>">watch</span>. This directory also includes <code>_settings.scss</code>, which is used to control variables that help easily style Modularis.</dd>
185
+ <dt></i>config.rb</dt>
186
+ <dd>This file is used by <a href="http://compass-style.org">Compass</a> to compile your project. Here you can control the output style of your CSS, the structure of your directories and other useful settings.</dd>
187
+ </dl>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <hr>
193
+
194
+ <h3 id="basicHTMLMarkup">HTML Page Markup</h3>
195
+ <h5 class="subheader">Our markup structure is straight forward and gives you the flexibility you need to create to your hearts desires. Here's an example page that includes the basics:</h5>
196
+
197
+ <%= code_example '
198
+ <!DOCTYPE html>
199
+ <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
200
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
201
+
202
+ <head>
203
+ <meta charset="utf-8" />
204
+ <meta name="viewport" content="width=device-width" />
205
+ <title>Modularis 4</title>
206
+
207
+ <link rel="stylesheet" href="css/normalize.css" />
208
+ <!-- If you are using CSS version, add this -->
209
+ <link rel="stylesheet" href="css/modularis.css" />
210
+ <link rel="stylesheet" href="css/app.css" />
211
+
212
+ <script src="js/vendor/custom.modernizr.js"></script>
213
+
214
+ </head>
215
+ <body>
216
+
217
+ <!-- body content here -->
218
+
219
+ <script>
220
+ document.write(\'<script src=\' +
221
+ (\'__proto__\' in {} ? \'js/vendor/zepto\' : \'js/vendor/jquery\') +
222
+ \'.js><\/script>\')
223
+ </script>
224
+ <script src="js/modularis/modularis.js"></script>
225
+ <script>
226
+ $(document).modularis();
227
+ </script>
228
+ </body>
229
+ </html>
230
+
231
+ ', :html %>
232
+
233
+ <div class="row">
234
+ <div class="large-4 columns">
235
+ <dl>
236
+ <dt><h5>Doctype &amp; Head</h5></dt>
237
+ <dd>We use the HTML doctype declaration to tell the browser what to expect. From there we've used a <a href="http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">technique by Paul Irish</a> that attaches classes to the HTML for IE. After that, we set the character set to UTF-8.</dd>
238
+ <dt>Meta Viewport tag</dt>
239
+ <dd>This is used to make sure smaller devices use the device width as the viewport width.</dd>
240
+ <dt>Title Tag</dt>
241
+ <dd>This one is pretty self-explanatory. You're setting the name of the current page with this value.</dd>
242
+ </dl>
243
+ </div>
244
+ <div class="large-4 columns">
245
+ <dl>
246
+ <dt><h5>CSS &amp; Modernizr</h5></dt>
247
+ <dd>The default CSS download includes everything you need to get going, including necessary styles and our custom Modernizr script.</dd>
248
+ <dt>CSS</dt>
249
+ <dd>We include <code>modularis.min.css</code> and <code>modularis.css</code>. The difference here is whether or not you want minified code or not (link whichever you want, but not both).</dd>
250
+ </dl>
251
+ </div>
252
+ <div class="large-4 columns">
253
+ <dl>
254
+ <dt>Modernizr</dt>
255
+ <dd>We use this to give us the HTML5 Shiv, touch classes and JS media queries that help us control Modularis.</dd>
256
+ <dt><h5>Javascripts</h5></dt>
257
+ <dd>Our JS is linked up right before the closing body tag and includes all necessary plugins and initializers to hit the ground running.</dd>
258
+ </dl>
259
+ </div>
260
+ </div>
261
+
262
+ <hr>
263
+
264
+ <div class="panel">
265
+ <h3>Get going!</h3>
266
+ <h5 class="subheader">Now that you understand the gist of what Modularis is and how it works, it's time to start a project! We've got two different ways for you to build projects with Modularis, a Compass Gem using Scss or a with plain CSS.</h5>
267
+ <a href="./sass.html" class="button">Using the Gem</a></li>
268
+ <a href="http://modularis.themepile.com/migration.php" class="button secondary">Quickstart with CSS</a></li>
269
+ </div>
270
+
271
+
272
+
273
+ </div>
274
+ <div class="large-3 pull-9 columns">
275
+ <%= render "_sidebar.html.erb" %>
276
+ </div>
277
+ </div>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+