Permalink
Browse files

Remove sass-rails dependency. (#115)

  • Loading branch information...
1 parent 102ca36 commit 930e432a422e1e8c16b28d4b7060ba7a0c167dd8 @jonkessler jonkessler committed with Dec 20, 2016
View
@@ -1,6 +1,7 @@
.DS_Store
*.gem
.bundle
+.idea
.rvmrc
Gemfile.lock
pkg/*
@@ -0,0 +1,114 @@
+.social-share-button .ssb-icon {
+ background-position: center center;
+ background-repeat: no-repeat;
+ background-size: 18px 18px;
+ display: inline-block;
+ height: 18px;
+ width: 18px;
+}
+
+.social-share-button .ssb-twitter {
+ background-image: url(<%= asset_path('social-share-button/twitter.svg') %>);
+}
+
+.social-share-button .ssb-facebook {
+ background-image: url(<%= asset_path('social-share-button/facebook.svg') %>);
+}
+
+.social-share-button .ssb-google_bookmark {
+ background-image: url(<%= asset_path('social-share-button/google_bookmark.svg') %>);
+}
+
+.social-share-button .ssb-google_plus {
+ background-image: url(<%= asset_path('social-share-button/google_plus.svg') %>);
+}
+
+.social-share-button .ssb-weibo {
+ background-image: url(<%= asset_path('social-share-button/weibo.svg') %>);
+}
+
+.social-share-button .ssb-qq {
+ background-image: url(<%= asset_path('social-share-button/qq.svg') %>);
+}
+
+.social-share-button .ssb-delicious {
+ background-image: url(<%= asset_path('social-share-button/delicious.svg') %>);
+}
+
+.social-share-button .ssb-linkedin {
+ background-image: url(<%= asset_path('social-share-button/linkedin.svg') %>);
+}
+
+.social-share-button .ssb-tumblr {
+ background-image: url(<%= asset_path('social-share-button/tumblr.svg') %>);
+}
+
+.social-share-button .ssb-pinterest {
+ background-image: url(<%= asset_path('social-share-button/pinterest.svg') %>);
+}
+
+.social-share-button .ssb-douban {
+ background-image: url(<%= asset_path('social-share-button/douban.svg') %>);
+}
+
+.social-share-button .ssb-wechat {
+ background-image: url(<%= asset_path('social-share-button/wechat.svg') %>);
+}
+
+.social-share-button .ssb-vkontakte {
+ background-image: url(<%= asset_path('social-share-button/vkontakte.svg') %>);
+}
+
+.social-share-button .ssb-xing {
+ background-image: url(<%= asset_path('social-share-button/xing.svg') %>);
+}
+
+.social-share-button .ssb-email {
+ background-image: url(<%= asset_path('social-share-button/email.svg') %>);
+}
+
+.social-share-button .ssb-reddit {
+ background-image: url(<%= asset_path('social-share-button/reddit.svg') %>);
+}
+
+.social-share-button .ssb-hacker_news {
+ background-image: url(<%= asset_path('social-share-button/hacker_news.svg') %>);
+}
+
+.ss-wechat-dialog {
+ width: 300px;
+ position: fixed;
+ background: #fff;
+ padding: 15px;
+ border-radius: 3px;
+ box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
+ z-index: 11001;
+ font-size: 14px;
+ line-height: 1.2em;
+}
+
+.ss-wechat-dialog .wechat-popup-header {
+ font-weight: bold;
+}
+
+.ss-wechat-dialog .wechat-dialog-qr {
+ text-align: center;
+ margin: 25px 0;
+}
+
+.ss-wechat-dialog .wechat-popup-close {
+ width: 16px;
+ height: 16px;
+ position: absolute;
+ right: 10px;
+ top: 10px;
+ color: #999;
+ text-decoration: none;
+ font-size: 16px;
+}
+
+.ss-wechat-dialog .wechat-popup-footer {
+ text-align: left;
+ line-height: 22px;
+ color: #666;
+}
@@ -1,58 +0,0 @@
-$size: 18px;
-
-.social-share-button {
- .ssb-icon {
- background-position: center center;
- background-repeat: no-repeat;
- background-size: $size $size;
- display: inline-block;
- height: $size;
- width: $size;
- }
-
- @each $site in twitter, facebook, google_bookmark, google_plus, weibo, qq,
- delicious, linkedin, tumblr, pinterest, douban, wechat, vkontakte,
- xing, email, reddit, hacker_news {
- .ssb-#{$site} {
- background-image: image-url('social-share-button/#{$site}.svg');
- }
- }
-}
-
-.ss-wechat-dialog {
- width: 300px;
- position: fixed;
- background: #fff;
- padding: 15px;
- border-radius: 3px;
- box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
- z-index: 11001;
- font-size: 14px;
- line-height: 1.2em;
-
- .wechat-popup-header {
- font-weight: bold;
- }
-
- .wechat-dialog-qr {
- text-align: center;
- margin: 25px 0px;
- }
-
- .wechat-popup-close {
- width: 16px;
- height: 16px;
- position: absolute;
- right: 10px;
- top: 10px;
- color: #999;
- text-decoration: none;
- font-size: 16px;
- }
-
- .wechat-popup-footer {
- text-align: left;
- line-height: 22px;
- color: #666;
- }
-}
@@ -17,12 +17,9 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- {bin}/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
-
# specify any dependencies here; for example:
s.files = Dir.glob("{bin,lib,config,app/assets/javascripts,app/assets/stylesheets,app/assets/images}/**/*")
s.files += %w(README.md CHANGELOG.md)
s.add_development_dependency "rails"
s.add_runtime_dependency "coffee-rails"
- s.add_runtime_dependency "sass-rails"
- # s.add_runtime_dependency "rest-client"
end

0 comments on commit 930e432

Please sign in to comment.