modularis 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile.lock +2 -2
  3. data/README.md +2 -4
  4. data/lib/modularis/version.rb +1 -1
  5. metadata +1 -91
  6. data/docs/CHANGELOG.md +0 -260
  7. data/docs/Capfile +0 -4
  8. data/docs/Gemfile +0 -13
  9. data/docs/Gemfile.lock +0 -45
  10. data/docs/Procfile +0 -2
  11. data/docs/README.md +0 -1
  12. data/docs/_sidebar-components.html.erb +0 -115
  13. data/docs/_sidebar.html.erb +0 -115
  14. data/docs/changelog.html.erb +0 -33
  15. data/docs/compile.rb +0 -34
  16. data/docs/components/alert-boxes.html.erb +0 -204
  17. data/docs/components/block-grid.html.erb +0 -132
  18. data/docs/components/breadcrumbs.html.erb +0 -156
  19. data/docs/components/button-groups.html.erb +0 -230
  20. data/docs/components/buttons.html.erb +0 -222
  21. data/docs/components/clearing.html.erb +0 -152
  22. data/docs/components/custom-forms.html.erb +0 -309
  23. data/docs/components/dropdown-buttons.html.erb +0 -235
  24. data/docs/components/dropdown.html.erb +0 -188
  25. data/docs/components/flex-video.html.erb +0 -95
  26. data/docs/components/forms.html.erb +0 -477
  27. data/docs/components/global.html.erb +0 -92
  28. data/docs/components/grid.html.erb +0 -366
  29. data/docs/components/inline-lists.html.erb +0 -91
  30. data/docs/components/joyride.html.erb +0 -183
  31. data/docs/components/keystrokes.html.erb +0 -76
  32. data/docs/components/kitchen-sink.html.erb +0 -870
  33. data/docs/components/labels.html.erb +0 -102
  34. data/docs/components/magellan.html.erb +0 -86
  35. data/docs/components/orbit.html.erb +0 -276
  36. data/docs/components/pagination.html.erb +0 -183
  37. data/docs/components/panels.html.erb +0 -123
  38. data/docs/components/pricing-tables.html.erb +0 -156
  39. data/docs/components/progress-bars.html.erb +0 -123
  40. data/docs/components/reveal.html.erb +0 -162
  41. data/docs/components/section.html.erb +0 -496
  42. data/docs/components/side-nav.html.erb +0 -124
  43. data/docs/components/split-buttons.html.erb +0 -220
  44. data/docs/components/sub-nav.html.erb +0 -122
  45. data/docs/components/switch.html.erb +0 -290
  46. data/docs/components/tables.html.erb +0 -125
  47. data/docs/components/thumbnails.html.erb +0 -89
  48. data/docs/components/tooltips.html.erb +0 -75
  49. data/docs/components/top-bar.html.erb +0 -283
  50. data/docs/components/type.html.erb +0 -396
  51. data/docs/components/visibility.html.erb +0 -110
  52. data/docs/config/deploy.rb +0 -36
  53. data/docs/config.ru +0 -12
  54. data/docs/controller.rb +0 -53
  55. data/docs/css/_coderay.scss +0 -116
  56. data/docs/css/_settings.scss +0 -1
  57. data/docs/css/docs.scss +0 -185
  58. data/docs/css/normalize.scss +0 -396
  59. data/docs/css/qunit-composite.css +0 -13
  60. data/docs/css/qunit.css +0 -235
  61. data/docs/faq.html.erb +0 -63
  62. data/docs/img/demos/demo1-th.jpg +0 -0
  63. data/docs/img/demos/demo1.jpg +0 -0
  64. data/docs/img/demos/demo2-th.jpg +0 -0
  65. data/docs/img/demos/demo2.jpg +0 -0
  66. data/docs/img/demos/demo3-th.jpg +0 -0
  67. data/docs/img/demos/demo3.jpg +0 -0
  68. data/docs/img/demos/demo4-th.jpg +0 -0
  69. data/docs/img/demos/demo4.jpg +0 -0
  70. data/docs/img/demos/demo5-th.jpg +0 -0
  71. data/docs/img/demos/demo5.jpg +0 -0
  72. data/docs/index.html.erb +0 -285
  73. data/docs/javascript.html.erb +0 -134
  74. data/docs/js/docs.js +0 -3
  75. data/docs/js/qunit-composite.js +0 -105
  76. data/docs/js/qunit.js +0 -1977
  77. data/docs/js/tests/tabs/simple_tabs.html +0 -57
  78. data/docs/js/tests/tabs/simple_tabs.js +0 -54
  79. data/docs/js/tests/tooltips/tooltips.html +0 -39
  80. data/docs/js/tests/tooltips/tooltips.js +0 -11
  81. data/docs/layout.html.erb +0 -128
  82. data/docs/media-queries.html.erb +0 -96
  83. data/docs/rails.html.erb +0 -76
  84. data/docs/rtl.html.erb +0 -53
  85. data/docs/sass.html.erb +0 -1295
  86. data/docs/support.html.erb +0 -143
  87. data/docs/test/_test-scripts.html.erb +0 -36
  88. data/docs/test/cards.html.erb +0 -77
  89. data/docs/test/flexbox-grid.html.erb +0 -68
  90. data/docs/test/flip-nav.html.erb +0 -54
  91. data/docs/test/layout.html.erb +0 -15
  92. data/docs/test/off-canvas1.html.erb +0 -64
  93. data/docs/test/off-canvas2.html.erb +0 -75
  94. data/docs/test/off-canvas3.html.erb +0 -65
  95. data/docs/test_layout.html.erb +0 -128
@@ -1,125 +0,0 @@
1
- <% @side_nav = "css" %>
2
-
3
- <div class="row">
4
- <div class="large-9 push-3 columns">
5
-
6
- <% @page_title = "Tables" %>
7
- <div class="row">
8
- <div class="large-12 columns">
9
- <h2><%= @page_title %></h2>
10
- <h4 class="subheader">Okay, they're not the sexiest things ever, but tables get the job done (for tabular data, of course).</h4>
11
- </div>
12
- </div>
13
-
14
- <div class="row">
15
- <div class="large-12 columns">
16
-
17
- <table>
18
- <thead>
19
- <tr>
20
- <th width="200">Table Header</th>
21
- <th>Table Header</th>
22
- <th width="150">Table Header</th>
23
- <th width="150">Table Header</th>
24
- </tr>
25
- </thead>
26
- <tbody>
27
- <tr>
28
- <td>Content Goes Here</td>
29
- <td>This is longer content Donec id elit non mi porta gravida at eget metus.</td>
30
- <td>Content Goes Here</td>
31
- <td>Content Goes Here</td>
32
- </tr>
33
- <tr>
34
- <td>Content Goes Here</td>
35
- <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
36
- <td>Content Goes Here</td>
37
- <td>Content Goes Here</td>
38
- </tr>
39
- <tr>
40
- <td>Content Goes Here</td>
41
- <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
42
- <td>Content Goes Here</td>
43
- <td>Content Goes Here</td>
44
- </tr>
45
- </tbody>
46
- </table>
47
-
48
- <hr>
49
-
50
- <h3>Build With Predefined HTML Classes</h3>
51
- <p>Tables are built from a mixin, but since tables don't rely on any classes to build, you can use the table element and customize with your CSS. If you are using SCSS, the variables will help you customize the look and feel.</p>
52
-
53
- <%= code_example '
54
- <table>
55
- <thead>
56
- <tr>
57
- <th width="200">Table Header</th>
58
- <th>Table Header</th>
59
- <th width="150">Table Header</th>
60
- <th width="150">Table Header</th>
61
- </tr>
62
- </thead>
63
- <tbody>
64
- <tr>
65
- <td>Content Goes Here</td>
66
- <td>This is longer content Donec id elit non mi porta gravida at eget metus.</td>
67
- <td>Content Goes Here</td>
68
- <td>Content Goes Here</td>
69
- </tr>
70
- <tr>
71
- <td>Content Goes Here</td>
72
- <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
73
- <td>Content Goes Here</td>
74
- <td>Content Goes Here</td>
75
- </tr>
76
- <tr>
77
- <td>Content Goes Here</td>
78
- <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
79
- <td>Content Goes Here</td>
80
- <td>Content Goes Here</td>
81
- </tr>
82
- </tbody>
83
- </table>', :html %>
84
-
85
- <hr>
86
-
87
- <h5>Default SCSS Variables</h5>
88
-
89
- <%= code_example '
90
- /* These control the background color for the table and even rows */
91
- $table-bg: #fff;
92
- $table-even-row-bg: #f9f9f9;
93
-
94
- /* These control the table cell border style */
95
- $table-border-style: solid;
96
- $table-border-size: 1px;
97
- $table-border-color: #ddd;
98
-
99
- /* These control the table head styles */
100
- $table-head-bg: #f5f5f5;
101
- $table-head-font-size: emCalc(14px);
102
- $table-head-font-color: #222;
103
- $table-head-font-weight: bold;
104
- $table-head-padding: emCalc(8px) emCalc(10px) emCalc(10px);
105
-
106
- /* These control the row padding and font styles */
107
- $table-row-padding: emCalc(9px) emCalc(10px);
108
- $table-row-font-size: emCalc(14px);
109
- $table-row-font-color: #222;
110
- $table-line-height: emCalc(18px);
111
-
112
- /* These are for controlling the display and margin of tables */
113
- $table-display: table-cell;
114
- $table-margin-bottom: emCalc(20px);', :css %>
115
-
116
- <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_modularis-global.scss</strong>.</p>
117
-
118
-
119
- </div>
120
- </div>
121
- </div>
122
- <div class="large-3 pull-9 columns">
123
- <%= render "_sidebar-components.html.erb" %>
124
- </div>
125
- </div>
@@ -1,89 +0,0 @@
1
- <% @side_nav = "css" %>
2
-
3
- <div class="row">
4
- <div class="large-9 push-3 columns">
5
-
6
- <% @page_title = "Thumbnails" %>
7
- <div class="row">
8
- <div class="large-12 columns">
9
- <h2><%= @page_title %></h2>
10
- <h4 class="subheader">If you are going to use an image as an anchor, we got you covered. All you gotta do is wrap an <code>a.th</code> around your image and voilà!</h4>
11
- </div>
12
- </div>
13
-
14
- <div class="row">
15
- <div class="large-12 columns">
16
-
17
- <a class="th" href="../img/demos/demo1.jpg"><img src="../img/demos/demo1-th.jpg"></a>
18
-
19
- <hr>
20
-
21
- <h3>Building With Predefined HTML Class</h3>
22
- <p>We make it really easy to create thumbnails links out of images. Simply wrap your <code>&lt;img&gt;</code> inside a <code>&lt;a class="th"&gt;</code> and you're good to go! You may alternately choose to add a class of <code>.radius</code> to give it a neat little border-radius.</p>
23
-
24
- <%= code_example '
25
- <a class="th radius" href="../img/demos/demo2.png">
26
- <img src="../img/demos/demo2-th.png">
27
- </a>', :html %>
28
-
29
- <a class="th radius" href="../img/demos/demo2.jpg"><img src="../img/demos/demo2-th.jpg"></a>
30
-
31
- <hr>
32
-
33
- <h3>Build with our Mixins</h3>
34
- <p>We've included SCSS mixins used to style labels. 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/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/_thumbs.scss">_thumbs.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>
35
-
36
- <%= code_example '
37
- @import "modularis/modularis-global", "modularis/components/global", "modularis/components/labels";
38
- ', :css %>
39
-
40
- <h5>Quick Mixin</h5>
41
- <p>You can build your labels using our global mixin by including it on your custom class or ID in your own stylesheet. The mixin contains options for changing the background color, which also controls the border and text color. You'll also have the ability to change the font-size and padding. The rest of the defaults can be modified using the available variables. The global mixin looks like this:</p>
42
-
43
- <%= code_example '
44
- /* Using the default styles */
45
- .your-class-name { @include thumb; }', :css %>
46
-
47
- <p><a class="th" href="../img/demos/demo3.jpg"><img src="../img/demos/demo3-th.jpg"></a></p>
48
-
49
- <p>There are also three options you can customize on the fly when writing this mixin. These controls things like: border-width and hover styles for the box-shadow.</p>
50
-
51
- <%= code_example '
52
- /* Using the available options */
53
- .your-class-name { @include thumb($border-width, $box-shadow, $box-shadow-hover); }
54
-
55
- /* Control the width of the white area around the thumbnails */
56
- $border-width: $thumb-border-width
57
-
58
- /* Control the default box-shadow that looks like a 1px border */
59
- $box-shadow: $thumb-box-shadow
60
-
61
- /* Change up the style of that box-shadow on hover */
62
- $box-shadow-hover: $thumb-box-shadow-hover
63
- ', :css %>
64
-
65
- <p>You can also add the radius and single-transition mixin on top of this to create even more versatility!</p>
66
-
67
- <p><a class="th-custom" href="../img/demos/demo4.jpg"><img src="../img/demos/demo4-th.jpg"></a></p>
68
-
69
- <h5>Default SCSS Variables</h5>
70
-
71
- <%= code_example '
72
- /* We use these to control border styles */
73
- $thumb-border-style: solid;
74
- $thumb-border-width: 4px;
75
- $thumb-border-color: #fff;
76
- $thumb-box-shadow: 0 0 0 1px rgba(#000,.2);
77
- $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5);
78
-
79
- /* Radius and transition speed for thumbs */
80
- $thumb-radius: $global-radius;
81
- $thumb-transition-speed: 200ms;', :css %>
82
-
83
- </div>
84
- </div>
85
- </div>
86
- <div class="large-3 pull-9 columns">
87
- <%= render "_sidebar-components.html.erb" %>
88
- </div>
89
- </div>
@@ -1,75 +0,0 @@
1
- <% @side_nav = "js" %>
2
-
3
- <div class="row">
4
- <div class="large-9 push-3 columns">
5
-
6
- <% @page_title = "Tooltips" %>
7
- <div class="row">
8
- <div class="large-12 columns">
9
- <h2><%= @page_title %></h2>
10
- <h4 class="subheader">Tooltips are a quick way to provide <span data-tooltip class="has-tip" title="Tooltips are awesome, you should totally use them!">extended information</span> on a term or action on a page.</h4>
11
-
12
- <hr>
13
- </div>
14
- </div>
15
-
16
- <div class="row">
17
- <div class="large-12 columns">
18
- <a name="tooltips"></a>
19
- <h4>Building With HTML Classes</h4>
20
- <p>Tooltips work cross browser and cross platform and are easily added to a page with a simple markup and class structure. You can apply the <strong>has-tip</strong> class to any element.</p>
21
-
22
- <p>By default, the tooltip takes the width of the element that it is applied to, but you can override this behavior by applying a <strong>data-width</strong> attribute to the target element. The tooltip takes on the content of the targets <strong>title</strong> attribute.</p>
23
-
24
- <p>The tooltips can be positioned on the <span data-tooltip class="has-tip" data-width="210" title="I'm on bottom and the default position.">"tip-bottom"</span>, which is the default position, <span data-tooltip class="has-tip tip-top noradius" data-width="210" title="I'm on the top and I'm not rounded!">"tip-top" (hehe)</span>, <span data-tooltip="left" class="has-tip tip-left" data-width="90" title="I'm on the left!">"tip-left"</span>, or <span data-tooltip="right" class="has-tip tip-right" data-width="120" title="I'm on the right!">"tip-right"</span> of the target element by adding the appropriate class to them. You can even add your own custom class to style each tip differently. On a small device, the tooltips are full width and bottom aligned.</p>
25
-
26
- <%= code_example '
27
- <span data-tooltip class="has-tip" title="Tooltips are awesome, you should totally use them!">extended information</span>
28
- ', :html %>
29
-
30
- <p>Available class options:</p>
31
- <ul class="disc">
32
- <li><code>tip-top</code>: Align the tip above the element you attach it to.</li>
33
- <li><code>tip-bottom</code>: Align the tip below the element you attach it to.</li>
34
- <li><code>tip-left</code>: Align the tip to the left the element you attach it to.</li>
35
- <li><code>tip-right</code>: Align the tip to the right the element you attach it to.</li>
36
- </ul>
37
-
38
- <hr>
39
-
40
- <h3>Using the Javascript</h3>
41
- <p>You'll need to include <code>modularis.tooltips.js</code> to make sure everything works properly. You'll also need to make sure to include <code>zepto.js</code> and <code>modularis.js</code> above the plugin. Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS in your directory:</p>
42
-
43
- <p><a href="../javascript.html" title="How to install Modularis JavaScript">Read how to install Modularis JavaScript</a></p>
44
-
45
- <p>Required Modularis Library: <code>modularis.tooltips.js</code></p>
46
-
47
- <p>Then, you'll need to add a data-attribute to make the JS work properly on that element. That looks like:</p>
48
-
49
- <%= code_example '
50
- <span data-tooltip class="has-tip" title="Tooltips are awesome, you should totally use them!">...</span>
51
- ', :html %>
52
-
53
- <h5>Optional JavaScript Configuration</h5>
54
-
55
- <p>Tooltip options can only be passed in during initialization at this time.</p>
56
-
57
- <%= code_example "
58
- {
59
- selector : '.has-tip',
60
- additionalInheritableClasses : [],
61
- tooltipClass : '.tooltip',
62
- tipTemplate : function (selector, content) {
63
- return '<span data-selector=\"' + selector + '\" class=\"'
64
- + Modularis.libs.tooltips.settings.tooltipClass.substring(1)
65
- + '\">' + content + '<span class=\"nub\"></span></span>';
66
- }
67
- }", :js %>
68
-
69
- </div>
70
- </div>
71
- </div>
72
- <div class="large-3 pull-9 columns">
73
- <%= render "_sidebar-components.html.erb" %>
74
- </div>
75
- </div>
@@ -1,283 +0,0 @@
1
- <% @side_nav = "nav" %>
2
-
3
- <div class="row">
4
- <div class="large-9 push-3 columns">
5
-
6
- <% @page_title = "Top Bar" %>
7
- <div class="row">
8
- <div class="large-12 columns">
9
- <h1><%= @page_title %></h1>
10
- <h4 class="subheader">The Modularis Top Bar gives you a great way to display a complex navigation bar on small or large screens.</h4>
11
-
12
- <nav class="top-bar">
13
- <ul class="title-area">
14
- <!-- Title Area -->
15
- <li class="name">
16
- <h1><a href="/">Top Bar</a></h1>
17
- </li>
18
- <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
19
- <li class="toggle-topbar menu-icon"><a href=""><span>Menu</span></a></li>
20
- </ul>
21
-
22
- <section class="top-bar-section">
23
- <ul class="left">
24
- <li class="divider"></li>
25
- <li class="has-dropdown"><a href="<%= features_path %>">Item 1</a>
26
-
27
- <ul class="dropdown">
28
- <li><label>Level One</label></li>
29
- <li><a href="#">Sub-item 1</a></li>
30
- <li><a href="#">Sub-item 2</a></li>
31
- <li class="divider"></li>
32
- <li><a href="#">Sub-item 3</a></li>
33
- <li class="has-dropdown"><a href="#">Sub-item 4</a>
34
-
35
- <ul class="dropdown">
36
- <li><label>Level Two</label></li>
37
- <li class="has-dropdown"><a href="#">Sub-item 1</a>
38
-
39
- <ul class="dropdown">
40
- <li><label>Level Three</label></li>
41
- <li class="has-dropdown"><a href="#">Sub-item 1</a>
42
-
43
- <ul class="dropdown">
44
- <li><label>Level Four</label></li>
45
- <li><a href="#">Sub-item 1</a></li>
46
- </ul>
47
- </li>
48
- <li><a href="#">Sub-item 2</a></li>
49
- <li><a href="#">Sub-item 3</a></li>
50
- <li class="divider"></li>
51
- <li><a href="#">Sub-item 4</a></li>
52
- </ul>
53
- </li>
54
- <li><a href="#">Sub-item 2</a></li>
55
- <li><a href="#">Sub-item 3</a></li>
56
- <li><a href="#">Sub-item 4</a>
57
- </ul>
58
- </li>
59
- <li><a href="#">Sub-item 5</a></li>
60
- </ul>
61
- </li>
62
- <li class="divider"></li>
63
- </ul>
64
- <!-- Right Nav Section -->
65
- <ul class="right">
66
- <li class="divider hide-for-small"></li>
67
- <li><a href="#">Item 2</a></li>
68
- </ul>
69
- </section>
70
- </nav>
71
-
72
- <hr>
73
- </div>
74
- </div>
75
-
76
- <div class="row">
77
- <div class="large-12 columns">
78
-
79
- <h3>Build With HTML Classes</h3>
80
- <p>The top bar is a pretty complex piece of magical UI goodness, which makes it really difficult to create a mixin from it. We rely on many presentational classes to accomplish the styles and there's a lot happening in the JS.</p>
81
-
82
- <h5>Basic Needs</h5>
83
- <p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, a <code>ul class="right/left</code> element enclosed in a <code>section class="top-bar-section"</code>, and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. You can leave out the li class="name" as long as you include the .toggle-topbar element.</p>
84
-
85
- <h5>Positioning the Bar</h5>
86
- <p>The top bar is built with a single <code>nav</code> element with a class of <code>top-bar</code>. It will take on full-browser width by default. To make the top bar stay fixed as you scroll, wrap it in <code>div class="fixed"</code>. If you want your navigation to be set to your grid width, wrap it in <code>div class="contain-to-grid"</code>. You may use <code>fixed</code> and <code>contain-to-grid</code> together.</p>
87
-
88
- <h5>Building the Nav</h5>
89
- <p>When building your bar it is good to be aware of how many links you're going to need in it so you can customize your responsive breakpoint accordingly. Build your navigation with <code>ul.left</code> and/or <code>ul.right</code> depending where you want links. To add items, simply include <code>li</code> elements with and anchor inside them for your top-level. To build a dropdown menu, you'll need to add <code>has-dropdown</code> to the <code>li</code> and include <code>ul.dropdown</code> after that anchor. Add a class of <code>active</code> to mark the current page.</p>
90
-
91
- <h5>Other Elements</h5>
92
- <p>To make this navigation nice and flexible, we've included patterns for elements like buttons, inputs and dividers. To create dividers between your navigation, just add an empty <code>li.divider</code> and you'll get some separation. You can use a small Modularis button in the nav, just include <code>has-form</code> as a class for its parent li. You can include two different input types: search and text. To use these, add a class of search to the parent li.</p>
93
-
94
- <h5>Sticky Top Bar</h5>
95
- <p>You may also wrap your top bar in <code>div class="contain-to-grid sticky"</code> and put it anywhere within your markup. When the navigation hits the top of the browser, it will act like the fixed top bar and stick to the top as users continue to scroll.</p>
96
-
97
- <%= code_example '
98
- <nav class="top-bar">
99
- <ul class="title-area">
100
- <!-- Title Area -->
101
- <li class="name">
102
- <h1><a href="#">Top Bar Title </a></h1>
103
- </li>
104
- <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
105
- <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
106
- </ul>
107
-
108
- <section class="top-bar-section">
109
- <!-- Left Nav Section -->
110
- <ul class="left">
111
- <li class="divider"></li>
112
- <li class="active"><a href="#">Main Item 1</a></li>
113
- <li class="divider"></li>
114
- <li><a href="#">Main Item 2</a></li>
115
- <li class="divider"></li>
116
- <li class="has-dropdown"><a href="#">Main Item 3</a>
117
-
118
- <ul class="dropdown">
119
- <li class="has-dropdown"><a href="#">Dropdown Level 1a</a>
120
-
121
- <ul class="dropdown">
122
- <li><label>Dropdown Level 2 Label</label></li>
123
- <li><a href="#">Dropdown Level 2a</a></li>
124
- <li><a href="#">Dropdown Level 2b</a></li>
125
- <li class="has-dropdown"><a href="#">Dropdown Level 2c</a>
126
-
127
- <ul class="dropdown">
128
- <li><label>Dropdown Level 3 Label</label></li>
129
- <li><a href="#">Dropdown Level 3a</a></li>
130
- <li><a href="#">Dropdown Level 3b</a></li>
131
- <li class="divider"></li>
132
- <li><a href="#">Dropdown Level 3c</a></li>
133
- </ul>
134
- </li>
135
- <li><a href="#">Dropdown Level 2d</a></li>
136
- <li><a href="#">Dropdown Level 2e</a></li>
137
- <li><a href="#">Dropdown Level 2f</a></li>
138
- </ul>
139
- </li>
140
- <li><a href="#">Dropdown Level 1b</a></li>
141
- <li><a href="#">Dropdown Level 1c</a></li>
142
- <li class="divider"></li>
143
- <li><a href="#">Dropdown Level 1d</a></li>
144
- <li><a href="#">Dropdown Level 1e</a></li>
145
- <li><a href="#">Dropdown Level 1f</a></li>
146
- <li class="divider"></li>
147
- <li><a href="#">See all &rarr;</a></li>
148
- </ul>
149
- </li>
150
- <li class="divider"></li>
151
- </ul>
152
-
153
- <!-- Right Nav Section -->
154
- <ul class="right">
155
- <li class="divider hide-for-small"></li>
156
- <li class="has-dropdown"><a href="#">Main Item 4</a>
157
-
158
- <ul class="dropdown">
159
- <li><label>Dropdown Level 1 Label</label></li>
160
- <li class="has-dropdown"><a href="#" class="">Dropdown Level 1a</a>
161
-
162
- <ul class="dropdown">
163
- <li><a href="#">Dropdown Level 2a</a></li>
164
- <li><a href="#">Dropdown Level 2b</a></li>
165
- <li class="has-dropdown"><a href="#">Dropdown Level 2c</a>
166
-
167
- <ul class="dropdown">
168
- <li><a href="#">Dropdown Level 3a</a></li>
169
- <li><a href="#">Dropdown Level 3b</a></li>
170
- <li><a href="#">Dropdown Level 3c</a></li>
171
- </ul>
172
- </li>
173
- <li><a href="#">Dropdown Level 2d</a></li>
174
- <li><a href="#">Dropdown Level 2e</a></li>
175
- <li><a href="#">Dropdown Level 2f</a></li>
176
- </ul>
177
- </li>
178
- <li><a href="#">Dropdown Level 1b</a></li>
179
- <li><a href="#">Dropdown Level 1c</a></li>
180
- <li class="divider"></li>
181
- <li><label>Dropdown Level 1 Label</label></li>
182
- <li><a href="#">Dropdown Level 1d</a></li>
183
- <li><a href="#">Dropdown Level 1e</a></li>
184
- <li><a href="#">Dropdown Level 1f</a></li>
185
- <li class="divider"></li>
186
- <li><a href="#">See all &rarr;</a></li>
187
- </ul>
188
- </li>
189
- <li class="divider"></li>
190
- <li class="has-form">
191
- <form>
192
- <div class="row collapse">
193
- <div class="small-8 columns">
194
- <input type="text">
195
- </div>
196
- <div class="small-4 columns">
197
- <a href="#" class="alert button">Search</a>
198
- </div>
199
- </div>
200
- </form>
201
- </li>
202
- <li class="divider show-for-small"></li>
203
- <li class="has-form">
204
- <a class="button" href="#">Button!</a>
205
- </li>
206
- </ul>
207
- </section>
208
- </nav>', :html %>
209
-
210
- <h4>Available SCSS Variables</h4>
211
- <p>We do include SCSS variable to help you control some of the styles for the top bar. Overall the styles are written mobile first, so they are much easier to override than the previous iteration of the top bar.</p>
212
-
213
- <%= code_example '
214
- /* Background color for the top bar */
215
- $topbar-bg: #111;
216
-
217
- /* Height and margin */
218
- $topbar-height: 45px;
219
- $topbar-margin-bottom: emCalc(30px);
220
-
221
- /* Control Input height for top bar */
222
- $topbar-input-height: 2.45em;
223
-
224
- /* Controlling the styles for the title in the top bar */
225
- $topbar-title-weight: bold;
226
- $topbar-title-font-size: emCalc(17px);
227
-
228
- /* Set the link colors and styles for top-level nav */
229
- $topbar-link-color: #fff;
230
- $topbar-link-weight: bold;
231
- $topbar-link-font-size: emCalc(13px);
232
-
233
- /* Style the top bar dropdown elements */
234
- $topbar-dropdown-bg: #333;
235
- $topbar-dropdown-link-color: #fff;
236
- $topbar-dropdown-toggle-size: 5px;
237
- $topbar-dropdown-toggle-color: #fff;
238
- $topbar-dropdown-toggle-alpha: 0.5;
239
- $dropdown-label-color: #555;
240
-
241
- /* Top menu icon styles */
242
- $topbar-menu-link-transform: uppercase;
243
- $topbar-menu-link-font-size: emCalc(13px);
244
- $topbar-menu-link-weight: bold;
245
- $topbar-menu-link-color: #fff;
246
- $topbar-menu-icon-color: #fff;
247
- $topbar-menu-link-color-toggled: #888;
248
- $topbar-menu-icon-color-toggled: #888;
249
-
250
- /* Transitions and breakpoint styles */
251
- $topbar-transition-speed: 300ms;
252
- $topbar-breakpoint: emCalc(940px); // Change to 9999px for always mobile layout', :css %>
253
-
254
- <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_modularis-global.scss</strong>.</p>
255
-
256
- <hr>
257
-
258
- <h3>Using the JavaScript</h3>
259
- <p>You'll need to include <code>modularis.topbar.js</code> to get the topbar to play nice. You'll also need to make sure to include <code>zepto.js</code> and <code>modularis.js</code> above the topbar plugin. Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS in your directory.</p>
260
-
261
- <p><a href="../javascript.html" title="How to install Modularis JavaScript">Read how to install Modularis JavaScript</a></p>
262
-
263
- <p>Required Modularis Library: <code>modularis.topbar.js</code></p>
264
-
265
- <h5>Optional JavaScript Configuration</h5>
266
-
267
- <p>Top bar options can only be passed in during initialization at this time.</p>
268
-
269
- <%= code_example "
270
- {
271
- index : 0,
272
- stickyClass : 'sticky',
273
- custom_back_text: true, // Set this to false and it will pull the top level link name as the back text
274
- back_text: 'Back', // Define what you want your custom back text to be if custom_back_text: true
275
- init : false
276
- }", :js %>
277
- </div>
278
- </div>
279
- </div>
280
- <div class="large-3 pull-9 columns">
281
- <%= render "_sidebar-components.html.erb" %>
282
- </div>
283
- </div>