picasso 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +216 -3
- data/docs/_picasso.html +38 -0
- data/docs/config.rb +1 -1
- data/docs/css/{style.css → picasso-docs.css} +797 -1331
- data/docs/img/picasso-buttons-glossy.png +0 -0
- data/docs/img/picasso-nav.png +0 -0
- data/docs/img/picasso-popup.png +0 -0
- data/docs/index.html +201 -198
- data/docs/picasso-_components.html +83 -0
- data/docs/picasso-_despegar.html +34 -0
- data/docs/picasso-_utils.html +40 -0
- data/docs/picasso-components-_accordions.html +183 -0
- data/docs/picasso-components-_arrows.html +124 -0
- data/docs/picasso-components-_bubbles.html +142 -0
- data/docs/picasso-components-_buttons.html +38 -0
- data/docs/picasso-components-_inputs.html +122 -0
- data/docs/picasso-components-_list-grids.html +253 -0
- data/docs/picasso-components-_mini-tooltips.html +152 -0
- data/docs/picasso-components-_navs.html +360 -0
- data/docs/picasso-components-_pagination.html +258 -0
- data/docs/picasso-components-_popups.html +359 -0
- data/docs/picasso-components-buttons-_3d.html +284 -0
- data/docs/picasso-components-buttons-_glossy.html +290 -0
- data/docs/picasso-components-buttons-_mini.html +224 -0
- data/docs/picasso-despegar-_variables.html +145 -0
- data/docs/picasso-utils-_clearfix.html +56 -0
- data/docs/picasso-utils-_grid.html +390 -0
- data/docs/picasso-utils-_ie.html +50 -0
- data/docs/picasso-utils-_sprite.html +62 -0
- data/docs/resources/docs.jade +46 -0
- data/docs/resources/docs.js +52 -0
- data/docs/sass/{style.scss → picasso-docs.scss} +71 -96
- data/lib/picasso/version.rb +1 -1
- data/picasso.gemspec +1 -1
- data/stylesheets/_picasso.scss +14 -0
- data/stylesheets/picasso/_components.scss +54 -0
- data/stylesheets/picasso/_despegar.scss +12 -0
- data/stylesheets/picasso/_utils.scss +17 -1
- data/stylesheets/picasso/components/_accordions.scss +52 -2
- data/stylesheets/picasso/components/_arrows.scss +39 -2
- data/stylesheets/picasso/components/_bubbles.scss +36 -2
- data/stylesheets/picasso/components/_buttons.scss +14 -0
- data/stylesheets/picasso/components/_inputs.scss +41 -2
- data/stylesheets/picasso/components/_list-grids.scss +84 -3
- data/stylesheets/picasso/components/_mini-tooltips.scss +128 -0
- data/stylesheets/picasso/components/_navs.scss +52 -2
- data/stylesheets/picasso/components/_pagination.scss +63 -2
- data/stylesheets/picasso/components/_popups.scss +73 -2
- data/stylesheets/picasso/components/buttons/_3d.scss +75 -2
- data/stylesheets/picasso/components/buttons/_glossy.scss +41 -2
- data/stylesheets/picasso/components/buttons/_mini.scss +44 -2
- data/stylesheets/picasso/despegar/_variables.scss +61 -60
- data/stylesheets/picasso/utils/_clearfix.scss +24 -16
- data/stylesheets/picasso/utils/_grid.scss +269 -0
- data/stylesheets/picasso/utils/_ie.scss +23 -28
- data/stylesheets/picasso/utils/_sprite.scss +15 -3
- metadata +34 -50
- data/docs/accordions.html +0 -276
- data/docs/all.html +0 -1588
- data/docs/arrows.html +0 -233
- data/docs/bubbles.html +0 -231
- data/docs/build/manifest.json +0 -21
- data/docs/build/md/changelog.md +0 -53
- data/docs/build/md/components/accordions.md +0 -97
- data/docs/build/md/components/arrows.md +0 -53
- data/docs/build/md/components/bubbles.md +0 -57
- data/docs/build/md/components/buttons.md +0 -205
- data/docs/build/md/components/components.md +0 -37
- data/docs/build/md/components/inputs.md +0 -73
- data/docs/build/md/components/list-grids.md +0 -180
- data/docs/build/md/components/navs.md +0 -107
- data/docs/build/md/components/pagination.md +0 -112
- data/docs/build/md/components/popups.md +0 -162
- data/docs/build/md/despegar/despegar.md +0 -200
- data/docs/build/md/intro.md +0 -59
- data/docs/build/md/mejoras.md +0 -69
- data/docs/build/md/todo.md +0 -14
- data/docs/build/md/utils/utils.md +0 -62
- data/docs/build/templates/index.html +0 -37
- data/docs/build/templates/layout.html +0 -68
- data/docs/build/templates/page.html +0 -3
- data/docs/buttons.html +0 -357
- data/docs/changelog.html +0 -264
- data/docs/components.html +0 -220
- data/docs/css/github.css +0 -88
- data/docs/css/markdown.css +0 -108
- data/docs/despegar.html +0 -377
- data/docs/inputs.html +0 -248
- data/docs/intro.html +0 -233
- data/docs/js/docs.js +0 -32
- data/docs/js/rainbow-custom.min.js +0 -13
- data/docs/js/viewer.js +0 -12
- data/docs/list-grids.html +0 -350
- data/docs/mejoras.html +0 -250
- data/docs/navs.html +0 -281
- data/docs/pagination.html +0 -286
- data/docs/popups.html +0 -337
- data/docs/todo.html +0 -204
- data/docs/utils.html +0 -233
data/docs/build/manifest.json
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"title": "Picasso. Framework CSS/Sass.",
|
3
|
-
"files": [
|
4
|
-
"md/intro.md",
|
5
|
-
"md/changelog.md",
|
6
|
-
"md/todo.md",
|
7
|
-
"md/mejoras.md",
|
8
|
-
"md/components/components.md",
|
9
|
-
"md/components/buttons.md",
|
10
|
-
"md/components/inputs.md",
|
11
|
-
"md/components/navs.md",
|
12
|
-
"md/components/list-grids.md",
|
13
|
-
"md/components/arrows.md",
|
14
|
-
"md/components/pagination.md",
|
15
|
-
"md/components/bubbles.md",
|
16
|
-
"md/components/popups.md",
|
17
|
-
"md/components/accordions.md",
|
18
|
-
"md/utils/utils.md",
|
19
|
-
"md/despegar/despegar.md"
|
20
|
-
]
|
21
|
-
}
|
data/docs/build/md/changelog.md
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
## 0.2.3
|
4
|
-
|
5
|
-
* Fix estado estado `disabled` para IE;
|
6
|
-
|
7
|
-
## 0.2.2
|
8
|
-
|
9
|
-
* Se agrega estado `disabled` para los botones 3D;
|
10
|
-
|
11
|
-
## 0.2.1
|
12
|
-
|
13
|
-
* Fix sombras, gradientes y bordes de botones y nav de IE9;
|
14
|
-
|
15
|
-
## 0.2.0
|
16
|
-
|
17
|
-
* Fix degradados de botones en Chrome;
|
18
|
-
* Separación de botones por tipo;
|
19
|
-
* Nuevos botones 3D;
|
20
|
-
* Se quita a oily_png como dependencia;
|
21
|
-
|
22
|
-
## 0.1.0
|
23
|
-
|
24
|
-
* Agregados nuevos componentes:
|
25
|
-
* - Popups
|
26
|
-
* - Pagination
|
27
|
-
* - Navs
|
28
|
-
* - List Grids
|
29
|
-
* - Inputs
|
30
|
-
* - Accordions
|
31
|
-
* Agregadas nuevas utilidades:
|
32
|
-
* - Sprite: `insert-in-sprite()`
|
33
|
-
* - IE: `after()` / `before()`
|
34
|
-
* Nuevo fallback para IE: Generación dinámica de sprites para componentes a través de [compass-magick](https://github.com/StanAngeloff/compass-magick).
|
35
|
-
* Se elimina el soporte para CSS3 Pie, siendo reemplazado por fallback de sprites.
|
36
|
-
* Reorganización interna de la documentación.
|
37
|
-
|
38
|
-
## 0.0.3
|
39
|
-
|
40
|
-
* Agregados estilos de fallback para Internet Explorer.
|
41
|
-
* Soporte para CSS3 Pie (de manera predeterminado apagado).
|
42
|
-
* Agregada la documentación sobre la generación de docs.
|
43
|
-
|
44
|
-
## 0.0.2
|
45
|
-
|
46
|
-
* Modularización del componente.
|
47
|
-
* Agregados: buttons, mini-buttons, bubbles y arrows.
|
48
|
-
* Creación de la documentación.
|
49
|
-
|
50
|
-
## 0.0.1
|
51
|
-
|
52
|
-
* Versión inicial.
|
53
|
-
* Agregadas las variables de la marca Despegar y clearfix.
|
@@ -1,97 +0,0 @@
|
|
1
|
-
## Accordions
|
2
|
-
|
3
|
-
Para mostrar información en espacios reducidos.
|
4
|
-
|
5
|
-
### Ejemplos
|
6
|
-
|
7
|
-
#### Ejemplo 1
|
8
|
-
|
9
|
-
<div class="accordion-demo-1">
|
10
|
-
|
11
|
-
<div class="accordion-section">
|
12
|
-
<div class="accordion-header accordion-header-open">
|
13
|
-
<h4>Precio</h4>
|
14
|
-
<span class="arrow"></span>
|
15
|
-
</div>
|
16
|
-
<div class="accordion-content">
|
17
|
-
<span>aca van los filtros de precio</span>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
<div class="accordion-section">
|
21
|
-
<div class="accordion-header accordion-header-open">
|
22
|
-
<h4>Paradas</h4>
|
23
|
-
<span class="arrow"></span>
|
24
|
-
</div>
|
25
|
-
<div class="accordion-content">
|
26
|
-
<span>aca van los filtros de paradas</span>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
|
30
|
-
</div>
|
31
|
-
|
32
|
-
#### Ejemplo 2
|
33
|
-
|
34
|
-
<div class="accordion-demo-2">
|
35
|
-
|
36
|
-
<div class="accordion-section">
|
37
|
-
<div class="accordion-header accordion-header-open">
|
38
|
-
<h4>Precio</h4>
|
39
|
-
<span class="arrow"></span>
|
40
|
-
</div>
|
41
|
-
<div class="accordion-content">
|
42
|
-
<span>aca van los filtros de precio</span>
|
43
|
-
</div>
|
44
|
-
</div>
|
45
|
-
<div class="accordion-section">
|
46
|
-
<div class="accordion-header accordion-header-open">
|
47
|
-
<h4>Paradas</h4>
|
48
|
-
<span class="arrow"></span>
|
49
|
-
</div>
|
50
|
-
<div class="accordion-content">
|
51
|
-
<span>aca van los filtros de paradas</span>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
### HTML
|
58
|
-
|
59
|
-
```html
|
60
|
-
<div class="accordion">
|
61
|
-
<div class="accordion-section">
|
62
|
-
<div class="accordion-header accordion-header-open">
|
63
|
-
<h4>Precio</h4>
|
64
|
-
<span class="arrow"></span>
|
65
|
-
</div>
|
66
|
-
<div class="accordion-content">
|
67
|
-
<span>aca van los filtros de precio</span>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
```
|
72
|
-
|
73
|
-
> **Nota**: Para tener un header cerrado se utiliza la clase `accordion-header-close`. El componente no incluye las funciones JavaScript para ocultar y mostrar el contenido de cada acordeón.
|
74
|
-
|
75
|
-
### Sass
|
76
|
-
|
77
|
-
Importación:
|
78
|
-
|
79
|
-
```css
|
80
|
-
@import "picasso/components/accordions";
|
81
|
-
```
|
82
|
-
|
83
|
-
Mixin con los parámetros por defecto:
|
84
|
-
|
85
|
-
```css
|
86
|
-
.accordion {
|
87
|
-
@include accordion();
|
88
|
-
}
|
89
|
-
```
|
90
|
-
|
91
|
-
Mixin con parámetros personalizados. Disponibles: alto, background del título, color del título:
|
92
|
-
|
93
|
-
```css
|
94
|
-
.accordion {
|
95
|
-
@include accordion(40px, #CCCCCC, #000000);
|
96
|
-
}
|
97
|
-
```
|
@@ -1,53 +0,0 @@
|
|
1
|
-
## Arrows
|
2
|
-
|
3
|
-
Excelentes para avisos importantes.
|
4
|
-
|
5
|
-
### Ejemplos
|
6
|
-
|
7
|
-
<em class="arrow-demo-1">
|
8
|
-
Información
|
9
|
-
</em>
|
10
|
-
|
11
|
-
<em class="arrow-demo-2">
|
12
|
-
Importante
|
13
|
-
</em>
|
14
|
-
|
15
|
-
<em class="arrow-demo-3">
|
16
|
-
Leer
|
17
|
-
</em>
|
18
|
-
|
19
|
-
<em class="arrow-demo-4">
|
20
|
-
Aceptado
|
21
|
-
</em>
|
22
|
-
|
23
|
-
### HTML
|
24
|
-
|
25
|
-
```html
|
26
|
-
<em class="arrow">
|
27
|
-
Beneficio
|
28
|
-
</em>
|
29
|
-
```
|
30
|
-
|
31
|
-
### Sass
|
32
|
-
|
33
|
-
Importación:
|
34
|
-
|
35
|
-
```css
|
36
|
-
@import "picasso/components/arrows";
|
37
|
-
```
|
38
|
-
|
39
|
-
Mixin con los parámetros por defecto:
|
40
|
-
|
41
|
-
```css
|
42
|
-
.arrow{
|
43
|
-
@include arrow();
|
44
|
-
}
|
45
|
-
```
|
46
|
-
|
47
|
-
Mixin con parámetros personalizados. Disponibles: background y color:
|
48
|
-
|
49
|
-
```css
|
50
|
-
.arrow{
|
51
|
-
@include arrow(green, white);
|
52
|
-
}
|
53
|
-
```
|
@@ -1,57 +0,0 @@
|
|
1
|
-
## Bubbles
|
2
|
-
|
3
|
-
Ideales para citar comentarios de clientes.
|
4
|
-
|
5
|
-
### Ejemplos
|
6
|
-
|
7
|
-
#### Ejemplo 1
|
8
|
-
|
9
|
-
<div class="bubble-demo-1">
|
10
|
-
<blockquote>
|
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.
|
12
|
-
</blockquote>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
#### Ejemplo 2
|
16
|
-
|
17
|
-
<div class="bubble-demo-2">
|
18
|
-
<h4>This is a long title. This is a long title. This is a long title. This is a long title. This is a long title.</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
|
-
### HTML
|
25
|
-
|
26
|
-
```html
|
27
|
-
<div class="bubble">
|
28
|
-
<h4>This is a optional title</h4>
|
29
|
-
<blockquote>
|
30
|
-
This is a long quotation. This is a long quotation.
|
31
|
-
</blockquote>
|
32
|
-
</div>
|
33
|
-
```
|
34
|
-
|
35
|
-
### Sass
|
36
|
-
|
37
|
-
Importación:
|
38
|
-
|
39
|
-
```css
|
40
|
-
@import "picasso/components/bubbles";
|
41
|
-
```
|
42
|
-
|
43
|
-
Mixin con los parámetros por defecto:
|
44
|
-
|
45
|
-
```css
|
46
|
-
.bubble{
|
47
|
-
@include bubble();
|
48
|
-
}
|
49
|
-
```
|
50
|
-
|
51
|
-
Mixin con parámetros personalizados. Disponibles: ancho, background, color, utilizar ellipsis, posición de la ellipsis:
|
52
|
-
|
53
|
-
```css
|
54
|
-
.bubble{
|
55
|
-
@include bubble(200px, blue, white, true, left);
|
56
|
-
}
|
57
|
-
```
|
@@ -1,205 +0,0 @@
|
|
1
|
-
## Buttons
|
2
|
-
|
3
|
-
Disponibles en 3 versiones: 3D, Glossy y Mini.
|
4
|
-
|
5
|
-
#### Sass
|
6
|
-
|
7
|
-
Importación:
|
8
|
-
|
9
|
-
```css
|
10
|
-
@import "picasso/components/buttons";
|
11
|
-
```
|
12
|
-
|
13
|
-
### 3D Buttons
|
14
|
-
|
15
|
-
#### Ejemplos
|
16
|
-
|
17
|
-
##### Normales
|
18
|
-
|
19
|
-
<a class="button-3d-demo-1">
|
20
|
-
<span>Comprar</span>
|
21
|
-
</a>
|
22
|
-
<a class="button-3d-demo-2">
|
23
|
-
<span>Buscar</span>
|
24
|
-
</a>
|
25
|
-
<a class="button-3d-demo-3">
|
26
|
-
<span>Reservar</span>
|
27
|
-
</a>
|
28
|
-
|
29
|
-
##### Desactivados
|
30
|
-
|
31
|
-
<a class="button-3d-demo-1 disabled">
|
32
|
-
<span>Comprar</span>
|
33
|
-
</a>
|
34
|
-
<a class="button-3d-demo-2 disabled">
|
35
|
-
<span>Buscar</span>
|
36
|
-
</a>
|
37
|
-
<a class="button-3d-demo-3 disabled">
|
38
|
-
<span>Reservar</span>
|
39
|
-
</a>
|
40
|
-
|
41
|
-
##### Variante: ancho 100%
|
42
|
-
|
43
|
-
<a class="button-3d-demo-4">
|
44
|
-
<span>Botón full-width</span>
|
45
|
-
</a>
|
46
|
-
|
47
|
-
##### Variante: bordes redondeados 100%
|
48
|
-
|
49
|
-
<a class="button-3d-demo-5">
|
50
|
-
<span>Botón redondeado</span>
|
51
|
-
</a>
|
52
|
-
<a class="button-3d-demo-5 disabled">
|
53
|
-
<span>Botón redondeado disabled</span>
|
54
|
-
</a>
|
55
|
-
|
56
|
-
|
57
|
-
#### HTML
|
58
|
-
|
59
|
-
```html
|
60
|
-
<a class="button" href="#">
|
61
|
-
<span>Comprar</span>
|
62
|
-
</a>
|
63
|
-
|
64
|
-
<a class="button disabled" href="#">
|
65
|
-
<span>Agotado</span>
|
66
|
-
</a>
|
67
|
-
```
|
68
|
-
|
69
|
-
#### Sass
|
70
|
-
|
71
|
-
Mixin con los parámetros por defecto:
|
72
|
-
|
73
|
-
```css
|
74
|
-
.button{
|
75
|
-
@include button-3d();
|
76
|
-
}
|
77
|
-
```
|
78
|
-
|
79
|
-
Mixin con parámetros personalizados. Disponibles: background, color, font-size, full-width y rounded:
|
80
|
-
|
81
|
-
```css
|
82
|
-
.button{
|
83
|
-
@include button-3d(red, white, 24px, true, true);
|
84
|
-
}
|
85
|
-
```
|
86
|
-
|
87
|
-
#### Fallback para IE
|
88
|
-
|
89
|
-
La estrategia de los botones es siempre graceful degradation.
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
### Glossy Buttons
|
94
|
-
|
95
|
-
#### Ejemplos
|
96
|
-
|
97
|
-
<a class="button-glossy-demo-1">
|
98
|
-
<span>Comprar</span>
|
99
|
-
</a>
|
100
|
-
<a class="button-glossy-demo-2">
|
101
|
-
<span>Buscar</span>
|
102
|
-
</a>
|
103
|
-
<a class="button-glossy-demo-3">
|
104
|
-
<span>Reservar</span>
|
105
|
-
</a>
|
106
|
-
<a class="button-glossy-demo-4">
|
107
|
-
<span>Un texto demasiado largo para este botón</span>
|
108
|
-
</a>
|
109
|
-
|
110
|
-
#### HTML
|
111
|
-
|
112
|
-
```html
|
113
|
-
<a class="button" href="#">
|
114
|
-
<span>Comprar</span>
|
115
|
-
</a>
|
116
|
-
```
|
117
|
-
|
118
|
-
Mixin con los parámetros por defecto:
|
119
|
-
|
120
|
-
```css
|
121
|
-
.button{
|
122
|
-
@include button-glossy();
|
123
|
-
}
|
124
|
-
```
|
125
|
-
|
126
|
-
Mixin con parámetros personalizados. Disponibles: ancho, alto, background y color:
|
127
|
-
|
128
|
-
```css
|
129
|
-
.button{
|
130
|
-
@include button-glossy(100px, 30px, red, white);
|
131
|
-
}
|
132
|
-
```
|
133
|
-
|
134
|
-
#### Fallback para IE
|
135
|
-
|
136
|
-
Variable y valor por defecto:
|
137
|
-
|
138
|
-
```css
|
139
|
-
$button-glossy-ie-fallback: "sprites";
|
140
|
-
```
|
141
|
-
|
142
|
-
Estrategias soportadas:
|
143
|
-
|
144
|
-
* `sprites`
|
145
|
-
* `GD`
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
### Mini Buttons
|
150
|
-
|
151
|
-
Perfectos para acciones simples en la interfaz.
|
152
|
-
|
153
|
-
#### Ejemplos
|
154
|
-
|
155
|
-
<a class="button-mini-demo-1">
|
156
|
-
<span>Limpiar</span>
|
157
|
-
</a>
|
158
|
-
<a class="button-mini-demo-2">
|
159
|
-
<span>Abrir</span>
|
160
|
-
</a>
|
161
|
-
<a class="button-mini-demo-3">
|
162
|
-
<span>Descargar</span>
|
163
|
-
</a>
|
164
|
-
<a class="button-mini-demo-4">
|
165
|
-
<span>Ir</span>
|
166
|
-
</a>
|
167
|
-
|
168
|
-
#### HTML
|
169
|
-
|
170
|
-
```html
|
171
|
-
<a class="button" href="#">
|
172
|
-
<span>Limpiar</span>
|
173
|
-
</a>
|
174
|
-
```
|
175
|
-
|
176
|
-
#### Sass
|
177
|
-
|
178
|
-
Mixin con los parámetros por defecto:
|
179
|
-
|
180
|
-
```css
|
181
|
-
.button{
|
182
|
-
@include button-mini();
|
183
|
-
}
|
184
|
-
```
|
185
|
-
|
186
|
-
Mixin con parámetros personalizados. Disponibles: background y color:
|
187
|
-
|
188
|
-
```css
|
189
|
-
.button{
|
190
|
-
@include button-mini(grey, blue);
|
191
|
-
}
|
192
|
-
```
|
193
|
-
|
194
|
-
#### Fallback para IE
|
195
|
-
|
196
|
-
Variable y valor por defecto:
|
197
|
-
|
198
|
-
```css
|
199
|
-
$button-mini-ie-fallback: "sprites";
|
200
|
-
```
|
201
|
-
|
202
|
-
Estrategias soportadas:
|
203
|
-
|
204
|
-
* `sprites`
|
205
|
-
* `GD`
|