From f6f72d4b22ceeddaaf06666e132e06b2bc6b3c22 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 21 Jan 2012 15:22:42 +0200 Subject: [PATCH] per line comment improved --- app/assets/stylesheets/commits.css.scss | 36 +++++++++++++++++++++--- app/assets/stylesheets/projects.css.scss | 27 ------------------ app/views/notes/_form.html.haml | 2 +- app/views/notes/_per_line_form.html.haml | 4 +-- 4 files changed, 35 insertions(+), 34 deletions(-) diff --git a/app/assets/stylesheets/commits.css.scss b/app/assets/stylesheets/commits.css.scss index b78088f7..b1fa9c18 100644 --- a/app/assets/stylesheets/commits.css.scss +++ b/app/assets/stylesheets/commits.css.scss @@ -148,16 +148,44 @@ ul.bordered-list li:last-child { border:none } } .per_line_form { - background: #79C3E0; + font-family: "Helvetica", sans-serif; + background: #2FA0BB; + + td { + padding:0; + } form { - width: 743px; + margin:5px; + width: 756px; border: 1px solid #CCC; padding: 20px; background: white; } +} - .hide-button { - color:#c33; + +tr.line_notes_row { + font-family: "Helvetica", sans-serif; + &:hover { + background:none; + } + td { + margin:0px; + padding:0px; + border-bottom:1px solid #DEE2E3; + + + ul { + display:block; + list-style:none; + margin:0px; + padding:0px; + + li { + border-top:1px solid #DEE2E3; + padding:10px; + } + } } } diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index eae9383a..c9bba0c1 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -566,33 +566,6 @@ a.project-update.titled { } -tr.line_notes_row { - &:hover { - background:none; - } - td { - margin:0px; - padding:0px; - border-bottom:1px solid #DEE2E3; - - - ul { - display:block; - list-style:none; - margin:0px; - padding:0px; - - li { - border-top:1px solid #DEE2E3; - padding:10px; - - .delete-note { - display:none; - } - } - } - } -} .new-project-hodler { padding:20px; diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index 65af82b3..95a3b01a 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -34,4 +34,4 @@ .clear %br - = f.submit 'Add note', :class => "grey-button", :id => "submit_note" + = f.submit 'Add note', :class => "positive-button", :id => "submit_note" diff --git a/app/views/notes/_per_line_form.html.haml b/app/views/notes/_per_line_form.html.haml index 02bbecd0..72989320 100644 --- a/app/views/notes/_per_line_form.html.haml +++ b/app/views/notes/_per_line_form.html.haml @@ -21,9 +21,9 @@ .clear %br - = f.submit 'Add note', :class => "grey-button", :id => "submit_note" + = f.submit 'Add note', :class => "positive-button", :id => "submit_note" .right - = link_to "remove", "#", :class => "hide-button" + = link_to "Close", "#", :class => "grey-button hide-button" :javascript $(function(){