edgrid_rb 0.0.1.1 → 0.0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc9581bf9d1a2362b13223d2e96dbc7075685478
4
- data.tar.gz: 2392c5180605d003f9761165e9d9847f58643fac
3
+ metadata.gz: 5458a36f27020f513dd97eae3a3ab0e44908949c
4
+ data.tar.gz: 8659e4e7642783497377b78375169bbee207fa73
5
5
  SHA512:
6
- metadata.gz: 19ce526f4ee28f0c78fd56ea87a83865cc750776e7b49f326a0e9a8ec734f3b477dadd53ed5a61bbd0ff21cfc7b3f4d0a33b216fd4e235716be4687755c84021
7
- data.tar.gz: 0ed21d5da33087e7a041238d1aecab48718c8bf980842b09c4ae3d18f53a6204fbcb819bbcc62f9ca44624058e3241c7a8c26ac99cae960bf0d89026b00965cd
6
+ metadata.gz: f80ff3839d800c6355ef828218b7493d98fbf6547f940c9ec4632412d7926a05c816a4ad494a0b936275abc897b1a883b66f91eb939bffb71dfe27bf0e2b2e92
7
+ data.tar.gz: bedb15ebb99b63982cdf28de347f705103f7b3409f3d7224ba5981012914df5060dc4eac2ad2f26290c626e6ff01b9ec595e768b66411eb37d351298e259b71a
@@ -1,3 +1,3 @@
1
1
  module EdgridRb
2
- VERSION = "0.0.1.1"
2
+ VERSION = "0.0.1.2"
3
3
  end
@@ -14,7 +14,7 @@ body {
14
14
  }
15
15
 
16
16
  // Imágenes responsive
17
- img {
18
- max-width: 100%;
19
- height: auto;
20
- }
17
+ img {
18
+ max-width: 100%;
19
+ height: auto;
20
+ }
@@ -9,5 +9,6 @@
9
9
  font-size: 1rem;
10
10
  }
11
11
 
12
- // Mixin para crear cuadriculas
12
+ // Sin embargo, si trabaja con Sass, es recomendable usar
13
+ // el mixin para crear cuadriculas antes que este método
13
14
  // Buscarlo en el archivo _mixins.scss
@@ -1,4 +1,4 @@
1
- //Mixins para media queries
1
+ // Mixins para media queries
2
2
  // El parámetro es el nombre del breakpoint
3
3
  @mixin hasta($size){
4
4
  @media screen and (max-width: map-get($breakpoints,$size) - 1){
@@ -21,30 +21,41 @@
21
21
  // Mixins para cuadriculas
22
22
  // Se aplica contendor de la cuadricula.
23
23
  // Los parámetros son el selector de cada item y el número de columnas
24
+ // El tercer parámetro (opcional) es la separacion entre columnas (en porcentaje)
25
+ @mixin cuadricula($items,$columnas,$separacion:2%){
26
+ font-size : 0;
27
+ margin : 0;
28
+ padding : 0;
29
+ list-style : none; // por si el contenedor es un ul
24
30
 
25
- @mixin cuadricula($items,$columnas,$separacion){
26
- font-size : 0;
27
- margin : 0;
28
- padding : 0;
29
- list-style : none; // por si el contenedor es un ul
31
+ & > #{$items}, & > .#{$items}{
32
+ display : inline-block;
33
+ float : none;
34
+ font-size : 1rem;
35
+ width : (100% - $separacion * ($columnas - 1)) / $columnas;
36
+ margin-right : $separacion;
37
+ margin-bottom : $separacion;
38
+ vertical-align : top;
30
39
 
31
- & > #{$items}, & > .#{$items}{
32
- display : inline-block;
33
- float : none;
34
- font-size : 1rem;
35
- width : (100% - $separacion * ($columnas - 1)) / $columnas;
36
- margin-right : unquote($separacion + "%");
37
- vertical-align : top;
38
-
39
- &:nth-child(#{$columnas}n){
40
- margin-right: 0;
41
- }
40
+ &:nth-child(#{$columnas}n){
41
+ margin-right: 0;
42
42
  }
43
43
  }
44
+ }
44
45
 
45
46
  // Mixin para controlar el padding
46
47
  // El parámetro es por cuanto se va a multiplicar el padding base.
47
- @mixin padding($numero){
48
- padding-left: ($caja--separacion / 2) * $numero;
49
- padding-right: ($caja--separacion / 2) * $numero;
50
- }
48
+ @mixin padding($numero){
49
+ padding-left: ($caja--separacion / 2) * $numero;
50
+ padding-right: ($caja--separacion / 2) * $numero;
51
+ }
52
+
53
+ // Mixin para roporcion de aspecto, se le pasan tres parámetros
54
+ // Horizontal, Vertical y Ancho. Este ultimo es opcional, si no
55
+ // se pasa, se tomará el 100% de ancho por defecto.
56
+ @mixin proporcion($h,$v,$width:100){
57
+ width : unquote($width+"%");
58
+ height : 0;
59
+ overflow : hidden;
60
+ padding-bottom : unquote($width * ($v/$h) + "%");
61
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edgrid_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
4
+ version: 0.0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zetanova
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.4.5
116
+ rubygems_version: 2.4.6
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Ruby wrapper for EdGrid