modularis 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.gitignore +24 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.rbenv-version +1 -0
- data/CONTRIBUTING.md +53 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +19 -0
- data/Gruntfile.js +27 -0
- data/LICENSE +22 -0
- data/README.md +27 -0
- data/Rakefile +2 -0
- data/docs/CHANGELOG.md +260 -0
- data/docs/Capfile +4 -0
- data/docs/Gemfile +13 -0
- data/docs/Gemfile.lock +45 -0
- data/docs/Procfile +2 -0
- data/docs/README.md +1 -0
- data/docs/_sidebar-components.html.erb +115 -0
- data/docs/_sidebar.html.erb +115 -0
- data/docs/changelog.html.erb +33 -0
- data/docs/compile.rb +34 -0
- data/docs/components/alert-boxes.html.erb +204 -0
- data/docs/components/block-grid.html.erb +132 -0
- data/docs/components/breadcrumbs.html.erb +156 -0
- data/docs/components/button-groups.html.erb +230 -0
- data/docs/components/buttons.html.erb +222 -0
- data/docs/components/clearing.html.erb +152 -0
- data/docs/components/custom-forms.html.erb +309 -0
- data/docs/components/dropdown-buttons.html.erb +235 -0
- data/docs/components/dropdown.html.erb +188 -0
- data/docs/components/flex-video.html.erb +95 -0
- data/docs/components/forms.html.erb +477 -0
- data/docs/components/global.html.erb +92 -0
- data/docs/components/grid.html.erb +366 -0
- data/docs/components/inline-lists.html.erb +91 -0
- data/docs/components/joyride.html.erb +183 -0
- data/docs/components/keystrokes.html.erb +76 -0
- data/docs/components/kitchen-sink.html.erb +870 -0
- data/docs/components/labels.html.erb +102 -0
- data/docs/components/magellan.html.erb +86 -0
- data/docs/components/orbit.html.erb +276 -0
- data/docs/components/pagination.html.erb +183 -0
- data/docs/components/panels.html.erb +123 -0
- data/docs/components/pricing-tables.html.erb +156 -0
- data/docs/components/progress-bars.html.erb +123 -0
- data/docs/components/reveal.html.erb +162 -0
- data/docs/components/section.html.erb +496 -0
- data/docs/components/side-nav.html.erb +124 -0
- data/docs/components/split-buttons.html.erb +220 -0
- data/docs/components/sub-nav.html.erb +122 -0
- data/docs/components/switch.html.erb +290 -0
- data/docs/components/tables.html.erb +125 -0
- data/docs/components/thumbnails.html.erb +89 -0
- data/docs/components/tooltips.html.erb +75 -0
- data/docs/components/top-bar.html.erb +283 -0
- data/docs/components/type.html.erb +396 -0
- data/docs/components/visibility.html.erb +110 -0
- data/docs/config/deploy.rb +36 -0
- data/docs/config.ru +12 -0
- data/docs/controller.rb +53 -0
- data/docs/css/_coderay.scss +116 -0
- data/docs/css/_settings.scss +1 -0
- data/docs/css/docs.scss +185 -0
- data/docs/css/normalize.scss +396 -0
- data/docs/css/qunit-composite.css +13 -0
- data/docs/css/qunit.css +235 -0
- data/docs/faq.html.erb +63 -0
- data/docs/img/demos/demo1-th.jpg +0 -0
- data/docs/img/demos/demo1.jpg +0 -0
- data/docs/img/demos/demo2-th.jpg +0 -0
- data/docs/img/demos/demo2.jpg +0 -0
- data/docs/img/demos/demo3-th.jpg +0 -0
- data/docs/img/demos/demo3.jpg +0 -0
- data/docs/img/demos/demo4-th.jpg +0 -0
- data/docs/img/demos/demo4.jpg +0 -0
- data/docs/img/demos/demo5-th.jpg +0 -0
- data/docs/img/demos/demo5.jpg +0 -0
- data/docs/index.html.erb +285 -0
- data/docs/javascript.html.erb +134 -0
- data/docs/js/docs.js +3 -0
- data/docs/js/qunit-composite.js +105 -0
- data/docs/js/qunit.js +1977 -0
- data/docs/js/tests/tabs/simple_tabs.html +57 -0
- data/docs/js/tests/tabs/simple_tabs.js +54 -0
- data/docs/js/tests/tooltips/tooltips.html +39 -0
- data/docs/js/tests/tooltips/tooltips.js +11 -0
- data/docs/layout.html.erb +128 -0
- data/docs/media-queries.html.erb +96 -0
- data/docs/rails.html.erb +76 -0
- data/docs/rtl.html.erb +53 -0
- data/docs/sass.html.erb +1295 -0
- data/docs/support.html.erb +143 -0
- data/docs/test/_test-scripts.html.erb +36 -0
- data/docs/test/cards.html.erb +77 -0
- data/docs/test/flexbox-grid.html.erb +68 -0
- data/docs/test/flip-nav.html.erb +54 -0
- data/docs/test/layout.html.erb +15 -0
- data/docs/test/off-canvas1.html.erb +64 -0
- data/docs/test/off-canvas2.html.erb +75 -0
- data/docs/test/off-canvas3.html.erb +65 -0
- data/docs/test_layout.html.erb +128 -0
- data/js/modularis/index.js +18 -0
- data/js/vendor/custom.modernizr.js +4 -0
- data/js/vendor/jquery.js +9597 -0
- data/js/vendor/zepto.js +1884 -0
- data/lib/modularis/engine.rb +18 -0
- data/lib/modularis/generators/USAGE +15 -0
- data/lib/modularis/generators/install_generator.rb +54 -0
- data/lib/modularis/generators/templates/application.html.erb +46 -0
- data/lib/modularis/generators/templates/application.html.haml +31 -0
- data/lib/modularis/generators/templates/application.html.slim +28 -0
- data/lib/modularis/version.rb +3 -0
- data/lib/modularis.rb +17 -0
- data/modularis.gemspec +20 -0
- data/package.json +15 -0
- data/scss/compagecss/_variables.scss +1192 -0
- data/scss/compagecss/components/_alert-boxes.scss +106 -0
- data/scss/compagecss/components/_block-grid.scss +70 -0
- data/scss/compagecss/components/_breadcrumbs.scss +124 -0
- data/scss/compagecss/components/_button-groups.scss +88 -0
- data/scss/compagecss/components/_buttons.scss +226 -0
- data/scss/compagecss/components/_clearing.scss +217 -0
- data/scss/compagecss/components/_custom-forms.scss +246 -0
- data/scss/compagecss/components/_dropdown-buttons.scss +114 -0
- data/scss/compagecss/components/_dropdown.scss +149 -0
- data/scss/compagecss/components/_flex-video.scss +45 -0
- data/scss/compagecss/components/_flexbox-grid.scss +225 -0
- data/scss/compagecss/components/_flip.scss +105 -0
- data/scss/compagecss/components/_forms.scss +361 -0
- data/scss/compagecss/components/_global.scss +289 -0
- data/scss/compagecss/components/_grid.scss +184 -0
- data/scss/compagecss/components/_inline-lists.scss +52 -0
- data/scss/compagecss/components/_joyride.scss +210 -0
- data/scss/compagecss/components/_keystrokes.scss +56 -0
- data/scss/compagecss/components/_labels.scss +84 -0
- data/scss/compagecss/components/_magellan.scss +21 -0
- data/scss/compagecss/components/_off-canvas.scss +86 -0
- data/scss/compagecss/components/_orbit.scss +209 -0
- data/scss/compagecss/components/_pagination.scss +99 -0
- data/scss/compagecss/components/_panels.scss +76 -0
- data/scss/compagecss/components/_pricing-tables.scss +130 -0
- data/scss/compagecss/components/_progress-bars.scss +70 -0
- data/scss/compagecss/components/_reveal.scss +131 -0
- data/scss/compagecss/components/_section.scss +303 -0
- data/scss/compagecss/components/_side-nav.scss +68 -0
- data/scss/compagecss/components/_split-buttons.scss +166 -0
- data/scss/compagecss/components/_sub-nav.scss +67 -0
- data/scss/compagecss/components/_switch.scss +249 -0
- data/scss/compagecss/components/_tables.scss +80 -0
- data/scss/compagecss/components/_thumbs.scss +47 -0
- data/scss/compagecss/components/_tooltips.scss +113 -0
- data/scss/compagecss/components/_top-bar.scss +462 -0
- data/scss/compagecss/components/_type.scss +422 -0
- data/scss/compagecss/components/_visibility.scss +320 -0
- data/scss/modularis.scss +49 -0
- data/scss/normalize.scss +402 -0
- data/templates/project/.gitignore +44 -0
- data/templates/project/MIT-LICENSE.txt +20 -0
- data/templates/project/config.rb +26 -0
- data/templates/project/humans.txt +8 -0
- data/templates/project/index.html +124 -0
- data/templates/project/manifest.rb +44 -0
- data/templates/project/robots.txt +4 -0
- data/templates/project/scss/app.scss +48 -0
- data/templates/upgrade/manifest.rb +34 -0
- metadata +235 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<div class="docs section-container accordion" data-section data-options="one_up: false">
|
|
2
|
+
<section class="section <%= @side_nav == 'using' ? 'active': '' %>">
|
|
3
|
+
<p class="title"><a href="#">Using Modularis</a></p>
|
|
4
|
+
<div class="content">
|
|
5
|
+
<ul class="side-nav">
|
|
6
|
+
<li><a href="../">Get Started</a></li>
|
|
7
|
+
<li><a href="../javascript.html">Javascript</a></li>
|
|
8
|
+
<li><a href="../sass.html">Sass</a></li>
|
|
9
|
+
<li><a href="../rails.html">Rails</a></li>
|
|
10
|
+
<li><a href="../media-queries.html">Media Queries</a></li>
|
|
11
|
+
<li><a class="<%= @page_title == 'Visibility Classes' ? 'active': '' %>" href="visibility.html">Visibility Classes</a></li>
|
|
12
|
+
<li><a href="../rtl.html">Right-to-Left Support</a></li>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
</section>
|
|
16
|
+
<section class="section <%= @side_nav == 'grid' ? 'active': '' %>">
|
|
17
|
+
<p class="title"><a href="#">Grid</a></p>
|
|
18
|
+
<div class="content">
|
|
19
|
+
<ul class="side-nav">
|
|
20
|
+
<li><a class="<%= @page_title == 'Grid' ? 'active': '' %>" href="grid.html">Grid</a></li>
|
|
21
|
+
<li><a class="<%= @page_title == 'Block Grid' ? 'active': '' %>" href="block-grid.html">Block Grid</a></li>
|
|
22
|
+
</ul>
|
|
23
|
+
</div>
|
|
24
|
+
</section>
|
|
25
|
+
<section class="section <%= @side_nav == 'nav' ? 'active': '' %>">
|
|
26
|
+
<p class="title"><a href="#">Navigation</a></p>
|
|
27
|
+
<div class="content">
|
|
28
|
+
<ul class="side-nav">
|
|
29
|
+
<li><a class="<%= @page_title == 'Pagination' ? 'active': '' %>" href="pagination.html">Pagination</a></li>
|
|
30
|
+
<li><a class="<%= @page_title == 'Side Nav' ? 'active': '' %>" href="side-nav.html">Side Nav</a></li>
|
|
31
|
+
<li><a class="<%= @page_title == 'Sub Nav' ? 'active': '' %>" href="sub-nav.html">Sub Nav</a></li>
|
|
32
|
+
<li><a class="<%= @page_title == 'Top Bar' ? 'active': '' %>" href="top-bar.html">Top Bar</a></li>
|
|
33
|
+
<li><a class="<%= @page_title == 'Breadcrumbs' ? 'active': '' %>" href="breadcrumbs.html">Breadcrumbs</a></li>
|
|
34
|
+
</ul>
|
|
35
|
+
</div>
|
|
36
|
+
</section>
|
|
37
|
+
<section class="section <%= @side_nav == 'buttons' ? 'active': '' %>">
|
|
38
|
+
<p class="title"><a href="#">Buttons</a></p>
|
|
39
|
+
<div class="content">
|
|
40
|
+
<ul class="side-nav">
|
|
41
|
+
<li><a class="<%= @page_title == 'Buttons' ? 'active': '' %>" href="buttons.html">Buttons</a></li>
|
|
42
|
+
<li><a class="<%= @page_title == 'Button Groups' ? 'active': '' %>" href="button-groups.html">Button Groups</a></li>
|
|
43
|
+
<li><a class="<%= @page_title == 'Dropdown Buttons' ? 'active': '' %>" href="dropdown-buttons.html">Dropdown Buttons</a></li>
|
|
44
|
+
<li><a class="<%= @page_title == 'Split Buttons' ? 'active': '' %>" href="split-buttons.html">Split Buttons</a></li>
|
|
45
|
+
</ul>
|
|
46
|
+
</div>
|
|
47
|
+
</section>
|
|
48
|
+
<section class="section <%= @side_nav == 'forms' ? 'active': '' %>">
|
|
49
|
+
<p class="title"><a href="#">Forms</a></p>
|
|
50
|
+
<div class="content">
|
|
51
|
+
<ul class="side-nav">
|
|
52
|
+
<li><a class="<%= @page_title == 'Forms' ? 'active': '' %>" href="forms.html">Forms</a></li>
|
|
53
|
+
<li><a class="<%= @page_title == 'Custom Forms' ? 'active': '' %>" href="custom-forms.html">Custom Forms</a></li>
|
|
54
|
+
<li><a class="<%= @page_title == 'Switch' ? 'active': '' %>" href="switch.html">Switch</a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</div>
|
|
57
|
+
</section>
|
|
58
|
+
<section class="section <%= @side_nav == 'type' ? 'active': '' %>">
|
|
59
|
+
<p class="title"><a href="#">Typography</a></p>
|
|
60
|
+
<div class="content">
|
|
61
|
+
<ul class="side-nav">
|
|
62
|
+
<li><a class="<%= @page_title == 'Typography' ? 'active': '' %>" href="type.html">Type</a></li>
|
|
63
|
+
<li><a class="<%= @page_title == 'Inline Lists' ? 'active': '' %>" href="inline-lists.html">Inline Lists</a></li>
|
|
64
|
+
<li><a class="<%= @page_title == 'Labels' ? 'active': '' %>" href="labels.html">Labels</a></li>
|
|
65
|
+
<li><a class="<%= @page_title == 'Keystrokes' ? 'active': '' %>" href="keystrokes.html">Keystrokes</a></li>
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
68
|
+
</section>
|
|
69
|
+
<section class="section <%= @side_nav == 'css' ? 'active': '' %>">
|
|
70
|
+
<p class="title"><a href="#">CSS Components</a></p>
|
|
71
|
+
<div class="content">
|
|
72
|
+
<ul class="side-nav">
|
|
73
|
+
<li><a class="<%= @page_title == 'Global' ? 'active': '' %>" href="global.html">Global Styles</a></li>
|
|
74
|
+
<li><a class="<%= @page_title == 'Alert Boxes' ? 'active': '' %>" href="alert-boxes.html">Alert Boxes</a></li>
|
|
75
|
+
<li><a class="<%= @page_title == 'Panels' ? 'active': '' %>" href="panels.html">Panels</a></li>
|
|
76
|
+
<li><a class="<%= @page_title == 'Pricing Tables' ? 'active': '' %>" href="pricing-tables.html">Pricing Tables</a></li>
|
|
77
|
+
<li><a class="<%= @page_title == 'Progress Bars' ? 'active': '' %>" href="progress-bars.html">Progress Bars</a></li>
|
|
78
|
+
<li><a class="<%= @page_title == 'Tables' ? 'active': '' %>" href="tables.html">Tables</a></li>
|
|
79
|
+
<li><a class="<%= @page_title == 'Thumbnails' ? 'active': '' %>" href="thumbnails.html">Thumbnails</a></li>
|
|
80
|
+
<li><a class="<%= @page_title == 'Flex Video' ? 'active': '' %>" href="flex-video.html">Flex Video</a></li>
|
|
81
|
+
<li class="divider"></li>
|
|
82
|
+
<li><a target="_blank" style="font-style: italic" class="<%= @page_title == 'Kitchen Sink' ? 'active': '' %>" href="kitchen-sink.html">Kitchen Sink</a></li>
|
|
83
|
+
</ul>
|
|
84
|
+
</div>
|
|
85
|
+
</section>
|
|
86
|
+
<section class="section <%= @side_nav == 'js' ? 'active': '' %>">
|
|
87
|
+
<p class="title"><a href="#">Javascript</a></p>
|
|
88
|
+
<div class="content">
|
|
89
|
+
<ul class="side-nav">
|
|
90
|
+
<li><a class="<%= @page_title == 'Clearing' ? 'active': '' %>" href="clearing.html">Clearing</a></li>
|
|
91
|
+
<li><a class="<%= @page_title == 'Dropdown' ? 'active': '' %>" href="dropdown.html">Dropdown</a></li>
|
|
92
|
+
<li><a class="<%= @page_title == 'Joyride' ? 'active': '' %>" href="joyride.html">Joyride</a></li>
|
|
93
|
+
<li><a class="<%= @page_title == 'Magellan' ? 'active': '' %>" href="magellan.html">Magellan</a></li>
|
|
94
|
+
<li><a class="<%= @page_title == 'Orbit' ? 'active': '' %>" href="orbit.html">Orbit</a></li>
|
|
95
|
+
<li><a class="<%= @page_title == 'Reveal' ? 'active': '' %>" href="reveal.html">Reveal</a></li>
|
|
96
|
+
<li><a class="<%= @page_title == 'Sections' ? 'active': '' %>" href="section.html">Section</a></li>
|
|
97
|
+
<li><a class="<%= @page_title == 'Tooltips' ? 'active': '' %>" href="tooltips.html">Tooltips</a></li>
|
|
98
|
+
</ul>
|
|
99
|
+
</div>
|
|
100
|
+
</section>
|
|
101
|
+
<section class="section <%= @page_title == 'FAQ' ? 'active': '' %>">
|
|
102
|
+
<p class="title"><a href="../faq.html">FAQ</a></p>
|
|
103
|
+
</section>
|
|
104
|
+
<section class="section <%= @page_title == 'Support' ? 'active': '' %>">
|
|
105
|
+
<p class="title"><a href="../support.html">Support</a></p>
|
|
106
|
+
</section>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<p><a href="http://modularis.themepile.com/download.php" class="button expand" style="margin-bottom: 0;">Download Modularis 4</a></p>
|
|
110
|
+
|
|
111
|
+
<div class="jobs hide-for-small">
|
|
112
|
+
<h5>Awesome product jobs:</h5>
|
|
113
|
+
<script type="text/javascript" src="http://www.themepile.com/jobs/widgets/jobs.js?limit=3&variation=modularis-sidebar"></script>
|
|
114
|
+
<a id="via" href="http://themepilejobs.com">via <span class="jobs-link">ZURBjobs</span></a>
|
|
115
|
+
</div>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<div class="docs section-container accordion" data-section data-options="one_up: false">
|
|
2
|
+
<section class="section <%= @side_nav == 'using' ? 'active': '' %>">
|
|
3
|
+
<p class="title"><a href="#">Using Modularis</a></p>
|
|
4
|
+
<div class="content">
|
|
5
|
+
<ul class="side-nav">
|
|
6
|
+
<li><a class="<%= @page_title == 'Getting Started' ? 'active': '' %>" href="index.html">Get Started</a></li>
|
|
7
|
+
<li><a class="<%= @page_title == 'Javascript' ? 'active': '' %>" href="javascript.html">Javascript</a></li>
|
|
8
|
+
<li><a class="<%= @page_title == 'Sass' ? 'active': '' %>" href="sass.html">Sass</a></li>
|
|
9
|
+
<li><a class="<%= @page_title == 'Rails' ? 'active': '' %>" href="rails.html">Rails</a></li>
|
|
10
|
+
<li><a class="<%= @page_title == 'Media Queries' ? 'active': '' %>" href="media-queries.html">Media Queries</a></li>
|
|
11
|
+
<li><a href="components/visibility.html">Visibility Classes</a></li>
|
|
12
|
+
<li><a class="<%= @page_title == 'Right-to-Left Support' ? 'active': '' %>" href="rtl.html">Right-to-Left Support</a></li>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
</section>
|
|
16
|
+
<section class="section">
|
|
17
|
+
<p class="title"><a href="#">Grid</a></p>
|
|
18
|
+
<div class="content">
|
|
19
|
+
<ul class="side-nav">
|
|
20
|
+
<li><a href="components/grid.html">Grid</a></li>
|
|
21
|
+
<li><a href="components/block-grid.html">Block Grid</a></li>
|
|
22
|
+
</ul>
|
|
23
|
+
</div>
|
|
24
|
+
</section>
|
|
25
|
+
<section class="section">
|
|
26
|
+
<p class="title"><a href="#">Navigation</a></p>
|
|
27
|
+
<div class="content">
|
|
28
|
+
<ul class="side-nav">
|
|
29
|
+
<li><a href="components/pagination.html">Pagination</a></li>
|
|
30
|
+
<li><a href="components/side-nav.html">Side Nav</a></li>
|
|
31
|
+
<li><a href="components/sub-nav.html">Sub Nav</a></li>
|
|
32
|
+
<li><a href="components/top-bar.html">Top Bar</a></li>
|
|
33
|
+
<li><a href="components/breadcrumbs.html">Breadcrumbs</a></li>
|
|
34
|
+
</ul>
|
|
35
|
+
</div>
|
|
36
|
+
</section>
|
|
37
|
+
<section class="section">
|
|
38
|
+
<p class="title"><a href="#">Buttons</a></p>
|
|
39
|
+
<div class="content">
|
|
40
|
+
<ul class="side-nav">
|
|
41
|
+
<li><a href="components/buttons.html">Buttons</a></li>
|
|
42
|
+
<li><a href="components/button-groups.html">Button Groups</a></li>
|
|
43
|
+
<li><a href="components/dropdown-buttons.html">Dropdown Buttons</a></li>
|
|
44
|
+
<li><a href="components/split-buttons.html">Split Buttons</a></li>
|
|
45
|
+
</ul>
|
|
46
|
+
</div>
|
|
47
|
+
</section>
|
|
48
|
+
<section class="section">
|
|
49
|
+
<p class="title"><a href="#">Forms</a></p>
|
|
50
|
+
<div class="content">
|
|
51
|
+
<ul class="side-nav">
|
|
52
|
+
<li><a href="components/forms.html">Forms</a></li>
|
|
53
|
+
<li><a href="components/custom-forms.html">Custom Forms</a></li>
|
|
54
|
+
<li><a href="components/switch.html">Switch</a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</div>
|
|
57
|
+
</section>
|
|
58
|
+
<section class="section">
|
|
59
|
+
<p class="title"><a href="#">Typography</a></p>
|
|
60
|
+
<div class="content">
|
|
61
|
+
<ul class="side-nav">
|
|
62
|
+
<li><a href="components/type.html">Type</a></li>
|
|
63
|
+
<li><a href="components/inline-lists.html">Inline Lists</a></li>
|
|
64
|
+
<li><a href="components/labels.html">Labels</a></li>
|
|
65
|
+
<li><a href="components/keystrokes.html">Keystrokes</a></li>
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
68
|
+
</section>
|
|
69
|
+
<section class="section">
|
|
70
|
+
<p class="title"><a href="#">CSS Components</a></p>
|
|
71
|
+
<div class="content">
|
|
72
|
+
<ul class="side-nav">
|
|
73
|
+
<li><a href="components/global.html">Global Styles</a></li>
|
|
74
|
+
<li><a href="components/alert-boxes.html">Alert Boxes</a></li>
|
|
75
|
+
<li><a href="components/panels.html">Panels</a></li>
|
|
76
|
+
<li><a href="components/pricing-tables.html">Pricing Tables</a></li>
|
|
77
|
+
<li><a href="components/progress-bars.html">Progress Bars</a></li>
|
|
78
|
+
<li><a href="components/tables.html">Tables</a></li>
|
|
79
|
+
<li><a href="components/thumbnails.html">Thumbnails</a></li>
|
|
80
|
+
<li><a href="components/flex-video.html">Flex Video</a></li>
|
|
81
|
+
<li class="divider"></li>
|
|
82
|
+
<li><a target="_blank" style="font-style: italic" href="components/kitchen-sink.html">Kitchen Sink</a></li>
|
|
83
|
+
</ul>
|
|
84
|
+
</div>
|
|
85
|
+
</section>
|
|
86
|
+
<section class="section">
|
|
87
|
+
<p class="title"><a href="#">Javascript</a></p>
|
|
88
|
+
<div class="content">
|
|
89
|
+
<ul class="side-nav">
|
|
90
|
+
<li><a href="components/clearing.html">Clearing</a></li>
|
|
91
|
+
<li><a href="components/dropdown.html">Dropdown</a></li>
|
|
92
|
+
<li><a href="components/joyride.html">Joyride</a></li>
|
|
93
|
+
<li><a href="components/magellan.html">Magellan</a></li>
|
|
94
|
+
<li><a href="components/orbit.html">Orbit</a></li>
|
|
95
|
+
<li><a href="components/reveal.html">Reveal</a></li>
|
|
96
|
+
<li><a href="components/section.html">Section</a></li>
|
|
97
|
+
<li><a href="components/tooltips.html">Tooltips</a></li>
|
|
98
|
+
</ul>
|
|
99
|
+
</div>
|
|
100
|
+
</section>
|
|
101
|
+
<section class="section <%= @page_title == 'FAQ' ? 'active': '' %>">
|
|
102
|
+
<p class="title"><a href="faq.html">FAQ</a></p>
|
|
103
|
+
</section>
|
|
104
|
+
<section class="section <%= @page_title == 'Support' ? 'active': '' %>">
|
|
105
|
+
<p class="title"><a href="support.html">Support</a></p>
|
|
106
|
+
</section>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<p><a href="http://modularis.themepile.com/download.php" class="button expand" style="margin-bottom: 0;">Download Modularis 4</a></p>
|
|
110
|
+
|
|
111
|
+
<div class="jobs hide-for-small">
|
|
112
|
+
<h5>Awesome product jobs:</h5>
|
|
113
|
+
<script type="text/javascript" src="http://www.themepile.com/jobs/widgets/jobs.js?limit=3&variation=modularis-sidebar"></script>
|
|
114
|
+
<a id="via" href="http://themepilejobs.com">via <span class="jobs-link">ZURBjobs</span></a>
|
|
115
|
+
</div>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div class="row">
|
|
2
|
+
<div class="large-3 columns">
|
|
3
|
+
<%= render "_sidebar.html.erb" %>
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<div class="large-9 columns">
|
|
7
|
+
|
|
8
|
+
<% @page_title = "Changelog" %>
|
|
9
|
+
<h2><%= @page_title %></h2>
|
|
10
|
+
|
|
11
|
+
<h4 class="subheader">We'll keep you up to date with what we've released so you at least have a gist of what goes into each update. For the most part, we'll try to list things out as detailed as we see necessary.</h4>
|
|
12
|
+
|
|
13
|
+
<%= render 'CHANGELOG.md' %>
|
|
14
|
+
|
|
15
|
+
<hr>
|
|
16
|
+
|
|
17
|
+
<div class="panel">
|
|
18
|
+
<h3>Where Does Modularis Work?</h3>
|
|
19
|
+
<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.</h5>
|
|
20
|
+
<a class="button" href="support.html">Browser Support »</a> <a class="secondary button" href="faq.html">Frequently Asked Questions »</a>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
data/docs/compile.rb
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
require 'bundler'
|
|
2
|
+
Bundler.require
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
|
|
5
|
+
class ModularisAssets
|
|
6
|
+
|
|
7
|
+
BUNDLES = [
|
|
8
|
+
"vendor/custom.modernizr.js", "vendor/zepto.js", "vendor/jquery.js",
|
|
9
|
+
"docs.js", "docs.css", "normalize.css"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
def initialize
|
|
13
|
+
@env = Sprockets::Environment.new
|
|
14
|
+
@env.append_path File.expand_path('../../scss', __FILE__)
|
|
15
|
+
@env.append_path File.expand_path('../css', __FILE__)
|
|
16
|
+
@env.append_path File.expand_path('../../js', __FILE__)
|
|
17
|
+
@env.append_path File.expand_path('../js', __FILE__)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def compile
|
|
21
|
+
assets_path = "public/assets"
|
|
22
|
+
FileUtils.mkdir_p("#{assets_path}/vendor")
|
|
23
|
+
BUNDLES.each do |bundle|
|
|
24
|
+
pth = "#{assets_path}/#{bundle}"
|
|
25
|
+
File.delete(pth) if File.exists?(pth)
|
|
26
|
+
code = @env[bundle].to_s
|
|
27
|
+
File.open(pth, "w") {|f| f.puts code}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
Stasis.new(File.expand_path('.'), File.expand_path('./public'), {:asset_path => "http://modularis.themepile.com/docs/assets"}).render
|
|
33
|
+
assets = ModularisAssets.new
|
|
34
|
+
assets.compile
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<% @side_nav = "css" %>
|
|
2
|
+
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="large-9 push-3 columns">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="large-12 columns">
|
|
7
|
+
<% @page_title = "Alert Boxes" %>
|
|
8
|
+
<h2><%= @page_title %></h2>
|
|
9
|
+
<h4 class="subheader">Alerts are a handy element you can drop into a form or inline on a page to communicate success, warnings, failure or just information. They'll conform to 100% of the container width you put them in.</h4>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="large-12 columns">
|
|
15
|
+
<div data-alert class="alert-box radius">
|
|
16
|
+
This is a standard alert (div.alert-box).
|
|
17
|
+
<a href="" class="close">×</a>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div data-alert class="alert-box success">
|
|
21
|
+
This is a success alert (div.alert-box.success).
|
|
22
|
+
<a href="" class="close">×</a>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div data-alert class="alert-box alert round">
|
|
26
|
+
This is an alert (div.alert-box.alert.round).
|
|
27
|
+
<a href="" class="close">×</a>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div data-alert class="alert-box secondary">
|
|
31
|
+
This is a secondary alert (div.alert-box.secondary).
|
|
32
|
+
<a href="" class="close">×</a>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<hr>
|
|
36
|
+
|
|
37
|
+
<h3>Build With Predefined HTML Classes</h3>
|
|
38
|
+
<p>There are two ways to build alerts in Modularis 4: with our predefined HTML classes or with our structure and mixins. Building an alert using our predefined class is super-easy, you only need a block-level element with a class of <code>.alert-box</code> (we usually use a <code><div></code>). You may also include an anchor with a class of <code>.close</code> to create a close box. Here is the markup you'll need:</p>
|
|
39
|
+
|
|
40
|
+
<%= code_example '
|
|
41
|
+
<div data-alert class="alert-box">
|
|
42
|
+
<!-- Your content goes here -->
|
|
43
|
+
<a href="#" class="close">×</a>
|
|
44
|
+
</div>', :html %>
|
|
45
|
+
|
|
46
|
+
<p>For these styles to come across, make sure you have the <strong>default Modularis CSS package</strong> or that you've selected <strong>alerts from a custom package</strong>. These should be linked up following our default <a href="#getting-started">HTML page structure</a>.</p>
|
|
47
|
+
|
|
48
|
+
<hr>
|
|
49
|
+
|
|
50
|
+
<h3>Build with Mixins</h3>
|
|
51
|
+
<p>We've included SCSS mixins used to style alert boxes. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/themepile/modularis/blob/master/scss/modularis/_modularis-global.scss">_modularis-global.scss</a>, <a href="https://github.com/themepile/modularis/blob/master/scss/modularis/components/_global.scss">_global.scss</a> and <a href="https://github.com/themepile/modularis/blob/master/scss/modularis/components/_alert-boxes.scss">_alert-boxes.scss</a> from Github and throw them into a Modularis folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
|
52
|
+
|
|
53
|
+
<%= code_example '
|
|
54
|
+
@import "modularis/modularis-global", "modularis/components/global", "modularis/components/alerts";
|
|
55
|
+
', :css %>
|
|
56
|
+
|
|
57
|
+
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
|
58
|
+
|
|
59
|
+
<%= code_example '
|
|
60
|
+
<div data-alert class="your-class-name">
|
|
61
|
+
<!-- Your content goes here -->
|
|
62
|
+
<a href="#" class="close">×</a>
|
|
63
|
+
</div>', :html %>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<h5>Quick Mixin</h5>
|
|
67
|
+
<p>You can build your alert using our global mixin by including it on your custom class or ID in your stylesheet. The mixin contains options for changing the background color, which also controls the border and text color. The rest of the defaults can be modified using the available variables. The global mixin looks like this:</p>
|
|
68
|
+
|
|
69
|
+
<%= code_example '
|
|
70
|
+
/* Using the default styles */
|
|
71
|
+
.your-class-name { @include alert; }
|
|
72
|
+
|
|
73
|
+
/* Using the available options */
|
|
74
|
+
.your-class-name { @include alert(#ff6c3c); }
|
|
75
|
+
', :css %>
|
|
76
|
+
|
|
77
|
+
<div data-alert class="alert-box">
|
|
78
|
+
This is a default alert.
|
|
79
|
+
<a href="#" class="close">×</a>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div data-alert class="alert-base custom-bg">
|
|
83
|
+
This is an alert with a custom background set.
|
|
84
|
+
<a href="#" class="close">×</a>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<h5>Base Mixin</h5>
|
|
88
|
+
<p>Use this mixin to create the base styles for alert boxes. This will include styles that create the basic structure of an alert box.</p>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<%= code_example '
|
|
92
|
+
.your-class-name { @include alert-base; }
|
|
93
|
+
', :css %>
|
|
94
|
+
|
|
95
|
+
<div class="alert-base">This is the base mixin.</div>
|
|
96
|
+
|
|
97
|
+
<h5>Background Mixin</h5>
|
|
98
|
+
<p>You can control the background, border and text styles for the alert using this mixin. We base the border and text style on the background color you choose using some sweet Sass logic.</p>
|
|
99
|
+
|
|
100
|
+
<%= code_example '
|
|
101
|
+
.your-class-name {
|
|
102
|
+
@include alert-base;
|
|
103
|
+
@include alert-style($bg);
|
|
104
|
+
}', :css %>
|
|
105
|
+
|
|
106
|
+
<div data-alert class="alert-base bg">This is base and bg mixins.</div>
|
|
107
|
+
|
|
108
|
+
<p>You can set <code>$bg</code> color to any of our predefined color variables or any hexadecimal color of your choosing. To set this value to something other than our default, use <code>@include alert-bg(#hexcolor);</code></p>
|
|
109
|
+
|
|
110
|
+
<h5>Close Box Mixin</h5>
|
|
111
|
+
<p>You can include a close box with each of the alert boxes by adding an anchor right before the closing <code></div></code>. This anchor should have a class of <code>.close</code> in order to work with <strong>modularis.alerts.js</strong>, which contains the interaction for closing.</p>
|
|
112
|
+
|
|
113
|
+
<%= code_example '
|
|
114
|
+
.your-class-name {
|
|
115
|
+
@include alert-base;
|
|
116
|
+
@include alert-style;
|
|
117
|
+
.close { @include alert-close; }
|
|
118
|
+
}', :css %>
|
|
119
|
+
|
|
120
|
+
<div data-alert class="alert-base bg">
|
|
121
|
+
This is base, bg and close mixins.
|
|
122
|
+
<a href="" class="close">×</a>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<h5>Radius Mixin</h5>
|
|
126
|
+
<p>We've also created a global radius mixin that you can use to add border-radius to any element you'd like.</p>
|
|
127
|
+
|
|
128
|
+
<%= code_example '
|
|
129
|
+
.your-class-name {
|
|
130
|
+
@include alert-base;
|
|
131
|
+
@include alert-style($success-color);
|
|
132
|
+
@include radius($radius);
|
|
133
|
+
}', :css %>
|
|
134
|
+
|
|
135
|
+
<div data-alert class="alert-base bg radius success">
|
|
136
|
+
This is base, bg and radius mixins.
|
|
137
|
+
<a href="" class="close">×</a>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<h5>Default SCSS Variables</h5>
|
|
141
|
+
<%= code_example '
|
|
142
|
+
/* We use this to control alert padding. */
|
|
143
|
+
$alert-padding-top: emCalc(11px);
|
|
144
|
+
$alert-padding-left: $alert-padding-top;
|
|
145
|
+
$alert-padding-right: $alert-padding-top + emCalc(10px);
|
|
146
|
+
$alert-padding-bottom: $alert-padding-top + emCalc(1px);
|
|
147
|
+
|
|
148
|
+
/* We use these to control text style. */
|
|
149
|
+
$alert-font-weight: bold;
|
|
150
|
+
$alert-font-size: emCalc(14px);
|
|
151
|
+
$alert-font-color: #fff;
|
|
152
|
+
$alert-font-color-alt: darken($secondary-color, 60%);
|
|
153
|
+
|
|
154
|
+
/* We use this for close hover effect. */
|
|
155
|
+
$alert-function-factor: 10%;
|
|
156
|
+
|
|
157
|
+
/* We use these to control border styles. */
|
|
158
|
+
$alert-border-style: solid;
|
|
159
|
+
$alert-border-width: 1px;
|
|
160
|
+
$alert-border-color: darken($primary-color, $alert-function-factor);
|
|
161
|
+
$alert-bottom-margin: emCalc(20px);
|
|
162
|
+
|
|
163
|
+
/* We use these to style the close buttons */
|
|
164
|
+
$alert-close-color: #333;
|
|
165
|
+
$alert-close-position: emCalc(5px);
|
|
166
|
+
$alert-close-font-size: emCalc(22px);
|
|
167
|
+
$alert-close-opacity: 0.3;
|
|
168
|
+
$alert-close-opacity-hover: 0.5;
|
|
169
|
+
$alert-close-padding: 5px 4px 4px;
|
|
170
|
+
|
|
171
|
+
/* We use this to control border radius */
|
|
172
|
+
$alert-radius: $global-radius;
|
|
173
|
+
', :css %>
|
|
174
|
+
|
|
175
|
+
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>.</p>
|
|
176
|
+
|
|
177
|
+
<hr>
|
|
178
|
+
|
|
179
|
+
<h3>Using the JavaScript</h3>
|
|
180
|
+
<p>You don't need ths JS to create alert boxes with Modularis. The only reason you'll need to include <code>modularis.alerts.js</code> is if you want to add the ability to close an alert. You'll also need to make sure to include <code>zepto.js</code> and <code>modularis.js</code> above the alert plugin. Above your closing <code></body></code> tag include the following line of code and make sure you have the JS in your directory:</p>
|
|
181
|
+
|
|
182
|
+
<p><a href="../javascript.html" title="How to install Modularis JavaScript">Read how to install Modularis JavaScript</a></p>
|
|
183
|
+
|
|
184
|
+
<p>Required Modularis Library: <code>modularis.alerts.js</code></p>
|
|
185
|
+
|
|
186
|
+
<p>Then, you'll need to add a data-attribute to make the JS work properly on that element. That looks like:</p>
|
|
187
|
+
|
|
188
|
+
<%= code_example '
|
|
189
|
+
<div data-alert class="alert-box">
|
|
190
|
+
<!-- Your content goes here -->
|
|
191
|
+
<a href="#" class="close">×</a>
|
|
192
|
+
</div>
|
|
193
|
+
', :html %>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
<div class="large-3 pull-9 columns">
|
|
200
|
+
<%= render "_sidebar-components.html.erb" %>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
</div>
|
|
204
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<% @side_nav = "grid" %>
|
|
2
|
+
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="large-9 push-3 columns">
|
|
5
|
+
|
|
6
|
+
<% @page_title = "Block Grid" %>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="large-12 columns">
|
|
9
|
+
<h2><%= @page_title %></h2>
|
|
10
|
+
<h4 class="subheader">Block grids give you a way to evenly split contents of a list within the grid. If you wanted to create a row of 5 images or paragraphs that need to stay evenly spaced no matter the screen size, the block grid is for you.</h4>
|
|
11
|
+
|
|
12
|
+
<ul class="small-block-grid-2 large-block-grid-4">
|
|
13
|
+
<li><img class="th" src="../img/demos/demo1.jpg"></li>
|
|
14
|
+
<li><img class="th" src="../img/demos/demo2.jpg"></li>
|
|
15
|
+
<li><img class="th" src="../img/demos/demo3.jpg"></li>
|
|
16
|
+
<li><img class="th" src="../img/demos/demo4.jpg"></li>
|
|
17
|
+
</ul>
|
|
18
|
+
|
|
19
|
+
<hr>
|
|
20
|
+
|
|
21
|
+
<h3>Building With Predefined HTML Classes</h3>
|
|
22
|
+
<p>Block grids are made from a <code>ul.small-block-grid-#</code> or <code>ul.large-block-grid-#</code>. These are ideal for blocked-in content generated by an application, as they do not require rows or even numbers of elements to display correctly.</p>
|
|
23
|
+
|
|
24
|
+
<p>These have a bit of flexibility since you have access to two separate grids between our built in 768px breakpoint. If you use the <code>small-block-grid</code> only, the grid will keep its spacing and configuration no matter the screen size. If you use <code>large-block-grid</code> only, the list items will stack on top of each other for small devices. If you use both of those classes combined, you can control the configuration and layout separately for each breakpoint.</p>
|
|
25
|
+
|
|
26
|
+
<%= code_example '
|
|
27
|
+
<!-- Using only the small-block-grid -->
|
|
28
|
+
<ul class="small-block-grid-2">
|
|
29
|
+
<li><img src="../img/demos/demo1.png"></li>
|
|
30
|
+
<li><img src="../img/demos/demo2.png"></li>
|
|
31
|
+
<li><img src="../img/demos/demo3.png"></li>
|
|
32
|
+
<li><img src="../img/demos/demo4.png"></li>
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
<!-- Using only the large-block-grid -->
|
|
36
|
+
<ul class="large-block-grid-4">
|
|
37
|
+
<li><img src="../img/demos/demo1.png"></li>
|
|
38
|
+
<li><img src="../img/demos/demo2.png"></li>
|
|
39
|
+
<li><img src="../img/demos/demo3.png"></li>
|
|
40
|
+
<li><img src="../img/demos/demo4.png"></li>
|
|
41
|
+
</ul>
|
|
42
|
+
|
|
43
|
+
<!-- Using both block grids together for different layouts -->
|
|
44
|
+
<ul class="small-block-grid-2 large-block-grid-4">
|
|
45
|
+
<li><img src="../img/demos/demo1.png"></li>
|
|
46
|
+
<li><img src="../img/demos/demo2.png"></li>
|
|
47
|
+
<li><img src="../img/demos/demo3.png"></li>
|
|
48
|
+
<li><img src="../img/demos/demo4.png"></li>
|
|
49
|
+
</ul>
|
|
50
|
+
', :html %>
|
|
51
|
+
|
|
52
|
+
<p>For these styles to take effect, make sure you have the <strong>default Modularis CSS package</strong> or that you've <strong>selected block grid from a custom package</strong>. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
|
|
53
|
+
|
|
54
|
+
<hr>
|
|
55
|
+
|
|
56
|
+
<h3>Using The Mixin</h3>
|
|
57
|
+
<p>We've included SCSS mixins used to style block-grids. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/themepile/modularis/tree/master/scss/modularis/components">_modularis-global.scss</a>, <a href="https://github.com/themepile/modularis/blob/master/scss/modularis/components/_global.scss">_global.scss</a> and <a href="https://github.com/themepile/modularis/tree/master/scss/modularis/components">_block-grid.scss</a> from Github and throw them into a modularis folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
|
58
|
+
|
|
59
|
+
<%= code_example '
|
|
60
|
+
@import "modularis/modularis-global", "modularis/components/global", "modularis/components/block-grid";
|
|
61
|
+
', :css %>
|
|
62
|
+
|
|
63
|
+
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure. Since we don't have any media queries baked into the mixin itself, you can apply the styles at whatever breakpoint you want! Just change the configuration within each.</p>
|
|
64
|
+
|
|
65
|
+
<%= code_example '
|
|
66
|
+
<ul class="your-class-name">
|
|
67
|
+
<li><img src="../img/demos/demo1.png"></li>
|
|
68
|
+
<li><img src="../img/demos/demo2.png"></li>
|
|
69
|
+
<li><img src="../img/demos/demo3.png"></li>
|
|
70
|
+
<li><img src="../img/demos/demo4.png"></li>
|
|
71
|
+
</ul>', :html %>
|
|
72
|
+
|
|
73
|
+
<h5>Quick Mixin</h5>
|
|
74
|
+
<p>You can build your block-grid using our global mixin by including it on your custom class or ID in your own stylesheet. The mixin contains options configuring the block grid layout and margin on the fly. The global mixin looks like this:</p>
|
|
75
|
+
|
|
76
|
+
<%= code_example '
|
|
77
|
+
/* Mixin and configurable options */
|
|
78
|
+
.your-class-name { @include block-grid($per-row, $spacing, $base-styles); }
|
|
79
|
+
|
|
80
|
+
/* This controls how many elements will be on each row of the block grid. */
|
|
81
|
+
/* Set this to whatever number you need, up to the max allowed in the variable */
|
|
82
|
+
$per-row: false
|
|
83
|
+
|
|
84
|
+
/* This controls how much space is between each item in the block grid */
|
|
85
|
+
$spacing: $block-grid-default-spacing
|
|
86
|
+
|
|
87
|
+
/* This controls whether or not base styles come through, set to false to leave out */
|
|
88
|
+
/* This is handy for when you create multiple block-grids and want less CSS output repetition */
|
|
89
|
+
$base-style: true
|
|
90
|
+
', :css %>
|
|
91
|
+
|
|
92
|
+
<ul class="small-block-grid-5">
|
|
93
|
+
<li><img src="../img/demos/demo1.jpg"></li>
|
|
94
|
+
<li><img src="../img/demos/demo2.jpg"></li>
|
|
95
|
+
<li><img src="../img/demos/demo3.jpg"></li>
|
|
96
|
+
<li><img src="../img/demos/demo4.jpg"></li>
|
|
97
|
+
<li><img src="../img/demos/demo5.jpg"></li>
|
|
98
|
+
</ul>
|
|
99
|
+
|
|
100
|
+
<h5>Clearing Block Grid Rows</h5>
|
|
101
|
+
<p>We have this built into the CSS, but you'll need to add a bit of code if you want your block grid to change layout between breakpoints. If you don't use this, it will inherit whatever you put in the smallest media query. This code looks for the <code>n+1</code> of the grid so that it clears properly. That code looks like this:</p>
|
|
102
|
+
|
|
103
|
+
<%= code_example '
|
|
104
|
+
.your-small-class-name > li { clear: none !important; }
|
|
105
|
+
', :css %>
|
|
106
|
+
|
|
107
|
+
<p><strong>Note:</strong> If you are using the same class across breakpoints, your mixin should override this and you won't need it. If you want to control the layout using different classes, use the above snippet.</p>
|
|
108
|
+
|
|
109
|
+
<h5>Available SCSS Variables</h5>
|
|
110
|
+
|
|
111
|
+
<%= code_example '
|
|
112
|
+
/* We use this to control the maximum blocks and spacing */
|
|
113
|
+
$block-grid-elements: 12;
|
|
114
|
+
$block-grid-default-spacing: 10px;
|
|
115
|
+
|
|
116
|
+
/* Enables media queries for block-grid classes. Set to false if writing semantic HTML. */
|
|
117
|
+
$block-grid-media-queries: true
|
|
118
|
+
', :css %>
|
|
119
|
+
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<div class="large-3 pull-9 columns">
|
|
126
|
+
<%= render "_sidebar-components.html.erb" %>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|