aboutsummaryrefslogtreecommitdiff
path: root/public/ng/less
diff options
context:
space:
mode:
Diffstat (limited to 'public/ng/less')
-rw-r--r--public/ng/less/gogs/base.less16
-rw-r--r--public/ng/less/gogs/dashboard.less21
-rw-r--r--public/ng/less/gogs/repository.less29
-rw-r--r--public/ng/less/ui/menu.less20
-rw-r--r--public/ng/less/ui/reset.less11
5 files changed, 81 insertions, 16 deletions
diff --git a/public/ng/less/gogs/base.less b/public/ng/less/gogs/base.less
index f9405499..0cadabe8 100644
--- a/public/ng/less/gogs/base.less
+++ b/public/ng/less/gogs/base.less
@@ -214,4 +214,20 @@ clear: both;
}
.main-wrapper {
padding: 20px 0 40px;
+}
+.user-list {
+ width: auto;
+ min-width: 180px;
+ max-width: 300px;
+ img {
+ width: 28px;
+ height: 28px;
+ margin-right: 1em;
+ margin-top: 1px;
+ vertical-align: middle;
+ }
+ li {
+ cursor: pointer;
+ font-weight: bold;
+ }
} \ No newline at end of file
diff --git a/public/ng/less/gogs/dashboard.less b/public/ng/less/gogs/dashboard.less
index 3929f2d0..f8838ae6 100644
--- a/public/ng/less/gogs/dashboard.less
+++ b/public/ng/less/gogs/dashboard.less
@@ -176,9 +176,24 @@ The dashboard page style
}
#dashboard-selection-menu {
- > .drop-down {
- top: 56px;
- }
+ width: auto;
+ max-width: 300px;
+ > .drop-down {
+ top: 56px;
+ }
+ li {
+ white-space: nowrap;
+ &.checked {
+ .octicon {
+ opacity: 1;
+ }
+ }
+ a {
+ text-overflow: ellipsis;
+ -o-text-overflow: ellipsis;
+ overflow: hidden;
+ }
+ }
}
// the drop-down menu of #dashboard-selection-menu
diff --git a/public/ng/less/gogs/repository.less b/public/ng/less/gogs/repository.less
index 13f5a42e..1847c44e 100644
--- a/public/ng/less/gogs/repository.less
+++ b/public/ng/less/gogs/repository.less
@@ -357,7 +357,6 @@
margin-left: 4em;
}
-#dashboard-switch-menu,
#repo-create-owner-list {
top: 30px;
left: 0;
@@ -442,4 +441,32 @@
}
.repo-setting-zone {
padding: 30px;
+}
+#repo-collab-list {
+ list-style: none;
+ padding: 10px 0 5px 0;
+ li.collab {
+ clear: both;
+ height: 50px;
+ padding: 0 15px 0 15px;
+ }
+ a.member {
+ color: #444;
+ height: 50px;
+ line-height: 50px;
+ &:hover {
+ color: #4183C4;
+ }
+ }
+ .avatar {
+ margin-right: 1em;
+ width: 40px;
+ }
+ .remove-collab {
+ color: #DD4B39;
+ }
+}
+.repo-user-list-block {
+ position: relative;
+ top: 5px;
} \ No newline at end of file
diff --git a/public/ng/less/ui/menu.less b/public/ng/less/ui/menu.less
index e36667ce..a1daefb3 100644
--- a/public/ng/less/ui/menu.less
+++ b/public/ng/less/ui/menu.less
@@ -94,12 +94,20 @@ ul.menu-down {
}
}
-ul.menu-down {
- position: absolute;
- display: none;
- z-index: 99;
- box-shadow: 0 0 2px @menuShadowColor;
- background-color: @menuDownBgColor;
+ul {
+ &.menu-down {
+ position: absolute;
+ display: none;
+ z-index: 99;
+ box-shadow: 0 0 2px @menuShadowColor;
+ background-color: @menuDownBgColor;
+ }
+ &.menu-down-show {
+ position: absolute;
+ z-index: 99;
+ box-shadow: 0 0 2px @menuShadowColor;
+ background-color: @menuDownBgColor;
+ }
}
ul.menu-radius {
diff --git a/public/ng/less/ui/reset.less b/public/ng/less/ui/reset.less
index f58e1a47..04d11989 100644
--- a/public/ng/less/ui/reset.less
+++ b/public/ng/less/ui/reset.less
@@ -81,17 +81,15 @@ audio:not([controls]) {
// display hidden elements
[hidden],
-template
+template,
.hidden {
- display: none;
+ display: none;
}
-
.opacity {
- opacity: 0;
+ opacity: 0;
}
-
.opacity-half {
- opacity: .5;
+ opacity: .5;
}
// links element
@@ -100,6 +98,7 @@ a,
.text-link {
color: @linkColor;
text-decoration: none;
+ cursor: pointer;
&:hover {
color: @linkHoverColor;
text-decoration: none;