UI fixups for f449fe8

Mostly returning the look to the previous state, code formatting, and
adjusting the look of the search results label.
This commit is contained in:
Umar Getagazov 2022-07-10 08:36:35 +07:00 committed by Drew DeVault
parent 67c60ef5c1
commit dda780c694
3 changed files with 33 additions and 17 deletions

View file

@ -100,6 +100,16 @@ button:hover {
margin: 1rem auto 0;
}
.search p[role="note"] {
color: gray;
font-size: 0.875rem;
margin-bottom: 0.5rem;
}
.search ol {
margin-top: 0;
}
.about main {
max-width: 800px;
width: 800px;
@ -193,6 +203,12 @@ ol {
}
.result .title {
margin: 0;
font-size: 1rem;
font-weight: normal;
}
.result .title a {
display: block;
}

View file

@ -8,7 +8,7 @@
<ol aria-labelledby="sr-label">
{{range .Results}}
<li class="result">
<h2><a href="{{.Page.Url}}" rel="noopener nofollow" class="title">{{.Page.Title}}</a></h2>
<h2 class="title"><a href="{{.Page.Url}}" rel="noopener nofollow">{{.Page.Title}}</a></h2>
<a href="{{.Page.Url}}" rel="noopener nofollow" class="url"><small>{{.Page.Url}}</small></a>
{{if .Page.Excerpt}}
<p class="excerpt">{{.Page.Excerpt}}</p>