aboutsummaryrefslogtreecommitdiff
path: root/public/less
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-26 12:39:32 +0800
committerUnknwon <u@gogs.io>2015-08-26 12:39:32 +0800
commit2f2bf20aaef444d0167a659c346fb545efbd7921 (patch)
tree261366a88f32f6101a529df7f99f9c083e5c229f /public/less
parentb3a45693c37c94850c0a615b69d19a7e88352348 (diff)
fix menu overflow
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_base.less31
-rw-r--r--public/less/_repository.less28
2 files changed, 31 insertions, 28 deletions
diff --git a/public/less/_base.less b/public/less/_base.less
index 4e498a4e..db893fca 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -143,6 +143,37 @@ img {
}
}
+.overflow.menu {
+ .items {
+ max-height: 300px;
+ overflow-y: auto;
+ .item {
+ position: relative;
+ cursor: pointer;
+ display: block;
+ border: none;
+ height: auto;
+ border-top: none;
+ line-height: 1em;
+ color: rgba(0,0,0,.8);
+ padding: .71428571em 1.14285714em!important;
+ font-size: 1rem;
+ text-transform: none;
+ font-weight: 400;
+ box-shadow: none;
+ -webkit-touch-callout: none;
+ &.active {
+ font-weight: 700;
+ }
+ &:hover {
+ background: rgba(0,0,0,.05);
+ color: rgba(0,0,0,.8);
+ z-index: 13;
+ }
+ }
+ }
+}
+
footer {
margin-top: @footer-margin+14px!important;
height: @footer-margin;
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 93b1be6a..fc6ab6ed 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -354,34 +354,6 @@
.filter.dropdown .menu {
margin-top: 1px!important;
- .items {
- max-height: 300px;
- overflow-y: auto;
- .item {
- position: relative;
- cursor: pointer;
- display: block;
- border: none;
- height: auto;
- border-top: none;
- line-height: 1em;
- color: rgba(0,0,0,.8);
- padding: .71428571em 1.14285714em!important;
- font-size: 1rem;
- text-transform: none;
- font-weight: 400;
- box-shadow: none;
- -webkit-touch-callout: none;
- &.active {
- font-weight: 700;
- }
- &:hover {
- background: rgba(0,0,0,.05);
- color: rgba(0,0,0,.8);
- z-index: 13;
- }
- }
- }
}
&.commits {