1
0
Fork 0
forked from forgejo/forgejo

improve ui details

This commit is contained in:
fuxiaohei 2014-09-23 21:43:45 +08:00
parent 135d3733b3
commit 904f799c1a
4 changed files with 419 additions and 419 deletions

View file

@ -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;