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
@@ -2,9 +2,12 @@
2
2
  @import "../../stylesheets/picasso";
3
3
 
4
4
  //General
5
+ html{
6
+ font-size: 16px;
7
+ }
8
+
5
9
  body{
6
10
  font-family: sans-serif;
7
- font-size: 16px;
8
11
  padding: 20px 0;
9
12
  }
10
13
 
@@ -18,7 +21,6 @@ body{
18
21
  }
19
22
 
20
23
  //Tooltips
21
-
22
24
  .tooltip-demo-1{
23
25
  @include tooltip();
24
26
  left: 20px;
@@ -111,10 +113,22 @@ body{
111
113
  }
112
114
 
113
115
  //Bubbles
116
+ .bubble-demo-1{
117
+ margin: 0 0 30px 0;
118
+ }
119
+
114
120
  .bubble-demo-1{
115
121
  @include bubble();
116
122
  }
117
123
 
124
+ .bubble-demo-2{
125
+ @include bubble(#EEE, #999, false, "left");
126
+ }
127
+
128
+ .bubble-demo-3{
129
+ @include bubble(#EEE, #999, true, "right");
130
+ }
131
+
118
132
  //Accordions
119
133
  .accordion-demo-1{
120
134
  @include accordion();
@@ -144,15 +158,15 @@ body{
144
158
  }
145
159
 
146
160
  .arrow-demo-2{
147
- @include arrow(black, white, 0.563em, "left");
161
+ @include arrow(black, white, 10px, "left");
148
162
  }
149
163
 
150
164
  .arrow-demo-3{
151
- @include arrow(#5FC8FF, white, 1.313em, "right");
165
+ @include arrow(#5FC8FF, white, 25px, "right");
152
166
  }
153
167
 
154
168
  .arrow-demo-4{
155
- @include arrow(#5FC8FF, white, 1.500em, "left");
169
+ @include arrow(#5FC8FF, white, 25px, "left");
156
170
  }
157
171
 
158
172
  //Grillas
@@ -327,4 +341,34 @@ body{
327
341
  .despegar-warning-border-demo{
328
342
  padding: 10px;
329
343
  background: $despegar-warning-border;
330
- }
344
+ }
345
+
346
+ .clusters-demo-1 {
347
+ .cluster {
348
+ @include cluster();
349
+ }
350
+ }
351
+
352
+ .demo-text {
353
+ margin: 10px;
354
+ }
355
+
356
+ .text-demo-1 {
357
+ @include font-size-1();
358
+ }
359
+
360
+ .text-demo-2 {
361
+ @include font-size-2();
362
+ }
363
+
364
+ .text-demo-3 {
365
+ @include font-size-3();
366
+ }
367
+
368
+ .text-demo-4 {
369
+ @include font-size-4();
370
+ }
371
+
372
+ .text-demo-5 {
373
+ @include font-size-5();
374
+ }
@@ -123,3 +123,17 @@ body{
123
123
  }
124
124
 
125
125
  }
126
+
127
+ .picasso-_bubbles{
128
+
129
+ .ie7 &, .ie8 &, .ie9 &{
130
+
131
+ blockquote{
132
+ background: transparent;
133
+ padding: 0;
134
+ @include border-radius(none);
135
+ }
136
+
137
+ }
138
+
139
+ }
@@ -1,3 +1,3 @@
1
1
  module Picasso
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -44,6 +44,7 @@
44
44
  // * `accordions` ([sección dedicada](picasso-components-_accordions.html))
45
45
  // * `navs` ([sección dedicada](picasso-components-_navs.html))
46
46
  // * `tooltips` ([sección dedicada](picasso-components-_tooltips.html))
47
+ // * `clusters` ([sección dedicada](picasso-components-_clusters.html))
47
48
 
48
49
  // ### Sass
49
50
 
@@ -62,3 +63,4 @@
62
63
  @import "components/popups";
63
64
  @import "components/accordions";
64
65
  @import "components/navs";
66
+ @import "components/clusters";
@@ -3,6 +3,7 @@
3
3
  // Sub-módulo que importa las siguientes utilidades:
4
4
 
5
5
  // * `variables` ([sección dedicada](picasso-despegar-_variables.html))
6
+ // * `mixins` ([sección dedicada](picasso-despegar-_mixins.html))
6
7
 
7
8
  // ### Sass
8
9
 
@@ -10,4 +11,5 @@
10
11
 
11
12
  // `@import "picasso/despegar";`
12
13
 
13
- @import "despegar/variables";
14
+ @import "despegar/variables";
15
+ @import "despegar/mixins";
@@ -16,4 +16,5 @@
16
16
  @import "utils/clearfix";
17
17
  @import "utils/sprite";
18
18
  @import "utils/ie";
19
- @import "utils/grid";
19
+ @import "utils/grid";
20
+ @import "utils/rem";
@@ -51,11 +51,12 @@
51
51
 
52
52
  // `@include accordion(#CCC, #000, #FFF, 1.5em);`
53
53
 
54
+ @import "../utils/clearfix";
54
55
 
55
56
  $accordion-default-border-color: #CCC !default;
56
57
  $accordion-default-background-color: #013D93 !default;
57
58
  $accordion-default-color: #FFF !default;
58
- $accordion-default-font-size: 0.8em !default;
59
+ $accordion-default-font-size: 0.813em !default;
59
60
 
60
61
  @mixin accordion(
61
62
  $border-color: $accordion-default-border-color,
@@ -116,7 +117,7 @@ $accordion-default-font-size: 0.8em !default;
116
117
 
117
118
  .accordion-header{
118
119
  padding: ($font-size / 2) 10px;
119
- overflow: hidden;
120
+ @include clearfix();
120
121
 
121
122
  h4{
122
123
  margin: 0;
@@ -49,21 +49,22 @@
49
49
  // * `font-size`
50
50
  // * `size` (lado para el cual apunta el componente)
51
51
 
52
- // `@include arrow(#5FC8FF, white, 1.500em, "left");`
52
+ // `@include arrow(#5FC8FF, white, 15px, "left");`
53
53
 
54
+ @import "../utils/rem";
54
55
 
55
56
  $arrow-default-background: black !default;
56
57
  $arrow-default-color: white !default;
57
- $arrow-default-font-size: 0.563em !default;
58
+ $arrow-default-font-size: 10px !default;
58
59
  $arrow-default-arrow-side: "right" !default;
59
60
 
60
61
  @mixin arrow(
61
62
 
62
- // Background del elemento
63
- $background: $arrow-default-background,
63
+ // Background del elemento
64
+ $background: $arrow-default-background,
64
65
 
65
- // Color del elemento
66
- $color: $arrow-default-color,
66
+ // Color del elemento
67
+ $color: $arrow-default-color,
67
68
 
68
69
  // Tamaño de la tipografia
69
70
  $font-size: $arrow-default-font-size,
@@ -72,31 +73,31 @@ $arrow-default-arrow-side: "right" !default;
72
73
  $side: $arrow-default-arrow-side
73
74
  ){
74
75
 
75
- @include arrow-layout($font-size, $side);
76
- @include arrow-visual($background, $color, $font-size, $side);
76
+ @include arrow-layout($font-size, $side);
77
+ @include arrow-visual($background, $color, $font-size, $side);
77
78
 
78
79
  }
79
80
 
80
81
  @mixin arrow-visual($background: $arrow-default-background, $color: $arrow-default-color, $font-size: $arrow-default-font-size, $side: $arrow-default-arrow-side) {
81
82
 
82
83
  font-style: normal;
83
- font-size: $font-size;
84
+ @include rem(font-size, $font-size);
84
85
  background: $background;
85
86
  color: $color;
86
- @include border-radius(0.1em);
87
+ @if($side == "right"){
88
+ @include border-left-radius(0.1em);
89
+ } @else {
90
+ @include border-right-radius(0.1em);
91
+ }
87
92
 
88
93
  &:after{
89
- border-top: 0.778em solid transparent;
90
- border-bottom: 0.778em solid transparent;
94
+ border-top: 0.8em solid transparent;
95
+ border-bottom: 0.8em solid transparent;
91
96
 
92
97
  @if($side == "right"){
93
-
94
- border-left: 0.778em solid $background;
95
-
98
+ border-left: 0.8em solid $background;
96
99
  } @else {
97
-
98
- border-right: 0.778em solid $background;
99
-
100
+ border-right: 0.8em solid $background;
100
101
  }
101
102
 
102
103
 
@@ -107,8 +108,8 @@ $arrow-default-arrow-side: "right" !default;
107
108
  @mixin arrow-layout($font-size: $arrow-default-font-size, $side: $arrow-default-arrow-side) {
108
109
 
109
110
  position: relative;
110
- height: 1.556em;
111
- line-height: 1.556em;
111
+ height: 1.6em;
112
+ line-height: 1.6em;
112
113
  display: inline-block;
113
114
 
114
115
  @if($side == "right"){
@@ -1,9 +1,11 @@
1
1
  // ## Bubbles
2
2
 
3
- // Ideales para citar comentarios de clientes.
3
+ // Ideales para citas de texto.
4
4
 
5
5
  // ### Ejemplos
6
6
 
7
+ // #### Ejemplo 1
8
+
7
9
  // ```
8
10
  // <div class="bubble-demo-1">
9
11
  // <h4>Lorem ipsum</h4>
@@ -11,6 +13,25 @@
11
13
  // This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.
12
14
  // </blockquote>
13
15
  // </div>
16
+ //
17
+ // <div class="bubble-demo-2">
18
+ // <h4>Lorem ipsum</h4>
19
+ // <blockquote>
20
+ // This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.
21
+ // </blockquote>
22
+ // </div>
23
+ // ```
24
+
25
+ // #### Ejemplo 2.
26
+ // Con ellipsis.
27
+
28
+ // ```
29
+ // <div class="bubble-demo-3">
30
+ // <h4>Lorem ipsum</h4>
31
+ // <blockquote>
32
+ // This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.
33
+ // </blockquote>
34
+ // </div>
14
35
  // ```
15
36
 
16
37
  // ### Sass
@@ -27,29 +48,29 @@
27
48
 
28
49
  // Con todos los par&aacute;metros:
29
50
  //
30
- // * `width`
31
51
  // * `background-color`
32
52
  // * `color`
33
- // * `ellipsis`
34
- // * `ellipsis position`
53
+ // * `ellipsis` (booleano)
54
+ // * `side` (lado en que apunta el componente)
35
55
 
36
- // `@include bubble(200px, blue, white, true, left);`
56
+ // `@include bubble(#EEE, #999, true, "left");`
37
57
 
38
58
 
39
59
  @import "compass/css3/border-radius";
40
60
  @import "compass/typography/text/ellipsis";
41
61
  @import "../utils/ie";
42
62
 
43
- $bubble-default-width : auto !default;
63
+
44
64
  $bubble-default-background : #EEE !default;
45
65
  $bubble-default-color : #999 !default;
46
66
  $bubble-default-ellipsis : false !default;
47
- $bubble-default-ellipsis-position : right !default;
67
+ $bubble-default-side: "right" !default;
48
68
 
49
- @mixin bubble(
50
69
 
51
- // Ancho del elemento
52
- $width: $bubble-default-width,
70
+ $bubble-default-border-radius : 0.5em !default;
71
+ $bubble-default-padding : 0.7em !default;
72
+
73
+ @mixin bubble(
53
74
 
54
75
  // Background del elemento
55
76
  $background: $bubble-default-background,
@@ -60,12 +81,12 @@ $bubble-default-ellipsis-position : right !default;
60
81
  // Seteo de ellipsis
61
82
  $ellipsis: $bubble-default-ellipsis,
62
83
 
63
- // Seteo de posicion de ellipsis
64
- $ellipsis-position: $bubble-default-ellipsis-position
84
+ // Posicion de la flecha
85
+ $side: $bubble-default-side
65
86
 
66
87
  ){
67
88
 
68
- @include bubble-layout($width, $ellipsis-position);
89
+ @include bubble-layout($ellipsis, $side);
69
90
  @include bubble-visual($background, $color, $ellipsis);
70
91
 
71
92
  }
@@ -73,49 +94,47 @@ $bubble-default-ellipsis-position : right !default;
73
94
  @mixin bubble-visual($background: $bubble-default-background, $color: $bubble-default-color, $ellipsis: $bubble-default-ellipsis){
74
95
 
75
96
  background: $background;
76
- @include border-radius(5px);
97
+ @include border-radius($bubble-default-border-radius);
77
98
 
78
99
  blockquote{
79
100
  color: $color;
80
- @if $ellipsis {
81
- @include ellipsis(true);
101
+
102
+ @if ($ellipsis == true) {
103
+ @include ellipsis();
82
104
  }
83
- }
84
105
 
85
- h4{
86
- @if $ellipsis {
87
- @include ellipsis(true);
88
- }
89
106
  }
90
107
 
91
- &:after, .ie7 & .after{
92
- border-left: 10px solid transparent;
93
- border-right: 10px solid transparent;
94
- border-top: 15px solid $background;
108
+ &:after{
109
+ border-left: 0.7em solid transparent;
110
+ border-right: 0.7em solid transparent;
111
+ border-top: 1em solid $background;
95
112
  }
96
113
 
97
114
  }
98
115
 
99
- @mixin bubble-layout($width: $bubble-default-width, $ellipsis-position: $bubble-default-ellipsis-position){
116
+ @mixin bubble-layout($ellipsis: $bubble-default-ellipsis, $side: $bubble-default-side){
100
117
 
101
- padding: 10px;
102
- display: block;
103
- width: $width;
118
+ padding: $bubble-default-padding;
104
119
  position: relative;
105
120
 
106
- &:after, .ie7 & .after{
107
- content: "";
108
- position: absolute;
109
- bottom: -15px;
110
- @if $ellipsis-position {
111
- #{$ellipsis-position}: 20px;
121
+ blockquote, h4{
122
+ margin: 0;
123
+ }
124
+
125
+ @if ($ellipsis == true) {
126
+
127
+ blockquote{
128
+ width: 100%;
112
129
  }
113
- width: 0;
114
- height: 0;
130
+
115
131
  }
116
132
 
117
- .ie7 &{
118
- @include after;
133
+ &:after{
134
+ content: '';
135
+ position: absolute;
136
+ #{$side}: 1em;
137
+ bottom: -1em;
119
138
  }
120
139
 
121
140
  }
@@ -0,0 +1,98 @@
1
+ // ## Clusters
2
+
3
+ // Para mostrar clusters de resultados
4
+
5
+ // ### Ejemplo
6
+ // ```
7
+ // <div class="clusters-demo-1">
8
+ // <div class="cluster">
9
+ // <div class="demo-text">Ida EZE -> MIA miércoles 26 diciembre, 2012</div>
10
+ // <ul class="cluster-items-list">
11
+ // <li class="cluster-item">Sale: 10:30 Llega: 17:40 Directo</li>
12
+ // <li class="cluster-item">Sale: 11:30 Llega: 18:40 Directo</li>
13
+ // <li class="cluster-item">Sale: 12:30 Llega: 19:40 Directo</li>
14
+ // <li class="cluster-item">Sale: 13:30 Llega: 20:40 Directo</li>
15
+ // </ul>
16
+ // <div class="demo-text">Hasta en 12 pagos</div>
17
+ // </div>
18
+ // <div class="cluster">
19
+ // <div class="demo-text">Vuelta EZE -> MIA jueves 27 diciembre, 2012</div>
20
+ // <ul class="cluster-items-list">
21
+ // <li class="cluster-item">Sale: 00:30 Llega: 07:40 Directo</li>
22
+ // <li class="cluster-item">Sale: 01:30 Llega: 08:40 Directo</li>
23
+ // <li class="cluster-item">Sale: 02:30 Llega: 09:40 Directo</li>
24
+ // <li class="cluster-item">Sale: 03:30 Llega: 00:40 Directo</li>
25
+ // </ul>
26
+ // <div class="demo-text">Hasta en 12 pagos</div>
27
+ // </div>
28
+ // </div>
29
+ // ```
30
+
31
+ // ### Sass
32
+
33
+ // #### Import
34
+
35
+ // `@import "picasso/components/clusters";`
36
+
37
+ // #### Mixins
38
+
39
+ // `@include cluster();`
40
+
41
+ @import "../utils/clearfix";
42
+ @import "compass/css3/border-radius";
43
+
44
+ $clusters-default-border-color: #CCC !default;
45
+ $clusters-default-border-color-hover: #319fda !default;
46
+ $clusters-default-background-color-hover: #f1f6fc !default;
47
+ $clusters-default-border-radius: 3px !default;
48
+
49
+ @mixin cluster() {
50
+ @include cluster-layout();
51
+ @include cluster-visual();
52
+ }
53
+
54
+ @mixin cluster-visual() {
55
+ border: 1px solid $clusters-default-border-color;
56
+ border-top-width: 5px;
57
+ @include border-radius($clusters-default-border-radius);
58
+
59
+ &:hover {
60
+ border-color: $clusters-default-border-color-hover;
61
+ background-color: $clusters-default-background-color-hover;
62
+ }
63
+
64
+ .cluster-items-list {
65
+ list-style: none outside none;
66
+
67
+ .cluster-item {
68
+ border: 1px solid transparent;
69
+ border-top-color: $despegar-gray-7;
70
+
71
+ &:first-child{
72
+ border-top-color: transparent;
73
+ }
74
+
75
+ &:hover {
76
+ border-color: $clusters-default-border-color-hover;
77
+ background-color: $clusters-default-background-color-hover;
78
+ }
79
+ }
80
+ }
81
+
82
+ }
83
+
84
+ @mixin cluster-layout(){
85
+ @include clearfix;
86
+
87
+ margin-bottom: 15px;
88
+
89
+ .cluster-items-list {
90
+ padding: 0px;
91
+ margin: 0px;
92
+
93
+ .cluster-item {
94
+ padding: 0 5px;
95
+ margin: 0 0 1px 13px;
96
+ }
97
+ }
98
+ }