spacers_and_dividers 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -3
- data/lib/spacers_and_dividers/version.rb +1 -1
- data/spacers_and_dividers.gemspec +0 -1
- metadata +2 -18
data/README.md
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/spacers_and_dividers.png)](http://badge.fury.io/rb/spacers_and_dividers)
|
4
4
|
|
5
|
-
Spacers and Dividers is my own replacement for ```<hr/>``` and ```<br/>``` with
|
6
|
-
tags with creative touch that you can also use in your projects.
|
5
|
+
Spacers and Dividers is my own replacement for ```<hr/>``` and ```<br/>``` tags with creative touch (still in progress) that you can also use in your projects.
|
7
6
|
|
8
7
|
## Installation
|
9
8
|
|
@@ -21,9 +20,27 @@ Or install it yourself as:
|
|
21
20
|
|
22
21
|
## Usage
|
23
22
|
|
24
|
-
|
23
|
+
The vertical spacer is the only available feature as of v1. We're still working on the awesome dividers. :)
|
24
|
+
To start using it, just create a ```<div class='vspacer-[PREFERRED HEIGHT]'></div>``` and the
|
25
25
|
wizards will automatically do the spacing. (Without the brackets ofcourse)
|
26
26
|
|
27
|
+
Set it up
|
28
|
+
|
29
|
+
# In your /application.js file add this line. If an error occurs, just restart your server.
|
30
|
+
|
31
|
+
//= require spacer
|
32
|
+
|
33
|
+
Example
|
34
|
+
|
35
|
+
<div class="vspacer-1000"></div>
|
36
|
+
<h1> br sucks vspacer rocks! </h1>
|
37
|
+
<p> vspacer will generate a 1000px height </p>
|
38
|
+
|
39
|
+
|
40
|
+
## Includes
|
41
|
+
|
42
|
+
[DomReady] - The smallest subset possible from jQuery to support dom Ready event.
|
43
|
+
|
27
44
|
## TODOS
|
28
45
|
|
29
46
|
1. Stylized Dividers
|
@@ -46,3 +63,4 @@ Or install it yourself as:
|
|
46
63
|
|
47
64
|
|
48
65
|
[LICENSE]: http://github.com/rbmrclo/spacers_and_dividers/blob/master/LICENSE.txt
|
66
|
+
[DomReady]: https://code.google.com/p/domready/
|
@@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "railties", "~> 3.1"
|
22
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
23
22
|
spec.add_development_dependency "rake"
|
24
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spacers_and_dividers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: railties
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '3.1'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.1'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: bundler
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|