From d005712662355adc1f70b23ae36e10ae8b044b10 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 18 May 2016 09:11:08 +0200 Subject: [PATCH] fix social links position & website icon --- app/assets/javascripts/directives/socialLink.coffee.erb | 5 +++++ app/assets/stylesheets/app.layout.scss | 2 +- app/assets/templates/shared/_social_link.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/directives/socialLink.coffee.erb b/app/assets/javascripts/directives/socialLink.coffee.erb index 55ee01445..9d49f0bca 100644 --- a/app/assets/javascripts/directives/socialLink.coffee.erb +++ b/app/assets/javascripts/directives/socialLink.coffee.erb @@ -12,6 +12,11 @@ Application.Directives.directive 'socialLink', [ -> else if scope.network == 'echosciences' scope.image = "<%= asset_path('social/echosciences.png') %>" scope.altText = 'E)' + else + if scope.network == 'website' + scope.faClass = 'fa-globe' + else + scope.faClass = 'fa-'+scope.network.replace('_', '-') } ] diff --git a/app/assets/stylesheets/app.layout.scss b/app/assets/stylesheets/app.layout.scss index 07d5c9c93..33a21e6f7 100644 --- a/app/assets/stylesheets/app.layout.scss +++ b/app/assets/stylesheets/app.layout.scss @@ -532,7 +532,7 @@ body.container{ } .social-links { - max-width: 133px; + width: 133px; display: inline-block; text-align: left; diff --git a/app/assets/templates/shared/_social_link.html b/app/assets/templates/shared/_social_link.html index efbd5f10c..c92c1f84f 100644 --- a/app/assets/templates/shared/_social_link.html +++ b/app/assets/templates/shared/_social_link.html @@ -1,4 +1,4 @@ {{altText}} - + \ No newline at end of file