From df000245d19ffa3e4f88d252763269bbdd04f8eb Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Fri, 11 Apr 2014 21:56:40 +0800 Subject: add pager in commit-page, finish commit search form --- public/css/gogs.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'public/css/gogs.css') diff --git a/public/css/gogs.css b/public/css/gogs.css index 2850d15e..48d485fa 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -663,6 +663,10 @@ html, body { margin-top: -20px; } +#commits-pager { + margin-top: 0; +} + #source .source-toolbar:after { clear: both; } @@ -880,6 +884,10 @@ html, body { margin-left: .5em; } +#commits-search-form { + margin-top: 4px; +} + .commit-box .avatar, .diff-head-box .avatar { width: 20px; height: 20px; @@ -887,10 +895,6 @@ html, body { vertical-align: top; } -.commit-box .search { - margin-top: 3px; -} - .commit-box td { background-color: #FFF; } -- cgit v1.2.3 From 555b6976a32318c8decce521bdc61765eb6642c9 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Fri, 11 Apr 2014 22:41:41 +0800 Subject: add search form in top navbar --- public/css/gogs.css | 27 +++++++++++++++++++++++---- templates/base/navbar.tmpl | 19 ++++++++++++++++--- 2 files changed, 39 insertions(+), 7 deletions(-) (limited to 'public/css/gogs.css') diff --git a/public/css/gogs.css b/public/css/gogs.css index 48d485fa..634548b8 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -67,6 +67,7 @@ html, body { color: #EEE; font-size: 100%; height: 46px; + margin-top: 3px; } #nav-logo { @@ -81,10 +82,6 @@ html, body { text-decoration: none; } -.nav-item.navbar-right { - margin-top: 3px; -} - .nav-item.navbar-btn { cursor: pointer; margin-top: 8px; @@ -96,6 +93,28 @@ html, body { margin: 0; } +#nav-search-form { + width: 300px; + margin-top: 0; +} + +#nav-search-form button { + margin-top: 0; + background-image: none; + background-color: #F6F6F6; +} + +#nav-search-form input[type=search] { + background-color: #F6F6F6; + border-bottom-right-radius: 3px; + border-top-right-radius: 3px; +} + +#nav-search-form input[type=search]:focus { + background-color: #FFF; + border-color: #D9D9D9; +} + /* gogits nav item active status */ #masthead .nav .active { color: #fff; diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl index c0855d81..1f908f39 100644 --- a/templates/base/navbar.tmpl +++ b/templates/base/navbar.tmpl @@ -1,9 +1,22 @@