From 6706ff8bdc0182df0332ac182b5d22d163de709d Mon Sep 17 00:00:00 2001 From: pollseed Date: Sat, 12 Sep 2015 19:38:36 +0900 Subject: [PATCH] fix layout to main --- app/assets/stylesheets/application.css | 2 +- app/assets/stylesheets/home.scss | 2 +- app/views/layouts/application.html.erb | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 4d94f29..eada989 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -37,7 +37,7 @@ .twitter_layout { margin-top: 29px; - margin-right: 10px; + margin-right: 30px; float: right; } diff --git a/app/assets/stylesheets/home.scss b/app/assets/stylesheets/home.scss index 9aa7d62..54ec193 100644 --- a/app/assets/stylesheets/home.scss +++ b/app/assets/stylesheets/home.scss @@ -18,7 +18,7 @@ .landing_text { position: absolute; top: 10%; - left: -15%; + left: 0%; right: 0; bottom: 0; margin: auto; diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 7619527..8f67abf 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -22,7 +22,9 @@ <%= link_to 'HashTagの登録', hash_tags_path %> | <%= link_to "ログアウト", destroy_user_session_path, method: :delete %> <% else %> - <%= link_to image_tag("signin_with_twitter_logo.png", :size => "188x30", :class => "twitter_layout"), user_omniauth_authorize_path(:twitter) %> + + <%= link_to image_tag("signin_with_twitter_logo.png", :size => "188x30", :class => "twitter_layout"), user_omniauth_authorize_path(:twitter) %> + <% end %>