Skip to content

Commit 2619017

Browse files
committed
better css for search
1 parent d155c89 commit 2619017

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

templates/header.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,27 @@
488488
}
489489
}
490490

491+
input.search, button.search {
492+
font: inherit;
493+
&:focus {
494+
outline: none;
495+
}
496+
}
497+
498+
form.search {
499+
display: flex;
500+
grid-column: 2;
501+
}
502+
503+
input.search {
504+
flex-grow: 1;
505+
padding: 0.5em 0.75em;
506+
}
507+
508+
button.search {
509+
padding: 0.5em 0.75em;
510+
}
511+
491512
{{ with .CustomCSS}} {{.}}{{end}}
492513
</style>
493514

templates/main.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ <h1>
6464

6565
{{ if and (or (not .DomainIsPrivate) (.SignedIn)) (or (ne .Domain "public") (.PrivateEnvironment)) }}
6666
{{ if .Options.ShowSearch}}
67-
<form action="/{{.Domain}}" method="get">
68-
<input type="text" name="q" value="" size="35" placeholder="Search domain...">
69-
<input class="button1" type="submit" value="Search">
67+
<form class="search" action="/{{.Domain}}" method="get">
68+
<input class="search" type="text" name="q" value="" placeholder="Search domain...">
69+
<input class="button1 search" type="submit" value="Search">
7070
</form>
7171
{{ end }}
7272

0 commit comments

Comments
 (0)