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
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
8
- - 2
9
- version: 0.4.2
7
+ - 5
8
+ - 0
9
+ version: 0.5.0
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: 2013-02-28 00:00:00 -03:00
17
+ date: 2013-03-13 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -31,20 +31,6 @@ dependencies:
31
31
  version: 0.12.1
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: compass-magick
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 1
44
- - 6
45
- version: 0.1.6
46
- type: :runtime
47
- version_requirements: *id002
48
34
  description: Picasso - Sass/Compass Framework
49
35
  email:
50
36
  - ldonofrio@despegar.com
@@ -67,10 +53,6 @@ files:
67
53
  - docs/css/picasso-docs.css
68
54
  - docs/docs.css
69
55
  - docs/docs.js
70
- - docs/img/picasso-buttons-glossy.png
71
- - docs/img/picasso-buttons-mini.png
72
- - docs/img/picasso-nav.png
73
- - docs/img/picasso-popup.png
74
56
  - docs/img/picasso.png
75
57
  - docs/index.html
76
58
  - docs/js/html5shiv.js
@@ -122,8 +104,6 @@ files:
122
104
  - stylesheets/picasso/components/_popups.scss
123
105
  - stylesheets/picasso/components/_tooltips.scss
124
106
  - stylesheets/picasso/components/buttons/_3d.scss
125
- - stylesheets/picasso/components/buttons/_glossy.scss
126
- - stylesheets/picasso/components/buttons/_mini.scss
127
107
  - stylesheets/picasso/despegar/_mixins.scss
128
108
  - stylesheets/picasso/despegar/_variables.scss
129
109
  - stylesheets/picasso/utils/_clearfix.scss
@@ -139,7 +119,7 @@ licenses: []
139
119
  post_install_message: "\n\n\
140
120
  ##################################################\n\
141
121
  ## Picasso - Sass/Compass Framework\n\n\
142
- ## Versi\xC3\xB3n: 0.4.2\n\
122
+ ## Versi\xC3\xB3n: 0.5.0\n\
143
123
  ## Documentaci\xC3\xB3n: http://ux.despegar.it/labs/picasso/\n\
144
124
  ## CHANGELOG: http://ux.despegar.it/labs/picasso/#changelog\n\
145
125
  ##################################################\n\n"
Binary file
Binary file
@@ -1,266 +0,0 @@
1
- // ## Glossy Buttons
2
-
3
- // ### Ejemplos
4
-
5
- // ```
6
- // <a class="button-glossy-demo-1">
7
- // <span>Comprar</span>
8
- // </a>
9
- // <a class="button-glossy-demo-2">
10
- // <span>Buscar</span>
11
- // </a>
12
- // <a class="button-glossy-demo-3">
13
- // <span>Reservar</span>
14
- // </a>
15
- // ```
16
-
17
- // ### Sass
18
-
19
- // #### Import
20
-
21
- // `@import "picasso/components/buttons";`
22
-
23
- // #### Mixins
24
-
25
- // Con los par&aacute;metros por defecto:
26
-
27
- // `@include button-glossy();`
28
-
29
- // Con todos los par&aacute;metros:
30
- //
31
- // * `width`
32
- // * `height`
33
- // * `background-color`
34
- // * `color`
35
-
36
- // `@include button-glossy(100px, 30px, red, white);`
37
-
38
- // ### Fallback IE
39
-
40
- // * `$button-glossy-ie-fallback`: Esta variable permite seleccionar la estrategia de estilos para mostrar el componente en Internet Explorer. Valores disponibles:
41
- // `sprites` / `GD`. Valor por defecto: `sprites`.
42
-
43
-
44
- @import "compass/css3/images";
45
- @import "compass/css3/border-radius";
46
- @import "../../utils/sprite";
47
-
48
- $button-glossy-default-width : 90px !default;
49
- $button-glossy-default-height: 30px !default;
50
- $button-glossy-default-background: #DE1F2A !default;
51
- $button-glossy-default-color: white !default;
52
-
53
- $button-glossy-default-font-family: sans-serif !default;
54
- $button-glossy-default-font-size: 12px !default;
55
- $button-glossy-default-border-radius: 5px !default;
56
- $button-glossy-default-image-dir: '' !default;
57
-
58
- $button-glossy-sprite-created: false !default;
59
- $button-glossy-sprite-name: "picasso-buttons-glossy" !default;
60
- $button-glossy-ie-fallback: "sprites" !default;
61
-
62
- @mixin button-glossy(
63
-
64
- // Ancho del boton
65
- $width: $button-glossy-default-width,
66
-
67
- // Alto del boton
68
- $height: $button-glossy-default-height,
69
-
70
- // Background del boton
71
- $background: $button-glossy-default-background,
72
-
73
- // Color del texto del boton
74
- $color: $button-glossy-default-color){
75
-
76
- @include button-glossy-layout($width, $height);
77
- @include button-glossy-visual($background, $color, $width, $height);
78
-
79
- }
80
-
81
- @mixin button-glossy-layout($width: $button-glossy-default-width, $height: $button-glossy-default-height){
82
-
83
- width: $width;
84
- height: $height;
85
- display: inline-block;
86
- text-align: center;
87
- position: relative;
88
- z-index: 1;
89
-
90
- &:after, &:before{
91
- content: "";
92
- position: absolute;
93
- display: inline-block;
94
- }
95
-
96
- &:after{
97
- width: ($width - 2);
98
- height: ($height - 2);
99
- left: 1px;
100
- top: 1px;
101
- z-index: 2;
102
- }
103
-
104
- &:before{
105
- width: ($width - 4);
106
- height: ($height - 4);
107
- left: 2px;
108
- top: 2px;
109
- z-index: 3;
110
- }
111
-
112
- span{
113
- position: relative;
114
- z-index: 4;
115
- line-height: $height;
116
- }
117
-
118
- }
119
-
120
- @mixin button-glossy-visual(
121
- $background: $button-glossy-default-background,
122
- $color: $button-glossy-default-color,
123
- $width: $button-glossy-default-width,
124
- $height: $button-glossy-default-height){
125
-
126
- font-family: $button-glossy-default-font-family;
127
- font-size: $button-glossy-default-font-size;
128
- text-decoration: none;
129
- cursor: pointer;
130
-
131
- $button-glossy-main-gradient: linear-gradient($background, darken($background, 5%)), linear-gradient(darken($background, 10%), darken($background, 25%));
132
- $button-glossy-main-hover-gradient: linear-gradient(lighten($background, 15%), darken($background, 7%), saturate($background, 15%));
133
-
134
- @include background($button-glossy-main-gradient);
135
- @include border-radius($button-glossy-default-border-radius);
136
- background-position: left top, left ($height / 2);
137
-
138
- span{
139
- color: $color;
140
- }
141
-
142
- &:after, &:before{
143
- @include border-radius(4px);
144
- }
145
-
146
- &:after{
147
- @include background(linear-gradient(lighten($background, 30%) 15%, darken($background, 45%)) 50%);
148
- }
149
-
150
- &:before{
151
- @include background($button-glossy-main-gradient);
152
- background-position: left top, left (($height - 4) / 2);
153
- }
154
-
155
- &, &:before{
156
- background-size: 100% 50%;
157
- background-repeat: no-repeat;
158
- }
159
-
160
- &:hover{
161
- text-decoration: none;
162
- @include background($button-glossy-main-hover-gradient);
163
-
164
- &:after{
165
- @include background(linear-gradient(lighten($background, 33%) 20%, darken($background, 3%)) 50%);
166
- }
167
-
168
- &:before{
169
- @include background($button-glossy-main-hover-gradient);
170
- }
171
-
172
- }
173
-
174
- &:hover, &:hover:before{
175
- background-size: 100% 100%;
176
- background-position: left top;
177
- background-repeat: no-repeat;
178
- }
179
-
180
- .ie7 &, .ie8 &, .ie9 &{
181
- @include border-radius(none);
182
-
183
- @if $button-glossy-ie-fallback == "sprites" {
184
-
185
- // Generacion del sprite con las imagenes del boton
186
-
187
- $button-glossy-image: magick-canvas($width, ($height * 2),
188
-
189
- //Normal
190
- magick-compose(
191
-
192
- magick-canvas($width, $height / 2,
193
- magick-fill(magick-linear-gradient($background, darken($background, 5%)))
194
- magick-corners($button-glossy-default-border-radius, true, true, false, false)
195
- ),
196
- 0, 0
197
-
198
- )
199
- magick-compose(
200
-
201
- magick-canvas($width, $height / 2,
202
- magick-fill(magick-linear-gradient(darken($background, 10%), darken($background, 25%)))
203
- magick-corners($button-glossy-default-border-radius, false, false, true, true)
204
- ),
205
- 0, $height / 2
206
-
207
- )
208
- magick-compose(
209
-
210
- magick-canvas($width - 2, $height - 2,
211
- magick-border(
212
- magick-linear-gradient(lighten($background, 30%) 15%, darken($background, 45%))
213
- , $button-glossy-default-border-radius, 1px
214
- )
215
- ),
216
- 1px, 1px
217
-
218
- )
219
-
220
- //Hover
221
- magick-compose(
222
-
223
- magick-canvas($width, $height,
224
- magick-fill(magick-linear-gradient(lighten($background, 15%), darken($background, 7%), saturate($background, 15%)))
225
- magick-corners($button-glossy-default-border-radius)
226
- ),
227
- 0, $height
228
-
229
- )
230
- magick-compose(
231
-
232
- magick-canvas($width - 2, $height - 2,
233
- magick-border(
234
- magick-linear-gradient(lighten($background, 33%) 20%, darken($background, 3%))
235
- , $button-glossy-default-border-radius, 1px
236
- )
237
- ),
238
- 1px, ($height + 1)
239
-
240
- )
241
-
242
- );
243
-
244
- $initial-position: insert-in-sprite($button-glossy-sprite-created, $button-glossy-sprite-name, $button-glossy-image, $width, ($height * 2));
245
- $button-glossy-sprite-created: true;
246
-
247
- background: image-url($button-glossy-sprite-name + ".png", false, false);
248
- background-position: 0 ((-1) * $initial-position);
249
-
250
- &:hover{
251
- background-position: 0 ((-1) * ($initial-position + $height));
252
- }
253
-
254
- } @else {
255
-
256
- background-color: $background;
257
-
258
- }
259
-
260
- }
261
-
262
- .ie9 &{
263
- @include border-radius(none);
264
- }
265
-
266
- }
@@ -1,197 +0,0 @@
1
- // ## Mini Buttons
2
-
3
- // Perfectos para acciones simples en la interfaz.
4
-
5
- // ### Ejemplos
6
-
7
- // ```
8
- // <a class="button-mini-demo-1">
9
- // <span>Limpiar</span>
10
- // </a>
11
- // <a class="button-mini-demo-2">
12
- // <span>Abrir</span>
13
- // </a>
14
- // <a class="button-mini-demo-3">
15
- // <span>Descargar</span>
16
- // </a>
17
- // <a class="button-mini-demo-4">
18
- // <span>Ir</span>
19
- // </a>
20
- // ```
21
-
22
- // ### Sass
23
-
24
- // #### Import
25
-
26
- // `@import "picasso/components/buttons";`
27
-
28
- // #### Mixins
29
-
30
- // Con los par&aacute;metros por defecto:
31
-
32
- // `@include button-mini();`
33
-
34
- // Con todos los par&aacute;metros:
35
- //
36
- // * `background-color`
37
- // * `color`
38
-
39
- // `@include button-mini(grey, blue);`
40
-
41
- // ### Fallback IE
42
-
43
- // * `$button-mini-ie-fallback`: Esta variable permite seleccionar la estrategia de estilos para mostrar el componente en Internet Explorer. Valores disponibles:
44
- // `sprites` / `GD`. Valor por defecto: `sprites`.
45
-
46
-
47
- @import "compass/css3/images";
48
- @import "compass/css3/box-shadow";
49
- @import "compass/css3/border-radius";
50
- @import "../../utils/sprite";
51
-
52
-
53
- $button-mini-default-background: #F0F0F0 !default;
54
- $button-mini-default-color: #0E6695 !default;
55
-
56
- $button-mini-font-family: sans-serif !default;
57
- $button-mini-default-height : 20px !default;
58
- $button-mini-default-canvas-height : $button-mini-default-height !default;
59
- $button-mini-default-canvas-width: 200px !default;
60
- $button-mini-default-font-size: 11px !default;
61
- $button-mini-default-padding: 10px !default;
62
- $button-mini-default-image-dir: '' !default;
63
-
64
- $button-mini-sprite-created: false !default;
65
- $button-mini-sprite-name: "picasso-buttons-mini" !default;
66
- $button-mini-ie-fallback: "sprites" !default;
67
-
68
- @mixin button-mini(
69
-
70
- // Background del componente
71
- $background: $button-mini-default-background,
72
-
73
- // Color del componente
74
- $color: $button-mini-default-color
75
- ){
76
-
77
- @include button-mini-layout();
78
- @include button-mini-visual($background, $color);
79
-
80
- }
81
-
82
- @mixin button-mini-layout(){
83
-
84
- display: inline-block;
85
- height: $button-mini-default-height;
86
- padding-right: $button-mini-default-padding;
87
- padding-right: $button-mini-default-padding;
88
-
89
- span{
90
- height: $button-mini-default-height;
91
- line-height: $button-mini-default-height;
92
- padding-left: $button-mini-default-padding;
93
- display: block;
94
- }
95
-
96
- }
97
-
98
- @mixin button-mini-visual(
99
-
100
- // Background del componente
101
- $background: $button-mini-default-background,
102
-
103
- // Color del componente
104
- $color: $button-mini-default-color
105
- ){
106
-
107
- font-family: $button-mini-font-family;
108
- text-decoration: none;
109
- cursor: pointer;
110
- @include background(linear-gradient(top, $background 0%, darken($background, 5%) 50%, darken($background, 10%) 51%, darken($background, 15%) 100%));
111
- @include border-radius($button-mini-default-height);
112
- @include box-shadow(#333 0px 1px 2px 0px);
113
-
114
- &:hover{
115
- text-decoration: none;
116
- background: darken($background, 5%);
117
- }
118
-
119
- &:active{
120
- background: darken($background, 15%);
121
- @include box-shadow(#999 0px 0px 3px 3px inset);
122
- }
123
-
124
- span{
125
- color: $color;
126
- font-size: $button-mini-default-font-size;
127
- }
128
-
129
- .ie7 &, .ie8 &, .ie9 &{
130
-
131
- @if $button-mini-ie-fallback == "sprites" {
132
-
133
- $button-mini-image: magick-canvas($button-mini-default-canvas-width, $button-mini-default-canvas-height * 2,
134
-
135
- //Normal
136
- magick-compose(
137
- magick-canvas($button-mini-default-canvas-width, $button-mini-default-canvas-height,
138
- magick-compose(
139
- magick-canvas($button-mini-default-canvas-width, $button-mini-default-canvas-height - 2,
140
- magick-fill(magick-linear-gradient($background 0%, darken($background, 5%) 50%, darken($background, 10%) 51%, darken($background, 15%) 100%)),
141
- magick-corners($button-mini-default-canvas-height / 2)
142
- )
143
- ),
144
- magick-drop-shadow(270deg, 2px, 2px, #333)
145
- )
146
- ),
147
-
148
- //Hover
149
- magick-compose(
150
-
151
- magick-canvas($button-mini-default-canvas-width, $button-mini-default-canvas-height,
152
- magick-compose(
153
- magick-canvas($button-mini-default-canvas-width, $button-mini-default-canvas-height - 2,
154
- magick-fill(magick-linear-gradient(darken($background, 5%))),
155
- magick-corners($button-mini-default-canvas-height / 2)
156
- )
157
- ),
158
- magick-drop-shadow(270deg, 2px, 2px, #333)
159
- ),
160
-
161
- 0, $button-mini-default-canvas-height
162
- )
163
-
164
- );
165
-
166
- $initial-position: insert-in-sprite($button-mini-sprite-created, $button-mini-sprite-name, $button-mini-image, $button-mini-default-canvas-width, ($button-mini-default-canvas-height * 2));
167
- $button-mini-sprite-created: true;
168
-
169
- background: image-url($button-mini-sprite-name + ".png", false, false);
170
- background-position: right ((-1) * $initial-position);
171
-
172
- &:hover{
173
- background-position: right ((-1) * ($initial-position + $button-mini-default-height));
174
- }
175
-
176
- span {
177
- background-image: image-url($button-mini-sprite-name + ".png", false, false);
178
- background-color: white;
179
- background-position: 0 ((-1) * $initial-position);
180
-
181
- &:hover{
182
- background-position: 0 ((-1) * ($initial-position + $button-mini-default-height));
183
- }
184
- }
185
-
186
- } @else {
187
- background-color: $background;
188
- }
189
-
190
- }
191
-
192
- .ie9 &{
193
- @include border-radius(none);
194
- @include box-shadow(none);
195
- }
196
-
197
- }