picasso 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README.md +6 -2
  2. data/docs/_picasso.html +2680 -2
  3. data/docs/all.html +2691 -4
  4. data/docs/config.rb +1 -1
  5. data/docs/css/picasso-demos.css +2676 -1
  6. data/docs/css/picasso-docs.css +93 -1
  7. data/docs/index.html +2691 -4
  8. data/docs/picasso-_components.html +2683 -3
  9. data/docs/picasso-_despegar.html +2683 -3
  10. data/docs/picasso-_utils.html +2682 -3
  11. data/docs/picasso-components-_accordions.html +2685 -5
  12. data/docs/picasso-components-_arrows.html +2703 -23
  13. data/docs/picasso-components-_bubbles.html +2746 -41
  14. data/docs/picasso-components-_buttons.html +2680 -2
  15. data/docs/picasso-components-_clusters.html +2816 -0
  16. data/docs/picasso-components-_inputs.html +2680 -2
  17. data/docs/picasso-components-_list-grids.html +2680 -2
  18. data/docs/picasso-components-_navs.html +2680 -2
  19. data/docs/picasso-components-_pagination.html +2680 -3
  20. data/docs/picasso-components-_popups.html +2719 -22
  21. data/docs/picasso-components-_tooltips.html +2684 -2
  22. data/docs/picasso-components-buttons-_3d.html +2680 -2
  23. data/docs/picasso-components-buttons-_glossy.html +2680 -2
  24. data/docs/picasso-components-buttons-_mini.html +2680 -2
  25. data/docs/picasso-despegar-_mixins.html +2754 -0
  26. data/docs/picasso-despegar-_variables.html +2680 -2
  27. data/docs/picasso-utils-_clearfix.html +2680 -2
  28. data/docs/picasso-utils-_grid.html +2680 -2
  29. data/docs/picasso-utils-_ie.html +2680 -2
  30. data/docs/picasso-utils-_rem.html +2836 -0
  31. data/docs/picasso-utils-_sprite.html +2680 -2
  32. data/docs/sass/picasso-demos.scss +50 -6
  33. data/docs/sass/picasso-docs.scss +14 -0
  34. data/lib/picasso/version.rb +1 -1
  35. data/stylesheets/picasso/_components.scss +2 -0
  36. data/stylesheets/picasso/_despegar.scss +3 -1
  37. data/stylesheets/picasso/_utils.scss +2 -1
  38. data/stylesheets/picasso/components/_accordions.scss +3 -2
  39. data/stylesheets/picasso/components/_arrows.scss +21 -20
  40. data/stylesheets/picasso/components/_bubbles.scss +58 -39
  41. data/stylesheets/picasso/components/_clusters.scss +98 -0
  42. data/stylesheets/picasso/components/_pagination.scss +0 -1
  43. data/stylesheets/picasso/components/_popups.scss +39 -20
  44. data/stylesheets/picasso/components/_tooltips.scss +2 -0
  45. data/stylesheets/picasso/despegar/_mixins.scss +53 -0
  46. data/stylesheets/picasso/utils/_rem.scss +137 -0
  47. metadata +10 -4
@@ -209,7 +209,6 @@ $pagination-default-disabled-class : "disabled" !default;
209
209
  display: inline-block;
210
210
 
211
211
  li{
212
- display: inline-block;
213
212
  height: $size;
214
213
  text-align: center;
215
214
  float: left;
@@ -75,12 +75,13 @@
75
75
 
76
76
  @import "compass/css3/border-radius";
77
77
  @import "compass/css3/box-shadow";
78
+ @import "compass/css3/box-sizing";
78
79
  @import "../utils/sprite";
79
80
  @import "../utils/ie";
80
81
 
81
82
  $popup-default-background: white !default;
82
83
  $popup-default-border-radius: 3px !default;
83
- $popup-default-box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px !default;
84
+ $popup-default-box-shadow: rgba(0, 0, 0, 0.5) 0 0 10px !default;
84
85
  $popup-default-background-border: #000000 !default;
85
86
  $popup-default-background-border-opacity: 0.7 !default;
86
87
  $popup-default-close-button-background: #319FDA !default;
@@ -123,8 +124,8 @@ $popup-ie-fallback: "sprites" !default;
123
124
  &:after, .ie7 & .after {
124
125
  content: "";
125
126
  position: absolute;
126
- top: 0px;
127
- left: 0px;
127
+ top: 0;
128
+ left: 0;
128
129
  width: 100%;
129
130
  height: 100%;
130
131
  z-index: 0;
@@ -136,6 +137,7 @@ $popup-ie-fallback: "sprites" !default;
136
137
  line-height: 20px;
137
138
  padding: 10px;
138
139
  }
140
+
139
141
  }
140
142
 
141
143
  .popup-container {
@@ -145,8 +147,8 @@ $popup-ie-fallback: "sprites" !default;
145
147
 
146
148
  .popup-arrow{
147
149
  position: absolute;
148
- height: 0px;
149
- width: 0px;
150
+ height: 0;
151
+ width: 0;
150
152
  }
151
153
 
152
154
  .popup-arrow-bottom {
@@ -173,19 +175,24 @@ $popup-ie-fallback: "sprites" !default;
173
175
  position: absolute;
174
176
  z-index: 10;
175
177
  text-align: center;
176
- line-height: $popup-default-close-button-height - $popup-default-close-button-border;
178
+ line-height: $popup-default-close-button-height;
177
179
  height: $popup-default-close-button-height;
178
180
  width: $popup-default-close-button-height;
179
181
  top: (-1) * (($popup-default-close-button-height / 2) + $popup-default-close-button-border);
180
182
  right: (-1) * (($popup-default-close-button-height / 2) + $popup-default-close-button-border);
183
+ @include box-sizing(content-box);
181
184
  }
182
185
 
186
+ .ie7 & {
187
+ @include after;
188
+ }
189
+
183
190
  .ie7 &, .ie8 & {
184
191
 
185
192
  @if $popup-ie-fallback == "sprites" {
186
193
 
187
194
  .popup-close {
188
- line-height: $popup-default-close-button-size - $popup-default-close-button-border;
195
+ line-height: $popup-default-close-button-size;
189
196
  height: $popup-default-close-button-size;
190
197
  width: $popup-default-close-button-size;
191
198
  top: (-1) * (($popup-default-close-button-size / 2));
@@ -196,10 +203,6 @@ $popup-ie-fallback: "sprites" !default;
196
203
 
197
204
  }
198
205
 
199
- .ie7 & {
200
- @include after;
201
- }
202
-
203
206
  }
204
207
 
205
208
  @mixin popup-visual(
@@ -214,12 +217,12 @@ $popup-ie-fallback: "sprites" !default;
214
217
  $title-color: $popup-default-title-color
215
218
  ) {
216
219
 
217
- &:after, .ie7 & .after {
220
+ &:after{
221
+ background: $background-border;
218
222
  background: rgba($background-border, $background-border-opacity);
219
223
  @include border-radius($border-radius);
220
224
  @include box-shadow($box-shadow);
221
225
  }
222
-
223
226
  .popup-header{
224
227
  background: $title-background;
225
228
  display: block;
@@ -268,19 +271,35 @@ $popup-ie-fallback: "sprites" !default;
268
271
  border: $popup-default-close-button-border solid $close-button-color;
269
272
  color: $close-button-color;
270
273
  font-weight: bold;
271
- font-family: sans-serif;
272
- font-size: 16px;
274
+ font-family: arial, sans-serif;
275
+ font-size: $popup-default-close-button-height;
273
276
  background: $close-button-background;
274
277
  @include border-radius($popup-default-close-button-height);
275
278
  @include box-shadow($box-shadow);
276
279
  }
277
280
 
278
- .ie7 &, .ie8 & {
281
+ .ie7 &{
279
282
 
280
- &:after, & .after {
281
- background: $background-border;
283
+ & .after {
284
+ background-color: $background-border;
282
285
  filter: alpha(opacity = ($background-border-opacity * 100));
283
286
  }
287
+
288
+ }
289
+
290
+ .ie8 &{
291
+
292
+ &:after {
293
+ $ie-background : magick-canvas(2px, 2px,
294
+ magick-fill($background-border)
295
+ magick-effect(fade, (1 - $background-border-opacity))
296
+ );
297
+ background: $ie-background;
298
+ }
299
+
300
+ }
301
+
302
+ .ie7 &, .ie8 & {
284
303
 
285
304
  .popup-arrow {
286
305
  filter: alpha(opacity = ($background-border-opacity * 100));
@@ -305,7 +324,7 @@ $popup-ie-fallback: "sprites" !default;
305
324
  @if $popup-ie-fallback == "sprites" {
306
325
 
307
326
  .popup-close {
308
- border-width: 0px;
327
+ border-width: 0;
309
328
  background-color: transparent;
310
329
 
311
330
  $popup-close-image: magick-canvas($popup-default-close-button-size, $popup-default-close-button-size,
@@ -318,7 +337,7 @@ $popup-ie-fallback: "sprites" !default;
318
337
  $popup-sprite-created: true;
319
338
 
320
339
  background: image-url($popup-sprite-name + ".png", false, false);
321
- background-position: 0px ((-1) * $initial-position);
340
+ background-position: 0 ((-1) * $initial-position);
322
341
  }
323
342
 
324
343
  }
@@ -10,6 +10,7 @@
10
10
  // <span class="tooltip-demo-1 tooltip-left">
11
11
  // Lorem ipsum
12
12
  // </span>
13
+ //
13
14
  // <span class="tooltip-demo-2 tooltip-right">
14
15
  // Lorem ipsum
15
16
  // </span>
@@ -21,6 +22,7 @@
21
22
  // <span class="tooltip-demo-3 tooltip-left">
22
23
  // Aliquam tincidunt mauris.
23
24
  // </span>
25
+ //
24
26
  // <span class="tooltip-demo-4 tooltip-right">
25
27
  // Aliquam tincidunt mauris.
26
28
  // </span>
@@ -0,0 +1,53 @@
1
+ // ## Mixins
2
+
3
+ // mixins genericos para despegar
4
+
5
+ // ### Ejemplo
6
+ // #### Cuerpos tipograficos
7
+ // ```
8
+ // <div><span class="text-demo-1">11px - Aliquam tincidunt mauris eu risus.</span></div>
9
+ // <div><span class="text-demo-2">13px - Aliquam tincidunt mauris eu risus.</span></div>
10
+ // <div><span class="text-demo-3">16px - Aliquam tincidunt mauris eu risus.</span></div>
11
+ // <div><span class="text-demo-4">20px - Aliquam tincidunt mauris eu risus.</span></div>
12
+ // <div><span class="text-demo-5">24px - Aliquam tincidunt mauris eu risus.</span></div>
13
+ // ```
14
+
15
+ // ### Sass
16
+
17
+ // #### Import
18
+
19
+ // `@import "picasso/despegar/mixins";`
20
+
21
+ // #### Mixins
22
+
23
+ // `@include font-size-1();`
24
+
25
+ // `@include font-size-2();`
26
+
27
+ // `@include font-size-3();`
28
+
29
+ // `@include font-size-4();`
30
+
31
+ // `@include font-size-5();`
32
+
33
+ @mixin font-size-1() {
34
+ font-size: $despegar-size-1;
35
+ }
36
+
37
+ @mixin font-size-2() {
38
+ font-size: $despegar-size-2;
39
+ }
40
+
41
+ @mixin font-size-3() {
42
+ font-size: $despegar-size-3;
43
+ }
44
+
45
+ @mixin font-size-4() {
46
+ font-size: $despegar-size-4;
47
+ letter-spacing: -1px;
48
+ }
49
+
50
+ @mixin font-size-5() {
51
+ font-size: $despegar-size-5;
52
+ letter-spacing: -1px;
53
+ }
@@ -0,0 +1,137 @@
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
+ }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 6
9
- version: 0.3.6
8
+ - 7
9
+ version: 0.3.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Leandro D'Onofrio
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-09-19 00:00:00 -03:00
17
+ date: 2012-11-12 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -81,6 +81,7 @@ files:
81
81
  - docs/picasso-components-_arrows.html
82
82
  - docs/picasso-components-_bubbles.html
83
83
  - docs/picasso-components-_buttons.html
84
+ - docs/picasso-components-_clusters.html
84
85
  - docs/picasso-components-_inputs.html
85
86
  - docs/picasso-components-_list-grids.html
86
87
  - docs/picasso-components-_navs.html
@@ -90,10 +91,12 @@ files:
90
91
  - docs/picasso-components-buttons-_3d.html
91
92
  - docs/picasso-components-buttons-_glossy.html
92
93
  - docs/picasso-components-buttons-_mini.html
94
+ - docs/picasso-despegar-_mixins.html
93
95
  - docs/picasso-despegar-_variables.html
94
96
  - docs/picasso-utils-_clearfix.html
95
97
  - docs/picasso-utils-_grid.html
96
98
  - docs/picasso-utils-_ie.html
99
+ - docs/picasso-utils-_rem.html
97
100
  - docs/picasso-utils-_sprite.html
98
101
  - docs/previews.js
99
102
  - docs/resources/docs.jade
@@ -111,6 +114,7 @@ files:
111
114
  - stylesheets/picasso/components/_arrows.scss
112
115
  - stylesheets/picasso/components/_bubbles.scss
113
116
  - stylesheets/picasso/components/_buttons.scss
117
+ - stylesheets/picasso/components/_clusters.scss
114
118
  - stylesheets/picasso/components/_inputs.scss
115
119
  - stylesheets/picasso/components/_list-grids.scss
116
120
  - stylesheets/picasso/components/_navs.scss
@@ -120,10 +124,12 @@ files:
120
124
  - stylesheets/picasso/components/buttons/_3d.scss
121
125
  - stylesheets/picasso/components/buttons/_glossy.scss
122
126
  - stylesheets/picasso/components/buttons/_mini.scss
127
+ - stylesheets/picasso/despegar/_mixins.scss
123
128
  - stylesheets/picasso/despegar/_variables.scss
124
129
  - stylesheets/picasso/utils/_clearfix.scss
125
130
  - stylesheets/picasso/utils/_grid.scss
126
131
  - stylesheets/picasso/utils/_ie.scss
132
+ - stylesheets/picasso/utils/_rem.scss
127
133
  - stylesheets/picasso/utils/_sprite.scss
128
134
  - templates/project/manifest.rb
129
135
  has_rdoc: true
@@ -133,7 +139,7 @@ licenses: []
133
139
  post_install_message: "\n\n\
134
140
  ##################################################\n\
135
141
  ## Picasso - Sass/Compass Framework\n\n\
136
- ## Versi\xC3\xB3n: 0.3.6\n\
142
+ ## Versi\xC3\xB3n: 0.3.7\n\
137
143
  ## Documentaci\xC3\xB3n: http://dl.dropbox.com/u/54126/picasso/docs/index.html\n\
138
144
  ## CHANGELOG: http://dl.dropbox.com/u/54126/picasso/docs/index.html#changelog\n\
139
145
  ##################################################\n\n"