From b51214ab6fae430b36e4ce86be7cae33e73766c6 Mon Sep 17 00:00:00 2001 From: Yuki Kimoto Date: Wed, 30 Nov 2016 17:28:48 +0900 Subject: [PATCH] improve button design --- public/css/common.css | 9 +++++++-- templates/auto/_login.html.ep | 2 +- templates/auto/_new.html.ep | 16 ++-------------- templates/auto/_start.html.ep | 2 +- templates/auto/reset-password.html.ep | 2 +- templates/issues.html.ep | 2 +- templates/labels.html.ep | 2 +- templates/pull.html.ep | 4 ++-- templates/pulls.html.ep | 4 ++-- templates/settings/collaboration.html.ep | 2 +- templates/user-settings/ssh.html.ep | 4 ++-- 11 files changed, 21 insertions(+), 28 deletions(-) diff --git a/public/css/common.css b/public/css/common.css index c4bd3b5b..b7041828 100644 --- a/public/css/common.css +++ b/public/css/common.css @@ -240,7 +240,7 @@ a:hover { .labels-tag { border-radius:5px; display:inline-block; - padding:7px 12px; + padding:5px 10px; font-weight:bold; border:1px solid #dddddd; } @@ -1952,12 +1952,17 @@ button.close { cursor: default; } -.btn-fork { +.btn-fork, .btn-new { font-size:13px; padding:5px 20px; height:28px; } +.btn-delete { + padding:1px 10px; + height:20px; +} + .btn-primary { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); diff --git a/templates/auto/_login.html.ep b/templates/auto/_login.html.ep index 060ca5db..65116b43 100644 --- a/templates/auto/_login.html.ep +++ b/templates/auto/_login.html.ep @@ -131,7 +131,7 @@
- +
diff --git a/templates/auto/_new.html.ep b/templates/auto/_new.html.ep index 88aadcd4..3e9c1c65 100644 --- a/templates/auto/_new.html.ep +++ b/templates/auto/_new.html.ep @@ -101,9 +101,6 @@
Create a new repository
-
- A repository contains all the files for your project, including the revision history. -
@@ -143,30 +140,21 @@
<%= radio_button private => 0, checked => undef %>Public
-
- Anyone can see this repository. You choose who can commit. -
  • <%= radio_button private => 1 %>Private
    -
    - You choose who can see and commit to this repository. -
  • - <%= check_box readme => 1 %>Initialize this this repository with a README -
    -
    - This will let you immediately clone the repository to your computer. Skip this step if you’re importing an existing repository. + <%= check_box readme => 1 %>Initialize this repository with a README
    - +
    %= include '/include/footer'; diff --git a/templates/auto/_start.html.ep b/templates/auto/_start.html.ep index 3758cebd..ac558b1c 100644 --- a/templates/auto/_start.html.ep +++ b/templates/auto/_start.html.ep @@ -94,7 +94,7 @@
    - +
    diff --git a/templates/auto/reset-password.html.ep b/templates/auto/reset-password.html.ep index 7fe1e495..8ca96437 100644 --- a/templates/auto/reset-password.html.ep +++ b/templates/auto/reset-password.html.ep @@ -129,7 +129,7 @@
    - +
    diff --git a/templates/issues.html.ep b/templates/issues.html.ep index 188ce52c..4c6734c8 100644 --- a/templates/issues.html.ep +++ b/templates/issues.html.ep @@ -70,7 +70,7 @@
    % if ($api->logined) { - " class="btn btn-green">New issue + " class="btn btn-green btn-new">New issue % }
    diff --git a/templates/labels.html.ep b/templates/labels.html.ep index 3f0b0e4d..0893a08a 100644 --- a/templates/labels.html.ep +++ b/templates/labels.html.ep @@ -193,7 +193,7 @@ %= include '/include/errors', errors => $errors; % if ($can_write_access) {
    -
    +
    New label
    diff --git a/templates/pull.html.ep b/templates/pull.html.ep index 2c64125b..67f3e2b4 100644 --- a/templates/pull.html.ep +++ b/templates/pull.html.ep @@ -469,7 +469,7 @@
    <%= hidden_field op => 'merge' %> - <%= submit_button 'Merge pull request', class => "btn btn-green" %> + <%= submit_button 'Merge pull request', class => "btn btn-green btn-new" %> You can also view command line instructions. @@ -564,7 +564,7 @@ git push origin <%= $base_branch %> % } else { % } - +
    diff --git a/templates/pulls.html.ep b/templates/pulls.html.ep index 53c48a64..e79f0259 100644 --- a/templates/pulls.html.ep +++ b/templates/pulls.html.ep @@ -50,9 +50,9 @@ % if ($api->logined) {
    % if ($original_project) { - {'user.id'}/$original_project->{id}/compare/$original_project->{default_branch}...$user_id:$default_branch") %>" class="btn btn-green">New pull request + {'user.id'}/$original_project->{id}/compare/$original_project->{default_branch}...$user_id:$default_branch") %>" class="btn btn-green btn-new">New pull request % } else { - " class="btn btn-green">New pull request + " class="btn btn-green btn-new">New pull request % }
    % } diff --git a/templates/settings/collaboration.html.ep b/templates/settings/collaboration.html.ep index 85b8ce09..318a0b31 100644 --- a/templates/settings/collaboration.html.ep +++ b/templates/settings/collaboration.html.ep @@ -152,7 +152,7 @@
    <%= text_field 'collaborator' %> - +
    diff --git a/templates/user-settings/ssh.html.ep b/templates/user-settings/ssh.html.ep index 144458c0..8a4433fc 100644 --- a/templates/user-settings/ssh.html.ep +++ b/templates/user-settings/ssh.html.ep @@ -195,7 +195,7 @@
    <%= $key->{title} %> - Delete + Delete <%= hidden_field 'row-id' => $key->{row_id} %>
    @@ -228,7 +228,7 @@
    <%= text_area 'key' %>
    - +