aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/css/override.css34
-rw-r--r--templates/repo/header.tmpl1
2 files changed, 23 insertions, 12 deletions
diff --git a/public/css/override.css b/public/css/override.css
index 995d672..2d0e1f4 100644
--- a/public/css/override.css
+++ b/public/css/override.css
@@ -19,6 +19,19 @@ a, .ui.breadcrumb a { color: #0366d6; }
/*
+ * Button overrides
+ */
+.button, .ui.basic.button, .ui.basic.buttons .button, .ui .sha.label,
+.ui.basic.blue.button, .ui.basic.blue.buttons {
+ background: linear-gradient(-180deg, #fafbfc, #eff3f6 90%) !important;
+ color: #444 !important;
+ border: 1px solid #ccc !important;
+ box-shadow: none !important;
+}
+.ui.labeled.button, .ui.basic.buttons { border: none !important; }
+
+
+/*
* Override font stack
*/
*:not(i):not(.octicon):not(.mono):not(pre):not(code):not(span):not(li) { font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,
@@ -45,11 +58,13 @@ a, .ui.breadcrumb a { color: #0366d6; }
margin-left: 0.5rem;
background-color: #e8e9eb !important;
border-radius: 0.5rem !important;
- padding: 0.5rem 1rem;
+ padding: 0 0.5rem;
}
+
.repo-name { font-weight: 700; }
-.repository .header-wrapper { background-color: #fafbfc; }
+.repo-header .repo-title, .repo-header .repo-buttons { margin-top: 0.5rem !important; }
+.repository .header-wrapper { background-color: #fafbfc; }
.repository .navbar .ui.label { padding: 0.25rem 0.75rem; border-radius: 1rem; background-color: #e8e9eb; color: #555; font-weight: 700; }
.repository.file.list #repo-desc, .repo-description { font-size: 1rem !important; margin: 0.75rem 0; }
@@ -77,22 +92,14 @@ a, .ui.breadcrumb a { color: #0366d6; }
.ui.tabs.container { overflow-x: auto; overflow-y: hidden; }
.ui.tabular.menu .item:hover { color: #0366d6; }
-.button, .ui.basic.button, .ui.basic.buttons .button, .ui .sha.label,
-.ui.basic.blue.button, .ui.basic.blue.buttons {
- background: linear-gradient(-180deg, #fafbfc, #eff3f6 90%) !important;
- color: #444 !important;
- box-shadow: unset !important;
- border: 1px solid #ccc !important;
-}
-
.user.profile .ui.stackable.grid .eleven { width: 100% !important; }
.user.profile .ui.stackable.grid .five { display: none; }
-#repo-clone-https, #clone-panel #clipboard-btn { border-right-width: 0 !important; }
.repository.file.list #repo-files-table tr:hover, .ui.basic.table tbody tr:hover,
.repository #commits-table.ui.basic.striped.table tbody tr:hover:nth-child(2n) { background-color: #ffffe3 !important; }
-#repo-files-table .message a:hover, #repo-files-table .name a:hover,
.repository #commits-table td.author a:hover { text-decoration: underline; color: #0366d6; }
+#repo-files-table .message a:hover, #repo-files-table .name a:hover,
+#repo-clone-https, #clone-panel #clipboard-btn { border-right-width: 0 !important; }
/*
@@ -102,6 +109,8 @@ a, .ui.breadcrumb a { color: #0366d6; }
.ui.secondary.pointing.menu .item { border: none !important; }
.ui.menu.new-menu { background-color: transparent !important; }
.explore.repositories a.item { text-decoration: underline; }
+.explore .navbar { background-color: transparent !important; margin-bottom: 0 !important; }
+
/*
* Pagination
@@ -116,6 +125,7 @@ a, .ui.breadcrumb a { color: #0366d6; }
.user.profile .ui.secondary.stackable.pointing.menu a { text-decoration: underline; }
.user.profile .ui.secondary.stackable.pointing.menu i { display: none; }
+
/*
* Navigation Bar
*/
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index ac319c9..e6e2350 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -17,6 +17,7 @@
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}</a></div>{{end}}
{{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}}
{{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}}
+ <small>{{SizeFmt .Size}}</small>
</div>
{{if not .IsBeingCreated}}
<div class="repo-buttons">