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,290 @@
1
+ <% @side_nav = "forms" %>
2
+
3
+ <div class="row">
4
+ <div class="large-9 push-3 columns">
5
+
6
+ <% @page_title = "Switch" %>
7
+ <div class="row">
8
+ <div class="large-12 columns">
9
+ <h2><%= @page_title %></h2>
10
+ <h4 class="subheader">Switches can be used instead of regular radio buttons to switch between two options. They are customizable and use styles that won't show on phones that don't support media queries. On these devices, they will appear as regular radio buttons.</h4>
11
+
12
+ <div class="small-2 switch tiny">
13
+ <input id="a" name="switch-a" type="radio" checked>
14
+ <label for="a" onclick="">Off</label>
15
+
16
+ <input id="a1" name="switch-a" type="radio">
17
+ <label for="a1" onclick="">On</label>
18
+
19
+ <span></span>
20
+ </div>
21
+
22
+ <div class="small-3 switch small">
23
+ <input id="b" name="switch-b" type="radio" checked>
24
+ <label for="b" onclick="">Off</label>
25
+
26
+ <input id="b1" name="switch-b" type="radio">
27
+ <label for="b1" onclick="">On</label>
28
+
29
+ <span></span>
30
+ </div>
31
+
32
+ <div class="small-4 switch radius">
33
+ <input id="c" name="switch-c" type="radio" checked>
34
+ <label for="c" onclick="">Off</label>
35
+
36
+ <input id="c1" name="switch-c" type="radio">
37
+ <label for="c1" onclick="">On</label>
38
+
39
+ <span></span>
40
+ </div>
41
+
42
+ <div class="small-6 switch large round">
43
+ <input id="d" name="switch-d" type="radio" checked>
44
+ <label for="d" onclick="">Off</label>
45
+
46
+ <input id="d1" name="switch-d" type="radio">
47
+ <label for="d1" onclick="">On</label>
48
+
49
+ <span></span>
50
+ </div>
51
+
52
+ <hr>
53
+
54
+ </div>
55
+ </div>
56
+
57
+ <div class="row">
58
+ <div class="large-12 columns">
59
+
60
+ <h3>Build With Predefined HTML Classes</h3>
61
+ <p>There are two ways to build switches in Abstractio 4: with our predefined HTML classes or with our mixins. Building switches using our predefined classes is simple, you'll just need a <code>div.switch</code> wrapped around a specific input/label markup. From there, you can update the styles as you need to. The switches width is 100% of the container you put it in or you can use our grid classes, <code>.small-#</code> or <code>.large-#</code>, directly on the switch.</p>
62
+
63
+ <%= code_example '
64
+ <!-- Default switch -->
65
+ <div class="switch">
66
+ <input id="x" name="switch-x" type="radio" checked>
67
+ <label for="x" onclick="">Off</label>
68
+
69
+ <input id="x1" name="switch-x" type="radio">
70
+ <label for="x1" onclick="">On</label>
71
+
72
+ <span></span>
73
+ </div>
74
+
75
+ <!-- Using class options -->
76
+ <div class="switch large round">
77
+ <input id="z" name="switch-z" type="radio" checked>
78
+ <label for="z" onclick="">Off</label>
79
+
80
+ <input id="z1" name="switch-z" type="radio">
81
+ <label for="z1" onclick="">On</label>
82
+
83
+ <span></span>
84
+ </div>', :html %>
85
+
86
+ <p>The class options:</p>
87
+ <ul class="disc">
88
+ <li><code>radius</code>: Add this to the the switch container to get a 3px radius paddle and edges</li>
89
+ <li><code>round</code>: Add this to the the switch container to get a round paddle and edges</li>
90
+ <li><code>tiny</code>: Set the height and text of the switch to tiny</li>
91
+ <li><code>small</code>: Set the height and text of the switch to small</li>
92
+ <li><code>large</code>: Set the height and text of the switch to large</li>
93
+ </ul>
94
+
95
+ <p>To use these styles, make sure you have the default Abstractio CSS package or that you've selected switches from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
96
+
97
+ <hr>
98
+
99
+ <h3>Build with our Mixins</h3>
100
+ <p>We've included SCSS mixins used to style switches. 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/_switch.scss">_switch.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>
101
+
102
+ <%= code_example '
103
+ @import "abstractio/abstractio-global", "abstractio/components/global", "abstractio/components/switch";
104
+ ', :css %>
105
+
106
+ <p>The markup is pretty simple, you'll only need a single class or ID on the container to apply the mixin.</p>
107
+
108
+ <%= code_example '
109
+ <div class="your-class-name">
110
+ <input id="z" name="switch-z" type="radio" checked>
111
+ <label for="z" onclick="">Off</label>
112
+
113
+ <input id="z1" name="switch-z" type="radio">
114
+ <label for="z1" onclick="">On</label>
115
+
116
+ <span></span>
117
+ </div>
118
+ ', :html %>
119
+
120
+ <h5>Quick Mixin</h5>
121
+ <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 key styles, the rest of the defaults can be modified using the available variables. The global mixin looks like this:</p>
122
+
123
+ <%= code_example '
124
+ /* Using the default styles */
125
+ .your-class-name { @include switch; }', :css %>
126
+
127
+ <div class="switch">
128
+ <input id="y" name="switch-y" type="radio" checked>
129
+ <label for="y" onclick="">Off</label>
130
+
131
+ <input id="y1" name="switch-y" type="radio">
132
+ <label for="y1" onclick="">On</label>
133
+
134
+ <span></span>
135
+ </div>
136
+
137
+ <p>There are <strong>ten options</strong> you can customize on the fly when writing this mixin. These controls things like: padding, text size, color and radius. Setting any of these options to false will negate those styles.</p>
138
+
139
+ <%= code_example '
140
+ /* Using the available options */
141
+ .your-class-name {
142
+ @include switch($transition-speed, $transition-ease, $height, $font-size, $line-height, $paddle-bg, $positive-color, $negative-color, $radius, $base-style);
143
+ }
144
+
145
+ /* This sets the speed at which the switch toggles */
146
+ $transition-speed: $switch-paddle-transition-speed
147
+
148
+ /* This sets the ease of the switch transition */
149
+ $transition-ease: $switch-paddle-transition-ease
150
+
151
+ /* This controls the overall height of the switch */
152
+ $height: $switch-height-med
153
+
154
+ /* You can set a different font-size for you switch */
155
+ $font-size: $switch-font-size-med
156
+
157
+ /* You can set a different line-height too */
158
+ $line-height: 2.3em
159
+
160
+ /* This controls the background of the paddle */
161
+ $paddle-bg: $switch-paddle-bg
162
+
163
+ /* Set the box-shadow color for the right side of the switch */
164
+ $positive-color: $switch-positive-color
165
+
166
+ /* Set the box-shadow color for the left side of the switch */
167
+ $negative-color: $switch-negative-color
168
+
169
+ /* Set this to true for default radius or any number for complete control */
170
+ $radius: false
171
+
172
+ /* If you set this to false, base styles are left out */
173
+ $base-style: true
174
+ ', :css %>
175
+
176
+ <div class="switch-custom">
177
+ <input id="w" name="switch-w" type="radio" checked>
178
+ <label for="w" onclick="">Off</label>
179
+
180
+ <input id="w1" name="switch-w" type="radio">
181
+ <label for="w1" onclick="">On</label>
182
+
183
+ <span></span>
184
+ </div>
185
+
186
+ <h5>Base Mixin</h5>
187
+ <p>You also have access to a few internal mixins that can create parts of the button as needed. The base mixin will create a switch base that only include structural styles.</p>
188
+
189
+ <%= code_example '
190
+ .your-class-name { @include switch-base($transition-speed, $transition-ease); }
191
+ ', :css %>
192
+
193
+ <div class="switch-custom-base">
194
+ <input id="o" name="switch-o" type="radio" checked>
195
+ <label for="o" onclick="">Off</label>
196
+
197
+ <input id="o1" name="switch-o" type="radio">
198
+ <label for="o1" onclick="">On</label>
199
+
200
+ <span></span>
201
+ </div>
202
+
203
+ <h5>Size Mixin</h5>
204
+ <p>The size mixin will let you control the size of the switch, font-size and line-height.</p>
205
+
206
+ <%= code_example '
207
+ .your-class-name {
208
+ @include switch-base($transition-speed, $transition-ease);
209
+ @include switch-size($height, $font-size, $line-height);
210
+ }
211
+ ', :css %>
212
+
213
+ <div class="switch-custom-base size">
214
+ <input id="o2" name="switch-o2" type="radio" checked>
215
+ <label for="o2" onclick="">Off</label>
216
+
217
+ <input id="o3" name="switch-o2" type="radio">
218
+ <label for="o3" onclick="">On</label>
219
+
220
+ <span></span>
221
+ </div>
222
+
223
+ <h5>Style Mixin</h5>
224
+ <p>The last internal mixin you have access to for buttons is the style mixin. This will help you style background color, text color, positive/negative color, etc.</p>
225
+
226
+ <%= code_example '
227
+ .your-class-name {
228
+ @include switch-base($transition-speed, $transition-ease);
229
+ @include switch-size($height, $font-size, $line-height);
230
+ @include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style);
231
+ }
232
+ ', :css %>
233
+
234
+ <div class="switch-custom-base size style">
235
+ <input id="o4" name="switch-o3" type="radio" checked>
236
+ <label for="o4" onclick="">Off</label>
237
+
238
+ <input id="o5" name="switch-o3" type="radio">
239
+ <label for="o5" onclick="">On</label>
240
+
241
+ <span></span>
242
+ </div>
243
+
244
+ <h5>Default SCSS Variables</h5>
245
+
246
+ <%= code_example '
247
+ /* Controlling border styles and background colors for the switch container */
248
+ $switch-border-color: darken(#fff, 20%);
249
+ $switch-border-style: solid;
250
+ $switch-border-width: 1px;
251
+ $switch-bg: #fff;
252
+
253
+ /* We use these to control the switch heights for our default classes */
254
+ $switch-height-tny: 22px;
255
+ $switch-height-sml: 28px;
256
+ $switch-height-med: 36px;
257
+ $switch-height-lrg: 44px;
258
+ $switch-bottom-margin: emCalc(20px);
259
+
260
+ /* We use these to control default font sizes for our classes. */
261
+ $switch-font-size-tny: 11px;
262
+ $switch-font-size-sml: 12px;
263
+ $switch-font-size-med: 14px;
264
+ $switch-font-size-lrg: 17px;
265
+ $switch-label-side-padding: 6px;
266
+
267
+ /* We use these to style the switch-paddle */
268
+ $switch-paddle-bg: #fff;
269
+ $switch-paddle-fade-to-color: darken($switch-paddle-bg, 10%);
270
+ $switch-paddle-border-color: darken($switch-paddle-bg, 35%);
271
+ $switch-paddle-border-width: 1px;
272
+ $switch-paddle-border-style: solid;
273
+ $switch-paddle-transition-speed: .1s;
274
+ $switch-paddle-transition-ease: ease-out;
275
+ $switch-positive-color: lighten($success-color, 50%);
276
+ $switch-negative-color: #f5f5f5;
277
+
278
+ /* Outline Style for tabbing through switches */
279
+ $switch-label-outline: 1px dotted #888;', :css %>
280
+
281
+ <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>
282
+
283
+ </div>
284
+ </div>
285
+ </div>
286
+ <div class="large-3 pull-9 columns">
287
+ <%= render "_sidebar-components.html.erb" %>
288
+ </div>
289
+
290
+ </div>
@@ -0,0 +1,125 @@
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>_abstractio-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>
@@ -0,0 +1,89 @@
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/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/_thumbs.scss">_thumbs.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>
35
+
36
+ <%= code_example '
37
+ @import "abstractio/abstractio-global", "abstractio/components/global", "abstractio/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>