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,76 @@
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>abstractio.tooltips.js</code> to make sure everything works properly. You'll also need to make sure to include <code>zepto.js</code> and <code>abstractio.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 Abstractio JavaScript">Read how to install Abstractio JavaScript</a></p>
44
+
45
+ <p>Required Abstractio Library: <code>abstractio.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>Tooltips now support <code>data-options</code> configuration. You can use this functionality to disable tooltips selectively by defining <code>data-options="disable-for-touch: true"</code> on your tip target.</p>
56
+
57
+ <%= code_example "
58
+ {
59
+ selector : '.has-tip',
60
+ additionalInheritableClasses : [],
61
+ tooltipClass : '.tooltip',
62
+ disable-for-touch: false,
63
+ tipTemplate : function (selector, content) {
64
+ return '<span data-selector=\"' + selector + '\" class=\"'
65
+ + Abstractio.libs.tooltips.settings.tooltipClass.substring(1)
66
+ + '\">' + content + '<span class=\"nub\"></span></span>';
67
+ }
68
+ }", :js %>
69
+
70
+ </div>
71
+ </div>
72
+ </div>
73
+ <div class="large-3 pull-9 columns">
74
+ <%= render "_sidebar-components.html.erb" %>
75
+ </div>
76
+ </div>
@@ -0,0 +1,300 @@
1
+ <% @side_nav = "nav" %>
2
+ <div class="row">
3
+ <div class="large-9 push-3 columns">
4
+
5
+ <% @page_title = "Top Bar" %>
6
+ <div class="row">
7
+ <div class="large-12 columns">
8
+ <h1><%= @page_title %></h1>
9
+ <h4 class="subheader">The Abstractio Top Bar gives you a great way to display a complex navigation bar on small or large screens.</h4>
10
+
11
+ <nav class="top-bar">
12
+ <ul class="title-area">
13
+ <!-- Title Area -->
14
+ <li class="name">
15
+ <h1><a href="/">Top Bar</a></h1>
16
+ </li>
17
+ <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
18
+ <li class="toggle-topbar menu-icon"><a href=""><span>Menu</span></a></li>
19
+ </ul>
20
+
21
+ <section class="top-bar-section">
22
+ <ul class="left">
23
+ <li class="divider"></li>
24
+ <li class="has-dropdown"><a href="<%= features_path %>">Item 1</a>
25
+
26
+ <ul class="dropdown">
27
+ <li><label>Level One</label></li>
28
+ <li><a href="#">Sub-item 1</a></li>
29
+ <li><a href="#">Sub-item 2</a></li>
30
+ <li class="divider"></li>
31
+ <li><a href="#">Sub-item 3</a></li>
32
+ <li class="has-dropdown"><a href="#">Sub-item 4</a>
33
+
34
+ <ul class="dropdown">
35
+ <li><label>Level Two</label></li>
36
+ <li class="has-dropdown"><a href="#">Sub-item 1</a>
37
+
38
+ <ul class="dropdown">
39
+ <li><label>Level Three</label></li>
40
+ <li class="has-dropdown"><a href="#">Sub-item 1</a>
41
+
42
+ <ul class="dropdown">
43
+ <li><label>Level Four</label></li>
44
+ <li><a href="#">Sub-item 1</a></li>
45
+ </ul>
46
+ </li>
47
+ <li><a href="#">Sub-item 2</a></li>
48
+ <li><a href="#">Sub-item 3</a></li>
49
+ <li class="divider"></li>
50
+ <li><a href="#">Sub-item 4</a></li>
51
+ </ul>
52
+ </li>
53
+ <li><a href="#">Sub-item 2</a></li>
54
+ <li><a href="#">Sub-item 3</a></li>
55
+ <li><a href="#">Sub-item 4</a>
56
+ </ul>
57
+ </li>
58
+ <li><a href="#">Sub-item 5</a></li>
59
+ </ul>
60
+ </li>
61
+ <li class="divider"></li>
62
+ </ul>
63
+ <!-- Right Nav Section -->
64
+ <ul class="right">
65
+ <li class="divider hide-for-small"></li>
66
+ <li><a href="#">Item 2</a></li>
67
+ </ul>
68
+ </section>
69
+ </nav>
70
+
71
+ <hr>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="row">
76
+ <div class="large-12 columns">
77
+
78
+ <h3>Build With HTML Classes</h3>
79
+ <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>
80
+
81
+ <h5>Basic Needs</h5>
82
+ <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>
83
+
84
+ <h5>Positioning the Bar</h5>
85
+ <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>
86
+
87
+ <h5>Building the Nav</h5>
88
+ <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>
89
+
90
+ <h5>Other Elements</h5>
91
+ <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 Abstractio 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>
92
+
93
+ <h5>Sticky Top Bar</h5>
94
+ <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. <strong>Note:</strong> If you are using Scss, you can control the default <code>sticky</code> class by adjusting the <code>$topbar-sticky-class</code> variable. <strong>Make sure the JS variable for <code>stickyClass</code> matches whatever class you use in the variable.</strong></p>
95
+
96
+ <%= code_example '
97
+ <nav class="top-bar">
98
+ <ul class="title-area">
99
+ <!-- Title Area -->
100
+ <li class="name">
101
+ <h1><a href="#">Top Bar Title </a></h1>
102
+ </li>
103
+ <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
104
+ <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
105
+ </ul>
106
+
107
+ <section class="top-bar-section">
108
+ <!-- Left Nav Section -->
109
+ <ul class="left">
110
+ <li class="divider"></li>
111
+ <li class="active"><a href="#">Main Item 1</a></li>
112
+ <li class="divider"></li>
113
+ <li><a href="#">Main Item 2</a></li>
114
+ <li class="divider"></li>
115
+ <li class="has-dropdown"><a href="#">Main Item 3</a>
116
+
117
+ <ul class="dropdown">
118
+ <li class="has-dropdown"><a href="#">Dropdown Level 1a</a>
119
+
120
+ <ul class="dropdown">
121
+ <li><label>Dropdown Level 2 Label</label></li>
122
+ <li><a href="#">Dropdown Level 2a</a></li>
123
+ <li><a href="#">Dropdown Level 2b</a></li>
124
+ <li class="has-dropdown"><a href="#">Dropdown Level 2c</a>
125
+
126
+ <ul class="dropdown">
127
+ <li><label>Dropdown Level 3 Label</label></li>
128
+ <li><a href="#">Dropdown Level 3a</a></li>
129
+ <li><a href="#">Dropdown Level 3b</a></li>
130
+ <li class="divider"></li>
131
+ <li><a href="#">Dropdown Level 3c</a></li>
132
+ </ul>
133
+ </li>
134
+ <li><a href="#">Dropdown Level 2d</a></li>
135
+ <li><a href="#">Dropdown Level 2e</a></li>
136
+ <li><a href="#">Dropdown Level 2f</a></li>
137
+ </ul>
138
+ </li>
139
+ <li><a href="#">Dropdown Level 1b</a></li>
140
+ <li><a href="#">Dropdown Level 1c</a></li>
141
+ <li class="divider"></li>
142
+ <li><a href="#">Dropdown Level 1d</a></li>
143
+ <li><a href="#">Dropdown Level 1e</a></li>
144
+ <li><a href="#">Dropdown Level 1f</a></li>
145
+ <li class="divider"></li>
146
+ <li><a href="#">See all &rarr;</a></li>
147
+ </ul>
148
+ </li>
149
+ <li class="divider"></li>
150
+ </ul>
151
+
152
+ <!-- Right Nav Section -->
153
+ <ul class="right">
154
+ <li class="divider hide-for-small"></li>
155
+ <li class="has-dropdown"><a href="#">Main Item 4</a>
156
+
157
+ <ul class="dropdown">
158
+ <li><label>Dropdown Level 1 Label</label></li>
159
+ <li class="has-dropdown"><a href="#" class="">Dropdown Level 1a</a>
160
+
161
+ <ul class="dropdown">
162
+ <li><a href="#">Dropdown Level 2a</a></li>
163
+ <li><a href="#">Dropdown Level 2b</a></li>
164
+ <li class="has-dropdown"><a href="#">Dropdown Level 2c</a>
165
+
166
+ <ul class="dropdown">
167
+ <li><a href="#">Dropdown Level 3a</a></li>
168
+ <li><a href="#">Dropdown Level 3b</a></li>
169
+ <li><a href="#">Dropdown Level 3c</a></li>
170
+ </ul>
171
+ </li>
172
+ <li><a href="#">Dropdown Level 2d</a></li>
173
+ <li><a href="#">Dropdown Level 2e</a></li>
174
+ <li><a href="#">Dropdown Level 2f</a></li>
175
+ </ul>
176
+ </li>
177
+ <li><a href="#">Dropdown Level 1b</a></li>
178
+ <li><a href="#">Dropdown Level 1c</a></li>
179
+ <li class="divider"></li>
180
+ <li><label>Dropdown Level 1 Label</label></li>
181
+ <li><a href="#">Dropdown Level 1d</a></li>
182
+ <li><a href="#">Dropdown Level 1e</a></li>
183
+ <li><a href="#">Dropdown Level 1f</a></li>
184
+ <li class="divider"></li>
185
+ <li><a href="#">See all &rarr;</a></li>
186
+ </ul>
187
+ </li>
188
+ <li class="divider"></li>
189
+ <li class="has-form">
190
+ <form>
191
+ <div class="row collapse">
192
+ <div class="small-8 columns">
193
+ <input type="text">
194
+ </div>
195
+ <div class="small-4 columns">
196
+ <a href="#" class="alert button">Search</a>
197
+ </div>
198
+ </div>
199
+ </form>
200
+ </li>
201
+ <li class="divider show-for-small"></li>
202
+ <li class="has-form">
203
+ <a class="button" href="#">Button!</a>
204
+ </li>
205
+ </ul>
206
+ </section>
207
+ </nav>', :html %>
208
+
209
+ <h4>Available SCSS Variables</h4>
210
+ <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>
211
+
212
+ <%= code_example '
213
+ /* Background color for the top bar */
214
+ $topbar-bg: #111;
215
+
216
+ /* Height and margin */
217
+ $topbar-height: 45px;
218
+ $topbar-margin-bottom: emCalc(30px);
219
+
220
+ /* Control Input height for top bar */
221
+ $topbar-input-height: 2.45em;
222
+
223
+ /* Controlling the styles for the title in the top bar */
224
+ $topbar-title-weight: bold;
225
+ $topbar-title-font-size: emCalc(17px);
226
+
227
+ /* Style the top bar dropdown elements */
228
+ $topbar-dropdown-bg: #222;
229
+ $topbar-dropdown-link-color: #fff;
230
+ $topbar-dropdown-link-bg: lighten($topbar-bg, 5%);
231
+ $topbar-dropdown-toggle-size: 5px;
232
+ $topbar-dropdown-toggle-color: #fff;
233
+ $topbar-dropdown-toggle-alpha: 0.5;
234
+
235
+ /* Set the link colors and styles for top-level nav */
236
+ $topbar-link-color: #fff;
237
+ $topbar-link-color-hover: #fff;
238
+ $topbar-link-color-active: #fff;
239
+ $topbar-link-weight: bold;
240
+ $topbar-link-font-size: emCalc(13px);
241
+ $topbar-link-hover-lightness: -30%; /* Darken by 30% */
242
+ $topbar-link-bg-hover: darken($topbar-bg, 3%);
243
+ $topbar-link-bg-active: darken($topbar-bg, 3%);
244
+
245
+ $topbar-dropdown-label-color: #555;
246
+ $topbar-dropdown-label-text-transform: uppercase;
247
+ $topbar-dropdown-label-font-weight: bold;
248
+ $topbar-dropdown-label-font-size: emCalc(10px);
249
+
250
+ /* Top menu icon styles */
251
+ $topbar-menu-link-transform: uppercase;
252
+ $topbar-menu-link-font-size: emCalc(13px);
253
+ $topbar-menu-link-weight: bold;
254
+ $topbar-menu-link-color: #fff;
255
+ $topbar-menu-icon-color: #fff;
256
+ $topbar-menu-link-color-toggled: #888;
257
+ $topbar-menu-icon-color-toggled: #888;
258
+
259
+ /* Transitions and breakpoint styles */
260
+ $topbar-transition-speed: 300ms;
261
+ $topbar-breakpoint: emCalc(940px); /* Change to 9999px for always mobile layout */
262
+ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")";
263
+
264
+ /* Divider Styles */
265
+ $topbar-divider-border-bottom: solid 1px lighten($topbar-bg, 10%);
266
+ $topbar-divider-border-top: solid 1px darken($topbar-bg, 10%);
267
+
268
+ // Sticky Class
269
+ $topbar-sticky-class: ".sticky";', :css %>
270
+
271
+ <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>
272
+
273
+ <hr>
274
+
275
+ <h3>Using the JavaScript</h3>
276
+ <p>You'll need to include <code>abstractio.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>abstractio.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>
277
+
278
+ <p><a href="../javascript.html" title="How to install Abstractio JavaScript">Read how to install Abstractio JavaScript</a></p>
279
+
280
+ <p>Required Abstractio Library: <code>abstractio.topbar.js</code></p>
281
+
282
+ <h5>Optional JavaScript Configuration</h5>
283
+
284
+ <p>Top bar now supports <code>data-options</code> configuration.</p>
285
+
286
+ <%= code_example "
287
+ {
288
+ index : 0,
289
+ stickyClass : 'sticky',
290
+ custom_back_text: true, // Set this to false and it will pull the top level link name as the back text
291
+ back_text: 'Back', // Define what you want your custom back text to be if custom_back_text: true
292
+ init : false
293
+ }", :js %>
294
+ </div>
295
+ </div>
296
+ </div>
297
+ <div class="large-3 pull-9 columns">
298
+ <%= render "_sidebar-components.html.erb" %>
299
+ </div>
300
+ </div>
@@ -0,0 +1,396 @@
1
+ <% @side_nav = "type" %>
2
+ <div class="row">
3
+ <div class="large-9 push-3 columns">
4
+
5
+ <% @page_title = "Typography" %>
6
+ <div class="row">
7
+ <div class="large-12 columns">
8
+ <h2><%= @page_title %></h2>
9
+ <h4 class="subheader">Abstractio 4 typography is built with ems, making it easier to fine-tune your type across different breakpoints. By default, we include a single breakpoint in typography sizes and styles, but you can add more if you'd like.</h4>
10
+
11
+ <p>We're no longer depending on modular scale in the core of Abstractio. We made an effort with this release to be dependancy free other than Sass. This way people can use whatever framework and gems they want on top of Abstractio. We'll still use <a href="http://compass-style.org">Compass</a>.</p>
12
+
13
+ <hr>
14
+
15
+ </div>
16
+ </div>
17
+
18
+
19
+ <div class="row">
20
+ <div class="large-12 columns">
21
+
22
+ <h1>h1. This is a very large header.</h1>
23
+ <h2>h2. This is a large header.</h2>
24
+ <h3>h3. This is a medium header.</h3>
25
+ <h4>h4. This is a moderate header.</h4>
26
+ <h5>h5. This is a small header.</h5>
27
+ <h6>h6. This is a tiny header.</h6>
28
+
29
+ <%= code_example '
30
+ <h1>h1. This is a very large header.</h1>
31
+ <h2>h2. This is a large header.</h2>
32
+ <h3>h3. This is a medium header.</h3>
33
+ <h4>h4. This is a moderate header.</h4>
34
+ <h5>h5. This is a small header.</h5>
35
+ <h6>h6. This is a tiny header.</h6>
36
+ ', :html %>
37
+
38
+ <hr>
39
+
40
+ <h1 class="subheader">h1.subheader</h1>
41
+ <h2 class="subheader">h2.subheader</h2>
42
+ <h3 class="subheader">h3.subheader</h3>
43
+ <h4 class="subheader">h4.subheader</h4>
44
+ <h5 class="subheader">h5.subheader</h5>
45
+ <h6 class="subheader">h6.subheader</h6>
46
+
47
+ <%= code_example '
48
+ <h1 class="subheader">h1.subheader</h1>
49
+ <h2 class="subheader">h2.subheader</h2>
50
+ <h3 class="subheader">h3.subheader</h3>
51
+ <h4 class="subheader">h4.subheader</h4>
52
+ <h5 class="subheader">h5.subheader</h5>
53
+ <h6 class="subheader">h6.subheader</h6>
54
+ ', :html %>
55
+
56
+ <hr>
57
+
58
+ <h1>h1. <small>Small segment header.</small></h1>
59
+ <h2>h2. <small>Small segment header.</small></h2>
60
+ <h3>h3. <small>Small segment header.</small></h3>
61
+ <h4>h4. <small>Small segment header.</small></h4>
62
+ <h5>h5. <small>Small segment header.</small></h5>
63
+ <h6>h6. <small>Small segment header.</small></h6>
64
+
65
+ <%= code_example '
66
+ <h1>h1. <small>Small segment header.</small></h1>
67
+ <h2>h2. <small>Small segment header.</small></h2>
68
+ <h3>h3. <small>Small segment header.</small></h3>
69
+ <h4>h4. <small>Small segment header.</small></h4>
70
+ <h5>h5. <small>Small segment header.</small></h5>
71
+ <h6>h6. <small>Small segment header.</small></h6>
72
+ ', :html %>
73
+
74
+
75
+ <hr>
76
+
77
+ <p>This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall vertical rhythm. To show what a paragraph looks like this needs a little more content so, did you know that there are storms occurring on Jupiter that are larger than the Earth? Pretty cool. Wrap <code>&lt;strong&gt;</code> around type to <strong>make it bold!</strong>. You can also you <code>&lt;em&gt;</code> to <em>italicize your words</em>.</p>
78
+
79
+ <%= code_example '
80
+ <p>This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall vertical rhythm. To show what a paragraph looks like this needs a little more content so, did you know that there are storms occurring on Jupiter that are larger than the Earth? Pretty cool. Wrap <strong> around type to <strong>make it bold!</strong>. You can also you <em> to <em>italicize your words</em>.</p>
81
+ ', :html %>
82
+
83
+ <hr>
84
+
85
+ <h3>Links</h3>
86
+ <p>Links are very standard, and the <a href="http://www.youtube.com/watch?v=oHg5SJYRHA0">color is preset</a> to the Abstractio primary color.</p>
87
+
88
+ <%= code_example '
89
+ <p>Links are very standard, and the <a href="#">color is preset</a> to the Abstractio primary color.</p>
90
+ ', :html %>
91
+
92
+ <hr>
93
+
94
+ <h3>Lists</h3>
95
+ <p>Lists are helpful for, well, lists of things.</p>
96
+
97
+ <div class="row">
98
+ <div class="large-4 columns">
99
+ <h6>ul.disc</h6>
100
+ <ul class="disc">
101
+ <li>List item with a much longer description or more content.</li>
102
+ <li>List item</li>
103
+ <li>List item
104
+ <ul>
105
+ <li>Nested List Item</li>
106
+ <li>Nested List Item</li>
107
+ <li>Nested List Item</li>
108
+ </ul>
109
+ </li>
110
+ <li>List item</li>
111
+ <li>List item</li>
112
+ <li>List item</li>
113
+ </ul>
114
+ </div>
115
+
116
+ <div class="large-4 columns">
117
+ <h6>ul.circle</h6>
118
+ <ul class="circle">
119
+ <li>List item with a much longer description or more content.</li>
120
+ <li>List item</li>
121
+ <li>List item
122
+ <ul>
123
+ <li>Nested List Item</li>
124
+ <li>Nested List Item</li>
125
+ <li>Nested List Item</li>
126
+ </ul>
127
+ </li>
128
+ <li>List item</li>
129
+ <li>List item</li>
130
+ <li>List item</li>
131
+ </ul>
132
+ </div>
133
+
134
+ <div class="large-4 columns">
135
+ <h6>ul.square</h6>
136
+ <ul class="square">
137
+ <li>List item with a much longer description or more content.</li>
138
+ <li>List item</li>
139
+ <li>List item
140
+ <ul>
141
+ <li>Nested List Item</li>
142
+ <li>Nested List Item</li>
143
+ <li>Nested List Item</li>
144
+ </ul>
145
+ </li>
146
+ <li>List item</li>
147
+ <li>List item</li>
148
+ <li>List item</li>
149
+ </ul>
150
+ </div>
151
+ </div>
152
+
153
+ <div class="row">
154
+ <div class="large-4 columns">
155
+ <h6>ul.no-bullet</h6>
156
+ <ul class="no-bullet">
157
+ <li>List item with a much longer description or more content.</li>
158
+ <li>List item</li>
159
+ <li>List item
160
+ <ul>
161
+ <li>Nested List Item</li>
162
+ <li>Nested List Item</li>
163
+ <li>Nested List Item</li>
164
+ </ul>
165
+ </li>
166
+ <li>List item</li>
167
+ </ul>
168
+ </div>
169
+ <div class="large-4 columns">
170
+ <h6>Ordered Lists</h6>
171
+ <ol>
172
+ <li>List Item 1</li>
173
+ <li>List Item 2
174
+ <ol>
175
+ <li>Nested List Item</li>
176
+ <li>Nested List Item</li>
177
+ <li>Nested List Item</li>
178
+ </ol>
179
+ </li>
180
+ <li>List Item 3</li>
181
+ </ol>
182
+ </div>
183
+ <div class="large-4 columns">
184
+ <h6>Definition Lists</h6>
185
+ <dl>
186
+ <dt>Definition Title</dt>
187
+ <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
188
+ </dl>
189
+ </div>
190
+ </div>
191
+
192
+ <%= code_example '
193
+ <!-- Use .circle or .square to change the style of the bullets -->
194
+ <ul class="disc">
195
+ <li>List item with a much longer description or more content.</li>
196
+ <li>List item</li>
197
+ <li>List item
198
+ <ul>
199
+ <li>Nested List Item</li>
200
+ <li>Nested List Item</li>
201
+ <li>Nested List Item</li>
202
+ </ul>
203
+ </li>
204
+ <li>List item</li>
205
+ <li>List item</li>
206
+ <li>List item</li>
207
+ </ul>
208
+
209
+ <!-- Sometimes you don\'t want bullets at all -->
210
+ <ul class="no-bullet">
211
+ <li>List item with a much longer description or more content.</li>
212
+ <li>List item</li>
213
+ <li>List item
214
+ <ul>
215
+ <li>Nested List Item</li>
216
+ <li>Nested List Item</li>
217
+ <li>Nested List Item</li>
218
+ </ul>
219
+ </li>
220
+ <li>List item</li>
221
+ </ul>
222
+
223
+ <!-- Ordered lists are great for lists that need order, duh -->
224
+ <ol>
225
+ <li>List Item 1</li>
226
+ <li>List Item 2</li>
227
+ <li>List Item 3</li>
228
+ </ol>
229
+
230
+ <!-- Definition lists are great for small block of copy that describe the header -->
231
+ <dl>
232
+ <dt>Definition List</dt>
233
+ <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
234
+ </dl>
235
+ ', :html %>
236
+
237
+ <hr>
238
+
239
+ <a name="blockquotes"></a>
240
+ <h3>Blockquotes</h3>
241
+ <p>Sometimes other people say smart things, and you may want to mention that through a blockquote callout. We've got you covered.</p>
242
+
243
+ <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
244
+
245
+ <%= code_example '
246
+ <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
247
+ ', :html %>
248
+
249
+ <hr>
250
+
251
+ <h3>V-Cards</h3>
252
+ <p>Here's a handy microformat-friendly list to <em>address</em> all your needs.</p>
253
+
254
+ <ul class="vcard">
255
+ <li class="fn">Gaius Baltar</li>
256
+ <li class="street-address">123 Colonial Ave.</li>
257
+ <li class="locality">Caprica City</li>
258
+ <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
259
+ <li class="email"><a href="#">g.baltar@cmail.com</a></li>
260
+ </ul>
261
+
262
+ <%= code_example '
263
+ <ul class="vcard">
264
+ <li class="fn">Gaius Baltar</li>
265
+ <li class="street-address">123 Colonial Ave.</li>
266
+ <li class="locality">Caprica City</li>
267
+ <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
268
+ <li class="email"><a href="#">g.baltar@cmail.com</a></li>
269
+ </ul>
270
+ ', :html %>
271
+
272
+ <hr>
273
+
274
+ <h3>Print Styles</h3>
275
+ <p>Abstractio includes print styles developed by HTML5 Boilerplate to give you some basic print-specific styles. These are activated when you print through a media query. It includes:</p>
276
+
277
+ <ul class="disc">
278
+ <li>Clearing out backgrounds, box shadows, and text shadows</li>
279
+ <li>Appending link URLs after the anchor text</li>
280
+ <li>Bordering blockquotes and pre elements</li>
281
+ <li>Page cleanup and window minimization</li>
282
+ </ul>
283
+
284
+ <p>On top of that, Abstractio includes a couple of simple classes you can use to control elements printing, or not printing. Simply attach <code>.print-only</code> to an element to only show when printing, and <code>.hide-on-print</code> to hide something when printing.</p>
285
+
286
+ <hr>
287
+
288
+ <h3>Available SCSS Variables</h3>
289
+ <p>We've got a ton of variables for you to use to customize your typography.</p>
290
+
291
+ <%= code_example '
292
+ /* We use these to control header font styles */
293
+ $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
294
+ $header-font-weight: bold;
295
+ $header-font-style: normal;
296
+ $header-font-color: #222;
297
+ $header-line-height: 1.4;
298
+ $header-top-margin: .2em;
299
+ $header-bottom-margin: .5em;
300
+ $header-text-rendering: optimizeLegibility;
301
+
302
+ /* We use these to control header font sizes */
303
+ $h1-font-size: emCalc(44px);
304
+ $h2-font-size: emCalc(37px);
305
+ $h3-font-size: emCalc(27px);
306
+ $h4-font-size: emCalc(23px);
307
+ $h5-font-size: emCalc(18px);
308
+ $h6-font-size: 1em;
309
+
310
+ /* These control how subheaders are styled. */
311
+ $subheader-line-height: 1.4;
312
+ $subheader-font-color: lighten($header-font-color, 30%);
313
+ $subheader-font-weight: 300;
314
+ $subheader-top-margin: .2em;
315
+ $subheader-bottom-margin: .5em;
316
+
317
+ /* A general <small> styling */
318
+ $small-font-size: 60%;
319
+ $small-font-color: lighten($header-font-color, 30%);
320
+
321
+ /* We use these to style paragraphs */
322
+ $paragraph-font-family: inherit;
323
+ $paragraph-font-weight: normal;
324
+ $paragraph-font-size: 1em;
325
+ $paragraph-line-height: 1.6;
326
+ $paragraph-margin-bottom: emCalc(20px);
327
+ $paragraph-aside-font-size: emCalc(14px);
328
+ $paragraph-aside-line-height: 1.35;
329
+ $paragraph-aside-font-style: italic;
330
+ $paragraph-text-rendering: optimizeLegibility;
331
+
332
+ /* We use these to style <code> tags */
333
+ $code-color: darken($alert-color, 15%);
334
+ $code-font-family: Consolas, "Liberation Mono", Courier, monospace;
335
+ $code-font-weight: bold;
336
+
337
+ /* We use these to style anchors */
338
+ $anchor-text-decoration: none;
339
+ $anchor-font-color: $primary-color;
340
+ $anchor-font-color-hover: darken($primary-color, 5%);
341
+
342
+ /* We use these to style the <hr> element */
343
+ $hr-border-width: 1px;
344
+ $hr-border-style: solid;
345
+ $hr-border-color: #ddd;
346
+ $hr-margin: emCalc(20px);
347
+
348
+ /* We use these to style lists */
349
+ $list-style-position: outside;
350
+ $list-side-margin: emCalc(18px);
351
+ $definition-list-header-weight: bold;
352
+ $definition-list-header-margin-bottom: .3em;
353
+ $definition-list-margin-bottom: emCalc(12px);
354
+
355
+ /* We use these to style blockquotes */
356
+ $blockquote-font-color: lighten($header-font-color, 30%);
357
+ $blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px);
358
+ $blockquote-border: 1px solid #ddd;
359
+ $blockquote-cite-font-size: emCalc(13px);
360
+ $blockquote-cite-font-color: lighten($header-font-color, 20%);
361
+ $blockquote-cite-link-color: $blockquote-cite-font-color;
362
+
363
+ /* Acronym styles */
364
+ $acronym-underline: 1px dotted #ddd;
365
+
366
+ /* We use these to control padding and margin */
367
+ $microformat-padding: emCalc(10px) emCalc(12px);
368
+ $microformat-margin: 0 0 emCalc(20px) 0;
369
+
370
+ /* We use these to control the border styles */
371
+ $microformat-border-width: 1px;
372
+ $microformat-border-style: solid;
373
+ $microformat-border-color: #ddd;
374
+
375
+ /* We use these to control full name font styles */
376
+ $microformat-fullname-font-weight: bold;
377
+ $microformat-fullname-font-size: emCalc(15px);
378
+
379
+ /* We use this to control the summary font styles */
380
+ $microformat-summary-font-weight: bold;
381
+
382
+ /* We use this to control abbr padding */
383
+ $microformat-abbr-padding: 0 emCalc(1px);
384
+
385
+ /* We use this to control abbr font styles */
386
+ $microformat-abbr-font-weight: bold;
387
+ $microformat-abbr-font-decoration: none;
388
+ ', :css %>
389
+
390
+ </div>
391
+ </div>
392
+ </div>
393
+ <div class="large-3 pull-9 columns">
394
+ <%= render "_sidebar-components.html.erb" %>
395
+ </div>
396
+ </div>