diff options
author | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-09-23 21:43:45 +0800 |
---|---|---|
committer | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-09-23 21:43:45 +0800 |
commit | 904f799c1a871d1c730b2834206da7f57c46efc5 (patch) | |
tree | 551c4cab02b3e840b8aedc01ab4525983d67d720 /public/ng/less/gogs/dashboard.less | |
parent | 135d3733b3f31644705abaa34fc3c56cda4707bf (diff) |
improve ui details
Diffstat (limited to 'public/ng/less/gogs/dashboard.less')
-rw-r--r-- | public/ng/less/gogs/dashboard.less | 57 |
1 files changed, 24 insertions, 33 deletions
diff --git a/public/ng/less/gogs/dashboard.less b/public/ng/less/gogs/dashboard.less index 60aa8072..1609b9d1 100644 --- a/public/ng/less/gogs/dashboard.less +++ b/public/ng/less/gogs/dashboard.less @@ -14,12 +14,13 @@ height: 69px; > .menu-line { > li { - padding: 12px 0; + padding: 12px 6px; } > li.right { > a { font-size: 1.2em; color: @dashboardHeaderLinkColor; + padding: .4em .8em; &:hover { background-color: transparent; color: @dashboardHeaderLinkHoverColor; @@ -34,18 +35,16 @@ } } } - // dashboard context switch selection #dashboard-selection-menu { a img { margin: -4px 10px 0 0; } } - #dashboard { padding: 24px 0; + margin-bottom: 60px; } - // dashboard sidebar contains contributed repositories panel, // and my repositories panel #dashboard-sidebar { @@ -58,7 +57,6 @@ border-bottom-right-radius: .3em; } } - #dashboard-sidebar-menu { border-top-left-radius: .3em; border-top-right-radius: .3em; @@ -68,8 +66,8 @@ margin-right: -1px; border-bottom: none; > a { - padding-top: .4em; - padding-bottom: .4em; + padding-top: .3em; + padding-bottom: .3em; } } > li.first { @@ -83,7 +81,7 @@ float: right; } width: 100%; - height: 35px; + height: 32px; > li.js-tab-nav-show { background-color: #EEEEEE; } @@ -94,7 +92,6 @@ } } } - #dashboard-my-mirror, #dashboard-my-org, #dashboard-my-repo { @@ -130,7 +127,6 @@ border-top: 1px solid #d6d6d6; } } - #dashboard-my-repo { .panel-header { .octicon { @@ -140,18 +136,17 @@ } .repo-count { margin-left: 4px; + font-size: .8em; } } - #dashboard-my-org, #dashboard-my-mirror { display: none; } - // the button of new repository in my repositories panel #dashboard-new-repo { width: 50px; - height: 35px; + height: 33px; padding-top: 6px; margin-right: 1px; .octicon { @@ -160,7 +155,6 @@ border-top-left-radius: .3em; border-top-right-radius: .3em; } - // the drop-down menu of #dashboard-new-repo #dashboard-new-repo-menu { top: 35px; @@ -172,28 +166,26 @@ font-size: 1.1em; } } - #dashboard-selection-menu { - width: auto; - max-width: 300px; - > .drop-down { - top: 56px; + width: auto; + max-width: 300px; + > .drop-down { + top: 56px; + } + li { + white-space: nowrap; + &.checked { + .octicon { + opacity: 1; + } } - li { - white-space: nowrap; - &.checked { - .octicon { - opacity: 1; - } - } - a { - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - overflow: hidden; - } + a { + text-overflow: ellipsis; + -o-text-overflow: ellipsis; + overflow: hidden; } + } } - // the drop-down menu of #dashboard-selection-menu #dashboard-switch-menu { > li { @@ -226,7 +218,6 @@ border-bottom-left-radius: .3em; border-bottom-right-radius: .3em; } - #dashboard-news { .news { margin-right: 2.4em; |