From e5fa0bb127a5fda436a484a079604fc3b9098a48 Mon Sep 17 00:00:00 2001 From: Steven Verbeek Date: Sat, 24 Mar 2012 13:40:21 -0300 Subject: [PATCH] Started note attachment changes, and text changes --- app/assets/stylesheets/common.scss | 13 +++++-------- app/views/notes/_form.html.haml | 7 ++++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 7be151e1..a559a5ea 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1102,18 +1102,15 @@ p.time { .file_upload { position: absolute; - width: 100%; - height: 100%; + right:14px; + top:7px; + height: 30px; } div.attachments { position:relative; - width: 100px; - height: 30px; + width: 350px; + height: 40px; overflow:hidden; } - - label.large { - width:160px; - } } \ No newline at end of file diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index 725cff9c..2d92005d 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -24,10 +24,11 @@ .span8 %h5 Attachment: .clearfix - .attachments - %button.file_upload.btn "Upload File" + .attachments.breadcrumb + %span.file_name File name... + %button.file_upload.btn.primary Upload File .input= f.file_field :attachment, :class => "input-file" - %label.large{:for => "attachment"} "Any file less then 10 MB" + %span Any file less then 10 MB = f.submit 'Add Comment', :class => "btn primary", :id => "submit_note"