Update forgejo/gitea/templates/base/head.tmpl

This commit is contained in:
Korbs 2024-10-31 19:39:21 -05:00
parent 8d27fd8443
commit 6d0e2d841a

View file

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ctx.Locale.Lang}}" data-theme="{{ThemeName .SignedUser}}"> <html lang="{{ctx.Locale.Lang}}" data-theme="{{ThemeName .SignedUser}}">
<head> <head>
<meta name="darkreader-lock">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{{/* Display `- .Repsository.FullName` only if `.Title` does not already start with that. */}} {{/* Display `- .Repsository.FullName` only if `.Title` does not already start with that. */}}
<title>{{if .Title}}{{.Title}} - {{end}}{{if and (.Repository.Name) (not (StringUtils.HasPrefix .Title .Repository.FullName))}}{{.Repository.FullName}} - {{end}}{{AppName}}</title> <title>{{if .Title}}{{.Title}} - {{end}}{{if and (.Repository.Name) (not (StringUtils.HasPrefix .Title .Repository.FullName))}}{{.Repository.FullName}} - {{end}}{{AppName}}</title>
@ -9,7 +10,6 @@
<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}"> <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}">
<meta name="keywords" content="{{MetaKeywords}}"> <meta name="keywords" content="{{MetaKeywords}}">
<meta name="referrer" content="no-referrer"> <meta name="referrer" content="no-referrer">
<link rel="stylesheet" href="http://192.168.1.191:5500/css/index.css"/>
{{if .GoGetImport}} {{if .GoGetImport}}
<meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}"> <meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}">
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
@ -49,77 +49,19 @@
{{end}} {{end}}
<style> <style>
:root { .sudovanilla-logo img {
--steel-900: #000 !important; width: 32px;
--steel-850: #000 !important;
--steel-800: #000 !important;
--steel-750: #000 !important;
--steel-700: #222 !important;
--steel-650: #000 !important;
--steel-600: #1a1a1a !important;
} }
/* Fixes for Forgejo */ .header-sub-service {
header .header-content .header-row-top { height: 32px;
padding: 24px 0px !important;
}
.page-content .ui.ui.ui.container:not(.fluid) {
width: 100% !important;
max-width: 100% !important;
}
#readme, #repo-files-table {
border: 1px #222 solid !important;
border-radius: 6px;
}
.file-header.ui.top.attached.header.tw-flex.tw-items-center.tw-justify-between.tw-flex-wrap, .ui.bottom.attached.table.unstackable.segment {
background: transparent !important;
}
.ui.twelve.wide.column.tw-mb-4 {
width: calc(100% - 370px) !important;
}
.ui.top.attached.error.header {
width: calc(100% - -2px);
}
.file-header.ui.top.attached.header.tw-flex.tw-items-center.tw-justify-between.tw-flex-wrap {
width: calc(100% - 24px);
}
.ui.menu .ui.dropdown .menu > .item {
padding: 0px !important;
}
*, ::before, ::after {
box-sizing: revert-layer !important;
}
h1, h2, h3, h4, h5 {
font-weight: revert-layer !important;
}
p:first-child {
margin-top: revert-layer !important;
}
#dashboard-repo-list {
width: 100% !important;
max-width: 350px !important;
}
.tw-justify-center {
justify-content: flex-start !important;
}
.ui.top.attached.segment.repos-search.gt-rounded-top {
width: calc(100% - 26px);
} }
.inline.required.field {
display: flex; .ui.container.flex-container {
flex-direction: column; max-width: 1200px !important;
align-items: center;
justify-content: center;
max-width: 490px;
margin: auto;
} }
.repo-button-row input {
height: auto !important;
}
.ui.compact.basic.button {
padding: 0px 12px !important;
}
mobilebar { mobilebar {
display: none; display: none;
@ -198,66 +140,42 @@ mobilebar p {
} }
/***/
a {
color: white;
text-decoration: none;
:root .forgejo-light {
--sudovanilla-forgejo-color: #10161d;
} }
a:hover { :root .forgejo-dark {
text-decoration: underline !important; --sudovanilla-forgejo-color: #fafafa !important;
} }
@font-face { .forgejo-light > img[src="https://md.sudovanilla.org/images/sv-logo-4.png"] {
font-family: OpenSans; filter: invert(1);
src: url(https://md.sudovanilla.org/fonts/Open_Sans/static/OpenSans-Regular.ttf);
font-weight: normal;
} }
@font-face {
font-family: OpenSans;
src: url(https://md.sudovanilla.org/fonts/Open_Sans/static/OpenSans-Bold.ttf);
font-weight: bold;
}
@font-face {
font-family: RedHatDisplay;
src: url(https://md.sudovanilla.org/fonts/Red_Hat_Display/static/RedHatDisplay-Regular.ttf);
font-weight: normal;
}
@font-face {
font-family: RedHatDisplay;
src: url(https://md.sudovanilla.org/fonts/Red_Hat_Display/static/RedHatDisplay-Bold.ttf);
font-weight: bold;
}
body {
margin: auto !important;
max-width: 1200px !important;
font-family: OpenSans !important;
color: white !important;
background: black !important;
cursor: default !important;
display: inherit !important;
flex-direction: inherit !important;
overflow-x: inherit !important;
overflow-wrap: inherit !important;
}
.page-content {
margin-top: 140px;
max-width: 1200px !important;
width: 100% !important;
}
.active {
color: white !important;
}
header { header {
position: absolute !important; /* position: absolute !important; */
top: 0px !important; top: 0px !important;
max-width: 1200px !important; max-width: 1200px !important;
margin: auto !important; margin: auto !important;
@ -271,7 +189,7 @@ header .header-content {
} }
header .header-content .header-link-item { header .header-content .header-link-item {
color: rgba(255, 255, 255, 0.5) !important; color: var(--sudovanilla-forgejo-color) !important;
display: flex !important; display: flex !important;
gap: 6px !important; gap: 6px !important;
align-items: center !important; align-items: center !important;
@ -281,7 +199,7 @@ header .header-content .header-link-item {
} }
header .header-content .header-link-item:hover { header .header-content .header-link-item:hover {
color: rgba(255, 255, 255, 0.75) !important; color: var(--sudovanilla-forgejo-color) !important;
} }
header .header-content .header-link-item svg { header .header-content .header-link-item svg {
@ -309,7 +227,7 @@ header .header-content .header-row-top {
display: flex !important; display: flex !important;
align-items: center !important; align-items: center !important;
justify-content: space-between !important; justify-content: space-between !important;
padding: 12px 0px; padding: 24px 0px;
} }
header .header-content .header-row-top div:nth-child(1) { header .header-content .header-row-top div:nth-child(1) {
@ -320,7 +238,7 @@ header .header-content .header-row-top div:nth-child(1) {
header .header-content .header-row-top div:nth-child(2) { header .header-content .header-row-top div:nth-child(2) {
display: flex !important; display: flex !important;
gap: 24px !important; gap: 24px !important;
overflow: scroll !important; overflow: none !important;
margin-left: 24px !important; margin-left: 24px !important;
} }
@ -328,14 +246,16 @@ header .header-content .header-row-bottom {
background: transparent !important; background: transparent !important;
border-radius: 10px !important; border-radius: 10px !important;
border: 1px #2b2b2b solid !important; border: 1px #2b2b2b solid !important;
overflow: scroll !important; overflow: none !important;
width: 100% !important; width: 100% !important;
top: 24px !important; top: 24px !important;
max-width: 1200px !important; max-width: 1200px !important;
backdrop-filter: blur(24px) brightness(0.6) !important; backdrop-filter: blur(24px) brightness(1) !important;
display: flex !important; display: flex !important;
justify-content: space-between !important; justify-content: space-between !important;
align-items: center !important; align-items: center !important;
z-index: 50 !important;
min-height: 56px !important;
} }
header .header-content .header-row-bottom #show-w-scroll { header .header-content .header-row-bottom #show-w-scroll {
@ -346,11 +266,12 @@ header .header-content .header-row-bottom #show-w-scroll {
} }
header .header-content .header-row-bottom .header-sub-service { header .header-content .header-row-bottom .header-sub-service {
color: white !important; color: var(--sudovanilla-forgejo-color) !important;
font-weight: bold !important; font-weight: bold !important;
padding: 0px 32px !important; padding: 0px 32px !important;
border-right: 1px #3f3c3c solid !important; border-right: 1px #3f3c3c solid !important;
display: flex !important; display: flex !important;
align-items: center !important;
} }
header .header-content .header-row-bottom div { header .header-content .header-row-bottom div {
@ -361,12 +282,12 @@ header .header-content .header-row-bottom div {
} }
header .header-content .header-row-bottom div .header-button { header .header-content .header-row-bottom div .header-button {
color: white !important; color: var(--sudovanilla-forgejo-color) !important;
cursor: pointer !important; cursor: pointer !important;
} }
header .header-content .header-row-bottom div a { header .header-content .header-row-bottom div a {
color: rgba(255, 255, 255, 0.5) !important; color: var(--sudovanilla-forgejo-color) !important;
display: flex !important; display: flex !important;
align-items: center !important; align-items: center !important;
text-decoration: none !important; text-decoration: none !important;
@ -376,7 +297,7 @@ header .header-content .header-row-bottom div a {
} }
header .header-content .header-row-bottom div a:hover { header .header-content .header-row-bottom div a:hover {
color: rgba(255, 255, 255, 0.75) !important; color: var(--sudovanilla-forgejo-color) !important;
} }
header .header-content .header-row-bottom div a svg { header .header-content .header-row-bottom div a svg {