From 2b41ac64ce941b502bab6a6d98918a4a894b403f Mon Sep 17 00:00:00 2001 From: Liviu Date: Wed, 22 May 2019 17:38:05 +0000 Subject: [PATCH] files view changes: moved add file, download and search to the right, added paddings and margins --- rhodecode/public/css/main.less | 41 ++++++++++++++------ rhodecode/public/css/tables.less | 2 +- rhodecode/public/css/type.less | 2 + rhodecode/templates/files/files_browser.mako | 29 ++++++-------- rhodecode/templates/files/files_pjax.mako | 1 - 5 files changed, 43 insertions(+), 32 deletions(-) diff --git a/rhodecode/public/css/main.less b/rhodecode/public/css/main.less index 0a00f22c..4029c981 100644 --- a/rhodecode/public/css/main.less +++ b/rhodecode/public/css/main.less @@ -2100,8 +2100,8 @@ BIN_FILENODE = 7 .new-file, #filter_activate, #filter_deactivate { - float: left; - margin: 0 0 0 15px; + float: right; + margin: 0 0 0 10px; } h3.files_location{ @@ -2109,11 +2109,12 @@ h3.files_location{ } .browser-nav { + width: 100%; display: table; - margin-bottom: @space; - + margin-bottom: 20px; .info_box { + float: left; display: inline-table; height: 2.5em; @@ -2122,6 +2123,10 @@ h3.files_location{ vertical-align: middle; } + .drop-menu { + margin: 0 10px; + } + .info_box_elem { border-top: @border-thickness solid @grey5; border-bottom: @border-thickness solid @grey5; @@ -2223,14 +2228,15 @@ h3.files_location{ .files-quick-filter { float: right; - margin: 0 25px; + width: 180px; + position: relative; } .files-filter-box { display: flex; padding: 0px; border-radius: 3px; - border: 1px solid @grey3; + margin-bottom: 0; a { border: none !important; @@ -2241,19 +2247,30 @@ h3.files_location{ } } - .files-filter-box-path { - line-height: 28px; - padding: 0 5px; - + line-height: 33px; + padding: 0; + width: 20px; + position: absolute; + z-index: 11; + left: 5px; } .files-filter-box-input { - background-color: @grey3 !important; margin-right: 0; input { - border: none + border: 1px solid @white; + padding-left: 25px; + width: 145px; + + &:hover { + border-color: @grey6; + } + + &:focus { + border-color: @grey5; + } } } diff --git a/rhodecode/public/css/tables.less b/rhodecode/public/css/tables.less index 1e3772ff..196f381e 100644 --- a/rhodecode/public/css/tables.less +++ b/rhodecode/public/css/tables.less @@ -33,7 +33,7 @@ table.dataTable { td { height: auto; max-width: 20%; - padding: .65em 1em .65em 0; + padding: .65em 0 .65em 1em; vertical-align: middle; border-bottom: @border-thickness solid @grey5; white-space: normal; diff --git a/rhodecode/public/css/type.less b/rhodecode/public/css/type.less index 252b3671..43c56c10 100644 --- a/rhodecode/public/css/type.less +++ b/rhodecode/public/css/type.less @@ -46,6 +46,8 @@ h6, .h6 { font-size: 1em; font-weight: @text-bold-weight; font-family: @t .breadcrumbs { font-size: @repo-title-fontsize; margin: 0; + width: ~"calc(100% - 180px)"; + float: left; h4 { font-size: @basefontsize; diff --git a/rhodecode/templates/files/files_browser.mako b/rhodecode/templates/files/files_browser.mako index 5b97c284..609ca426 100644 --- a/rhodecode/templates/files/files_browser.mako +++ b/rhodecode/templates/files/files_browser.mako @@ -3,24 +3,6 @@
-
- -
    - -
  • - - ${h.get_last_path_part(c.file)} - -
  • - -
  • - -
  • - -
- -
-
% endif + % if c.enable_downloads: <% at_path = '{}.zip'.format(request.GET.get('at') or c.commit.raw_id[:6]) %>
@@ -49,6 +32,16 @@
% endif +
+
    +
  • + +
  • +
  • + +
  • +
+
diff --git a/rhodecode/templates/files/files_pjax.mako b/rhodecode/templates/files/files_pjax.mako index eefa274e..1e5ab768 100644 --- a/rhodecode/templates/files/files_pjax.mako +++ b/rhodecode/templates/files/files_pjax.mako @@ -32,7 +32,6 @@ % endif
- % if c.file.is_dir(): <%include file='files_browser.mako'/> % else: