themepile-abstractio 1.0.4 → 4.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/CONTRIBUTING.md +7 -7
  4. data/Gemfile.lock +19 -0
  5. data/Gruntfile.js +27 -0
  6. data/README.md +38 -38
  7. data/abstractio.gemspec +20 -18
  8. data/docs/CHANGELOG.md +275 -0
  9. data/docs/Capfile +4 -0
  10. data/docs/Gemfile +13 -0
  11. data/docs/Gemfile.lock +45 -0
  12. data/docs/Procfile +2 -0
  13. data/docs/README.md +1 -0
  14. data/docs/_sidebar-components.html.erb +115 -0
  15. data/docs/_sidebar.html.erb +115 -0
  16. data/docs/changelog.html.erb +33 -0
  17. data/docs/compile.rb +34 -0
  18. data/docs/components/alert-boxes.html.erb +204 -0
  19. data/docs/components/block-grid.html.erb +132 -0
  20. data/docs/components/breadcrumbs.html.erb +156 -0
  21. data/docs/components/button-groups.html.erb +230 -0
  22. data/docs/components/buttons.html.erb +222 -0
  23. data/docs/components/clearing.html.erb +152 -0
  24. data/docs/components/custom-forms.html.erb +309 -0
  25. data/docs/components/dropdown-buttons.html.erb +235 -0
  26. data/docs/components/dropdown.html.erb +188 -0
  27. data/docs/components/flex-video.html.erb +95 -0
  28. data/docs/components/forms.html.erb +477 -0
  29. data/docs/components/global.html.erb +92 -0
  30. data/docs/components/grid.html.erb +366 -0
  31. data/docs/components/inline-lists.html.erb +91 -0
  32. data/docs/components/joyride.html.erb +183 -0
  33. data/docs/components/keystrokes.html.erb +76 -0
  34. data/docs/components/kitchen-sink.html.erb +870 -0
  35. data/docs/components/labels.html.erb +102 -0
  36. data/docs/components/magellan.html.erb +86 -0
  37. data/docs/components/orbit.html.erb +276 -0
  38. data/docs/components/pagination.html.erb +183 -0
  39. data/docs/components/panels.html.erb +123 -0
  40. data/docs/components/pricing-tables.html.erb +156 -0
  41. data/docs/components/progress-bars.html.erb +123 -0
  42. data/docs/components/reveal.html.erb +162 -0
  43. data/docs/components/section.html.erb +1023 -0
  44. data/docs/components/side-nav.html.erb +124 -0
  45. data/docs/components/split-buttons.html.erb +220 -0
  46. data/docs/components/sub-nav.html.erb +122 -0
  47. data/docs/components/switch.html.erb +290 -0
  48. data/docs/components/tables.html.erb +125 -0
  49. data/docs/components/thumbnails.html.erb +89 -0
  50. data/docs/components/tooltips.html.erb +76 -0
  51. data/docs/components/top-bar.html.erb +300 -0
  52. data/docs/components/type.html.erb +396 -0
  53. data/docs/components/visibility.html.erb +110 -0
  54. data/docs/config.ru +12 -0
  55. data/docs/config/deploy.rb +36 -0
  56. data/docs/controller.rb +49 -0
  57. data/docs/css/_coderay.scss +116 -0
  58. data/docs/css/_settings.scss +1 -0
  59. data/docs/css/docs.scss +239 -0
  60. data/docs/css/normalize.scss +396 -0
  61. data/docs/css/qunit-composite.css +13 -0
  62. data/docs/css/qunit.css +235 -0
  63. data/docs/faq.html.erb +63 -0
  64. data/docs/img/demos/demo1-th.jpg +0 -0
  65. data/docs/img/demos/demo1.jpg +0 -0
  66. data/docs/img/demos/demo2-th.jpg +0 -0
  67. data/docs/img/demos/demo2.jpg +0 -0
  68. data/docs/img/demos/demo3-th.jpg +0 -0
  69. data/docs/img/demos/demo3.jpg +0 -0
  70. data/docs/img/demos/demo4-th.jpg +0 -0
  71. data/docs/img/demos/demo4.jpg +0 -0
  72. data/docs/img/demos/demo5-th.jpg +0 -0
  73. data/docs/img/demos/demo5.jpg +0 -0
  74. data/docs/index.html.erb +298 -0
  75. data/docs/javascript.html.erb +138 -0
  76. data/docs/js/docs.js +3 -0
  77. data/docs/js/qunit-composite.js +105 -0
  78. data/docs/js/qunit.js +1977 -0
  79. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  80. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  81. data/docs/js/tests/tooltips/tooltips.html +39 -0
  82. data/docs/js/tests/tooltips/tooltips.js +11 -0
  83. data/docs/layout.html.erb +128 -0
  84. data/docs/media-queries.html.erb +96 -0
  85. data/docs/rails.html.erb +76 -0
  86. data/docs/rtl.html.erb +53 -0
  87. data/docs/sass.html.erb +1297 -0
  88. data/docs/support.html.erb +143 -0
  89. data/js/{foundation/foundation.alerts.js → abstractio/abstractio.alerts.js} +2 -2
  90. data/js/{foundation/foundation.clearing.js → abstractio/abstractio.clearing.js} +6 -6
  91. data/js/{foundation/foundation.cookie.js → abstractio/abstractio.cookie.js} +1 -1
  92. data/js/{foundation/foundation.dropdown.js → abstractio/abstractio.dropdown.js} +5 -5
  93. data/js/{foundation/foundation.forms.js → abstractio/abstractio.forms.js} +7 -7
  94. data/js/{foundation/foundation.joyride.js → abstractio/abstractio.joyride.js} +5 -5
  95. data/js/{foundation/foundation.js → abstractio/abstractio.js} +13 -13
  96. data/js/{foundation/foundation.magellan.js → abstractio/abstractio.magellan.js} +3 -3
  97. data/js/{foundation/foundation.orbit.js → abstractio/abstractio.orbit.js} +6 -6
  98. data/js/{foundation/foundation.placeholder.js → abstractio/abstractio.placeholder.js} +1 -1
  99. data/js/{foundation/foundation.reveal.js → abstractio/abstractio.reveal.js} +3 -3
  100. data/js/{foundation/foundation.section.js → abstractio/abstractio.section.js} +5 -5
  101. data/js/{foundation/foundation.tooltips.js → abstractio/abstractio.tooltips.js} +6 -6
  102. data/js/{foundation/foundation.topbar.js → abstractio/abstractio.topbar.js} +3 -3
  103. data/js/abstractio/index.js +16 -0
  104. data/js/vendor/jquery.js +3 -3
  105. data/lib/abstractio/generators/USAGE +1 -1
  106. data/lib/abstractio/version.rb +1 -1
  107. data/package.json +15 -0
  108. data/scss/abstractio.scss +37 -37
  109. data/scss/abstractio/_variables.scss +1 -1
  110. data/scss/abstractio/components/_alert-boxes.scss +1 -1
  111. data/scss/abstractio/components/_block-grid.scss +2 -2
  112. data/scss/abstractio/components/_dropdown.scss +1 -1
  113. data/scss/abstractio/components/_global.scss +2 -2
  114. data/scss/abstractio/components/_joyride.scss +1 -1
  115. data/scss/abstractio/components/_pagination.scss +1 -1
  116. data/scss/abstractio/components/_switch.scss +1 -1
  117. data/scss/abstractio/components/_visibility.scss +2 -2
  118. data/templates/project/.gitignore +1 -1
  119. data/templates/project/MIT-LICENSE.txt +1 -1
  120. data/templates/project/config.rb +1 -1
  121. data/templates/project/humans.txt +2 -2
  122. data/templates/project/index.html +11 -11
  123. data/templates/project/manifest.rb +1 -1
  124. data/templates/project/scss/app.scss +38 -38
  125. data/templates/upgrade/manifest.rb +2 -2
  126. metadata +104 -22
  127. data/Gemfile +0 -4
  128. data/Rakefile +0 -2
  129. data/js/foundation/index.js +0 -16
  130. data/lib/abstractio.rb +0 -17
@@ -0,0 +1,124 @@
1
+ <% @side_nav = "nav" %>
2
+
3
+ <div class="row">
4
+ <div class="large-9 push-3 columns">
5
+
6
+ <% @page_title = "Side Nav" %>
7
+ <div class="row">
8
+ <div class="large-12 columns">
9
+ <h1><%= @page_title %></h1>
10
+ <h4 class="subheader">Side nav, like you'll see on Abstractio's main site, is useful for sections of either a site or a page.</h4>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="row">
15
+ <div class="large-12 columns">
16
+
17
+ <div class="row">
18
+ <div class="large-4 columns end">
19
+ <ul class="side-nav">
20
+ <li class="active"><a href="#">Link 1</a></li>
21
+ <li><a href="#">Link 2</a></li>
22
+ <li class="divider"></li>
23
+ <li><a href="#">Link 3</a></li>
24
+ <li><a href="#">Link 4</a></li>
25
+ </ul>
26
+ </div>
27
+ </div>
28
+
29
+ <hr>
30
+
31
+ <h3>Build With Predefined HTML Classes</h3>
32
+ <p>There are two ways to build a side nav in Abstractio 4: either with our predefined HTML classes or our mixins. Building side nav using our predefined classes is simple, you'll just need to write a <code>&lt;ul class="side-nav"&gt;</code> and fill it full of list items. The width of the side nav is controlled by the columns you put it inside.</p>
33
+
34
+ <p>The list item options:</p>
35
+ <ul class="disc">
36
+ <li><code>active</code> Will add style to denote the active link.</li>
37
+ <li><code>divider</code> Creates a divider between list items.</li>
38
+ </ul>
39
+
40
+ <%= code_example '
41
+ <ul class="side-nav">
42
+ <li class="active"><a href="#">Link 1</a></li>
43
+ <li><a href="#">Link 2</a></li>
44
+ <li class="divider"></li>
45
+ <li><a href="#">Link 3</a></li>
46
+ <li><a href="#">Link 4</a></li>
47
+ </ul>', :html %>
48
+
49
+
50
+
51
+ <p>For these styles to come across, make sure you have the default Abstractio CSS package or that you've selected side nav from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
52
+
53
+ <hr>
54
+
55
+ <h3>Build with our Mixins</h3>
56
+ <p>We've included SCSS mixins used to style side nav. 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/abstractio/blob/master/scss/abstractio/_abstractio-global.scss">_abstractio-global.scss</a>, <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_global.scss">_global.scss</a> and <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_side-nav.scss">_side-nav.scss</a> from Github and throw them into a Abstractio folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
57
+
58
+ <%= code_example '
59
+ @import "abstractio/abstractio-global", "abstractio/components/global", "abstractio/components/side-nav";
60
+ ', :css %>
61
+
62
+ <h5>Quick Mixin</h5>
63
+ <p>You can build your side nav using our global mixin by including it on a 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>
64
+
65
+ <%= code_example '
66
+ /* Using the default styles */
67
+ .your-class-name { @include side-nav; }', :css %>
68
+
69
+ <p>There are also three options you can customize on the fly when writing this mixin. These controls things like: divider color, text size and font color.</p>
70
+
71
+ <%= code_example '
72
+ /* Using the available options */
73
+ .your-class-name { @include side-nav($divider-color, $font-size, $link-color); }
74
+
75
+ /* Control the color of the divider between links */
76
+ $divider-color: $side-nav-divider-color
77
+
78
+ /* Control your font-size per label */
79
+ $font-size: $side-nav-font-size
80
+
81
+ /* Change the background color for your labels */
82
+ $link-color: $side-nav-link-color
83
+ ', :css %>
84
+
85
+ <ul class="side-nav-custom large-3">
86
+ <li class="active"><a href="#">Link 1</a></li>
87
+ <li><a href="#">Link 2</a></li>
88
+ <li class="divider"></li>
89
+ <li><a href="#">Link 3</a></li>
90
+ <li><a href="#">Link 4</a></li>
91
+ </ul>
92
+
93
+
94
+ <h5>Default SCSS Variables</h5>
95
+
96
+ <%= code_example '
97
+ /* We use this to control padding. */
98
+ $side-nav-padding: emCalc(14px) 0;
99
+
100
+ /* We use these to control list styles. */
101
+ $side-nav-list-type: none;
102
+ $side-nav-list-position: inside;
103
+ $side-nav-list-margin: 0 0 emCalc(7px) 0;
104
+
105
+ /* We use these to control link styles. */
106
+ $side-nav-link-color: $primary-color;
107
+ $side-nav-link-color-active: lighten(#000, 30%);
108
+ $side-nav-font-size: emCalc(14px);
109
+ $side-nav-font-weight: bold;
110
+
111
+ /* We use these to control border styles */
112
+ $side-nav-divider-size: 1px;
113
+ $side-nav-divider-style: solid;
114
+ $side-nav-divider-color: darken(#fff, 10%);', :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>_abstractio-global.scss</strong>.</p>
117
+
118
+ </div>
119
+ </div>
120
+ </div>
121
+ <div class="large-3 pull-9 columns">
122
+ <%= render "_sidebar-components.html.erb" %>
123
+ </div>
124
+ </div>
@@ -0,0 +1,220 @@
1
+ <% @side_nav = "buttons" %>
2
+
3
+ <div class="row">
4
+ <div class="large-9 push-3 columns">
5
+
6
+ <% @page_title = "Split Buttons" %>
7
+ <div class="row">
8
+ <div class="large-12 columns">
9
+ <h2><%= @page_title %></h2>
10
+ <h4 class="subheader">We've simplified our split buttons by getting rid of the dedicated dropdown associated with them. Instead, you'll use our <a href="#">new dropdown plugin</a> to attach a dropdown to the button style of your choice.</h4>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="row">
15
+ <div class="large-12 columns">
16
+
17
+ <a href="#" class="tiny button split">Split Button <span data-dropdown="drop"></span></a><br>
18
+ <a href="#" class="small secondary radius button split">Split Button <span data-dropdown="drop2"></span></a><br>
19
+ <a href="#" class="button alert round split">Split Button <span data-dropdown="drop3"></span></a><br>
20
+ <a href="#" class="large success button split">Split Button <span data-dropdown="drop4"></span></a><br>
21
+
22
+ <hr>
23
+
24
+ <h3>Build With Predefined HTML Classes</h3>
25
+ <p>There are two ways to build buttons in Abstractio 4: with our predefined HTML classes or our structure and mixins. Building buttons using our predefined classes is simple, you'll need an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code> or <code>&lt;input&gt;</code> with a class of <code>.button.split</code>. This will create a default medium button. You can also use size, color and radius classes to control more of the style.</p>
26
+
27
+ <p>The classes options:</p>
28
+ <ul class="disc">
29
+ <li>The size classes include: <code>.tiny, .small, .medium</code> or <code>.large</code></li>
30
+ <li>The color classes include: <code>.secondary, .alert</code> or <code>.success</code></li>
31
+ <li>The radius classes include: <code>.radius</code> or <code>.round</code>.</li>
32
+ </ul>
33
+
34
+ <%= code_example '
35
+ <!-- Size Classes -->
36
+ <a href="#" class="button split">Default Button <span></span></a>
37
+ <a href="#" class="tiny button split">Tiny Button <span></span></a>
38
+ <a href="#" class="small button split">Small Button <span></span></a>
39
+ <a href="#" class="large button split">Large Button <span></span></a>
40
+
41
+ <!-- Color Classes -->
42
+ <a href="#" class="button split secondary">Secondary Button <span></span></a>
43
+ <a href="#" class="button split success">Success Button <span></span></a>
44
+ <a href="#" class="button split alert">Alert Button <span></span></a>
45
+
46
+ <!-- Radius Classes -->
47
+ <a href="#" class="button split radius">Radius Button <span></span></a>
48
+ <a href="#" class="button split round">Round Button <span></span></a>
49
+ ', :html %>
50
+
51
+ <p>You may chain one class from each group to build up desired default styles. For these styles to take effect, make sure you have the <strong>default Abstractio CSS package</strong> or that you've selected <strong>split buttons from a custom package</strong>. These should be linked up following our default <a href="#getting-started">HTML page structure</a>.</p>
52
+
53
+ <hr>
54
+
55
+ <h3>Build with Mixins</h3>
56
+ <p>We've included SCSS mixins used to style buttons. To use these mixins, you'll need to have the <a href="#extention-install">extension installed</a> or grab <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/_abstractio-global.scss">_abstractio-global.scss</a>, <a href="#https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_buttons.scss">_buttons.scss</a>, <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_global.scss">_global.scss</a> and <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_split-buttons.scss">_split-buttons.scss</a> from Github and throw them into a Abstractio folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
57
+
58
+ <%= code_example '
59
+ @import "abstractio/abstractio-global", "abstractio/components/global", "abstractio/components/buttons", "abstractio/components/split-buttons";
60
+ ', :css %>
61
+
62
+ <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>
63
+
64
+ <%= code_example '
65
+ <a href="#" class="your-class-name">Split Button Text <span></span></a>
66
+ ', :html %>
67
+
68
+ <h5>Quick Mixin</h5>
69
+ <p>You can quickly build an entire split buttons using our global mixin by including it on your custom class or ID in your stylesheet. The global mixin will create the necessary style for the button. The global mixin looks like this:</p>
70
+
71
+ <%= code_example '
72
+ /* Using the default styles */
73
+ .your-class-name {
74
+ @include button;
75
+ @include split-button;
76
+ }
77
+ ', :css %>
78
+
79
+ <a href="" class="split button">Default Split Button<span data-dropdown="drop5"></span></a>
80
+
81
+ <p>There are also <strong>four options</strong> you can customize on the fly when writing this mixin. These control things like: padding size, pip color, border color and base styles. Setting any of these options to <strong>false</strong> will not include the styles.</p>
82
+
83
+ <%= code_example '
84
+ /* Using the available options */
85
+ .your-class-name {
86
+ @include button;
87
+ @include split-button($padding, $pip-color, $span-border, $base-style);
88
+ }
89
+
90
+ /* This controls padding around the dropdown buttons. Use tiny, small, medium, or large */
91
+ $padding: $button-med
92
+
93
+ /* This controls the dropdown pip color. Set to one of our variables or a custom hex value */
94
+ $pip-color: $split-button-pip-color
95
+
96
+ /* This controls the border color of the triangle span area. This can be a variable or color value. */
97
+ $span-border: $primary-color
98
+
99
+ /* This controls whether or not base styles come through. Set to false to negate */
100
+ /* Handy when you want to have many different styles */
101
+ $base-style: true
102
+ ', :css %>
103
+
104
+ <h5>Default SCSS Variables</h5>
105
+ <%= code_example '
106
+ /* We use these to control different shared styles for Split Buttons */
107
+ $split-button-function-factor: 15%;
108
+ $split-button-pip-color: #fff;
109
+ $split-button-pip-color-alt: #333;
110
+ $split-button-active-bg-tint: rgba(0,0,0,0.1);
111
+
112
+ /* We use these to control tiny split buttons */
113
+ $split-button-padding-tny: $button-tny * 9;
114
+ $split-button-span-width-tny: $button-tny * 6.5;
115
+ $split-button-pip-size-tny: $button-tny;
116
+ $split-button-pip-top-tny: $button-tny * 2;
117
+ $split-button-pip-left-tny: emCalc(-5px);
118
+
119
+ /* We use these to control small split buttons */
120
+ $split-button-padding-sml: $button-sml * 7;
121
+ $split-button-span-width-sml: $button-sml * 5;
122
+ $split-button-pip-size-sml: $button-sml;
123
+ $split-button-pip-top-sml: $button-sml * 1.5;
124
+ $split-button-pip-left-sml: emCalc(-9px);
125
+
126
+ /* We use these to control medium split buttons */
127
+ $split-button-padding-med: $button-med * 6.4;
128
+ $split-button-span-width-med: $button-med * 4;
129
+ $split-button-pip-size-med: $button-med - emCalc(3px);
130
+ $split-button-pip-top-med: $button-med * 1.5;
131
+ $split-button-pip-left-med: emCalc(-9px);
132
+
133
+ /* We use these to control large split buttons */
134
+ $split-button-padding-lrg: $button-lrg * 6;
135
+ $split-button-span-width-lrg: $button-lrg * 3.75;
136
+ $split-button-pip-size-lrg: $button-lrg - emCalc(6px);
137
+ $split-button-pip-top-lrg: $button-lrg + emCalc(5px);
138
+ $split-button-pip-left-lrg: emCalc(-9px);
139
+ ', :css %>
140
+
141
+ <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>_abstractio-global.scss</strong>.</p>
142
+
143
+ <hr>
144
+
145
+ <h3>Using the JavaScript</h3>
146
+ <p>You don't need this JS to create dropdown button styles with Abstractio. The only reason you'll need to include <code>abstractio.dropdown.js</code> is if you want to add one of our dropdowns to the button. You'll also need to make sure to include <code>zepto.js</code> and <code>abstractio.js</code> above the dropdown plugin.</p>
147
+ <p>Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS file in your directory:</p>
148
+
149
+ <p><a href="../javascript.html" title="How to install Abstractio JavaScript">Read how to install Abstractio JavaScript</a></p>
150
+
151
+ <p>Required Abstractio Library: <code>abstractio.dropdown.js</code></p>
152
+
153
+ <h5>Creating the Dropdown</h5>
154
+ <p>To create a dropdown, you'll need to attach a data-attribute to whatever element you want the dropdown attached to (in this case a button). From there, you'll create a list that holds the links or content and add another data-attribute that associates with the element it belongs to. Here's an example of that markup:</p>
155
+
156
+ <%= code_example '
157
+ <a href="#" data-dropdown="drop1" class="button dropdown">Dropdown Button <span data-dropdown="drop1"></span></a><br>
158
+
159
+ <ul id="drop1" class="f-dropdown" data-dropdown-content>
160
+ <li><a href="#">This is a link</a></li>
161
+ <li><a href="#">This is another</a></li>
162
+ <li><a href="#">Yet another</a></li>
163
+ </ul>
164
+ ', :html %>
165
+
166
+ <a href="#" class="button split">Dropdown Button <span data-dropdown="drop1"></span></a><br>
167
+
168
+ <p>You'll notice that <code>data-dropdown="drop1"</code> and <code>id="drop1"</code> have similar values. This is what tells the dropdown plugin where to look to find the position to attach the dropdown element to.</p>
169
+
170
+ <h5>Optional JavaScript Configuration</h5>
171
+
172
+ <p>Dropdown button options can only be passed in during initialization at this time.</p>
173
+
174
+ <%= code_example "
175
+ {
176
+ // specify the class used for active sections
177
+ activeClass: 'open'
178
+ }", :json %>
179
+
180
+ </div>
181
+ </div>
182
+
183
+ </div>
184
+ <div class="large-3 pull-9 columns">
185
+ <%= render "_sidebar-components.html.erb" %>
186
+ </div>
187
+ </div>
188
+
189
+ <ul id="drop" class="f-dropdown" data-dropdown-content>
190
+ <li><a href="#">This is a link</a></li>
191
+ <li><a href="#">This is another</a></li>
192
+ <li><a href="#">Yet another</a></li>
193
+ </ul>
194
+ <ul id="drop1" class="f-dropdown" data-dropdown-content>
195
+ <li><a href="#">This is a link</a></li>
196
+ <li><a href="#">This is another</a></li>
197
+ <li><a href="#">Yet another</a></li>
198
+ </ul>
199
+ <ul id="drop2" class="f-dropdown" data-dropdown-content>
200
+ <li><a href="#">This is a link</a></li>
201
+ <li><a href="#">This is another</a></li>
202
+ <li><a href="#">Yet another</a></li>
203
+ </ul>
204
+ <ul id="drop3" class="f-dropdown" data-dropdown-content>
205
+ <li><a href="#">This is a link</a></li>
206
+ <li><a href="#">This is another</a></li>
207
+ <li><a href="#">Yet another</a></li>
208
+ </ul>
209
+ <ul id="drop4" class="f-dropdown" data-dropdown-content>
210
+ <li><a href="#">This is a link</a></li>
211
+ <li><a href="#">This is another</a></li>
212
+ <li><a href="#">Yet another</a></li>
213
+ </ul>
214
+ <ul id="drop5" class="f-dropdown" data-dropdown-content>
215
+ <li><a href="#">This is a link</a></li>
216
+ <li><a href="#">This is another</a></li>
217
+ <li><a href="#">Yet another</a></li>
218
+ </ul>
219
+
220
+
@@ -0,0 +1,122 @@
1
+ <% @side_nav = "nav" %>
2
+
3
+ <div class="row">
4
+ <div class="large-9 push-3 columns">
5
+
6
+ <% @page_title = "Sub Nav" %>
7
+ <div class="row">
8
+ <div class="large-12 columns">
9
+ <h1><%= @page_title %></h1>
10
+ <h4 class="subheader">This simple sub nav is great for moving between different states of a page. We use these frequently to show iterations of something, typically by date, but they're also handy for filters like these.</h4>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="row">
15
+ <div class="large-12 columns">
16
+
17
+ <dl class="sub-nav">
18
+ <dt>Filter:</dt>
19
+ <dd class="active"><a href="#">All</a></dd>
20
+ <dd><a href="#">Active</a></dd>
21
+ <dd><a href="#">Pending</a></dd>
22
+ <dd><a href="#">Suspended</a></dd>
23
+ </dl>
24
+
25
+ <hr>
26
+
27
+ <h3>Build With Predefined HTML Classes</h3>
28
+ <p>There are two ways to build sub nav in Abstractio 4: you can use our predefined HTML classes or our mixins. Building sub nav using our predefined classes is simple, you'll just need to write a <code>&lt;dl class="sub-nav"&gt;</code> and fill it full of definitions. You can use the definition title as a label at the beginning (useful for building filters on a page).</p>
29
+
30
+ <p>The list options:</p>
31
+ <ul class="disc">
32
+ <li><code>&lt;dt&gt;</code> Creates a title at the beginning of the list.</li>
33
+ <li><code>&lt;dd class="active"&gt;</code> Will add style to denote the active link.</li>
34
+ </ul>
35
+
36
+ <%= code_example '
37
+ <dl class="sub-nav">
38
+ <dt>Filter:</dt>
39
+ <dd class="active"><a href="#">All</a></dd>
40
+ <dd><a href="#">Active</a></dd>
41
+ <dd><a href="#">Pending</a></dd>
42
+ <dd><a href="#">Suspended</a></dd>
43
+ </dl>', :html %>
44
+
45
+ <p>To use these styles, make sure you have the default Abstractio CSS package or that you've selected sub-nav from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
46
+
47
+ <hr>
48
+
49
+ <h3>Build with our Mixins</h3>
50
+ <p>We've included SCSS mixins used to style sub-nav. 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/abstractio/blob/master/scss/abstractio/_abstractio-global.scss">_abstractio-global.scss</a>, <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_global.scss">_global.scss</a> and <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_sub-nav.scss">_sub-nav.scss</a> from Github and throw them into a Abstractio folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
51
+
52
+ <%= code_example '
53
+ @import "abstractio/abstractio-global", "abstractio/components/global", "abstractio/components/sub-nav";
54
+ ', :css %>
55
+
56
+ <h5>Quick Mixin</h5>
57
+ <p>You can build your sub-nav using our global mixin by including it on a custom class or ID in your own stylesheet. The mixin contains options for changing the font color, font size and active background color. The rest of the defaults can be modified using the available variables. The global mixin looks like this:</p>
58
+
59
+ <%= code_example '
60
+ /* Using the default styles */
61
+ .your-class-name { @include sub-nav; }', :css %>
62
+
63
+ <p>There are also three options you can customize on the fly when writing this mixin. These controls things like: divider color, text size and font color.</p>
64
+
65
+ <%= code_example '
66
+ /* Using the available options */
67
+ .your-class-name { @include sub-nav($font-color, $font-size, $active-bg); }
68
+
69
+ /* Control the color of the divider between links */
70
+ $font-color: $sub-nav-font-color
71
+
72
+ /* Control your font-size per label */
73
+ $font-size: $sub-nav-font-size
74
+
75
+ /* Change the background color for your labels */
76
+ $active-bg: $sub-nav-active-bg
77
+ ', :css %>
78
+
79
+ <%= code_example '
80
+ /* Using customized options */
81
+ .your-class-name { @include sub-nav(orange, 11px, orange); }
82
+ ', :css %>
83
+
84
+ <dl class="sub-nav-custom">
85
+ <dt>Filter:</dt>
86
+ <dd class="active"><a href="#">All</a></dd>
87
+ <dd><a href="#">Active</a></dd>
88
+ <dd><a href="#">Pending</a></dd>
89
+ <dd><a href="#">Suspended</a></dd>
90
+ </dl>
91
+
92
+
93
+ <h5>Default SCSS Variables</h5>
94
+
95
+ <%= code_example '
96
+ /* We use these to control margin and padding */
97
+ $sub-nav-list-margin: emCalc(-4px) 0 emCalc(18px);
98
+ $sub-nav-list-padding-top: emCalc(4px);
99
+
100
+ /* We use this to control the definition */
101
+ $sub-nav-font-size: emCalc(14px);
102
+ $sub-nav-font-color: #999;
103
+ $sub-nav-font-weight: normal;
104
+ $sub-nav-text-decoration: none;
105
+ $sub-nav-border-radius: 1000px;
106
+
107
+ /* We use these to control the active item styles */
108
+ $sub-nav-active-font-weight: bold;
109
+ $sub-nav-active-bg: $primary-color;
110
+ $sub-nav-active-color: #fff;
111
+ $sub-nav-active-padding: emCalc(3px) emCalc(9px);
112
+ $sub-nav-active-cursor: default;', :css %>
113
+
114
+ <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>_abstractio-global.scss</strong>.</p>
115
+
116
+ </div>
117
+ </div>
118
+ </div>
119
+ <div class="large-3 pull-9 columns">
120
+ <%= render "_sidebar-components.html.erb" %>
121
+ </div>
122
+ </div>