picasso 0.3.6.beta.4 → 0.3.6

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 (42) hide show
  1. data/README.md +5 -2
  2. data/docs/_picasso.html +1 -2599
  3. data/docs/all.html +1 -2601
  4. data/docs/config.rb +1 -1
  5. data/docs/css/picasso-demos.css +1 -2598
  6. data/docs/css/picasso-docs.css +1 -93
  7. data/docs/index.html +3 -2601
  8. data/docs/picasso-_components.html +1 -2599
  9. data/docs/picasso-_despegar.html +1 -2599
  10. data/docs/picasso-_utils.html +2 -2601
  11. data/docs/picasso-components-_accordions.html +4 -2604
  12. data/docs/picasso-components-_arrows.html +22 -2622
  13. data/docs/picasso-components-_bubbles.html +40 -2665
  14. data/docs/picasso-components-_buttons.html +1 -2599
  15. data/docs/picasso-components-_inputs.html +1 -2599
  16. data/docs/picasso-components-_list-grids.html +1 -2599
  17. data/docs/picasso-components-_navs.html +1 -2599
  18. data/docs/picasso-components-_pagination.html +2 -2599
  19. data/docs/picasso-components-_popups.html +21 -2638
  20. data/docs/picasso-components-_tooltips.html +1 -2603
  21. data/docs/picasso-components-buttons-_3d.html +7 -2599
  22. data/docs/picasso-components-buttons-_glossy.html +1 -2599
  23. data/docs/picasso-components-buttons-_mini.html +1 -2599
  24. data/docs/picasso-despegar-_variables.html +1 -2599
  25. data/docs/picasso-utils-_clearfix.html +1 -2599
  26. data/docs/picasso-utils-_grid.html +1 -2599
  27. data/docs/picasso-utils-_ie.html +1 -2599
  28. data/docs/picasso-utils-_sprite.html +1 -2599
  29. data/docs/sass/picasso-demos.scss +5 -19
  30. data/docs/sass/picasso-docs.scss +0 -14
  31. data/lib/picasso/version.rb +1 -1
  32. data/stylesheets/picasso/_utils.scss +1 -2
  33. data/stylesheets/picasso/components/_accordions.scss +2 -3
  34. data/stylesheets/picasso/components/_arrows.scss +20 -21
  35. data/stylesheets/picasso/components/_bubbles.scss +39 -58
  36. data/stylesheets/picasso/components/_pagination.scss +1 -0
  37. data/stylesheets/picasso/components/_popups.scss +20 -39
  38. data/stylesheets/picasso/components/_tooltips.scss +0 -2
  39. data/stylesheets/picasso/components/buttons/_3d.scss +6 -0
  40. metadata +7 -13
  41. data/docs/picasso-utils-_rem.html +0 -2756
  42. data/stylesheets/picasso/utils/_rem.scss +0 -137
@@ -1,137 +0,0 @@
1
- // ## Rem
2
-
3
- // Permite utilizar la unidad [rem](http://www.w3.org/TR/css3-values/#font-relative-lengths).
4
-
5
- // Basado en https://github.com/ry5n/rem
6
-
7
- // ### Sass
8
-
9
- // #### Import
10
-
11
- // `@import "picasso/utils/rem";`
12
-
13
- // #### Mixins
14
-
15
- // `@include rem('font-size', 10px);`
16
-
17
-
18
- // @private Default font-size for all browsers
19
- $browser-default-font-size: 16px;
20
-
21
- // Base font size in pixels, if not already defined.
22
- // Should be the same as the font-size of the html element.
23
- $base-font-size: 16px !default;
24
-
25
- // Whether to output fallback values in px when outputting rems.
26
- $rem-with-px-fallback: true !default;
27
-
28
- // Convert any CSS <length> or <percentage> value to any other.
29
- @function convert-length($length, $to-unit, $from-context: $base-font-size, $to-context: $from-context) {
30
- $from-unit: unit($length);
31
-
32
- // Optimize for cases where from and to may accidentally be the same.
33
- @if $from-unit == $to-unit { @return $length; }
34
- @if unit($from-context) != 'px' { @warn "Paremeter $from-context must resolve to a value in pixel units."; }
35
- @if unit($to-context) != 'px' { @warn "Parameter $to-context must resolve to a value in pixel units."; }
36
-
37
- // Fixed ratios
38
- // https://developer.mozilla.org/en/CSS/length
39
- // http://dev.w3.org/csswg/css3-values/#absolute-lengths
40
- $px-per-in: 96px / 1in;
41
- $px-per-mm: 96px / 25.4mm;
42
- $px-per-cm: 96px / 2.54cm;
43
- $px-per-pt: 4px / 3pt;
44
- $px-per-pc: 16px / 1pc;
45
-
46
- // Variables to store actual convesion ratios
47
- $px-per-from-unit: 1;
48
- $px-per-to-unit: 1;
49
-
50
- @if $from-unit != 'px' {
51
- @if $from-unit == 'em' { $px-per-from-unit: $from-context / 1em }
52
- @else if $from-unit == 'rem' { $px-per-from-unit: $base-font-size / 1rem }
53
- @else if $from-unit == '%' { $px-per-from-unit: $from-context / 100% }
54
- @else if $from-unit == 'ex' { $px-per-from-unit: $from-context / 2ex }
55
- @else if $from-unit == 'in' { $px-per-from-unit: $px-per-in }
56
- @else if $from-unit == 'mm' { $px-per-from-unit: $px-per-mm }
57
- @else if $from-unit == 'cm' { $px-per-from-unit: $px-per-cm }
58
- @else if $from-unit == 'pt' { $px-per-from-unit: $px-per-pt }
59
- @else if $from-unit == 'pc' { $px-per-from-unit: $px-per-pc }
60
- @else if $to-unit == 'ch' or $to-unit == 'vw' or $to-unit == 'vh' or $to-unit == 'vmin' {
61
- @warn "#{$from-unit} units can't be reliably converted; Returning original value.";
62
- @return $length;
63
- }
64
- @else {
65
- @warn "#{$from-unit} is an unknown length unit. Returning original value.";
66
- @return $length;
67
- }
68
- }
69
-
70
- @if $to-unit != 'px' {
71
- @if $to-unit == 'em' { $px-per-to-unit: $to-context / 1em }
72
- @else if $to-unit == 'rem' { $px-per-to-unit: $base-font-size / 1rem }
73
- @else if $to-unit == '%' { $px-per-to-unit: $to-context / 100% }
74
- @else if $to-unit == 'ex' { $px-per-to-unit: $to-context / 2ex }
75
- @else if $to-unit == 'in' { $px-per-to-unit: $px-per-in }
76
- @else if $to-unit == 'mm' { $px-per-to-unit: $px-per-mm }
77
- @else if $to-unit == 'cm' { $px-per-to-unit: $px-per-cm }
78
- @else if $to-unit == 'pt' { $px-per-to-unit: $px-per-pt }
79
- @else if $to-unit == 'pc' { $px-per-to-unit: $px-per-px }
80
- @else if $to-unit == 'ch' or $to-unit == 'vw' or $to-unit == 'vh' or $to-unit == 'vmin' {
81
- @warn "#{$to-unit} units can't be reliably converted; Returning original value.";
82
- @return $length;
83
- }
84
- @else {
85
- @warn "#{$to-unit} is an unknown length unit. Returning original value.";
86
- @return $length;
87
- }
88
- }
89
- @return $length * $px-per-from-unit / $px-per-to-unit;
90
- }
91
-
92
- // For the given property, use rem units with px as a fallback value for older
93
- // browsers.
94
- //
95
- // $property - The css property name.
96
- // $values - The value (or space-separated list of values) for the property.
97
- // $use-px-fallback - Boolean, default: true; whether to use pixel fallback values
98
- //
99
- @mixin rem($property, $values, $use-px-fallback: $rem-with-px-fallback) {
100
- // Create a couple of empty lists as output buffers.
101
- $px-values: ();
102
- $rem-values: ();
103
-
104
- // Ensure $values is a list.
105
- @if type-of($values) != 'list' {
106
- $values: join((), $values);
107
- }
108
-
109
- // Loop through the $values list
110
- @each $value in $values {
111
- // For each property value, if it's in rem or px, derive both rem and
112
- // px values for it and add those to the end of the appropriate buffer.
113
- // Ensure all pixel values are rounded to the nearest pixel.
114
- @if type-of($value) == number and not unitless($value) and (unit($value) == px or unit($value) == rem) {
115
- @if unit($value) == px {
116
- $px-values: join($px-values, round($value));
117
- $rem-values: join($rem-values, convert-length($value, rem));
118
- }
119
- @else {
120
- $px-values: join($px-values, round(convert-length($value, px)));
121
- $rem-values: join($rem-values, $value);
122
- }
123
- }
124
- @else {
125
- $px-values: join($px-values, $value);
126
- $rem-values: join($rem-values, $value);
127
- }
128
- }
129
-
130
- // Use pixel fallback for browsers that don't understand rem units.
131
- @if $use-px-fallback {
132
- #{$property}: $px-values;
133
- }
134
-
135
- // Use rem values for everyone else (overrides pixel values).
136
- #{$property}: $rem-values;
137
- }