semantic-mixins 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d39805c42d4449d0242973cdd6208946c8129a1f
4
- data.tar.gz: c8adb3314383b6df2f01ba16337bfc202c72056d
3
+ metadata.gz: d98c010f43f9a54f77013654d6e6c904066fa4b8
4
+ data.tar.gz: 5566ae9a34674701936eb8764f937a9b54d6072d
5
5
  SHA512:
6
- metadata.gz: 8327cf51214a902c44e53ed26df2ee37a4bcb9e4e32f72be5fdc99b558d3c7abbd917eb9541c91a7161daccb27814efe11913392d6bfb2497f5a3d6179bb3ec7
7
- data.tar.gz: 5366b597936493138fb5ebbb0682b6a2f1e245c07257d8f2e359317088aead6f83da1d40446e8bd28fe0177517c88b55aa17483b4d15fffa685e03880b09ddfe
6
+ metadata.gz: ac3dbf55c626ee415d208e3016f809f12b5cf1b246a1b1a20ef606714993365ddb30612fe8377e58f8fdd30d61254b54868bff244fec4cf820b34344f1da15c7
7
+ data.tar.gz: 05ea9addae3cfe3ffbf7df9dec85243b3c4e42cac500683f9684c5a51344ce290dab7bd2d25f485f29d0b57a45bb202a7c34ee3c8cb67667e8213988f683d49c
@@ -1,33 +1,4 @@
1
1
  // This code isn't yet fully tested
2
-
3
- // CUSTOM HTML RESETS
4
- html
5
- text-rendering: optimizeLegibility
6
- -webkit-font-smoothing: antialiased
7
-
8
- = css-techniques($font-size: 16)
9
-
10
- html
11
- font-size: relative-size($font-size,16)
12
-
13
- body
14
- font-size: 1em
15
- line-height: 1.4
16
-
17
- // Remove the gap between images and the bottom of their containers: h5bp.com/i/440
18
- img
19
- vertical-align: middle
20
-
21
- // Remove default fieldset styles.
22
- fieldset
23
- border: 0
24
- margin: 0
25
- padding: 0
26
-
27
- // Allow only vertical resizing of textareas.
28
- textarea
29
- resize: vertical
30
-
31
2
  // USEFULL MIXINS
32
3
  @function relative-size($size,$context)
33
4
  @return #{$size/$context}em
@@ -93,6 +64,11 @@ html
93
64
  #{$direction}: 50%
94
65
  margin-#{$direction}: - ($width / 2) - $offset
95
66
 
67
+ = vertical-align-child($selector)
68
+ display: table
69
+ & #{$selector}
70
+ vertical-align: middle
71
+
96
72
  = move($distance, $direction: bottom)
97
73
  position: relative
98
74
  #{$direction}: - $distance
@@ -104,4 +80,37 @@ html
104
80
  src: url('#{$fontFileName}.eot')
105
81
  src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'), url('#{$fontFileName}.svg##{$fontName}') format('svg'), url('#{$fontFileName}.woff') format('woff'), url('#{$fontFileName}.ttf') format('truetype')
106
82
  font-weight: $weight
107
- font-style: $style
83
+ font-style: $style
84
+
85
+ = full-height-columns($selector: '.column', $method: "table", $max-size: 999em)
86
+ @if $method == "table"
87
+ display: table
88
+ & #{$selector}
89
+ display: table-cell
90
+ @else
91
+ overflow: hidden
92
+ & #{$selector}
93
+ margin-bottom: - $max-size
94
+ padding-bottom: $max-size
95
+ float: left
96
+
97
+ = stick-to($direction: bottom, $position: absolute, $size: false)
98
+ position: $position
99
+ @if $direction == bottom or $direction == top
100
+ @if $size
101
+ height: $size
102
+ left: 0
103
+ right: 0
104
+ @if $direction == left or $direction == right
105
+ @if $size
106
+ width: $size
107
+ top: 0
108
+ bottom: 0
109
+ #{$direction}: 0
110
+
111
+ = expand-to-fit($padding: 0, $position: absolute)
112
+ position: $position
113
+ top: $padding
114
+ right: $padding
115
+ bottom: $padding
116
+ left: $padding
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{semantic-mixins}
3
- s.version = "0.2.2"
3
+ s.version = "0.2.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
6
6
  s.authors = ["Gustavo Guichard", "Josemar David Luedke", "Rafael Barboza"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-mixins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Guichard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-14 00:00:00.000000000 Z
13
+ date: 2014-08-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: 1.3.5
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.1.0
111
+ rubygems_version: 2.4.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Some semantic mixins to enhance the compass plugin