Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tooltips for every service.

  • Loading branch information...
commit 298f538a39763837f93de831a0d39fce04bb6cc5 1 parent c0a6cab
@WanderingMatt authored
View
2  app/helpers/accounts_helper.rb
@@ -2,7 +2,7 @@ module AccountsHelper
def link_to_service name, service
case service.name
when 'twitter'
- link_to name, 'http://twitter.com/' + service.key, :title => 'Twitter', :class => 'tool_tip'
+ link_to name, 'http://twitter.com/' + service.key, :title => 'Twitter'
when 'friendfeed'
link_to name, 'http://friendfeed.com/' + service.key, :title => 'FriendFeed'
when 'mixi'
View
8 app/views/layouts/application.html.erb
@@ -17,18 +17,24 @@
itemSelector: '.card'
});
- $('a.tool_tip').qtip({
+ $('.services a').qtip({
position: {
corner: {
target: 'bottomMiddle',
tooltip: 'topMiddle'
+ },
+ adjust: {
+ y: 5
}
},
style: {
+ background: '#222',
border: {
color: '#222',
radius: 3
},
+ color: '#fff',
+ font: 'italic 13px/14px Cambria, Georgia, Times, serif',
tip: {
corner: 'topMiddle',
color: '#222',
Please sign in to comment.
Something went wrong with that request. Please try again.