picasso 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/accordions.html +6 -3
- data/docs/all.html +105 -60
- data/docs/arrows.html +6 -3
- data/docs/bubbles.html +6 -3
- data/docs/build/md/changelog.md +9 -2
- data/docs/build/md/components/buttons.md +167 -137
- data/docs/build/md/components/navs.md +1 -1
- data/docs/build/md/components/popups.md +1 -1
- data/docs/build/md/intro.md +17 -1
- data/docs/build/md/todo.md +2 -1
- data/docs/build/templates/layout.html +2 -1
- data/docs/buttons.html +75 -54
- data/docs/changelog.html +15 -5
- data/docs/components.html +6 -3
- data/docs/css/markdown.css +1 -1
- data/docs/css/style.css +720 -220
- data/docs/despegar.html +6 -3
- data/docs/img/picasso-buttons-glossy.png +0 -0
- data/docs/img/{picasso-mini-buttons.png → picasso-buttons-mini.png} +0 -0
- data/docs/index.html +23 -4
- data/docs/inputs.html +6 -3
- data/docs/intro.html +23 -4
- data/docs/list-grids.html +6 -3
- data/docs/mejoras.html +6 -3
- data/docs/navs.html +7 -4
- data/docs/pagination.html +6 -3
- data/docs/popups.html +7 -4
- data/docs/sass/style.scss +43 -19
- data/docs/todo.html +8 -4
- data/docs/utils.html +6 -3
- data/lib/picasso/version.rb +1 -1
- data/picasso.gemspec +0 -1
- data/stylesheets/picasso/components/_accordions.scss +13 -13
- data/stylesheets/picasso/components/_arrows.scss +2 -2
- data/stylesheets/picasso/components/_bubbles.scss +5 -5
- data/stylesheets/picasso/components/_buttons.scss +3 -2
- data/stylesheets/picasso/components/_inputs.scss +7 -7
- data/stylesheets/picasso/components/_list-grids.scss +6 -6
- data/stylesheets/picasso/components/_navs.scss +10 -10
- data/stylesheets/picasso/components/_pagination.scss +8 -8
- data/stylesheets/picasso/components/_popups.scss +15 -15
- data/stylesheets/picasso/components/buttons/_3d.scss +127 -0
- data/stylesheets/picasso/components/buttons/_glossy.scss +220 -0
- data/stylesheets/picasso/components/buttons/_mini.scss +150 -0
- metadata +9 -23
- data/docs/ie.html +0 -201
- data/docs/img/picasso-buttons.png +0 -0
- data/stylesheets/picasso/components/buttons/_buttons.scss +0 -191
- data/stylesheets/picasso/components/buttons/_mini-buttons.scss +0 -149
Binary file
|
@@ -1,191 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Buttons
|
3
|
-
//
|
4
|
-
|
5
|
-
@import "compass/css3/images";
|
6
|
-
@import "compass/css3/border-radius";
|
7
|
-
@import "picasso/utils/sprite";
|
8
|
-
|
9
|
-
$button-default-width : 90px;
|
10
|
-
$button-default-height: 30px;
|
11
|
-
$button-default-background: red;
|
12
|
-
$button-default-color: white;
|
13
|
-
|
14
|
-
$button-default-font-family: sans-serif;
|
15
|
-
$button-default-font-size: 12px;
|
16
|
-
$button-default-border-radius: 5px;
|
17
|
-
$button-default-image-dir: '';
|
18
|
-
|
19
|
-
$button-sprite-created: false !default;
|
20
|
-
$button-sprite-name: "picasso-buttons";
|
21
|
-
$button-ie-fallback: "sprites" !default;
|
22
|
-
|
23
|
-
@mixin button(
|
24
|
-
|
25
|
-
// Ancho del boton
|
26
|
-
$width: $button-default-width,
|
27
|
-
|
28
|
-
// Alto del boton
|
29
|
-
$height: $button-default-height,
|
30
|
-
|
31
|
-
// Background del boton
|
32
|
-
$background: $button-default-background,
|
33
|
-
|
34
|
-
// Color del texto del boton
|
35
|
-
$color: $button-default-color){
|
36
|
-
|
37
|
-
@include button-layout($width, $height);
|
38
|
-
@include button-visual($background, $color, $width, $height);
|
39
|
-
|
40
|
-
}
|
41
|
-
|
42
|
-
@mixin button-layout($width: $button-default-width, $height: $button-default-height){
|
43
|
-
|
44
|
-
width: $width;
|
45
|
-
height: $height;
|
46
|
-
display: inline-block;
|
47
|
-
text-align: center;
|
48
|
-
position: relative;
|
49
|
-
z-index: 1;
|
50
|
-
|
51
|
-
&:after, &:before{
|
52
|
-
content: "";
|
53
|
-
position: absolute;
|
54
|
-
display: inline-block;
|
55
|
-
}
|
56
|
-
|
57
|
-
&:after{
|
58
|
-
width: ($width - 2);
|
59
|
-
height: ($height - 2);
|
60
|
-
left: 1px;
|
61
|
-
top: 1px;
|
62
|
-
z-index: 2;
|
63
|
-
}
|
64
|
-
|
65
|
-
&:before{
|
66
|
-
width: ($width - 4);
|
67
|
-
height: ($height - 4);
|
68
|
-
left: 2px;
|
69
|
-
top: 2px;
|
70
|
-
z-index: 3;
|
71
|
-
}
|
72
|
-
|
73
|
-
span{
|
74
|
-
position: relative;
|
75
|
-
z-index: 4;
|
76
|
-
line-height: $height;
|
77
|
-
}
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
@mixin button-visual(
|
82
|
-
$background: $button-default-background,
|
83
|
-
$color: $button-default-color,
|
84
|
-
$width: $button-default-width,
|
85
|
-
$height: $button-default-height){
|
86
|
-
|
87
|
-
font-family: $button-default-font-family;
|
88
|
-
font-size: $button-default-font-size;
|
89
|
-
text-decoration: none;
|
90
|
-
@include background(linear-gradient($background 30%, darken($background, 30%)));
|
91
|
-
@include border-radius($button-default-border-radius);
|
92
|
-
|
93
|
-
span{
|
94
|
-
color: $color;
|
95
|
-
}
|
96
|
-
|
97
|
-
&:after, &:before{
|
98
|
-
@include border-radius(4px);
|
99
|
-
}
|
100
|
-
|
101
|
-
&:after{
|
102
|
-
@include background(linear-gradient(lighten($background, 40%) 20%, darken($background, 35%)));
|
103
|
-
}
|
104
|
-
|
105
|
-
&:before{
|
106
|
-
@include background(linear-gradient($background 30%, darken($background, 30%)));
|
107
|
-
}
|
108
|
-
|
109
|
-
&:hover{
|
110
|
-
@include background(linear-gradient($background 30%, lighten($background, 1%)));
|
111
|
-
|
112
|
-
&:before{
|
113
|
-
@include background(linear-gradient($background 30%, lighten($background, 1%)));
|
114
|
-
}
|
115
|
-
|
116
|
-
}
|
117
|
-
|
118
|
-
.ie7 &, .ie8 &, .ie9 &{
|
119
|
-
|
120
|
-
@if $button-ie-fallback == "sprites" {
|
121
|
-
|
122
|
-
// Generacion del sprite con las imagenes del boton
|
123
|
-
|
124
|
-
$button-image: magick-canvas($width, ($height * 2),
|
125
|
-
|
126
|
-
//Normal
|
127
|
-
magick-compose(
|
128
|
-
|
129
|
-
magick-canvas($width, $height,
|
130
|
-
magick-fill(magick-linear-gradient($background 30%, darken($background, 30%))),
|
131
|
-
magick-corners($button-default-border-radius)
|
132
|
-
)
|
133
|
-
|
134
|
-
),
|
135
|
-
magick-compose(
|
136
|
-
|
137
|
-
magick-canvas($width - 2, $height - 2,
|
138
|
-
magick-fill(magick-linear-gradient($background 30%, darken($background, 30%))),
|
139
|
-
magick-corners($button-default-border-radius)
|
140
|
-
magick-border(
|
141
|
-
magick-linear-gradient(lighten($background, 40%) 20%, darken($background, 35%))
|
142
|
-
, $button-default-border-radius, 1px
|
143
|
-
)
|
144
|
-
),
|
145
|
-
|
146
|
-
1px, 1px
|
147
|
-
)
|
148
|
-
|
149
|
-
//Hover
|
150
|
-
magick-compose(
|
151
|
-
|
152
|
-
magick-canvas($width, $height,
|
153
|
-
magick-fill(magick-linear-gradient($background 30%, lighten($background, 1%))),
|
154
|
-
magick-corners($button-default-border-radius)
|
155
|
-
),
|
156
|
-
|
157
|
-
0, $height
|
158
|
-
),
|
159
|
-
magick-compose(
|
160
|
-
|
161
|
-
magick-canvas($width - 2, $height - 2,
|
162
|
-
magick-fill(magick-linear-gradient($background 30%, lighten($background, 1%))),
|
163
|
-
magick-corners($button-default-border-radius)
|
164
|
-
magick-border(
|
165
|
-
magick-linear-gradient(lighten($background, 40%) 20%, darken($background, 35%))
|
166
|
-
, $button-default-border-radius, 1px
|
167
|
-
)
|
168
|
-
),
|
169
|
-
|
170
|
-
1px, ($height + 1)
|
171
|
-
)
|
172
|
-
);
|
173
|
-
|
174
|
-
$initial-position: insert-in-sprite($button-sprite-created, $button-sprite-name, $button-image, $width, ($height * 2));
|
175
|
-
$button-sprite-created: true;
|
176
|
-
|
177
|
-
background: generated-image-url($button-sprite-name + ".png");
|
178
|
-
background-position: 0 ((-1) * $initial-position);
|
179
|
-
|
180
|
-
&:hover{
|
181
|
-
background-position: 0 ((-1) * ($initial-position + $height));
|
182
|
-
}
|
183
|
-
|
184
|
-
} @else {
|
185
|
-
|
186
|
-
background-color: $background;
|
187
|
-
|
188
|
-
}
|
189
|
-
}
|
190
|
-
|
191
|
-
}
|
@@ -1,149 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Mini-Buttons
|
3
|
-
//
|
4
|
-
|
5
|
-
@import "compass/css3/images";
|
6
|
-
@import "compass/css3/box-shadow";
|
7
|
-
@import "compass/css3/border-radius";
|
8
|
-
@import "picasso/utils/sprite";
|
9
|
-
|
10
|
-
|
11
|
-
$mini-button-default-background: #F0F0F0;
|
12
|
-
$mini-button-default-color: #0E6695;
|
13
|
-
|
14
|
-
$mini-button-font-family: sans-serif;
|
15
|
-
$mini-button-default-height : 20px;
|
16
|
-
$mini-button-default-canvas-height : $mini-button-default-height;
|
17
|
-
$mini-button-default-canvas-width: 200px;
|
18
|
-
$mini-button-default-font-size: 11px;
|
19
|
-
$mini-button-default-padding: 10px;
|
20
|
-
$mini-button-default-image-dir: '';
|
21
|
-
|
22
|
-
$mini-button-sprite-created: false !default;
|
23
|
-
$mini-button-sprite-name: "picasso-mini-buttons";
|
24
|
-
$mini-button-ie-fallback: "sprites" !default;
|
25
|
-
|
26
|
-
@mixin mini-button(
|
27
|
-
|
28
|
-
// Background del boton
|
29
|
-
$background: $mini-button-default-background,
|
30
|
-
|
31
|
-
// Color del botón
|
32
|
-
$color: $mini-button-default-color
|
33
|
-
){
|
34
|
-
|
35
|
-
@include mini-button-layout();
|
36
|
-
@include mini-button-visual($background, $color);
|
37
|
-
|
38
|
-
}
|
39
|
-
|
40
|
-
@mixin mini-button-visual(
|
41
|
-
|
42
|
-
// Background del boton
|
43
|
-
$background: $mini-button-default-background,
|
44
|
-
|
45
|
-
// Color del botón
|
46
|
-
$color: $mini-button-default-color
|
47
|
-
){
|
48
|
-
|
49
|
-
font-family: $mini-button-font-family;
|
50
|
-
text-decoration: none;
|
51
|
-
cursor: pointer;
|
52
|
-
@include background(linear-gradient(top, $background 0%, darken($background, 5%) 50%, darken($background, 10%) 51%, darken($background, 15%) 100%));
|
53
|
-
@include border-radius($mini-button-default-height);
|
54
|
-
@include box-shadow(#333 0px 1px 2px 0px);
|
55
|
-
|
56
|
-
&:hover{
|
57
|
-
background: darken($background, 5%);
|
58
|
-
}
|
59
|
-
|
60
|
-
&:active{
|
61
|
-
background: darken($background, 15%);
|
62
|
-
@include box-shadow(#999 0px 0px 3px 3px inset);
|
63
|
-
}
|
64
|
-
|
65
|
-
span{
|
66
|
-
color: $color;
|
67
|
-
display: block;
|
68
|
-
font-size: $mini-button-default-font-size;
|
69
|
-
}
|
70
|
-
|
71
|
-
.ie7 &, .ie8 &, .ie9 &{
|
72
|
-
|
73
|
-
@if $mini-button-ie-fallback == "sprites" {
|
74
|
-
|
75
|
-
$mini-button-image: magick-canvas($mini-button-default-canvas-width, $mini-button-default-canvas-height * 2,
|
76
|
-
|
77
|
-
//Normal
|
78
|
-
magick-compose(
|
79
|
-
magick-canvas($mini-button-default-canvas-width, $mini-button-default-canvas-height,
|
80
|
-
magick-compose(
|
81
|
-
magick-canvas($mini-button-default-canvas-width, $mini-button-default-canvas-height - 2,
|
82
|
-
magick-fill(magick-linear-gradient($background 0%, darken($background, 5%) 50%, darken($background, 10%) 51%, darken($background, 15%) 100%)),
|
83
|
-
magick-corners($mini-button-default-canvas-height / 2)
|
84
|
-
)
|
85
|
-
),
|
86
|
-
magick-drop-shadow(270deg, 2px, 2px, #333)
|
87
|
-
)
|
88
|
-
),
|
89
|
-
|
90
|
-
//Hover
|
91
|
-
magick-compose(
|
92
|
-
|
93
|
-
magick-canvas($mini-button-default-canvas-width, $mini-button-default-canvas-height,
|
94
|
-
magick-compose(
|
95
|
-
magick-canvas($mini-button-default-canvas-width, $mini-button-default-canvas-height - 2,
|
96
|
-
magick-fill(magick-linear-gradient(darken($background, 5%))),
|
97
|
-
magick-corners($mini-button-default-canvas-height / 2)
|
98
|
-
)
|
99
|
-
),
|
100
|
-
magick-drop-shadow(270deg, 2px, 2px, #333)
|
101
|
-
),
|
102
|
-
|
103
|
-
0, $mini-button-default-canvas-height
|
104
|
-
)
|
105
|
-
|
106
|
-
);
|
107
|
-
|
108
|
-
$initial-position: insert-in-sprite($mini-button-sprite-created, $mini-button-sprite-name, $mini-button-image, $mini-button-default-canvas-width, ($mini-button-default-canvas-height * 2));
|
109
|
-
$mini-button-sprite-created: true;
|
110
|
-
|
111
|
-
background: generated-image-url($mini-button-sprite-name + ".png");
|
112
|
-
background-position: right ((-1) * $initial-position);
|
113
|
-
|
114
|
-
&:hover{
|
115
|
-
background-position: right ((-1) * ($initial-position + $mini-button-default-height));
|
116
|
-
}
|
117
|
-
|
118
|
-
span {
|
119
|
-
background-image: generated-image-url($mini-button-sprite-name + ".png");
|
120
|
-
background-color: white;
|
121
|
-
background-position: 0 ((-1) * $initial-position);
|
122
|
-
|
123
|
-
&:hover{
|
124
|
-
background-position: 0 ((-1) * ($initial-position + $mini-button-default-height));
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
} @else {
|
129
|
-
background-color: $background;
|
130
|
-
}
|
131
|
-
|
132
|
-
}
|
133
|
-
|
134
|
-
}
|
135
|
-
|
136
|
-
@mixin mini-button-layout(){
|
137
|
-
|
138
|
-
display: inline-block;
|
139
|
-
height: $mini-button-default-height;
|
140
|
-
padding-right: $mini-button-default-padding;
|
141
|
-
padding-right: $mini-button-default-padding;
|
142
|
-
|
143
|
-
span{
|
144
|
-
height: $mini-button-default-height;
|
145
|
-
line-height: $mini-button-default-height;
|
146
|
-
padding-left: $mini-button-default-padding;
|
147
|
-
}
|
148
|
-
|
149
|
-
}
|