mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-28 23:52:12 +00:00
reverted ambiguos text styles
This commit is contained in:
parent
f0754e3b20
commit
4991a2e5ed
|
@ -105,7 +105,7 @@ code {
|
||||||
top: 2px;
|
top: 2px;
|
||||||
}
|
}
|
||||||
.title a {
|
.title a {
|
||||||
color: #006414;
|
color: #0000ff;
|
||||||
font-size: medium;
|
font-size: medium;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ code {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.dark .title a {
|
.dark .title a {
|
||||||
color: #a0d798;
|
color: #dedede;
|
||||||
}
|
}
|
||||||
.post.deleted .title a {
|
.post.deleted .title a {
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
|
@ -226,7 +226,7 @@ code {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
.comment .meta a.submitter {
|
.comment .meta a.submitter {
|
||||||
background-color: #006414;
|
background-color: #0055df;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
@ -805,7 +805,6 @@ nav li {
|
||||||
nav ul a {
|
nav ul a {
|
||||||
background-color: #eff7ff;
|
background-color: #eff7ff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #006414;
|
|
||||||
padding: 2px 6px 0 6px;
|
padding: 2px 6px 0 6px;
|
||||||
}
|
}
|
||||||
.dark nav ul a {
|
.dark nav ul a {
|
||||||
|
@ -818,7 +817,6 @@ nav ul a {
|
||||||
}
|
}
|
||||||
|
|
||||||
nav .selected a {
|
nav .selected a {
|
||||||
color: orangered;
|
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 1px solid #00a846;
|
border: 1px solid #00a846;
|
||||||
border-bottom: 1px solid white;
|
border-bottom: 1px solid white;
|
||||||
|
|
|
@ -238,6 +238,7 @@ func Render(w http.ResponseWriter, templateName string, state State) {
|
||||||
}
|
}
|
||||||
func GetRoot(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
func GetRoot(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||||
data := make(map[string]any)
|
data := make(map[string]any)
|
||||||
|
data["Title"] = r.Host
|
||||||
tmpl, err := GetTemplate("root.html")
|
tmpl, err := GetTemplate("root.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("execute fail", err)
|
fmt.Println("execute fail", err)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>{{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
|
<title>{{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
|
||||||
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
|
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
|
||||||
<link rel="stylesheet" href="/_/static/style.css?v=8">
|
<link rel="stylesheet" href="/_/static/style.css?v=10">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
</head>
|
</head>
|
||||||
<body {{ if .Dark }}class="dark"{{end}}>
|
<body {{ if .Dark }}class="dark"{{end}}>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<title>{{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
|
<title>{{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
|
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
|
||||||
<link rel="stylesheet" href="/_/static/style.css?v=8">
|
<link rel="stylesheet" href="/_/static/style.css?v=10">
|
||||||
</head>
|
</head>
|
||||||
<body{{ if .Dark }} class="dark"{{end}}>
|
<body{{ if .Dark }} class="dark"{{end}}>
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
<span class="title">mlmym</span>
|
<span class="title">{{ .Title }}</span>
|
||||||
</nav>
|
</nav>
|
||||||
<form class="root" method="POST">
|
<form class="root" method="POST">
|
||||||
<label>Enter a <a href="https://join-lemmy.org/instances" target="blank_">lemmy</a> domain or url
|
<label>Enter a <a href="https://join-lemmy.org/instances" target="blank_">lemmy</a> domain or url
|
||||||
|
|
Loading…
Reference in a new issue