[Bps-public-commit] App-Changeloggr branch, master, updated. 418acfb39dca9fca0fa06833053bcb1279e5973d

Alex M Vandiver alexmv at bestpractical.com
Tue Apr 7 14:21:58 EDT 2009


The branch, master has been updated
       via  418acfb39dca9fca0fa06833053bcb1279e5973d (commit)
      from  8bb86dab83854de74ac4a98d671a852e941f0e28 (commit)

Summary of changes:
 lib/App/Changeloggr/View.pm  |    1 +
 share/web/static/css/app.css |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 418acfb39dca9fca0fa06833053bcb1279e5973d
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Tue Apr 7 14:21:03 2009 -0400

    Don't adjust margins on all buttons, only vote buttons
    
    Non-vote buttons need the margin-left: in order to line up with the
    input boxes in forms.  Hence, add a 'vote' class to voting buttons,
    and only CSS the margins on those.

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index e9142e8..12c42e3 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -154,6 +154,7 @@ sub show_vote_form {
             render_action $vote, ['change_id'];
             while (my $valid_tag = $valid_tags->next) {
                 $vote->button(
+                    class => "vote",
                     label => $valid_tag->text,
                     key_binding => $valid_tag->hotkey,
                     onclick => { submit => $vote, refresh_self => 1 },
diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
index 1d46c28..ecaf45e 100644
--- a/share/web/static/css/app.css
+++ b/share/web/static/css/app.css
@@ -37,6 +37,9 @@ input.button {
   color: #ddd;
   -moz-border-radius: 5px; -webkit-border-radius: 5px;
   padding: 0.5em;
+}
+
+input.button.vote {
   margin: 0.3em;
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list