From ace114e82833b55e204a3fdf8eca528cc9712d4d Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 23 Jan 2020 01:39:58 -0500 Subject: templates: Base commit --- public/css/override.css | 27 ++++++ public/img/favicon.ico | Bin 0 -> 15086 bytes public/img/favicon.png | Bin 0 -> 212 bytes templates/base/head.tmpl | 193 ++++++++++++++++++++++++++++++++++++++++ templates/base/head_navbar.tmpl | 136 ++++++++++++++++++++++++++++ 5 files changed, 356 insertions(+) create mode 100644 public/css/override.css create mode 100644 public/img/favicon.ico create mode 100644 public/img/favicon.png create mode 100644 templates/base/head.tmpl create mode 100644 templates/base/head_navbar.tmpl diff --git a/public/css/override.css b/public/css/override.css new file mode 100644 index 0000000..1109eb3 --- /dev/null +++ b/public/css/override.css @@ -0,0 +1,27 @@ +/* + * Hide specific octicons + */ +.octicon-code, .octicon-issue-opened, .octicon-git-pull-request, +.octicon-tag, .octicon-book, .octicon-pulse, .octicon-tools, +.octicon-sign-in, .item .octicon-repo, .item .octicon-person, +.item .octicon-organization, .mega-octicon, .repo-buttons { display: 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, + Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol !important; } + +/* + * Override repo header names font weight + */ +.ui.list .list>.item .header, .ui.list>.item .header { font-weight: 400 !important } + +/* + * Override explore repos header names font weight + */ +.ui.secondary.pointing.menu .active.item { font-weight: 400 !important } + + +.repository .repo-header .fork-flag { display: inline-block; margin-left: 0.5rem; background-color: #e6eff7; border-radius: 0.5rem; padding: 0 1rem; } +.ui.breadcrumb .divider { margin: 0 } diff --git a/public/img/favicon.ico b/public/img/favicon.ico new file mode 100644 index 0000000..d0bb4bc Binary files /dev/null and b/public/img/favicon.ico differ diff --git a/public/img/favicon.png b/public/img/favicon.png new file mode 100644 index 0000000..0f470e4 Binary files /dev/null and b/public/img/favicon.png differ diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl new file mode 100644 index 0000000..4c96c0b --- /dev/null +++ b/templates/base/head.tmpl @@ -0,0 +1,193 @@ + + + + + + + {{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} + + {{if UseServiceWorker}} + + {{else}} + + {{end}} + + + + + + + + {{if .IsSigned}} + + {{end}} + {{if .ContextUser}} + + {{end}} + {{if .SearchLimit}} + + {{end}} +{{if .GoGetImport}} + + +{{end}} + + + + + + + + + +{{if .RequireSimpleMDE}} + +{{end}} + +{{if .RequireTribute}} + +{{end}} + + + + + + + + + + +{{if .RequireHighlightJS}} + +{{end}} +{{if .RequireMinicolors}} + +{{end}} +{{if .RequireDatetimepicker}} + +{{end}} +{{if .RequireDropzone}} + +{{end}} +{{if .EnableHeatmap}} + +{{end}} + + + + +{{if .PageIsUserProfile}} + + + + + {{if .Owner.Description}} + + {{end}} +{{else if .Repository}} + {{if .Issue}} + + + {{if .Issue.Content}} + + {{end}} + {{else}} + + + {{if .Repository.Description}} + + {{end}} + {{end}} + + +{{else}} + + + + + +{{end}} + +{{if .IsSigned }} + {{ if ne .SignedUser.Theme "gitea" }} + + {{end}} +{{else if ne DefaultTheme "gitea"}} + +{{end}} +{{template "custom/header" .}} + + + {{template "custom/body_outer_pre" .}} + +
+ + + {{template "custom/body_inner_pre" .}} + + {{if not .PageIsInstall}} + + {{end}} +{{/* +
+ + +*/}} diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl new file mode 100644 index 0000000..8ed5a94 --- /dev/null +++ b/templates/base/head_navbar.tmpl @@ -0,0 +1,136 @@ + -- cgit v1.2.3