-
Notifications
You must be signed in to change notification settings - Fork 54
/
google-search.html
89 lines (89 loc) · 1.92 KB
/
google-search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<title>Gwern.net Search</title>
<style id="search-styles">
html {
font-size: 18px;
}
body {
margin: 0;
padding: 0.5em;
background-color: #fff;
}
.searchform {
display: flex;
margin: 0;
}
.searchform input.search {
appearance: none;
border: none;
background-color: #fff;
outline: 1px solid #ccc;
flex: 1 1 auto;
height: 2em;
padding: 0.25em 0.5em;
font-size: inherit;
}
.searchform:focus-within input.search {
outline: 2px solid #ccc;
}
.searchform input.search:focus {
outline: 2px solid #777;
}
.searchform button {
appearance: none;
border: none;
background-color: #e4e4e4;
height: 2em;
padding: 0.25em 0.5em;
flex: 0 0 5em;
margin: 0 0 0 0.5em;
outline: 1px solid #ccc;
cursor: pointer;
font-size: inherit;
}
.searchform:focus-within button {
outline: 2px solid #ccc;
}
.searchform button:hover {
background-color: #777;
color: #fff;
}
.searchform button:hover,
.searchform button:focus {
outline: 2px solid #777;
}
</style>
<style id="search-styles-dark" media="all and (prefers-color-scheme: dark)">
body {
background-color: #161616;
}
.searchform input.search {
background-color: #161616;
outline: 1px solid #5c5c5c;
}
.searchform:focus-within input.search {
outline: 2px solid #5c5c5c;
}
.searchform input.search:focus {
outline: 2px solid #a6a6a6;
}
.searchform button {
background-color: #404040;
outline: 1px solid #5c5c5c;
}
.searchform:focus-within button {
outline: 2px solid #5c5c5c;
}
.searchform button:hover {
background-color: #a6a6a6;
color: #000;
}
.searchform button:hover,
.searchform button:focus {
outline: 2px solid #a6a6a6;
}
</style>
<form action="https://www.google.com/search" class="searchform" method="get" name="searchform" target="_blank">
<input autocomplete="on" class="form-control search" name="q" placeholder="Search in Gwern.net" required="required" type="text">
<input name="sitesearch" type="hidden" value="gwern.net">
<button class="button" type="submit">Search</button>
</form>