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
@@ -2,12 +2,9 @@
2
2
  @import "../../stylesheets/picasso";
3
3
 
4
4
  //General
5
- html{
6
- font-size: 16px;
7
- }
8
-
9
5
  body{
10
6
  font-family: sans-serif;
7
+ font-size: 16px;
11
8
  padding: 20px 0;
12
9
  }
13
10
 
@@ -21,6 +18,7 @@ body{
21
18
  }
22
19
 
23
20
  //Tooltips
21
+
24
22
  .tooltip-demo-1{
25
23
  @include tooltip();
26
24
  left: 20px;
@@ -113,22 +111,10 @@ body{
113
111
  }
114
112
 
115
113
  //Bubbles
116
- .bubble-demo-1{
117
- margin: 0 0 30px 0;
118
- }
119
-
120
114
  .bubble-demo-1{
121
115
  @include bubble();
122
116
  }
123
117
 
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
-
132
118
  //Accordions
133
119
  .accordion-demo-1{
134
120
  @include accordion();
@@ -158,15 +144,15 @@ body{
158
144
  }
159
145
 
160
146
  .arrow-demo-2{
161
- @include arrow(black, white, 10px, "left");
147
+ @include arrow(black, white, 0.563em, "left");
162
148
  }
163
149
 
164
150
  .arrow-demo-3{
165
- @include arrow(#5FC8FF, white, 25px, "right");
151
+ @include arrow(#5FC8FF, white, 1.313em, "right");
166
152
  }
167
153
 
168
154
  .arrow-demo-4{
169
- @include arrow(#5FC8FF, white, 25px, "left");
155
+ @include arrow(#5FC8FF, white, 1.500em, "left");
170
156
  }
171
157
 
172
158
  //Grillas
@@ -123,17 +123,3 @@ 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.beta.4"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -16,5 +16,4 @@
16
16
  @import "utils/clearfix";
17
17
  @import "utils/sprite";
18
18
  @import "utils/ie";
19
- @import "utils/grid";
20
- @import "utils/rem";
19
+ @import "utils/grid";
@@ -51,12 +51,11 @@
51
51
 
52
52
  // `@include accordion(#CCC, #000, #FFF, 1.5em);`
53
53
 
54
- @import "../utils/clearfix";
55
54
 
56
55
  $accordion-default-border-color: #CCC !default;
57
56
  $accordion-default-background-color: #013D93 !default;
58
57
  $accordion-default-color: #FFF !default;
59
- $accordion-default-font-size: 0.813em !default;
58
+ $accordion-default-font-size: 0.8em !default;
60
59
 
61
60
  @mixin accordion(
62
61
  $border-color: $accordion-default-border-color,
@@ -117,7 +116,7 @@ $accordion-default-font-size: 0.813em !default;
117
116
 
118
117
  .accordion-header{
119
118
  padding: ($font-size / 2) 10px;
120
- @include clearfix();
119
+ overflow: hidden;
121
120
 
122
121
  h4{
123
122
  margin: 0;
@@ -49,22 +49,21 @@
49
49
  // * `font-size`
50
50
  // * `size` (lado para el cual apunta el componente)
51
51
 
52
- // `@include arrow(#5FC8FF, white, 15px, "left");`
52
+ // `@include arrow(#5FC8FF, white, 1.500em, "left");`
53
53
 
54
- @import "../utils/rem";
55
54
 
56
55
  $arrow-default-background: black !default;
57
56
  $arrow-default-color: white !default;
58
- $arrow-default-font-size: 10px !default;
57
+ $arrow-default-font-size: 0.563em !default;
59
58
  $arrow-default-arrow-side: "right" !default;
60
59
 
61
60
  @mixin arrow(
62
61
 
63
- // Background del elemento
64
- $background: $arrow-default-background,
62
+ // Background del elemento
63
+ $background: $arrow-default-background,
65
64
 
66
- // Color del elemento
67
- $color: $arrow-default-color,
65
+ // Color del elemento
66
+ $color: $arrow-default-color,
68
67
 
69
68
  // Tamaño de la tipografia
70
69
  $font-size: $arrow-default-font-size,
@@ -73,31 +72,31 @@ $arrow-default-arrow-side: "right" !default;
73
72
  $side: $arrow-default-arrow-side
74
73
  ){
75
74
 
76
- @include arrow-layout($font-size, $side);
77
- @include arrow-visual($background, $color, $font-size, $side);
75
+ @include arrow-layout($font-size, $side);
76
+ @include arrow-visual($background, $color, $font-size, $side);
78
77
 
79
78
  }
80
79
 
81
80
  @mixin arrow-visual($background: $arrow-default-background, $color: $arrow-default-color, $font-size: $arrow-default-font-size, $side: $arrow-default-arrow-side) {
82
81
 
83
82
  font-style: normal;
84
- @include rem(font-size, $font-size);
83
+ font-size: $font-size;
85
84
  background: $background;
86
85
  color: $color;
87
- @if($side == "right"){
88
- @include border-left-radius(0.1em);
89
- } @else {
90
- @include border-right-radius(0.1em);
91
- }
86
+ @include border-radius(0.1em);
92
87
 
93
88
  &:after{
94
- border-top: 0.8em solid transparent;
95
- border-bottom: 0.8em solid transparent;
89
+ border-top: 0.778em solid transparent;
90
+ border-bottom: 0.778em solid transparent;
96
91
 
97
92
  @if($side == "right"){
98
- border-left: 0.8em solid $background;
93
+
94
+ border-left: 0.778em solid $background;
95
+
99
96
  } @else {
100
- border-right: 0.8em solid $background;
97
+
98
+ border-right: 0.778em solid $background;
99
+
101
100
  }
102
101
 
103
102
 
@@ -108,8 +107,8 @@ $arrow-default-arrow-side: "right" !default;
108
107
  @mixin arrow-layout($font-size: $arrow-default-font-size, $side: $arrow-default-arrow-side) {
109
108
 
110
109
  position: relative;
111
- height: 1.6em;
112
- line-height: 1.6em;
110
+ height: 1.556em;
111
+ line-height: 1.556em;
113
112
  display: inline-block;
114
113
 
115
114
  @if($side == "right"){
@@ -1,11 +1,9 @@
1
1
  // ## Bubbles
2
2
 
3
- // Ideales para citas de texto.
3
+ // Ideales para citar comentarios de clientes.
4
4
 
5
5
  // ### Ejemplos
6
6
 
7
- // #### Ejemplo 1
8
-
9
7
  // ```
10
8
  // <div class="bubble-demo-1">
11
9
  // <h4>Lorem ipsum</h4>
@@ -13,25 +11,6 @@
13
11
  // 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.
14
12
  // </blockquote>
15
13
  // </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>
35
14
  // ```
36
15
 
37
16
  // ### Sass
@@ -48,30 +27,30 @@
48
27
 
49
28
  // Con todos los par&aacute;metros:
50
29
  //
30
+ // * `width`
51
31
  // * `background-color`
52
32
  // * `color`
53
- // * `ellipsis` (booleano)
54
- // * `side` (lado en que apunta el componente)
33
+ // * `ellipsis`
34
+ // * `ellipsis position`
55
35
 
56
- // `@include bubble(#EEE, #999, true, "left");`
36
+ // `@include bubble(200px, blue, white, true, left);`
57
37
 
58
38
 
59
39
  @import "compass/css3/border-radius";
60
40
  @import "compass/typography/text/ellipsis";
61
41
  @import "../utils/ie";
62
42
 
63
-
43
+ $bubble-default-width : auto !default;
64
44
  $bubble-default-background : #EEE !default;
65
45
  $bubble-default-color : #999 !default;
66
46
  $bubble-default-ellipsis : false !default;
67
- $bubble-default-side: "right" !default;
68
-
69
-
70
- $bubble-default-border-radius : 0.5em !default;
71
- $bubble-default-padding : 0.7em !default;
47
+ $bubble-default-ellipsis-position : right !default;
72
48
 
73
49
  @mixin bubble(
74
50
 
51
+ // Ancho del elemento
52
+ $width: $bubble-default-width,
53
+
75
54
  // Background del elemento
76
55
  $background: $bubble-default-background,
77
56
 
@@ -81,12 +60,12 @@ $bubble-default-padding : 0.7em !default;
81
60
  // Seteo de ellipsis
82
61
  $ellipsis: $bubble-default-ellipsis,
83
62
 
84
- // Posicion de la flecha
85
- $side: $bubble-default-side
63
+ // Seteo de posicion de ellipsis
64
+ $ellipsis-position: $bubble-default-ellipsis-position
86
65
 
87
66
  ){
88
67
 
89
- @include bubble-layout($ellipsis, $side);
68
+ @include bubble-layout($width, $ellipsis-position);
90
69
  @include bubble-visual($background, $color, $ellipsis);
91
70
 
92
71
  }
@@ -94,47 +73,49 @@ $bubble-default-padding : 0.7em !default;
94
73
  @mixin bubble-visual($background: $bubble-default-background, $color: $bubble-default-color, $ellipsis: $bubble-default-ellipsis){
95
74
 
96
75
  background: $background;
97
- @include border-radius($bubble-default-border-radius);
76
+ @include border-radius(5px);
98
77
 
99
78
  blockquote{
100
79
  color: $color;
101
-
102
- @if ($ellipsis == true) {
103
- @include ellipsis();
80
+ @if $ellipsis {
81
+ @include ellipsis(true);
104
82
  }
83
+ }
105
84
 
85
+ h4{
86
+ @if $ellipsis {
87
+ @include ellipsis(true);
88
+ }
106
89
  }
107
90
 
108
- &:after{
109
- border-left: 0.7em solid transparent;
110
- border-right: 0.7em solid transparent;
111
- border-top: 1em solid $background;
91
+ &:after, .ie7 & .after{
92
+ border-left: 10px solid transparent;
93
+ border-right: 10px solid transparent;
94
+ border-top: 15px solid $background;
112
95
  }
113
96
 
114
97
  }
115
98
 
116
- @mixin bubble-layout($ellipsis: $bubble-default-ellipsis, $side: $bubble-default-side){
99
+ @mixin bubble-layout($width: $bubble-default-width, $ellipsis-position: $bubble-default-ellipsis-position){
117
100
 
118
- padding: $bubble-default-padding;
101
+ padding: 10px;
102
+ display: block;
103
+ width: $width;
119
104
  position: relative;
120
105
 
121
- blockquote, h4{
122
- margin: 0;
123
- }
124
-
125
- @if ($ellipsis == true) {
126
-
127
- blockquote{
128
- width: 100%;
106
+ &:after, .ie7 & .after{
107
+ content: "";
108
+ position: absolute;
109
+ bottom: -15px;
110
+ @if $ellipsis-position {
111
+ #{$ellipsis-position}: 20px;
129
112
  }
130
-
113
+ width: 0;
114
+ height: 0;
131
115
  }
132
116
 
133
- &:after{
134
- content: '';
135
- position: absolute;
136
- #{$side}: 1em;
137
- bottom: -1em;
117
+ .ie7 &{
118
+ @include after;
138
119
  }
139
120
 
140
121
  }
@@ -209,6 +209,7 @@ $pagination-default-disabled-class : "disabled" !default;
209
209
  display: inline-block;
210
210
 
211
211
  li{
212
+ display: inline-block;
212
213
  height: $size;
213
214
  text-align: center;
214
215
  float: left;
@@ -75,13 +75,12 @@
75
75
 
76
76
  @import "compass/css3/border-radius";
77
77
  @import "compass/css3/box-shadow";
78
- @import "compass/css3/box-sizing";
79
78
  @import "../utils/sprite";
80
79
  @import "../utils/ie";
81
80
 
82
81
  $popup-default-background: white !default;
83
82
  $popup-default-border-radius: 3px !default;
84
- $popup-default-box-shadow: rgba(0, 0, 0, 0.5) 0 0 10px !default;
83
+ $popup-default-box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px !default;
85
84
  $popup-default-background-border: #000000 !default;
86
85
  $popup-default-background-border-opacity: 0.7 !default;
87
86
  $popup-default-close-button-background: #319FDA !default;
@@ -124,8 +123,8 @@ $popup-ie-fallback: "sprites" !default;
124
123
  &:after, .ie7 & .after {
125
124
  content: "";
126
125
  position: absolute;
127
- top: 0;
128
- left: 0;
126
+ top: 0px;
127
+ left: 0px;
129
128
  width: 100%;
130
129
  height: 100%;
131
130
  z-index: 0;
@@ -137,7 +136,6 @@ $popup-ie-fallback: "sprites" !default;
137
136
  line-height: 20px;
138
137
  padding: 10px;
139
138
  }
140
-
141
139
  }
142
140
 
143
141
  .popup-container {
@@ -147,8 +145,8 @@ $popup-ie-fallback: "sprites" !default;
147
145
 
148
146
  .popup-arrow{
149
147
  position: absolute;
150
- height: 0;
151
- width: 0;
148
+ height: 0px;
149
+ width: 0px;
152
150
  }
153
151
 
154
152
  .popup-arrow-bottom {
@@ -175,24 +173,19 @@ $popup-ie-fallback: "sprites" !default;
175
173
  position: absolute;
176
174
  z-index: 10;
177
175
  text-align: center;
178
- line-height: $popup-default-close-button-height;
176
+ line-height: $popup-default-close-button-height - $popup-default-close-button-border;
179
177
  height: $popup-default-close-button-height;
180
178
  width: $popup-default-close-button-height;
181
179
  top: (-1) * (($popup-default-close-button-height / 2) + $popup-default-close-button-border);
182
180
  right: (-1) * (($popup-default-close-button-height / 2) + $popup-default-close-button-border);
183
- @include box-sizing(content-box);
184
181
  }
185
182
 
186
- .ie7 & {
187
- @include after;
188
- }
189
-
190
183
  .ie7 &, .ie8 & {
191
184
 
192
185
  @if $popup-ie-fallback == "sprites" {
193
186
 
194
187
  .popup-close {
195
- line-height: $popup-default-close-button-size;
188
+ line-height: $popup-default-close-button-size - $popup-default-close-button-border;
196
189
  height: $popup-default-close-button-size;
197
190
  width: $popup-default-close-button-size;
198
191
  top: (-1) * (($popup-default-close-button-size / 2));
@@ -203,6 +196,10 @@ $popup-ie-fallback: "sprites" !default;
203
196
 
204
197
  }
205
198
 
199
+ .ie7 & {
200
+ @include after;
201
+ }
202
+
206
203
  }
207
204
 
208
205
  @mixin popup-visual(
@@ -217,12 +214,12 @@ $popup-ie-fallback: "sprites" !default;
217
214
  $title-color: $popup-default-title-color
218
215
  ) {
219
216
 
220
- &:after{
221
- background: $background-border;
217
+ &:after, .ie7 & .after {
222
218
  background: rgba($background-border, $background-border-opacity);
223
219
  @include border-radius($border-radius);
224
220
  @include box-shadow($box-shadow);
225
221
  }
222
+
226
223
  .popup-header{
227
224
  background: $title-background;
228
225
  display: block;
@@ -271,35 +268,19 @@ $popup-ie-fallback: "sprites" !default;
271
268
  border: $popup-default-close-button-border solid $close-button-color;
272
269
  color: $close-button-color;
273
270
  font-weight: bold;
274
- font-family: arial, sans-serif;
275
- font-size: $popup-default-close-button-height;
271
+ font-family: sans-serif;
272
+ font-size: 16px;
276
273
  background: $close-button-background;
277
274
  @include border-radius($popup-default-close-button-height);
278
275
  @include box-shadow($box-shadow);
279
276
  }
280
277
 
281
- .ie7 &{
278
+ .ie7 &, .ie8 & {
282
279
 
283
- & .after {
284
- background-color: $background-border;
280
+ &:after, & .after {
281
+ background: $background-border;
285
282
  filter: alpha(opacity = ($background-border-opacity * 100));
286
283
  }
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 & {
303
284
 
304
285
  .popup-arrow {
305
286
  filter: alpha(opacity = ($background-border-opacity * 100));
@@ -324,7 +305,7 @@ $popup-ie-fallback: "sprites" !default;
324
305
  @if $popup-ie-fallback == "sprites" {
325
306
 
326
307
  .popup-close {
327
- border-width: 0;
308
+ border-width: 0px;
328
309
  background-color: transparent;
329
310
 
330
311
  $popup-close-image: magick-canvas($popup-default-close-button-size, $popup-default-close-button-size,
@@ -337,7 +318,7 @@ $popup-ie-fallback: "sprites" !default;
337
318
  $popup-sprite-created: true;
338
319
 
339
320
  background: image-url($popup-sprite-name + ".png", false, false);
340
- background-position: 0 ((-1) * $initial-position);
321
+ background-position: 0px ((-1) * $initial-position);
341
322
  }
342
323
 
343
324
  }