social-share-button 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelogs.md +4 -0
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/lib/assets/images/sprites/social-share-button@2x/baidu.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/delicious.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/douban.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/email.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/facebook.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/flickr.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/google_bookmark.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/google_plus.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/kaixin001.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/qq.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/renren.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/tqq.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/twitter.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x/weibo.png +0 -0
- data/lib/assets/images/sprites/social-share-button@2x.png +0 -0
- data/lib/assets/stylesheets/social-share-button.scss +17 -0
- data/lib/social_share_button/version.rb +1 -1
- metadata +17 -4
- data/.DS_Store +0 -0
- data/lib/assets/images/sprites/.DS_Store +0 -0
data/Changelogs.md
CHANGED
data/README.md
CHANGED
@@ -18,7 +18,7 @@ This is a gem to helper you quick create a share feature in you Rails apps.
|
|
18
18
|
|
19
19
|
## Screenshot
|
20
20
|
|
21
|
-
|
21
|
+
<img src="http://l.ruby-china.org/photo/85fa930a43d622ba9653eb0f86df207c.png" width="220px" />
|
22
22
|
|
23
23
|
## Install
|
24
24
|
|
data/Rakefile
CHANGED
@@ -15,6 +15,7 @@ namespace :assets do
|
|
15
15
|
SpriteFactory.run!("lib/assets/images/sprites/#{dir_name}",
|
16
16
|
:layout => :packed,
|
17
17
|
:output_style => "lib/assets/stylesheets/#{dir_name}.scss",
|
18
|
+
:nocomments => true,
|
18
19
|
:selector => ".#{dir_name}-") do |images|
|
19
20
|
result = []
|
20
21
|
images.each do |img|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -40,3 +40,20 @@
|
|
40
40
|
.social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -32px no-repeat }
|
41
41
|
.social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -48px no-repeat }
|
42
42
|
.social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -48px no-repeat }
|
43
|
+
|
44
|
+
@media only screen and (-webkit-device-pixel-ratio: 2){
|
45
|
+
.social-share-button-baidu { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px 0px no-repeat; background-size:64px 64px; }
|
46
|
+
.social-share-button-delicious { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px 0px no-repeat; background-size:64px 64px; }
|
47
|
+
.social-share-button-douban { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -16px no-repeat; background-size:64px 64px; }
|
48
|
+
.social-share-button-email { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -16px no-repeat; background-size:64px 64px; }
|
49
|
+
.social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px 0px no-repeat; background-size:64px 64px; }
|
50
|
+
.social-share-button-flickr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -16px no-repeat; background-size:64px 64px; }
|
51
|
+
.social-share-button-google_bookmark { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -32px no-repeat; background-size:64px 64px; }
|
52
|
+
.social-share-button-google_plus { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -32px no-repeat; background-size:64px 64px; }
|
53
|
+
.social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -32px no-repeat; background-size:64px 64px; }
|
54
|
+
.social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px 0px no-repeat; background-size:64px 64px; }
|
55
|
+
.social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -16px no-repeat; background-size:64px 64px; }
|
56
|
+
.social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -32px no-repeat; background-size:64px 64px; }
|
57
|
+
.social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -48px no-repeat; background-size:64px 64px; }
|
58
|
+
.social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -48px no-repeat; background-size:64px 64px; }
|
59
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social-share-button
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -35,13 +35,11 @@ executables: []
|
|
35
35
|
extensions: []
|
36
36
|
extra_rdoc_files: []
|
37
37
|
files:
|
38
|
-
- .DS_Store
|
39
38
|
- .gitignore
|
40
39
|
- Changelogs.md
|
41
40
|
- Gemfile
|
42
41
|
- README.md
|
43
42
|
- Rakefile
|
44
|
-
- lib/assets/images/sprites/.DS_Store
|
45
43
|
- lib/assets/images/sprites/social-share-button.png
|
46
44
|
- lib/assets/images/sprites/social-share-button/.DS_Store
|
47
45
|
- lib/assets/images/sprites/social-share-button/baidu.png
|
@@ -58,6 +56,21 @@ files:
|
|
58
56
|
- lib/assets/images/sprites/social-share-button/tqq.png
|
59
57
|
- lib/assets/images/sprites/social-share-button/twitter.png
|
60
58
|
- lib/assets/images/sprites/social-share-button/weibo.png
|
59
|
+
- lib/assets/images/sprites/social-share-button@2x.png
|
60
|
+
- lib/assets/images/sprites/social-share-button@2x/baidu.png
|
61
|
+
- lib/assets/images/sprites/social-share-button@2x/delicious.png
|
62
|
+
- lib/assets/images/sprites/social-share-button@2x/douban.png
|
63
|
+
- lib/assets/images/sprites/social-share-button@2x/email.png
|
64
|
+
- lib/assets/images/sprites/social-share-button@2x/facebook.png
|
65
|
+
- lib/assets/images/sprites/social-share-button@2x/flickr.png
|
66
|
+
- lib/assets/images/sprites/social-share-button@2x/google_bookmark.png
|
67
|
+
- lib/assets/images/sprites/social-share-button@2x/google_plus.png
|
68
|
+
- lib/assets/images/sprites/social-share-button@2x/kaixin001.png
|
69
|
+
- lib/assets/images/sprites/social-share-button@2x/qq.png
|
70
|
+
- lib/assets/images/sprites/social-share-button@2x/renren.png
|
71
|
+
- lib/assets/images/sprites/social-share-button@2x/tqq.png
|
72
|
+
- lib/assets/images/sprites/social-share-button@2x/twitter.png
|
73
|
+
- lib/assets/images/sprites/social-share-button@2x/weibo.png
|
61
74
|
- lib/assets/javascripts/social-share-button.coffee
|
62
75
|
- lib/assets/stylesheets/social-share-button.scss
|
63
76
|
- lib/generators/social_share_button/install_generator.rb
|
data/.DS_Store
DELETED
Binary file
|
Binary file
|