aboutsummaryrefslogtreecommitdiff
path: root/public/css/gogs.css
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-10 15:13:48 -0500
committerUnknwon <u@gogs.io>2017-03-10 15:13:48 -0500
commitebc0943713196abe939e445f35e0f726f5cbee1e (patch)
treee4f7248ba87586c12129bd36718f27d571ece513 /public/css/gogs.css
parent451aef7a1c177b58c4519239a65dbfbab32b4888 (diff)
templates/repo: only show Git stats in repository home page (#3518)
Move 'Commits' and 'Releases' tabs down to body. This patch also reduces page load time for pages that do not need to use commits count anywhere. Get commits count can hurt performance badly for huge repositories that has tens of thousands commits like Linux Kernel.
Diffstat (limited to 'public/css/gogs.css')
-rw-r--r--public/css/gogs.css23
1 files changed, 19 insertions, 4 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index d930cf1e..68a8d898 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -125,6 +125,11 @@ code.wrap {
.ui.form .ui.button {
font-weight: normal;
}
+.ui.menu,
+.ui.vertical.menu,
+.ui.segment {
+ box-shadow: none;
+}
.ui .text.red {
color: #d95c5c !important;
}
@@ -1235,6 +1240,20 @@ footer .ui.language .menu {
padding: 8px 10px;
font-weight: normal;
}
+.repository.file.list #git-stats {
+ padding: 5px 10px;
+ line-height: 0;
+}
+.repository.file.list #git-stats .list {
+ width: 100%;
+}
+.repository.file.list #git-stats .list .item {
+ margin-left: 0;
+ width: 50%;
+}
+.repository.file.list #git-stats .list .item .text b {
+ font-size: 15px;
+}
.repository.file.list #repo-files-table thead th {
padding-top: 8px;
padding-bottom: 5px;
@@ -2427,10 +2446,6 @@ footer .ui.language .menu {
.settings .content {
margin-top: 2px;
}
-.settings .content > .header,
-.settings .content .segment {
- box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
-}
.settings .key.list .item:not(:first-child) {
border-top: 1px solid #eaeaea;
}