From 2562055206cca5d4678207b25a566a2efbf900f3 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 31 Aug 2014 18:48:53 +0300 Subject: [PATCH] More CSS tweaks --- app/assets/stylesheets/forms.css.scss | 22 +++++++++++++++------- app/views/devise/sessions/new.html.slim | 2 +- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/forms.css.scss b/app/assets/stylesheets/forms.css.scss index 99199a3..167ea32 100644 --- a/app/assets/stylesheets/forms.css.scss +++ b/app/assets/stylesheets/forms.css.scss @@ -16,14 +16,22 @@ float: left; } -.input input, .input textarea, .input select { - font-size: 1em; - width: 20em; - float: left; +.input { + input.string, input.email, input.password, select.select, input.numeric { + font-size: 1em; + width: 20em; + float: left; + } + + textarea { + height: 15em; + width: 50em; + } + } -.input textarea { - height: 8em; +.input label.boolean { + margin-left: 12em; } .input .hint, .input .error { @@ -117,4 +125,4 @@ .btn-link-large { font-size: 2em; -} \ No newline at end of file +} diff --git a/app/views/devise/sessions/new.html.slim b/app/views/devise/sessions/new.html.slim index 996b085..fc125ce 100644 --- a/app/views/devise/sessions/new.html.slim +++ b/app/views/devise/sessions/new.html.slim @@ -1,6 +1,6 @@ h2.entry-title Вход -= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| += simple_form_for(resource, as: resource_name, url: session_path(resource_name), ) do |f| .form-inputs = f.input :email, required: false, autofocus: true, hint: false = f.input :password, required: false, hint: false