From 20f6f0afa84bc9a1486643f7c5819da9a11d3227 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 1 Jun 2012 23:39:16 +1200 Subject: [PATCH] Tidied up css, removed inline css from github link --- app/assets/stylesheets/errbit.css | 4 ++-- app/assets/stylesheets/images/icons/github.png | Bin 0 -> 1983 bytes app/views/devise/sessions/new.html.haml | 2 +- public/images/github.png | Bin 1983 -> 0 bytes 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 app/assets/stylesheets/images/icons/github.png delete mode 100644 public/images/github.png diff --git a/app/assets/stylesheets/errbit.css b/app/assets/stylesheets/errbit.css index b0f2b5a..da91296 100644 --- a/app/assets/stylesheets/errbit.css +++ b/app/assets/stylesheets/errbit.css @@ -224,6 +224,8 @@ a.action { float: right; font-size: 0.9em;} padding-left: 47px; } +#action-bar span.github a { background: url(images/icons/github.png) no-repeat 6px 5px; } + /* Content */ #content { @@ -851,5 +853,3 @@ table.errs tr td.message .inline_comment em.commenter { .current.asc:after { content: ' ↑'; } .current.desc:after { content: ' ↓'; } - -span.github a { background: url(../images/github.png) no-repeat 5px 5px; } diff --git a/app/assets/stylesheets/images/icons/github.png b/app/assets/stylesheets/images/icons/github.png new file mode 100644 index 0000000..ab2adc4 Binary files /dev/null and b/app/assets/stylesheets/images/icons/github.png differ diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml index 9d13daf..5fd9caa 100644 --- a/app/views/devise/sessions/new.html.haml +++ b/app/views/devise/sessions/new.html.haml @@ -4,7 +4,7 @@ - if Errbit::Config.github_authentication - content_for :action_bar do %div.action-bar - %span.github= link_to "Sign in with GitHub", user_omniauth_authorize_path(:github), :style => 'background: url(/images/github.png) no-repeat 5px 5px' + %span.github= link_to "Sign in with GitHub", user_omniauth_authorize_path(:github) = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| .required diff --git a/public/images/github.png b/public/images/github.png deleted file mode 100644 index ab2adc4..0000000 Binary files a/public/images/github.png and /dev/null differ -- libgit2 0.21.2