picasso 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. data/.gitignore +2 -1
  2. data/README.md +33 -29
  3. data/docs/_picasso.html +12 -9
  4. data/docs/all.html +57 -43
  5. data/docs/config.rb +1 -2
  6. data/docs/css/picasso-demos.css +1 -0
  7. data/docs/css/picasso-docs.css +1 -2502
  8. data/docs/docs.css +476 -0
  9. data/docs/docs.js +4 -0
  10. data/docs/img/picasso-popup.png +0 -0
  11. data/docs/index.html +44 -43
  12. data/docs/js/html5shiv.js +5 -0
  13. data/docs/picasso-_components.html +14 -11
  14. data/docs/picasso-_despegar.html +11 -8
  15. data/docs/picasso-_utils.html +12 -9
  16. data/docs/picasso-components-_accordions.html +13 -38
  17. data/docs/picasso-components-_arrows.html +13 -10
  18. data/docs/picasso-components-_bubbles.html +14 -11
  19. data/docs/picasso-components-_buttons.html +12 -9
  20. data/docs/picasso-components-_inputs.html +13 -10
  21. data/docs/picasso-components-_list-grids.html +14 -11
  22. data/docs/picasso-components-_navs.html +14 -11
  23. data/docs/picasso-components-_pagination.html +13 -10
  24. data/docs/picasso-components-_popups.html +17 -14
  25. data/docs/picasso-components-_tooltips.html +14 -11
  26. data/docs/picasso-components-buttons-_3d.html +17 -14
  27. data/docs/picasso-components-buttons-_glossy.html +14 -11
  28. data/docs/picasso-components-buttons-_mini.html +14 -11
  29. data/docs/picasso-despegar-_variables.html +15 -12
  30. data/docs/picasso-utils-_clearfix.html +13 -10
  31. data/docs/picasso-utils-_grid.html +17 -14
  32. data/docs/picasso-utils-_ie.html +12 -9
  33. data/docs/picasso-utils-_sprite.html +12 -9
  34. data/docs/previews.js +33 -0
  35. data/docs/resources/docs.jade +52 -26
  36. data/docs/sass/picasso-demos.scss +330 -0
  37. data/docs/sass/picasso-docs.scss +75 -300
  38. data/lib/picasso/version.rb +1 -1
  39. data/package.json +7 -0
  40. data/stylesheets/picasso/_components.scss +1 -1
  41. data/stylesheets/picasso/components/_accordions.scss +0 -28
  42. data/stylesheets/picasso/components/_arrows.scss +1 -1
  43. data/stylesheets/picasso/components/_bubbles.scss +1 -1
  44. data/stylesheets/picasso/components/_list-grids.scss +1 -1
  45. data/stylesheets/picasso/components/_navs.scss +1 -1
  46. data/stylesheets/picasso/components/_popups.scss +3 -3
  47. data/stylesheets/picasso/components/buttons/_3d.scss +1 -1
  48. data/stylesheets/picasso/components/buttons/_glossy.scss +1 -1
  49. data/stylesheets/picasso/components/buttons/_mini.scss +1 -1
  50. data/stylesheets/picasso/utils/_grid.scss +1 -1
  51. metadata +11 -5
  52. data/docs/resources/docs.js +0 -52
@@ -0,0 +1,476 @@
1
+ /*
2
+ StyleDocco default styles
3
+ =========================
4
+ This is the default stylesheet for StyleDocco. It also serves as an example of
5
+ the documentation syntax. */
6
+ * {
7
+ -moz-box-sizing: border-box;
8
+ box-sizing: border-box;
9
+ margin: 0;
10
+ padding: 0;
11
+ border: 0;
12
+ }
13
+ body {
14
+ /* Top/bottom paddings for bars */
15
+ padding: 60px 0;
16
+ background-color: hsl(200, 5%, 90%);
17
+ color: hsl(240, 11%, 30%);
18
+ }
19
+ /* The page content has a maximum width of 1500 pixels. */
20
+ .container {
21
+ max-width: 1300px;
22
+ margin: 0 auto;
23
+ padding: 0 20px;
24
+ }
25
+ .section {
26
+ position: relative;
27
+ margin-bottom: 20px;
28
+ }
29
+ /* When StyleDocco encounters a first level heading, the documentation is
30
+ split into a new section with a pair of documentation and CSS code.
31
+
32
+ ```
33
+ <article class="section">
34
+ <div class="docs">
35
+ <h1>Documentation</h1>
36
+ </div>
37
+ <div class="code"><pre><code>CSS code</code></pre></div>
38
+ </article>
39
+ ``` */
40
+ .docs {
41
+ position: relative;
42
+ z-index: 2;
43
+ width: 68%;
44
+ min-height: 200px;
45
+ background-color: hsl(0, 0%, 100%);
46
+ background-clip: padding-box;
47
+ border: 1px solid hsla(0, 0%, 0%, .1);
48
+ border-radius: 5px;
49
+ box-shadow: 0 0 3px hsla(0, 0%, 0%, .1);
50
+ }
51
+ .code {
52
+ position: absolute;
53
+ top: 5px; bottom: 5px;
54
+ right: 0;
55
+ z-index: 1;
56
+ width: 33%;
57
+ padding: 10px 10px 10px 20px;
58
+ border-radius: 0 5px 5px 0;
59
+ border: 1px solid hsla(0, 0%, 0%, .1);
60
+ background-color: hsla(0, 0%, 100%, .75);
61
+ background-clip: padding-box;
62
+ opacity: .75;
63
+ -webkit-transition: opacity .25s;
64
+ -moz-transition: opacity .25s;
65
+ -o-transition: opacity .25s;
66
+ transition: opacity .25s;
67
+ }
68
+ .code:hover {
69
+ opacity: 1;
70
+ }
71
+
72
+ /* # Previews and code
73
+ Previews are rendered in sandboxed iframes and are resizable.
74
+
75
+ ```
76
+ <div class="docs">
77
+ <div class="preview"><div class="resizeable">Rendered preview. Resize me!</div></div>
78
+ <pre><code>HTML code</code></pre>
79
+ </div>
80
+ ```
81
+
82
+ <small>Custom resizing currently only works properly in Firefox. In WebKit
83
+ browsers you can only enlarge the previews.</small>.
84
+
85
+ There is currently no syntax highlighting of neither CSS nor HTML code, but
86
+ it's on the todo-list.
87
+ */
88
+ .preview {
89
+ margin-top: 10px;
90
+ background: hsl(0, 0%, 100%);
91
+ border-top: 1px solid hsl(240, 8%, 87%);
92
+ }
93
+ pre + .preview {
94
+ margin-top: 0;
95
+ border-top: 0;
96
+ }
97
+ .resizeable {
98
+ padding: 15px;
99
+ overflow: auto;
100
+ resize: both;
101
+ background: hsl(0, 0%, 100%);
102
+ }
103
+ .preview iframe {
104
+ display: block;
105
+ width: 100%;
106
+ height: 100%;
107
+ }
108
+ .preview.is-loading iframe {
109
+ visibility: hidden;
110
+ }
111
+ pre {
112
+ white-space: pre-wrap;
113
+ word-wrap: break-word;
114
+ color: hsl(240, 9%, 37%);
115
+ font-size: 12px;
116
+ line-height: 1.1 !important;
117
+ }
118
+ .docs pre {
119
+ max-height: 200px;
120
+ padding: 10px 20px;
121
+ overflow-y: auto;
122
+ background: hsl(220, 27%, 98%);
123
+ border: 1px solid hsl(240, 8%, 87%);
124
+ border-left: 0; border-right: 0;
125
+ }
126
+ .preview + pre {
127
+ margin-top: 0;
128
+ border-top-style: dotted;
129
+ }
130
+ .docs pre:last-child {
131
+ border-bottom: 0;
132
+ border-radius: 0 0 5px 5px;
133
+ }
134
+ .code pre {
135
+ height: 100%;
136
+ margin-top: 0;
137
+ overflow-y: auto;
138
+ }
139
+
140
+
141
+ /*
142
+ # Navigation
143
+
144
+ Fixed to top with a small drop shadow.
145
+ ```
146
+ <nav class="bar top"></nav>
147
+ ```
148
+ */
149
+ .bar {
150
+ position: fixed;
151
+ left: 0; right: 0;
152
+ z-index: 9999;
153
+ min-height: 40px;
154
+ line-height: 40px;
155
+ background-image: -webkit-linear-gradient(hsla(197, 4%, 35%, .98),
156
+ hsla(197, 4%, 22%, .91));
157
+ background-image: -moz-linear-gradient(hsla(197, 4%, 35%, .98),
158
+ hsla(197, 4%, 22%, .91));
159
+ background-image: -o-linear-gradient(hsla(197, 4%, 35%, .98),
160
+ hsla(197, 4%, 22%, .91));
161
+ background-image: linear-gradient(hsla(197, 4%, 35%, .98),
162
+ hsla(197, 4%, 22%, .91));
163
+ }
164
+ .bar.top {
165
+ top: 0;
166
+ box-shadow: 0 1px 3px hsla(0, 0%, 0%, .25);
167
+ }
168
+ .bar.bottom {
169
+ bottom: 0;
170
+ box-shadow: 0 -1px 3px hsla(0, 0%, 0%, .25);
171
+ }
172
+
173
+ .bar ul {
174
+ margin: 0 !important;
175
+ }
176
+ .menu, .menu a, .menu a:visited {
177
+ color: hsla(0, 0%, 100%, .7);
178
+ text-shadow: 1px 1px 0 hsla(0, 0%, 0%, .3);
179
+ }
180
+ .menu .is-active > a,
181
+ .menu a:hover {
182
+ color: hsla(0, 0%, 100%, .9);
183
+ text-decoration: none;
184
+ }
185
+ /* ```
186
+ <div class="bar top"><a href="#" class="brand">Site name</a></div>
187
+ ``` */
188
+ .brand, a.brand, a.brand:visited {
189
+ float: left;
190
+ margin-right: 20px;
191
+ font-weight: bold;
192
+ font-size: 16px;
193
+ color: hsla(0, 0%, 0%, .9);
194
+ text-shadow: 1px 1px 0 hsla(0, 0%, 100%, .25);
195
+ text-decoration: none;
196
+ }
197
+ .brand:hover, a.brand:hover {
198
+ color: hsl(0, 0%, 0%);
199
+ }
200
+ /*
201
+ Showing previews of absolutely positioned elements can be tricky, but most of
202
+ the time you can solve it by adding inline styles in the example code, or
203
+ by including a custom previews stylesheet with overrides.
204
+ ```
205
+ <div class="bar top">
206
+ <ul class="menu">
207
+ <li><a href="#">css-file</a>
208
+ <li><a href="#" class="dropdown-toggle">folder</a>
209
+ <ul class="dropdown is-active">
210
+ <li><a href="#">css-file</a>
211
+ <li><a href="#">css-file</a>
212
+ </ul>
213
+ </ul>
214
+ </div>
215
+ ``` */
216
+ .menu {
217
+ font-size: 13px;
218
+ }
219
+ .menu li {
220
+ float: left;
221
+ position: relative;
222
+ list-style: none;
223
+ }
224
+ .menu a {
225
+ display: block;
226
+ margin-right: 15px;
227
+ }
228
+
229
+ .dropdown-toggle {
230
+ position: relative;
231
+ padding-right: 15px;
232
+ }
233
+ /* Arrow */
234
+ .dropdown-toggle:after {
235
+ display: block;
236
+ position: absolute;
237
+ right: 0;
238
+ top: 18px;
239
+ content: '';
240
+ border: 5px solid;
241
+ border-left-color: transparent;
242
+ border-right-color: transparent;
243
+ border-bottom-color: transparent;
244
+ }
245
+ .dropdown {
246
+ display: none;
247
+ position: absolute;
248
+ top: 40px;
249
+ left: -11px;
250
+ width: 175px;
251
+ max-height: 500px;
252
+ padding: 0;
253
+ z-index: 9999;
254
+ overflow-y: auto;
255
+ font-size: 13px;
256
+ line-height: 23px;
257
+ background-color: hsla(197, 5%, 30%, .95);
258
+ border: 1px solid hsla(0, 0%, 0%, .2);
259
+ border-radius: 0 0 3px 3px;
260
+ box-shadow: 0 0 3px hsla(0, 0%, 0%, .3);
261
+ }
262
+ .dropdown.is-active {
263
+ display: block;
264
+ }
265
+ .dropdown li {
266
+ float: none;
267
+ }
268
+ .dropdown a {
269
+ padding: 0 10px;
270
+ }
271
+ .dropdown li:hover {
272
+ background-color: hsl(197, 5%, 30%);
273
+ }
274
+
275
+
276
+ /*
277
+ # Settings and configuration
278
+ */
279
+ .settings {
280
+ text-align: center;
281
+ }
282
+ .settings button {
283
+ display: inline-block;
284
+ vertical-align: middle;
285
+ opacity: .4;
286
+ height: 30px;
287
+ margin: 0 7px;
288
+ background-color: transparent;
289
+ background-repeat: no-repeat;
290
+ background-position: 50%;
291
+ }
292
+ .settings button:first-child {
293
+ margin-left: 0;
294
+ }
295
+ .settings button:hover,
296
+ .settings button.is-active {
297
+ opacity: .7;
298
+ }
299
+ /* Glyphicons Free. http://glyphicons.com */
300
+ .settings .desktop {
301
+ width: 28px;
302
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYBAMAAAAbsoCxAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHFQoLLk56XJsAAAASUExURf///////////////////////7rldAIAAAAFdFJOUwA/Tc/vbrbEvQAAAAFiS0dEBfhv6ccAAAA2SURBVBhXY3ANRQIhDKEogCFUCQkMDy6aB5FAQCgDWmhAAFAZEmAMDRVA4gqHhhrCOXBjMbgASVE+V+Tuaj4AAAAASUVORK5CYII=);
303
+ }
304
+ .settings .laptop {
305
+ width: 28px;
306
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAPCAYAAAD3T6+hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHFQoME1lThk0AAAA8SURBVDjLY/j//z8DFPMD8fv/1AfvkexgYECzkFYAq4UMSAp8qYRHLRy1cNTCUQsHyEK6ApCF6+lo33oA6TKxvKfzn5kAAAAASUVORK5CYII=);
307
+ }
308
+ .settings .tablet {
309
+ width: 20px;
310
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAbCAYAAAB836/YAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHFQoMNhJXUgoAAABJSURBVEjHY/j//3//f+qB8wz/qQxobqAvmXjUwFEDRw0cNXDUwFEDaW4gNtAJxMJQ3EmNatQeqo4ByiZoIKGWQz2SgfUE1PYDAKR3kM4foJivAAAAAElFTkSuQmCC);
311
+ }
312
+ .settings .smartphone {
313
+ width: 14px;
314
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYBAMAAAA46dFkAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHFQoMJg/gQm4AAAAYUExURf///////////////////////////////ykrwMgAAAAHdFJOUwAPP01vz+/RYU9PAAAAAWJLR0QHFmGI6wAAADRJREFUCFtjUCsHgSSGdDBdxlAOAQjaGAQGgC4vT4e4o1QwHEyXMLgD6XQwv4wB6O4yoLsBA2Y3dN88x/AAAAAASUVORK5CYII=);
315
+ }
316
+ .settings .featurephone {
317
+ width: 15px;
318
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAZCAYAAADuWXTMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHFQoMBjSOYqYAAABjSURBVDjLY/z//z8DFPgDsQMQG0BpdHABijcA8UaQACNQsz6QXgDVRCx4AMQBIM3vgQwBBtLBB5BmmLv9SNC4CebsUc2jmonWTDKgmmZGJPH/RPCpp3nU2YPe2fVAuoEMvQ0AyViFVz5H3XIAAAAASUVORK5CYII=);
319
+ }
320
+ .settings .auto {
321
+ color: #fff;
322
+ text-transform: uppercase;
323
+ line-height: 32px;
324
+ font-size: 11px;
325
+ font-weight: bold;
326
+ letter-spacing: -1px;
327
+ }
328
+ /*
329
+ # Typography and text styles
330
+
331
+ We use the generic `sans-serif` font family to get Arial on Windows and
332
+ Helvetica on Mac. The body font-size is set to 14px.
333
+
334
+ Lorem ipsum dolor sit amet. */
335
+ body {
336
+ font-family: sans-serif;
337
+ font-size: 14px;
338
+ line-height: 1.618;
339
+ }
340
+ /* Paragraphs, lists, tables and blockquotes get some bottom margins as well
341
+ as side margins.
342
+
343
+ <p>Paragraph #1
344
+ <p>Paragraph #2
345
+ <ul><li>List</ul> */
346
+ p, ol, ul, dl,
347
+ figure, blockquote, table {
348
+ margin-left: 20px; margin-right: 20px;
349
+ }
350
+ pre, .preview,
351
+ p, ol, ul, dl,
352
+ figure, blockquote, table {
353
+ margin-top: 10px;
354
+ }
355
+ ul ul, ol ol, ul ol, ol ul,
356
+ blockquote p:last-child {
357
+ margin-top: 0;
358
+ }
359
+ ul, ol {
360
+ padding-left: 1.5em;
361
+ }
362
+ p:last-child, ol:last-child, ul:last-child, dl:last-child {
363
+ margin-bottom: 20px;
364
+ }
365
+ /* Headings get font-sizes at a modular scale of 5:6.
366
+
367
+ <h1>Heading 1</h1>
368
+ <h2>Heading 2</h2>
369
+ <h3>Heading 3</h2>
370
+ <h4>Heading 4</h2>
371
+ <h5>Heading 5</h2>
372
+ <h6>Heading 6</h3> */
373
+ hr,
374
+ h1, h2, h3, h4, h5, h6 {
375
+ margin: 1em 20px .5em;
376
+ }
377
+ h1:first-child {
378
+ margin-top: 20px;
379
+ }
380
+ h1, h2, h3, h4, h5, h6 {
381
+ line-height: 1.2;
382
+ color: hsl(211, 11%, 37%);
383
+ }
384
+ h1 a, h1 a:hover, h1 a:visited {
385
+ color: inherit;
386
+ text-decoration: inherit;
387
+ }
388
+ .permalink {
389
+ width: 21px;
390
+ height: 23px;
391
+ position: absolute;
392
+ top: 15px; right: 15px;
393
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAMAAADTAfSvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAM1BMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxgEwMAAAAEHRSTlMADx8vP09fb3+Pn6+/z9/v+t8hjgAAAKNJREFUGFdt0FsShSAIAFDITNNrsP/VxsMcdS4famcAQ4ApjlzzCVtcrFHxDzK3mQ0ryfLb8AJssuUNwZh2BIhycjwNMeo5Da2GTbO16nG1G5o1eWSNrqTqvcPXP6B1MCYsHSn7bcYJOjKF/mftmwB1xlvTKIQxl2YV3QU14TDN8kheZNifIGtp7+9V9sHOCwLcyjGuCFC4x4yDV5Qb5UmeNMELNfcMqAUDqMgAAAAASUVORK5CYII=) 50% 50% no-repeat;
394
+ opacity: .1;
395
+ }
396
+ .permalink:hover {
397
+ opacity: .3;
398
+ }
399
+
400
+ h1 {
401
+ font-size: 2.49em;
402
+ }
403
+ h2 {
404
+ font-size: 2.07em;
405
+ }
406
+ h3 {
407
+ font-size: 1.73em;
408
+ }
409
+ h4 {
410
+ font-size: 1.44em;
411
+ }
412
+ h5 {
413
+ font-size: 1.2em;
414
+ }
415
+ h6 {
416
+ font-size: 1em;
417
+ text-transform: uppercase;
418
+ }
419
+
420
+ /*
421
+ # Links
422
+
423
+ To show pseudo selectors styles in previews, add the pseudo selector
424
+ (including the `:`) as a regular class.
425
+
426
+ <a href="#">Link</a>
427
+ <a href="#" class=":hover">Link</a>
428
+ <a href="#" class=":visited">Link</a>
429
+ */
430
+ a {
431
+ color: hsl(203, 90%, 50%);
432
+ text-decoration: none;
433
+ }
434
+ a:hover {
435
+ color: hsl(203, 95%, 40%);
436
+ text-decoration: underline;
437
+ }
438
+ a:visited {
439
+ color: hsl(203, 100%, 35%);
440
+ }
441
+
442
+ /*
443
+ # Code
444
+ For displaying code, we prefer [Ubuntu Mono](http://font.ubuntu.com),
445
+ falling back on some fonts that should look better at smaller sizes than the
446
+ default monospace fonts.
447
+
448
+ ```
449
+ <pre>
450
+ <code>The font in &lt;pre&gt; code blocks is small but legible.</code>
451
+ </pre>
452
+ ``` */
453
+ code, var {
454
+ padding: .1em 3px;
455
+ background: hsla(0, 0%, 0%, .025);
456
+ border: 1px solid hsla(0, 0%, 0%, .05);
457
+ border-radius: 3px;
458
+ font-style: normal;
459
+ font-family: "Ubuntu Mono", "Andale Mono", "DejaVu Sans Mono", "Monaco", "Bitstream Vera Sans Mono", "Consolas", "Lucida Console", monospace;
460
+ }
461
+
462
+ pre code {
463
+ padding: 0;
464
+ background: transparent;
465
+ border: 0;
466
+ }
467
+
468
+ /* Helper classes */
469
+ .cf:before, .cf:after { content: ''; display: table; }
470
+ .cf:after { clear: both; }
471
+ .ir {
472
+ color: transparent;
473
+ font: 0/0 a;
474
+ text-shadow: none;
475
+ }
476
+