From 32df12ee322bbe07b11758b87599ba192e4515d4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 9 Jul 2014 23:28:37 -0400 Subject: clean up some styles and form stuff Just look at the diff. --- app/assets/stylesheets/bootstrapify.scss | 6 ++++-- app/assets/stylesheets/scaffolds.scss | 22 ++++++++++++++++------ 2 files changed, 20 insertions(+), 8 deletions(-) (limited to 'app/assets') diff --git a/app/assets/stylesheets/bootstrapify.scss b/app/assets/stylesheets/bootstrapify.scss index 3ee7314..316847a 100644 --- a/app/assets/stylesheets/bootstrapify.scss +++ b/app/assets/stylesheets/bootstrapify.scss @@ -30,7 +30,7 @@ } button, -a[role="button"], +*[role="button"], input[type="submit"], input[type="reset"], input[type="button"] { @@ -99,10 +99,12 @@ header nav { form { .field { @extend .form-group; + .field_with_errors { + display: inline !important; + } } .field_with_errors { @extend .has-error; - display: inline; } } diff --git a/app/assets/stylesheets/scaffolds.scss b/app/assets/stylesheets/scaffolds.scss index 08767ce..a223672 100644 --- a/app/assets/stylesheets/scaffolds.scss +++ b/app/assets/stylesheets/scaffolds.scss @@ -32,10 +32,12 @@ .simple-input-group { white-space: nowrap; display: table; - .btn, .form-control { + span { display: table-cell; + } + .btn, .form-control { + display: table-cell !important; &:not(:last-child) { - float: left; @include border-right-radius(0); } &:not(:first-child) { @@ -60,13 +62,15 @@ form#search { - @extend .navbar-right; - @extend .simple-input-group; + @extend .navbar-left; + div { + @extend .simple-input-group; + } } #user-actions { @extend .navbar-btn; - @extend .navbar-left; + @extend .navbar-right; @extend .simple-input-group; span { padding-right: .25em; @@ -154,10 +158,16 @@ form#search { } */ -form[role="button"] { +form.button_to, form.button_to div { display: inline; } +div.field span.help-block { + float: right; + margin-top: 0; + margin-bottom: 0; +} + /* Elements *********************************************************/ footer { -- cgit v1.2.3