picasso 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/README.md +13 -2
  2. data/docs/_picasso.html +45 -723
  3. data/docs/config.rb +0 -3
  4. data/docs/css/picasso-demos.css +45 -721
  5. data/docs/index.html +59 -727
  6. data/docs/picasso-_components.html +45 -723
  7. data/docs/picasso-_despegar.html +45 -723
  8. data/docs/picasso-_utils.html +45 -723
  9. data/docs/picasso-components-_accordions.html +45 -723
  10. data/docs/picasso-components-_arrows.html +45 -723
  11. data/docs/picasso-components-_bubbles.html +45 -723
  12. data/docs/picasso-components-_buttons.html +46 -728
  13. data/docs/picasso-components-_clusters.html +45 -723
  14. data/docs/picasso-components-_inputs.html +45 -723
  15. data/docs/picasso-components-_list-grids.html +45 -723
  16. data/docs/picasso-components-_navs.html +61 -858
  17. data/docs/picasso-components-_pagination.html +45 -723
  18. data/docs/picasso-components-_popups.html +49 -769
  19. data/docs/picasso-components-_tooltips.html +49 -723
  20. data/docs/picasso-components-buttons-_3d.html +45 -724
  21. data/docs/picasso-components-buttons-_glossy.html +25 -25
  22. data/docs/picasso-components-buttons-_mini.html +25 -25
  23. data/docs/picasso-despegar-_mixins.html +45 -723
  24. data/docs/picasso-despegar-_variables.html +66 -740
  25. data/docs/picasso-utils-_clearfix.html +45 -723
  26. data/docs/picasso-utils-_grid.html +45 -723
  27. data/docs/picasso-utils-_ie.html +45 -723
  28. data/docs/picasso-utils-_rem.html +45 -723
  29. data/docs/picasso-utils-_sprite.html +45 -723
  30. data/docs/sass/picasso-demos.scss +13 -33
  31. data/lib/picasso/version.rb +1 -1
  32. data/picasso.gemspec +0 -1
  33. data/stylesheets/picasso/components/_buttons.scss +1 -5
  34. data/stylesheets/picasso/components/_navs.scss +16 -135
  35. data/stylesheets/picasso/components/_popups.scss +5 -46
  36. data/stylesheets/picasso/components/_tooltips.scss +5 -0
  37. data/stylesheets/picasso/components/buttons/_3d.scss +0 -1
  38. data/stylesheets/picasso/despegar/_variables.scss +17 -14
  39. metadata +5 -25
  40. data/docs/img/picasso-buttons-glossy.png +0 -0
  41. data/docs/img/picasso-buttons-mini.png +0 -0
  42. data/docs/img/picasso-nav.png +0 -0
  43. data/docs/img/picasso-popup.png +0 -0
  44. data/stylesheets/picasso/components/buttons/_glossy.scss +0 -266
  45. data/stylesheets/picasso/components/buttons/_mini.scss +0 -197
@@ -41,26 +41,13 @@ body{
41
41
  left: 300px;
42
42
  }
43
43
 
44
- //Glossy Buttons
45
- .button-glossy-demo-1{
46
- @include button-glossy();
47
- }
48
-
49
- .button-glossy-demo-2{
50
- @include button-glossy(70px, 30px, #0088CC, white);
51
- }
52
-
53
- .button-glossy-demo-3{
54
- @include button-glossy(80px, 30px, #FBB450, white);
55
- }
56
-
57
44
  //3D Buttons
58
45
  .button-3d-demo-1{
59
46
  @include button-3d();
60
47
  }
61
48
 
62
49
  .button-3d-demo-2{
63
- @include button-3d(#0088CC, white);
50
+ @include button-3d(#013D93, white);
64
51
  }
65
52
 
66
53
  .button-3d-demo-3{
@@ -68,28 +55,11 @@ body{
68
55
  }
69
56
 
70
57
  .button-3d-demo-4 {
71
- @include button-3d(#013d93, #FFF, 24px, true, false);
58
+ @include button-3d(#013D93, #FFF, 24px, true, false);
72
59
  }
73
60
 
74
61
  .button-3d-demo-5 {
75
- @include button-3d(#EEE, #013d93, 11px, false, true);
76
- }
77
-
78
- //Mini-Buttons
79
- .button-mini-demo-1{
80
- @include button-mini();
81
- }
82
-
83
- .button-mini-demo-2{
84
- @include button-mini(#0088CC, white);
85
- }
86
-
87
- .button-mini-demo-3{
88
- @include button-mini(#DA4F49, white);
89
- }
90
-
91
- .button-mini-demo-4{
92
- @include button-mini(#414141, white);
62
+ @include button-3d(#EEE, #013D93, 11px, false, true);
93
63
  }
94
64
 
95
65
  //List grid
@@ -379,6 +349,16 @@ body{
379
349
  background: $despegar-fill-bg;
380
350
  }
381
351
 
352
+ .despegar-body-bg-demo{
353
+ padding: 10px;
354
+ background: $despegar-body-bg;
355
+ }
356
+
357
+ .despegar-promo-text-demo{
358
+ padding: 10px;
359
+ background: $despegar-promo-text;
360
+ }
361
+
382
362
  .clusters-demo-1 {
383
363
  .cluster {
384
364
  @include cluster();
@@ -1,3 +1,3 @@
1
1
  module Picasso
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -17,5 +17,4 @@ Gem::Specification.new do |gem|
17
17
  gem.post_install_message = "\n\n##################################################\n## Picasso - Sass/Compass Framework\n\n## Versión: " + Picasso::VERSION + "\n## Documentación: http://ux.despegar.it/labs/picasso/\n## CHANGELOG: http://ux.despegar.it/labs/picasso/#changelog\n##################################################\n\n"
18
18
 
19
19
  gem.add_dependency("compass", [">= 0.12.1"])
20
- gem.add_dependency("compass-magick", [">= 0.1.6"])
21
20
  end
@@ -3,8 +3,6 @@
3
3
  // Sub-módulo que importa los siguientes componentes:
4
4
 
5
5
  // * `button-3d` ([sección dedicada](picasso-components-buttons-_3d.html))
6
- // * `button-glossy` ([sección dedicada](picasso-components-buttons-_glossy.html))
7
- // * `button-mini` ([sección dedicada](picasso-components-buttons-_mini.html))
8
6
 
9
7
  // ### Sass
10
8
 
@@ -12,6 +10,4 @@
12
10
 
13
11
  // `@import "picasso/components/buttons";`
14
12
 
15
- @import "buttons/3d";
16
- @import "buttons/glossy";
17
- @import "buttons/mini";
13
+ @import "buttons/3d";
@@ -46,23 +46,16 @@
46
46
 
47
47
  // `@include nav(435px, 30px, #1164BF, #083C78, black, right);`
48
48
 
49
- // ### Fallback IE
50
-
51
- // * `$nav-ie-fallback`: Esta variable permite seleccionar la estrategia de estilos para mostrar el componente en Internet Explorer. Valores disponibles:
52
- // `sprites` / `GD`. Valor por defecto: `sprites`.
53
-
54
49
 
55
50
  @import "compass/css3/images";
56
51
  @import "compass/css3/box-shadow";
57
52
  @import "compass/css3/border-radius";
58
- @import "../utils/sprite";
59
53
 
60
54
  $nav-default-font-size: 16px !default;
61
55
  $nav-default-font-family: sans-serif !default;
62
56
  $nav-default-image-dir: '' !default;
63
57
  $nav-sprite-created: false !default;
64
58
  $nav-sprite-name: "picasso-nav" !default;
65
- $nav-ie-fallback: "sprites" !default;
66
59
  $nav-active-item-class: "active" !default;
67
60
  $nav-last-item-class: "last" !default;
68
61
 
@@ -126,18 +119,8 @@ $nav-default-float: left !default;
126
119
 
127
120
  .ie7 &, .ie8 &, .ie9 &{
128
121
 
129
- @if $nav-ie-fallback == "sprites" {
130
-
131
- li{
132
- height: $height + 6;
133
- }
134
-
135
- } @else {
136
-
137
- li{
138
- height: $height;
139
- }
140
-
122
+ li{
123
+ height: $height;
141
124
  }
142
125
 
143
126
  }
@@ -184,129 +167,27 @@ $nav-default-float: left !default;
184
167
 
185
168
  .ie7 &, .ie8 &, .ie9 &{
186
169
 
187
- @if $nav-ie-fallback == "sprites" {
188
-
189
- $nav-image: magick-canvas($width, $height * 3 + (6 * 3),
190
-
191
- //Normal
192
- magick-compose(
193
- magick-canvas($width, $height + 6,
194
- magick-compose(magick-canvas($width, $height,
195
- magick-fill(magick-linear-gradient($background, darken($background, 10%)))
196
- magick-corners(5px)
197
- magick-border($border, 5px, 1px)
198
- ))
199
- magick-drop-shadow(270deg, 2px, 6px, $shadow)
200
- ),
201
- 0, 0
202
- ),
203
-
204
- //Hover
205
- magick-compose(
206
- magick-canvas($width, $height + 6,
207
- magick-compose(magick-canvas($width, $height,
208
- magick-fill(magick-linear-gradient($background, darken($background, 5%)))
209
- magick-corners(5px)
210
- magick-border($border, 5px, 1px)
211
- ))
212
- magick-drop-shadow(270deg, 2px, 6px, $shadow)
213
- ),
214
- 0, $height + 6
215
- ),
216
-
217
- //Active
218
- magick-compose(
219
- magick-canvas($width, $height + 6,
220
- magick-compose(magick-canvas($width, $height,
221
- magick-fill(magick-linear-gradient(darken($background, 10%), $background))
222
- magick-corners(5px)
223
- magick-border($border, 5px, 1px)
224
- ))
225
- magick-drop-shadow(270deg, 2px, 6px, $shadow)
226
- ),
227
- 0, ($height * 2) + (6 * 2)
228
- )
229
-
230
- );
231
-
232
- $initial-position: insert-in-sprite($nav-sprite-created, $nav-sprite-name, $nav-image, $width, (($height * 3) + (6 * 3)));
233
- $nav-sprite-created: true;
234
-
235
- li{
236
- border-left: none;
237
- border-top: none;
238
- border-bottom: none;
239
- background: transparent image-url($nav-sprite-name + ".png", false, false) no-repeat center ((-1) * $initial-position);
240
-
241
- a{
242
- border-left: 1px solid $border;
243
- }
244
-
245
- &:hover{
246
- background: transparent image-url($nav-sprite-name + ".png", false, false) center ((-1) * ($initial-position + $height + 6)) no-repeat;
247
- }
248
-
249
- &:first-child {
250
- background: transparent image-url($nav-sprite-name + ".png", false, false) no-repeat left ((-1) * $initial-position);
251
-
252
- a{
253
- border-left: none;
254
- }
255
-
256
- &:hover{
257
- background: transparent image-url($nav-sprite-name + ".png", false, false) left ((-1) * ($initial-position + $height + 6)) no-repeat;
258
- }
259
-
260
- }
261
-
262
- &:first-child.#{$nav-active-item-class}{
263
- background: transparent image-url($nav-sprite-name + ".png", false, false) no-repeat left ((-1) * ($initial-position + $height + 6));
264
- }
265
-
266
- }
267
-
268
- .#{$nav-last-item-class}{
269
- background: transparent image-url($nav-sprite-name + ".png", false, false) no-repeat right ((-1) * ($initial-position + $height + 6));
270
-
271
- &:hover{
272
- background: transparent image-url($nav-sprite-name + ".png", false, false) right ((-1) * ($initial-position + $height + 6)) no-repeat;
273
- }
170
+ li{
171
+ border-top: 1px solid $border;
172
+ border-bottom: 1px solid $border;
173
+ background-color: $background;
274
174
 
175
+ &:hover{
176
+ background: darken($background, 5%);
275
177
  }
276
178
 
277
- .#{$nav-active-item-class}{
278
- background: transparent image-url($nav-sprite-name + ".png", false, false) no-repeat center ((-1) * ($initial-position + $height + 6));
179
+ &:first-child {
180
+ border-left: 1px solid $border;
279
181
  }
280
182
 
281
- .#{$nav-last-item-class}.#{$nav-active-item-class}{
282
- background: transparent image-url($nav-sprite-name + ".png", false, false) no-repeat right ((-1) * ($initial-position + $height + 6));
283
- }
284
-
285
- } @else {
286
-
287
- li{
288
- border-top: 1px solid $border;
289
- border-bottom: 1px solid $border;
290
- background-color: $background;
291
-
292
- &:hover{
293
- background: darken($background, 5%);
294
- }
295
-
296
- &:first-child {
297
- border-left: 1px solid $border;
298
- }
299
-
300
- }
301
-
302
- .#{$nav-last-item-class} {
303
- border-right: 1px solid $border;
304
- }
183
+ }
305
184
 
306
- .#{$nav-active-item-class}{
307
- background: darken($background, 10%);
308
- }
185
+ .#{$nav-last-item-class} {
186
+ border-right: 1px solid $border;
187
+ }
309
188
 
189
+ .#{$nav-active-item-class}{
190
+ background: darken($background, 10%);
310
191
  }
311
192
 
312
193
  }
@@ -1,5 +1,10 @@
1
1
  // ## Popups
2
2
 
3
+ // <div style="background: red; color: white; padding: 10px;">
4
+ // <h1 style="color: white;">Componente deprecado</h1>
5
+ // <p>Se recomienda la utilización de <a style="color: white; text-decoration: underline;" href="http://ux.despegar.it/docs/common/modules/overlay.html">overlay</a> </p>
6
+ // </div>
7
+
3
8
  // Estilos para recrear popups.
4
9
 
5
10
  // ### Ejemplos
@@ -67,16 +72,10 @@
67
72
 
68
73
  // `@include popup(black, 10px, 0px 0px 5px #333333, gray, 0.5, black, white, white, black);`
69
74
 
70
- // ### Fallback IE
71
-
72
- // * `$popup-ie-fallback`: Esta variable permite seleccionar la estrategia de estilos para mostrar el componente en Internet Explorer. Valores disponibles:
73
- // `sprites` / `GD`. Valor por defecto: `sprites`.
74
-
75
75
 
76
76
  @import "compass/css3/border-radius";
77
77
  @import "compass/css3/box-shadow";
78
78
  @import "compass/css3/box-sizing";
79
- @import "../utils/sprite";
80
79
  @import "../utils/ie";
81
80
 
82
81
  $popup-default-background: white !default;
@@ -94,9 +93,6 @@ $popup-default-arrow-padding: 10px !default;
94
93
  $popup-default-close-button-height: 20px !default;
95
94
  $popup-default-close-button-border: 3px !default;
96
95
  $popup-default-close-button-size: $popup-default-close-button-height + ($popup-default-close-button-border * 2) !default;
97
- $popup-sprite-created: false !default;
98
- $popup-sprite-name: "picasso-popup" !default;
99
- $popup-ie-fallback: "sprites" !default;
100
96
 
101
97
  @mixin popup(
102
98
  $background: $popup-default-background,
@@ -186,22 +182,6 @@ $popup-ie-fallback: "sprites" !default;
186
182
  .ie7 & {
187
183
  @include after;
188
184
  }
189
-
190
- .ie7 &, .ie8 & {
191
-
192
- @if $popup-ie-fallback == "sprites" {
193
-
194
- .popup-close {
195
- line-height: $popup-default-close-button-size;
196
- height: $popup-default-close-button-size;
197
- width: $popup-default-close-button-size;
198
- top: (-1) * (($popup-default-close-button-size / 2));
199
- right: (-1) * (($popup-default-close-button-size / 2));
200
- }
201
-
202
- }
203
-
204
- }
205
185
 
206
186
  }
207
187
 
@@ -320,27 +300,6 @@ $popup-ie-fallback: "sprites" !default;
320
300
  .popup-arrow-right {
321
301
  border-left: $popup-default-arrow-height solid $background-border;
322
302
  }
323
-
324
- @if $popup-ie-fallback == "sprites" {
325
-
326
- .popup-close {
327
- border-width: 0;
328
- background-color: transparent;
329
-
330
- $popup-close-image: magick-canvas($popup-default-close-button-size, $popup-default-close-button-size,
331
- magick-fill($close-button-background),
332
- magick-corners($popup-default-close-button-size / 2),
333
- magick-border($close-button-color, ($popup-default-close-button-size / 2), $popup-default-close-button-border)
334
- );
335
-
336
- $initial-position: insert-in-sprite($popup-sprite-created, $popup-sprite-name, $popup-close-image, $popup-default-close-button-size, $popup-default-close-button-size);
337
- $popup-sprite-created: true;
338
-
339
- background: image-url($popup-sprite-name + ".png", false, false);
340
- background-position: 0 ((-1) * $initial-position);
341
- }
342
-
343
- }
344
303
 
345
304
  }
346
305
 
@@ -1,5 +1,10 @@
1
1
  // ## Tooltips
2
2
 
3
+ // <div style="background: red; color: white; padding: 10px;">
4
+ // <h1 style="color: white;">Componente deprecado</h1>
5
+ // <p>Se recomienda la utilización de <a style="color: white; text-decoration: underline;" href="http://ux.despegar.it/docs/common/modules/overlay.html">overlay</a> </p>
6
+ // </div>
7
+
3
8
  // Excelentes para mostrar informaci&oacute;n extra.
4
9
 
5
10
  // ### Ejemplos
@@ -80,7 +80,6 @@
80
80
  @import "compass/css3/text-shadow";
81
81
  @import "compass/css3/box-shadow";
82
82
  @import "compass/css3/opacity";
83
- @import "../../utils/sprite";
84
83
 
85
84
  $button-3d-default-background : #F73741 !default;
86
85
  $button-3d-default-color : white !default;
@@ -71,7 +71,7 @@ $despegar-gray-4 : #888;
71
71
  $despegar-gray-5 : #AAA;
72
72
  $despegar-gray-6 : #CCC;
73
73
  $despegar-gray-7 : #DDD;
74
- $despegar-gray-8 : #EEE;
74
+ $despegar-gray-8 : #EEE;
75
75
  $despegar-gray-9 : #F5F5F5;
76
76
 
77
77
 
@@ -81,7 +81,6 @@ $despegar-gray-9 : #F5F5F5;
81
81
  // <p class="despegar-searchbox-bg-demo">$despegar-searchbox-bg: #FFFF33 (Background Buscador)</p>
82
82
  // <p class="despegar-title-color-demo">$despegar-title-color: #013D93 (Color Titulos)</p>
83
83
  // <p class="despegar-titlealt-color-demo">$despegar-titlealt-color: #F90 (Color Titulos alternativos)</p>
84
- // <p class="despegar-titlelighten-color-demo">$despegar-titlelighten-color: #B4CBFC (Color Titulos con colores mas suaves)</p>
85
84
  // <p class="despegar-link-color-demo">$despegar-link-color: #319FDA (Color links)</p>
86
85
  // <p class="despegar-link-color-hover-demo">$despegar-link-color-hover: #66CCFF (Color links, hover)</p>
87
86
  // <p class="despegar-link-bg-hover-demo">$despegar-link-bg-hover: #F1F6FC (Background links, hover)</p>
@@ -90,9 +89,10 @@ $despegar-gray-9 : #F5F5F5;
90
89
  // <p class="despegar-warning-bg-demo">$despegar-warning-bg: #FFFFE1 (Background mensajes)</p>
91
90
  // <p class="despegar-warning-border-demo">$despegar-warning-border: #FF9900 (Color borde mensajes)</p>
92
91
  // <p class="despegar-fill-bg-demo">$despegar-fill-bg: #84A8FB (Color de relleno)</p>
92
+ // <p class="despegar-body-bg-demo">$despegar-body-bg: #E9EAEE (Background del body)</p>
93
+ // <p class="despegar-promo-text-demo">$despegar-promo-text: #008C23 (Promo text)</p>
93
94
  // ```
94
95
 
95
-
96
96
  // Buscador
97
97
  $despegar-searchbox-bg : $despegar-yellow;
98
98
 
@@ -102,25 +102,28 @@ $despegar-title-color : $despegar-blue;
102
102
  // Titulos y destacados (alt)
103
103
  $despegar-titlealt-color : #FF9900;
104
104
 
105
- // Titulos y destacados (alt)
106
- $despegar-titlelighten-color : #B4CBFC;
107
-
108
105
  // Links
109
- $despegar-link-color : #319FDA;
110
- $despegar-link-color-hover : #66CCFF;
111
- $despegar-link-bg-hover : #F1F6FC;
106
+ $despegar-link-color : #319FDA;
107
+ $despegar-link-color-hover : #66CCFF;
108
+ $despegar-link-bg-hover : #F1F6FC;
112
109
 
113
110
  // Errores: fondo
114
- $despegar-error-bg : #FFE6E6;
111
+ $despegar-error-bg : #FFE6E6;
115
112
 
116
113
  // Errores: borde
117
- $despegar-error-border : $despegar-red;
114
+ $despegar-error-border : $despegar-red;
118
115
 
119
116
  // Warning: fondo
120
- $despegar-warning-bg : #FFFFE1;
117
+ $despegar-warning-bg : #FFFFE1;
121
118
 
122
119
  // Warning: borde
123
- $despegar-warning-border : #FF9900;
120
+ $despegar-warning-border : #FFCC33;
124
121
 
125
122
  // Color de relleno
126
- $despegar-fill-bg : #84A8FB;
123
+ $despegar-fill-bg : #84A8FB;
124
+
125
+ // Color del body
126
+ $despegar-body-bg : #E9EAEE;
127
+
128
+ // Promo text
129
+ $despegar-promo-text : #008C23;