From cb2da7bf2c8db2e5fde93c254f9c4272160a4da3 Mon Sep 17 00:00:00 2001 From: fuxiaohei Date: Sat, 18 Oct 2014 22:15:05 +0800 Subject: [PATCH] some ui details fix --- public/ng/css/gogs.css | 15 +++++++++++---- public/ng/less/gogs/base.less | 6 +++--- public/ng/less/gogs/dashboard.less | 13 ++++++++++--- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index eb96cb805..4f68199c0 100644 --- a/public/ng/css/gogs.css +++ b/public/ng/css/gogs.css @@ -95,7 +95,7 @@ img.avatar-100 { } #header { background-color: #428bca; - height: 44px; + height: 45px; } #header > .menu-line > li > a { display: inline-block; @@ -120,14 +120,14 @@ img.avatar-100 { height: 44px; } #header-nav-user img { - margin: -4px 10px 0 0; + margin: -2px 10px 0 0; border-radius: 3px; } #header-nav-sign-out > a:hover { color: #ff908b !important; } #header-nav-logo { - padding: 6px 1.2em; + padding: 6px 1.2em 6px 0; } #header-nav-explore, #header-nav-help { @@ -716,6 +716,12 @@ ol.linenums { #dashboard-header > .menu-line > li { padding: 12px 6px; } +#dashboard-header > .menu-line > li.drop { + margin-left: -22px; +} +#dashboard-header > .menu-line > li.drop:hover a { + background-color: transparent; +} #dashboard-header > .menu-line > li.right > a { font-size: 1.2em; color: #444444; @@ -870,6 +876,7 @@ ol.linenums { } #dashboard-selection-menu > .drop-down { top: 56px; + left: 22px; } #dashboard-selection-menu li { white-space: nowrap; @@ -919,7 +926,7 @@ ol.linenums { color: #CCC; } #dashboard-news .news .avatar { - margin: 0 1.2em; + margin-right: 1.2em; } #dashboard-news .news .news-content, #dashboard-news .news .news-time { diff --git a/public/ng/less/gogs/base.less b/public/ng/less/gogs/base.less index a3a7c2ffe..49389b06a 100644 --- a/public/ng/less/gogs/base.less +++ b/public/ng/less/gogs/base.less @@ -110,7 +110,7 @@ clear: both; } #header { background-color: @headerBgColor; - height: 44px; + height: 45px; > .menu-line { > li > a { display: inline-block; @@ -136,7 +136,7 @@ clear: both; #header-nav-user { height: 44px; img { - margin: -4px 10px 0 0; + margin: -2px 10px 0 0; border-radius: 3px; } } @@ -144,7 +144,7 @@ clear: both; color: @headerSignOutColor !important; } #header-nav-logo { - padding: 6px 1.2em; + padding: 6px 1.2em 6px 0; } #header-nav-explore, #header-nav-help { diff --git a/public/ng/less/gogs/dashboard.less b/public/ng/less/gogs/dashboard.less index a40debe51..435020fd1 100644 --- a/public/ng/less/gogs/dashboard.less +++ b/public/ng/less/gogs/dashboard.less @@ -17,6 +17,12 @@ > li { padding: 12px 6px; } + > li.drop{ + margin-left: -22px; + &:hover a { + background-color: transparent; + } + } > li.right { > a { font-size: 1.2em; @@ -126,7 +132,7 @@ .repo-contrib-header { border-top: 1px solid #d6d6d6; } - .panel-header{ + .panel-header { font-size: 14px; } } @@ -173,6 +179,7 @@ max-width: 300px; > .drop-down { top: 56px; + left: 22px; } li { white-space: nowrap; @@ -221,14 +228,14 @@ border-bottom-right-radius: .3em; } #dashboard-news { - padding-bottom: 60px; + padding-bottom: 60px; .news { margin-right: 2.4em; .mega-octicon { color: #CCC; } .avatar { - margin: 0 1.2em; + margin-right: 1.2em; } .news-content, .news-time {