forked from vaginessa/search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (76 loc) · 1.89 KB
/
index.html
File metadata and controls
88 lines (76 loc) · 1.89 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./favicon.svg" />
<title>newtab</title>
</head>
<body>
<form id="container" method="get" action="https://html.duckduckgo.com/html/search">
<input type="text" name="q" id="input" autofocus required>
<input type="image" id="search" src="favicon.svg" width="40" height="40">
</form>
</body>
</html>
<style>
* {
box-sizing: border-box;
}
:root {
--bg: #0b0e14;
--text: #ffffff;
--font: 'DepartureMono Nerd Font';
--element-bg: #1f1d2e;
--radius: 0.5rem;
}
html {
font-family: var(--font);
background: var(--bg);
color: var(--text);
}
body {
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 90vh;
}
#container {
display: flex;
flex-direction: row;
width: 100%;
max-width: min(90vw, 60rem);
padding: 0.2rem;
border-radius: var(--radius);
background: var(--element-bg);
}
#container>* {
padding: 0.5rem 0.3rem;
border: none;
}
#search {
background: var(--element-bg);
color: var(--text);
cursor: pointer;
font-weight: 500;
border-radius: var(--radius);
transition: 0.3s ease-in-out filter;
font-size: large;
}
#search:hover {
filter: brightness(1.2);
}
#input {
background: var(--bg);
color: var(--text);
font-family: var(--font);
font-size: large;
width: 100%
}
#input:focus {
outline: none;
font-family: var(--font);
}
</style>