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>
<html lang="{{ctx.Locale.Lang}}" data-theme="{{ThemeName .SignedUser}}">
<head>
<meta name="darkreader-lock">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{/* 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>
@ -9,7 +10,6 @@
<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}">
<meta name="keywords" content="{{MetaKeywords}}">
<meta name="referrer" content="no-referrer">
<link rel="stylesheet" href="http://192.168.1.191:5500/css/index.css"/>
{{if .GoGetImport}}
<meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}">
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
@ -49,77 +49,19 @@
{{end}}
<style>
:root {
--steel-900: #000 !important;
--steel-850: #000 !important;
--steel-800: #000 !important;
--steel-750: #000 !important;
--steel-700: #222 !important;
--steel-650: #000 !important;
--steel-600: #1a1a1a !important;
.sudovanilla-logo img {
width: 32px;
}
/* Fixes for Forgejo */
header .header-content .header-row-top {
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);
.header-sub-service {
height: 32px;
}
.inline.required.field {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
max-width: 490px;
margin: auto;
.ui.container.flex-container {
max-width: 1200px !important;
}
.repo-button-row input {
height: auto !important;
}
.ui.compact.basic.button {
padding: 0px 12px !important;
}
mobilebar {
display: none;
@ -198,66 +140,42 @@ mobilebar p {
}
/***/
a {
color: white;
text-decoration: none;
:root .forgejo-light {
--sudovanilla-forgejo-color: #10161d;
}
a:hover {
text-decoration: underline !important;
:root .forgejo-dark {
--sudovanilla-forgejo-color: #fafafa !important;
}
@font-face {
font-family: OpenSans;
src: url(https://md.sudovanilla.org/fonts/Open_Sans/static/OpenSans-Regular.ttf);
font-weight: normal;
.forgejo-light > img[src="https://md.sudovanilla.org/images/sv-logo-4.png"] {
filter: invert(1);
}
@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 {
position: absolute !important;
/* position: absolute !important; */
top: 0px !important;
max-width: 1200px !important;
margin: auto !important;
@ -271,7 +189,7 @@ header .header-content {
}
header .header-content .header-link-item {
color: rgba(255, 255, 255, 0.5) !important;
color: var(--sudovanilla-forgejo-color) !important;
display: flex !important;
gap: 6px !important;
align-items: center !important;
@ -281,7 +199,7 @@ header .header-content .header-link-item {
}
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 {
@ -309,7 +227,7 @@ header .header-content .header-row-top {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
padding: 12px 0px;
padding: 24px 0px;
}
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) {
display: flex !important;
gap: 24px !important;
overflow: scroll !important;
overflow: none !important;
margin-left: 24px !important;
}
@ -328,14 +246,16 @@ header .header-content .header-row-bottom {
background: transparent !important;
border-radius: 10px !important;
border: 1px #2b2b2b solid !important;
overflow: scroll !important;
overflow: none !important;
width: 100% !important;
top: 24px !important;
max-width: 1200px !important;
backdrop-filter: blur(24px) brightness(0.6) !important;
backdrop-filter: blur(24px) brightness(1) !important;
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
z-index: 50 !important;
min-height: 56px !important;
}
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 {
color: white !important;
color: var(--sudovanilla-forgejo-color) !important;
font-weight: bold !important;
padding: 0px 32px !important;
border-right: 1px #3f3c3c solid !important;
display: flex !important;
align-items: center !important;
}
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 {
color: white !important;
color: var(--sudovanilla-forgejo-color) !important;
cursor: pointer !important;
}
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;
align-items: center !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 {
color: rgba(255, 255, 255, 0.75) !important;
color: var(--sudovanilla-forgejo-color) !important;
}
header .header-content .header-row-bottom div a svg {