Commit eb5fa8344e573851fa1c84a262de84ab379b0e59
1 parent
06e91674
Exists in
master
and in
4 other branches
correct padding in issue form and in profile form
Showing
3 changed files
with
19 additions
and
8 deletions
Show diff stats
app/assets/stylesheets/style.scss
... | ... | @@ -87,6 +87,17 @@ h2{margin: 1.5em 0} |
87 | 87 | /* Forms */ |
88 | 88 | input[type="text"]:focus, input[type="password"]:focus { outline: none; } |
89 | 89 | input.text{border: 1px solid #ccc; border-radius: 4px; display: block; padding: 10px} |
90 | + | |
91 | +.form-row{ | |
92 | + padding: 0px 0px 10px 0px; | |
93 | +} | |
94 | + | |
95 | +.form-row label{ | |
96 | + font-weight:bold; | |
97 | + display: inline-block; | |
98 | + padding: 0px 0px 5px 0px; | |
99 | +} | |
100 | + | |
90 | 101 | /* eo Forms */ |
91 | 102 | |
92 | 103 | /* Tables */ | ... | ... |
app/views/issues/_form.html.haml
... | ... | @@ -5,21 +5,21 @@ |
5 | 5 | - @issue.errors.full_messages.each do |msg| |
6 | 6 | %li= msg |
7 | 7 | |
8 | - .span-8 | |
8 | + .form-row | |
9 | 9 | = f.label :title |
10 | 10 | = f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255 |
11 | - .span-8 | |
11 | + .form-row | |
12 | 12 | = f.label :assignee_id |
13 | 13 | = f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }) |
14 | - .span-1 | |
14 | + .form-row | |
15 | 15 | = f.label :critical, "Critical" |
16 | 16 | %br |
17 | 17 | = f.check_box :critical |
18 | 18 | - unless @issue.new_record? |
19 | - .span-2.right | |
19 | + .form-row | |
20 | 20 | = f.label :closed |
21 | 21 | %br |
22 | 22 | = f.check_box :closed |
23 | 23 | %hr |
24 | - .span-6 | |
24 | + .form-row | |
25 | 25 | = f.submit 'Save', :class => "lbutton vm" | ... | ... |
app/views/profile/show.html.haml
... | ... | @@ -16,15 +16,15 @@ |
16 | 16 | - @user.errors.full_messages.each do |msg| |
17 | 17 | %li= msg |
18 | 18 | |
19 | - .div | |
19 | + .form-row | |
20 | 20 | = f.label :skype |
21 | 21 | %br |
22 | 22 | = f.text_field :skype |
23 | - .div | |
23 | + .form-row | |
24 | 24 | = f.label :linkedin |
25 | 25 | %br |
26 | 26 | = f.text_field :linkedin |
27 | - .div | |
27 | + .form-row | |
28 | 28 | = f.label :twitter |
29 | 29 | %br |
30 | 30 | = f.text_field :twitter | ... | ... |