sudovanilla-ark/forgejo/gitea/templates/base/head.tmpl

307 lines
7.4 KiB
Cheetah
Raw Normal View History

2024-05-13 23:34:01 -05:00
<!DOCTYPE html>
<html lang="{{ctx.Locale.Lang}}" data-theme="{{ThemeName .SignedUser}}">
<head>
<meta name="darkreader-lock">
2024-05-13 23:34:01 -05:00
<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>
{{if .ManifestData}}<link rel="manifest" href="data:{{.ManifestData}}">{{end}}
<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{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="referrer" content="no-referrer">
{{if .GoGetImport}}
<meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}">
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
{{end}}
{{if and .EnableFeed .FeedURL}}
<link rel="alternate" type="application/atom+xml" title="" href="{{.FeedURL}}.atom">
<link rel="alternate" type="application/rss+xml" title="" href="{{.FeedURL}}.rss">
{{end}}
<link rel="icon" href="{{AssetUrlPrefix}}/img/favicon.svg" type="image/svg+xml">
<link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png">
{{template "base/head_script" .}}
<noscript>
<style>
.dropdown:hover > .menu { display: block; }
.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
</style>
</noscript>
{{template "base/head_opengraph" .}}
{{template "base/head_style" .}}
{{template "custom/header" .}}
</head>
<body hx-headers='{"x-csrf-token": "{{.CsrfToken}}"}' hx-swap="outerHTML" hx-ext="morph" hx-push-url="false">
{{template "custom/body_outer_pre" .}}
<div class="full height">
{{template "custom/body_inner_pre" .}}
{{if not .PageIsInstall}}
{{template "base/head_navbar" .}}
{{end}}
{{if false}}
{{/* to make html structure "likely" complete to prevent IDE warnings */}}
</div>
</body>
</html>
{{end}}
<style>
.sudovanilla-logo img {
width: 32px;
2024-05-13 23:34:01 -05:00
}
.header-sub-service {
height: 32px;
2024-05-13 23:34:01 -05:00
}
.ui.container.flex-container {
max-width: 1200px !important;
2024-05-13 23:34:01 -05:00
}
2024-05-13 23:34:01 -05:00
mobilebar {
display: none;
}
@media screen and (max-width: 800px) {
body {
padding: 0px 24px !important;
}
}
@media screen and (max-width: 800px) {
header, .sidebar {
display: none !important;
}
.page-content {
margin-top: 24px !important;
}
mobilebar {
display: flex !important;
}
.mobile-docs-dropdown {
display: block !important;
}
.document-layout {
flex-direction: column;
}
.ui.form input {
width: calc(100% - 64px) !important;
}
}
mobilebar {
position: fixed;
bottom: 24px;
z-index: 50;
left: 50%;
transform: translate(-50%);
backdrop-filter: blur(24px) brightness(0.6);
padding-bottom: env(safe-area-inset-bottom);
border-radius: 5rem;
border: 1px #2b2b2b solid;
align-items: center;
padding: 0px 14px;
justify-content: space-between;
width: calc(100% - 120px);
}
mobilebar button {
border-radius: 3rem;
border: none;
padding: 8px 10px;
background: transparent;
}
mobilebar .mobile-popup-menu {
position: absolute;
right: 0px;
display: none;
flex-direction: column;
bottom: 64px;
border-radius: 6px;
font-size: 24px;
width: 100%;
background-color: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(24px) brightness(0.3) !important;
-webkit-backdrop-filter: blur(24px) brightness(1) !important;
border: 1px #2b2b2b solid;
}
mobilebar .mobile-popup-menu a {
padding: 12px 24px !important;
}
mobilebar img {
width: 32px !important;
}
mobilebar p {
margin: 0px !important;
}
:root .forgejo-light {
--sudovanilla-forgejo-color: #10161d;
2024-05-13 23:34:01 -05:00
}
:root .forgejo-dark {
--sudovanilla-forgejo-color: #fafafa !important;
2024-05-13 23:34:01 -05:00
}
.forgejo-light > img[src="https://md.sudovanilla.org/images/sv-logo-4.png"] {
filter: invert(1);
2024-05-13 23:34:01 -05:00
}
2024-05-13 23:34:01 -05:00
header {
/* position: absolute !important; */
2024-05-13 23:34:01 -05:00
top: 0px !important;
max-width: 1200px !important;
margin: auto !important;
width: 100% !important;
z-index: 50 !important;
}
header .header-content {
display: flex !important;
flex-direction: column !important;
}
header .header-content .header-link-item {
color: var(--sudovanilla-forgejo-color) !important;
2024-05-13 23:34:01 -05:00
display: flex !important;
gap: 6px !important;
align-items: center !important;
text-decoration: none !important;
font-size: 16px !important;
text-wrap: nowrap !important;
}
header .header-content .header-link-item:hover {
color: var(--sudovanilla-forgejo-color) !important;
2024-05-13 23:34:01 -05:00
}
header .header-content .header-link-item svg {
width: 0px !important;
}
header .header-content .header-login-button {
align-items: center !important;
display: flex !important;
padding: 2px 16px 2px 2px !important;
cursor: pointer !important;
}
header .header-content .header-login-button img {
margin-right: 12px !important;
}
header .header-content .header-login-button img {
width: 32px !important;
height: 32px !important;
border-radius: 10rem !important;
}
header .header-content .header-row-top {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
padding: 24px 0px;
2024-05-13 23:34:01 -05:00
}
header .header-content .header-row-top div:nth-child(1) {
display: flex !important;
gap: 12px !important;
}
header .header-content .header-row-top div:nth-child(2) {
display: flex !important;
gap: 24px !important;
overflow: none !important;
2024-05-13 23:34:01 -05:00
margin-left: 24px !important;
}
header .header-content .header-row-bottom {
background: transparent !important;
border-radius: 10px !important;
border: 1px #2b2b2b solid !important;
overflow: none !important;
2024-05-13 23:34:01 -05:00
width: 100% !important;
top: 24px !important;
max-width: 1200px !important;
backdrop-filter: blur(24px) brightness(1) !important;
2024-05-13 23:34:01 -05:00
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
z-index: 50 !important;
min-height: 56px !important;
2024-05-13 23:34:01 -05:00
}
header .header-content .header-row-bottom #show-w-scroll {
transition: width 0.3s, opacity 0.3s !important;
width: 0px !important;
opacity: 0 !important;
display: block !important;
}
header .header-content .header-row-bottom .header-sub-service {
color: var(--sudovanilla-forgejo-color) !important;
2024-05-13 23:34:01 -05:00
font-weight: bold !important;
padding: 0px 32px !important;
border-right: 1px #3f3c3c solid !important;
display: flex !important;
align-items: center !important;
2024-05-13 23:34:01 -05:00
}
header .header-content .header-row-bottom div {
display: flex !important;
gap: 24px !important;
align-items: center !important;
margin-right: 24px !important;
}
header .header-content .header-row-bottom div .header-button {
color: var(--sudovanilla-forgejo-color) !important;
2024-05-13 23:34:01 -05:00
cursor: pointer !important;
}
header .header-content .header-row-bottom div a {
color: var(--sudovanilla-forgejo-color) !important;
2024-05-13 23:34:01 -05:00
display: flex !important;
align-items: center !important;
text-decoration: none !important;
gap: 6px !important;
font-size: 16px !important;
text-wrap: nowrap !important;
}
header .header-content .header-row-bottom div a:hover {
color: var(--sudovanilla-forgejo-color) !important;
2024-05-13 23:34:01 -05:00
}
header .header-content .header-row-bottom div a svg {
width: 18px !important;
}
</style>