Commit acc21d30 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Increase input padding. Minor ui fixes

parent f79b2100
...@@ -34,6 +34,10 @@ ...@@ -34,6 +34,10 @@
&.ui-box-show { &.ui-box-show {
margin:20px 0; margin:20px 0;
background: #FFF; background: #FFF;
.control-group {
margin-bottom: 0;
}
} }
&.ui-box-danger { &.ui-box-danger {
......
...@@ -12,3 +12,18 @@ input { ...@@ -12,3 +12,18 @@ input {
} }
} }
.control-group {
.control-label {
padding-top: 6px;
}
.controls {
input, textarea {
padding: 6px 10px;
}
input[type="radio"], input[type="checkbox"] {
margin-top: 6px;
}
}
}
.new_project, .new_project,
.edit_project { .edit_project {
.project_name_holder {
input,
label {
font-size: 16px;
line-height: 20px;
padding: 8px;
}
}
.adv_settings {
h6 { margin-left: 40px; }
}
fieldset.features { fieldset.features {
.control-label { .control-label {
font-weight: bold; font-weight: bold;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
.control-group .control-group
= f.label :url, "URL:" = f.label :url, "URL:"
.controls .controls
= f.text_field :url, class: "text_field xxlarge input-xpadding" = f.text_field :url, class: "text_field input-xxlarge input-xpadding"
   
= f.submit "Add System Hook", class: "btn btn-create" = f.submit "Add System Hook", class: "btn btn-create"
%hr %hr
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
It can be used for atom feed or API It can be used for atom feed or API
%p.cgray %p.cgray
- if current_user.private_token - if current_user.private_token
= text_field_tag "token", current_user.private_token, class: "input-xxlarge large_text" = text_field_tag "token", current_user.private_token, class: "input-xxlarge large_text input-xpadding"
= f.submit 'Reset', confirm: "Are you sure?", class: "btn btn-primary btn-build-token" = f.submit 'Reset', confirm: "Are you sure?", class: "btn btn-primary btn-build-token"
- else - else
%span You don`t have one yet. Click generate to fix it. %span You don`t have one yet. Click generate to fix it.
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
.control-group .control-group
= f.label :title = f.label :title
.controls= f.text_field :title .controls= f.text_field :title, class: "input-xlarge"
.control-group .control-group
= f.label :key = f.label :key
.controls .controls
%p.light %p.light
Paste your public key here. Read more about how generate it #{link_to "here", help_ssh_path} Paste your public key here. Read more about how generate it #{link_to "here", help_ssh_path}
= f.text_area :key, class: [:xxlarge, :thin_area] = f.text_area :key, class: "input-xxlarge thin_area"
.form-actions .form-actions
......
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
.control-group .control-group
= f.label :title = f.label :title
.controls= f.text_field :title .controls= f.text_field :title, class: 'input-xlarge'
.control-group .control-group
= f.label :key = f.label :key
.controls .controls
= f.text_area :key, class: [:xxlarge, :thin_area] %p.light
%p.hint
Paste a machine public key here. Read more about how generate it Paste a machine public key here. Read more about how generate it
= link_to "here", help_ssh_path = link_to "here", help_ssh_path
= f.text_area :key, class: "input-xxlarge thin_area"
.form-actions .form-actions
= f.submit 'Create', class: "btn-create btn" = f.submit 'Create', class: "btn-create btn"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.control-group .control-group
= f.label :url, "URL:" = f.label :url, "URL:"
.controls .controls
= f.text_field :url, class: "text_field xxlarge input-xpadding", placeholder: 'http://example.com/trigger-ci.json' = f.text_field :url, class: "text_field input-xxlarge input-xpadding", placeholder: 'http://example.com/trigger-ci.json'
   
= f.submit "Add Web Hook", class: "btn btn-create" = f.submit "Add Web Hook", class: "btn btn-create"
%hr %hr
......
.project-edit-container %p.slead
New projects are private by default. You choose who can see the project and commit to repository.
%hr
.project-edit-container.prepend-top-10
.project-edit-errors .project-edit-errors
= render 'projects/errors' = render 'projects/errors'
.project-edit-content .project-edit-content
= form_for @project, remote: true do |f| = form_for @project, remote: true do |f|
.control-group.project_name_holder .control-group.project_name_holder
= f.label :name do = f.label :name do
Project name is %strong Project name is
.controls .controls
= f.text_field :name, placeholder: "Example Project", class: "input-xxlarge", tabindex: 1, autofocus: true = f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true
- if current_user.can_select_namespace? - if current_user.can_select_namespace?
.control-group .control-group
...@@ -25,7 +28,7 @@ ...@@ -25,7 +28,7 @@
= f.label :import_url do = f.label :import_url do
%span Import existing repo %span Import existing repo
.controls .controls
= f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git' = f.text_field :import_url, class: 'input-xlarge', placeholder: 'https://github.com/randx/six.git'
.light .light
URL must be cloneable URL must be cloneable
.control-group .control-group
...@@ -33,10 +36,8 @@ ...@@ -33,10 +36,8 @@
Description Description
%span.light (optional) %span.light (optional)
.controls .controls
= f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250, tabindex: 3 = f.text_area :description, placeholder: "awesome project", class: "input-xlarge", rows: 3, maxlength: 250, tabindex: 3
%p.padded
New projects are private by default. You choose who can see the project and commit to repository.
.form-actions .form-actions
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4 = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
......
...@@ -23,11 +23,13 @@ ...@@ -23,11 +23,13 @@
\. \.
.ui-box-bottom .ui-box-bottom
= f.label :content .control-group
.controls= f.text_area :content, class: 'span8 js-gfm-input' = f.label :content
.controls= f.text_area :content, class: 'span8 js-gfm-input'
.ui-box-bottom .ui-box-bottom
= f.label :commit_message .control-group
.controls= f.text_field :message, class: 'span8' = f.label :commit_message
.controls= f.text_field :message, class: 'span8'
.form-actions .form-actions
- if @wiki && @wiki.persisted? - if @wiki && @wiki.persisted?
= f.submit 'Save changes', class: "btn-save btn" = f.submit 'Save changes', class: "btn-save btn"
......
%div#modal-new-wiki.modal.hide %div#modal-new-wiki.modal.hide
.modal-header .modal-header
%a.close{href: "#"} × %a.close{href: "#", "data-dismiss" => "modal"} ×
%h3.page-title New Wiki Page %h3.page-title New Wiki Page
.modal-body .modal-body
= label_tag :new_wiki_path do = label_tag :new_wiki_path do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment