Permalink
Browse files

Add a 'buttons-center' which does not float and uses auto-margin.

  • Loading branch information...
1 parent 1b920cb commit 7e612a8846acc48da3ea1b551a5271068c7fe990 @mheffner mheffner committed with Aug 4, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 _formtastic_base.sass
View
@@ -34,6 +34,7 @@
!stacked_button_align="buttons-left"
// "buttons-left" = float submit button left
// "buttons-right" = float submit button right
+// "buttons-center" = no float, auto width
// "buttons-full" = submit button matches input width
//
!stacked_select_width = "select-auto"
@@ -77,6 +78,7 @@
!floated_button_align = "buttons-left"
// "buttons-left" = float submit button left
// "buttons-right" = float submit button right
+// "buttons-center" = no float, auto width
// "buttons-full" = submit button matches input width
//
!floated_label_text_align = "left"
@@ -291,6 +293,8 @@
:float left
@if !stacked_button_align == "buttons-right"
:float right
+ @if !stacked_button_align == "buttons-center"
+ :float none
:width auto
:clear none
:display inline

0 comments on commit 7e612a8

Please sign in to comment.