From 1e9fa19dafc608f608fa25f09efc308ae428d617 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Fri, 14 Feb 2020 01:17:08 -0500 Subject: public/css/override: Fine tuning --- public/css/override.css | 34 ++++++++++++++++++++++------------ templates/repo/header.tmpl | 1 + 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 @@ -18,6 +18,19 @@ a, .ui.breadcrumb a { color: #0366d6; } .item .octicon-organization, .mega-octicon, .ui.basic.small.compact.button .octicon-git-branch { display: none !important; } +/* + * 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 */ @@ -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}}
{{$.i18n.Tr "repo.mirror_from"}} {{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}
{{end}} {{if .IsFork}}
{{$.i18n.Tr "repo.forked_from"}} {{SubStr .BaseRepo.RelLink 1 -1}}
{{end}} {{if .IsGenerated}}
{{$.i18n.Tr "repo.generated_from"}} {{SubStr .TemplateRepo.RelLink 1 -1}}
{{end}} + {{SizeFmt .Size}} {{if not .IsBeingCreated}}
-- cgit v1.2.3