picasso 0.3.5 → 0.3.6.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/_picasso.html +2599 -1
- data/docs/config.rb +1 -1
- data/docs/css/picasso-demos.css +2598 -1
- data/docs/css/picasso-docs.css +93 -1
- data/docs/index.html +2599 -1
- data/docs/picasso-_components.html +2599 -1
- data/docs/picasso-_despegar.html +2599 -1
- data/docs/picasso-_utils.html +2601 -2
- data/docs/picasso-components-_accordions.html +2599 -1
- data/docs/picasso-components-_arrows.html +2643 -54
- data/docs/picasso-components-_bubbles.html +2665 -40
- data/docs/picasso-components-_buttons.html +2599 -1
- data/docs/picasso-components-_inputs.html +2599 -1
- data/docs/picasso-components-_list-grids.html +2599 -1
- data/docs/picasso-components-_navs.html +2599 -1
- data/docs/picasso-components-_pagination.html +2599 -2
- data/docs/picasso-components-_popups.html +2642 -19
- data/docs/picasso-components-_tooltips.html +2603 -1
- data/docs/picasso-components-buttons-_3d.html +2599 -1
- data/docs/picasso-components-buttons-_glossy.html +2599 -1
- data/docs/picasso-components-buttons-_mini.html +2599 -1
- data/docs/picasso-despegar-_variables.html +2599 -1
- data/docs/picasso-utils-_clearfix.html +2599 -1
- data/docs/picasso-utils-_grid.html +2599 -1
- data/docs/picasso-utils-_ie.html +2599 -1
- data/docs/picasso-utils-_rem.html +2756 -0
- data/docs/picasso-utils-_sprite.html +2599 -1
- data/docs/sass/picasso-demos.scss +19 -4
- data/docs/sass/picasso-docs.scss +14 -0
- data/lib/picasso/version.rb +1 -1
- data/stylesheets/picasso/_utils.scss +2 -1
- data/stylesheets/picasso/components/_arrows.scss +36 -48
- data/stylesheets/picasso/components/_bubbles.scss +58 -39
- data/stylesheets/picasso/components/_pagination.scss +0 -1
- data/stylesheets/picasso/components/_popups.scss +43 -18
- data/stylesheets/picasso/components/_tooltips.scss +2 -0
- data/stylesheets/picasso/utils/_rem.scss +137 -0
- metadata +14 -8
@@ -10,6 +10,7 @@
|
|
10
10
|
// <span class="tooltip-demo-1 tooltip-left">
|
11
11
|
// Lorem ipsum
|
12
12
|
// </span>
|
13
|
+
//
|
13
14
|
// <span class="tooltip-demo-2 tooltip-right">
|
14
15
|
// Lorem ipsum
|
15
16
|
// </span>
|
@@ -21,6 +22,7 @@
|
|
21
22
|
// <span class="tooltip-demo-3 tooltip-left">
|
22
23
|
// Aliquam tincidunt mauris.
|
23
24
|
// </span>
|
25
|
+
//
|
24
26
|
// <span class="tooltip-demo-4 tooltip-right">
|
25
27
|
// Aliquam tincidunt mauris.
|
26
28
|
// </span>
|
@@ -0,0 +1,137 @@
|
|
1
|
+
// ## Rem
|
2
|
+
|
3
|
+
// Permite utilizar la unidad [rem](http://www.w3.org/TR/css3-values/#font-relative-lengths).
|
4
|
+
|
5
|
+
// Basado en https://github.com/ry5n/rem
|
6
|
+
|
7
|
+
// ### Sass
|
8
|
+
|
9
|
+
// #### Import
|
10
|
+
|
11
|
+
// `@import "picasso/utils/rem";`
|
12
|
+
|
13
|
+
// #### Mixins
|
14
|
+
|
15
|
+
// `@include rem('font-size', 10px);`
|
16
|
+
|
17
|
+
|
18
|
+
// @private Default font-size for all browsers
|
19
|
+
$browser-default-font-size: 16px;
|
20
|
+
|
21
|
+
// Base font size in pixels, if not already defined.
|
22
|
+
// Should be the same as the font-size of the html element.
|
23
|
+
$base-font-size: 16px !default;
|
24
|
+
|
25
|
+
// Whether to output fallback values in px when outputting rems.
|
26
|
+
$rem-with-px-fallback: true !default;
|
27
|
+
|
28
|
+
// Convert any CSS <length> or <percentage> value to any other.
|
29
|
+
@function convert-length($length, $to-unit, $from-context: $base-font-size, $to-context: $from-context) {
|
30
|
+
$from-unit: unit($length);
|
31
|
+
|
32
|
+
// Optimize for cases where from and to may accidentally be the same.
|
33
|
+
@if $from-unit == $to-unit { @return $length; }
|
34
|
+
@if unit($from-context) != 'px' { @warn "Paremeter $from-context must resolve to a value in pixel units."; }
|
35
|
+
@if unit($to-context) != 'px' { @warn "Parameter $to-context must resolve to a value in pixel units."; }
|
36
|
+
|
37
|
+
// Fixed ratios
|
38
|
+
// https://developer.mozilla.org/en/CSS/length
|
39
|
+
// http://dev.w3.org/csswg/css3-values/#absolute-lengths
|
40
|
+
$px-per-in: 96px / 1in;
|
41
|
+
$px-per-mm: 96px / 25.4mm;
|
42
|
+
$px-per-cm: 96px / 2.54cm;
|
43
|
+
$px-per-pt: 4px / 3pt;
|
44
|
+
$px-per-pc: 16px / 1pc;
|
45
|
+
|
46
|
+
// Variables to store actual convesion ratios
|
47
|
+
$px-per-from-unit: 1;
|
48
|
+
$px-per-to-unit: 1;
|
49
|
+
|
50
|
+
@if $from-unit != 'px' {
|
51
|
+
@if $from-unit == 'em' { $px-per-from-unit: $from-context / 1em }
|
52
|
+
@else if $from-unit == 'rem' { $px-per-from-unit: $base-font-size / 1rem }
|
53
|
+
@else if $from-unit == '%' { $px-per-from-unit: $from-context / 100% }
|
54
|
+
@else if $from-unit == 'ex' { $px-per-from-unit: $from-context / 2ex }
|
55
|
+
@else if $from-unit == 'in' { $px-per-from-unit: $px-per-in }
|
56
|
+
@else if $from-unit == 'mm' { $px-per-from-unit: $px-per-mm }
|
57
|
+
@else if $from-unit == 'cm' { $px-per-from-unit: $px-per-cm }
|
58
|
+
@else if $from-unit == 'pt' { $px-per-from-unit: $px-per-pt }
|
59
|
+
@else if $from-unit == 'pc' { $px-per-from-unit: $px-per-pc }
|
60
|
+
@else if $to-unit == 'ch' or $to-unit == 'vw' or $to-unit == 'vh' or $to-unit == 'vmin' {
|
61
|
+
@warn "#{$from-unit} units can't be reliably converted; Returning original value.";
|
62
|
+
@return $length;
|
63
|
+
}
|
64
|
+
@else {
|
65
|
+
@warn "#{$from-unit} is an unknown length unit. Returning original value.";
|
66
|
+
@return $length;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@if $to-unit != 'px' {
|
71
|
+
@if $to-unit == 'em' { $px-per-to-unit: $to-context / 1em }
|
72
|
+
@else if $to-unit == 'rem' { $px-per-to-unit: $base-font-size / 1rem }
|
73
|
+
@else if $to-unit == '%' { $px-per-to-unit: $to-context / 100% }
|
74
|
+
@else if $to-unit == 'ex' { $px-per-to-unit: $to-context / 2ex }
|
75
|
+
@else if $to-unit == 'in' { $px-per-to-unit: $px-per-in }
|
76
|
+
@else if $to-unit == 'mm' { $px-per-to-unit: $px-per-mm }
|
77
|
+
@else if $to-unit == 'cm' { $px-per-to-unit: $px-per-cm }
|
78
|
+
@else if $to-unit == 'pt' { $px-per-to-unit: $px-per-pt }
|
79
|
+
@else if $to-unit == 'pc' { $px-per-to-unit: $px-per-px }
|
80
|
+
@else if $to-unit == 'ch' or $to-unit == 'vw' or $to-unit == 'vh' or $to-unit == 'vmin' {
|
81
|
+
@warn "#{$to-unit} units can't be reliably converted; Returning original value.";
|
82
|
+
@return $length;
|
83
|
+
}
|
84
|
+
@else {
|
85
|
+
@warn "#{$to-unit} is an unknown length unit. Returning original value.";
|
86
|
+
@return $length;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
@return $length * $px-per-from-unit / $px-per-to-unit;
|
90
|
+
}
|
91
|
+
|
92
|
+
// For the given property, use rem units with px as a fallback value for older
|
93
|
+
// browsers.
|
94
|
+
//
|
95
|
+
// $property - The css property name.
|
96
|
+
// $values - The value (or space-separated list of values) for the property.
|
97
|
+
// $use-px-fallback - Boolean, default: true; whether to use pixel fallback values
|
98
|
+
//
|
99
|
+
@mixin rem($property, $values, $use-px-fallback: $rem-with-px-fallback) {
|
100
|
+
// Create a couple of empty lists as output buffers.
|
101
|
+
$px-values: ();
|
102
|
+
$rem-values: ();
|
103
|
+
|
104
|
+
// Ensure $values is a list.
|
105
|
+
@if type-of($values) != 'list' {
|
106
|
+
$values: join((), $values);
|
107
|
+
}
|
108
|
+
|
109
|
+
// Loop through the $values list
|
110
|
+
@each $value in $values {
|
111
|
+
// For each property value, if it's in rem or px, derive both rem and
|
112
|
+
// px values for it and add those to the end of the appropriate buffer.
|
113
|
+
// Ensure all pixel values are rounded to the nearest pixel.
|
114
|
+
@if type-of($value) == number and not unitless($value) and (unit($value) == px or unit($value) == rem) {
|
115
|
+
@if unit($value) == px {
|
116
|
+
$px-values: join($px-values, round($value));
|
117
|
+
$rem-values: join($rem-values, convert-length($value, rem));
|
118
|
+
}
|
119
|
+
@else {
|
120
|
+
$px-values: join($px-values, round(convert-length($value, px)));
|
121
|
+
$rem-values: join($rem-values, $value);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
@else {
|
125
|
+
$px-values: join($px-values, $value);
|
126
|
+
$rem-values: join($rem-values, $value);
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
// Use pixel fallback for browsers that don't understand rem units.
|
131
|
+
@if $use-px-fallback {
|
132
|
+
#{$property}: $px-values;
|
133
|
+
}
|
134
|
+
|
135
|
+
// Use rem values for everyone else (overrides pixel values).
|
136
|
+
#{$property}: $rem-values;
|
137
|
+
}
|
metadata
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picasso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: true
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
|
8
|
+
- 6
|
9
|
+
- beta
|
10
|
+
- 1
|
11
|
+
version: 0.3.6.beta.1
|
10
12
|
platform: ruby
|
11
13
|
authors:
|
12
14
|
- Leandro D'Onofrio
|
@@ -14,7 +16,7 @@ autorequire:
|
|
14
16
|
bindir: bin
|
15
17
|
cert_chain: []
|
16
18
|
|
17
|
-
date: 2012-08-
|
19
|
+
date: 2012-08-14 00:00:00 -03:00
|
18
20
|
default_executable:
|
19
21
|
dependencies:
|
20
22
|
- !ruby/object:Gem::Dependency
|
@@ -94,6 +96,7 @@ files:
|
|
94
96
|
- docs/picasso-utils-_clearfix.html
|
95
97
|
- docs/picasso-utils-_grid.html
|
96
98
|
- docs/picasso-utils-_ie.html
|
99
|
+
- docs/picasso-utils-_rem.html
|
97
100
|
- docs/picasso-utils-_sprite.html
|
98
101
|
- docs/previews.js
|
99
102
|
- docs/resources/docs.jade
|
@@ -124,6 +127,7 @@ files:
|
|
124
127
|
- stylesheets/picasso/utils/_clearfix.scss
|
125
128
|
- stylesheets/picasso/utils/_grid.scss
|
126
129
|
- stylesheets/picasso/utils/_ie.scss
|
130
|
+
- stylesheets/picasso/utils/_rem.scss
|
127
131
|
- stylesheets/picasso/utils/_sprite.scss
|
128
132
|
- templates/project/manifest.rb
|
129
133
|
has_rdoc: true
|
@@ -133,7 +137,7 @@ licenses: []
|
|
133
137
|
post_install_message: "\n\n\
|
134
138
|
##################################################\n\
|
135
139
|
## Picasso - Sass/Compass Framework\n\n\
|
136
|
-
## Versi\xC3\xB3n: 0.3.
|
140
|
+
## Versi\xC3\xB3n: 0.3.6.beta.1\n\
|
137
141
|
## Documentaci\xC3\xB3n: http://dl.dropbox.com/u/54126/picasso/docs/index.html\n\
|
138
142
|
## CHANGELOG: http://dl.dropbox.com/u/54126/picasso/docs/index.html#changelog\n\
|
139
143
|
##################################################\n\n"
|
@@ -150,11 +154,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
154
|
version: "0"
|
151
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
156
|
requirements:
|
153
|
-
- - "
|
157
|
+
- - ">"
|
154
158
|
- !ruby/object:Gem::Version
|
155
159
|
segments:
|
156
|
-
-
|
157
|
-
|
160
|
+
- 1
|
161
|
+
- 3
|
162
|
+
- 1
|
163
|
+
version: 1.3.1
|
158
164
|
requirements: []
|
159
165
|
|
160
166
|
rubyforge_project:
|