Commit acc21d30 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Increase input padding. Minor ui fixes

parent f79b2100
......@@ -34,6 +34,10 @@
&.ui-box-show {
margin:20px 0;
background: #FFF;
.control-group {
margin-bottom: 0;
}
}
&.ui-box-danger {
......
......@@ -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,
.edit_project {
.project_name_holder {
input,
label {
font-size: 16px;
line-height: 20px;
padding: 8px;
}
}
.adv_settings {
h6 { margin-left: 40px; }
}
fieldset.features {
.control-label {
font-weight: bold;
......
......@@ -13,7 +13,7 @@
.control-group
= f.label :url, "URL:"
.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"
%hr
......
......@@ -54,7 +54,7 @@
It can be used for atom feed or API
%p.cgray
- 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"
- else
%span You don`t have one yet. Click generate to fix it.
......
......@@ -8,13 +8,13 @@
.control-group
= f.label :title
.controls= f.text_field :title
.controls= f.text_field :title, class: "input-xlarge"
.control-group
= f.label :key
.controls
%p.light
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
......
......@@ -8,14 +8,14 @@
.control-group
= f.label :title
.controls= f.text_field :title
.controls= f.text_field :title, class: 'input-xlarge'
.control-group
= f.label :key
.controls
= f.text_area :key, class: [:xxlarge, :thin_area]
%p.hint
%p.light
Paste a machine public key here. Read more about how generate it
= link_to "here", help_ssh_path
= f.text_area :key, class: "input-xxlarge thin_area"
.form-actions
= f.submit 'Create', class: "btn-create btn"
......
......@@ -14,7 +14,7 @@
.control-group
= f.label :url, "URL:"
.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"
%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
= render 'projects/errors'
.project-edit-content
= form_for @project, remote: true do |f|
.control-group.project_name_holder
= f.label :name do
Project name is
%strong Project name is
.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?
.control-group
......@@ -25,7 +28,7 @@
= f.label :import_url do
%span Import existing repo
.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
URL must be cloneable
.control-group
......@@ -33,10 +36,8 @@
Description
%span.light (optional)
.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
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
......
......@@ -23,11 +23,13 @@
\.
.ui-box-bottom
= f.label :content
.controls= f.text_area :content, class: 'span8 js-gfm-input'
.control-group
= f.label :content
.controls= f.text_area :content, class: 'span8 js-gfm-input'
.ui-box-bottom
= f.label :commit_message
.controls= f.text_field :message, class: 'span8'
.control-group
= f.label :commit_message
.controls= f.text_field :message, class: 'span8'
.form-actions
- if @wiki && @wiki.persisted?
= f.submit 'Save changes', class: "btn-save btn"
......
%div#modal-new-wiki.modal.hide
.modal-header
%a.close{href: "#"} ×
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3.page-title New Wiki Page
.modal-body
= 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