This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.css
108 lines (98 loc) · 1.62 KB
/
search.css
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
article:focus-within {
background: rgba(0, 0, 0, 0.1);
box-shadow: 0 0 5px white;
}
body {
min-height: 100vh;
max-width: max-content;
margin: auto;
font-family: ui-monospace, 'Cascadia Mono', 'Cascadia Code', 'Consolas',
'Segoe UI Mono', 'Ubuntu Mono', 'Roboto Mono', Menlo, Monaco, monospace;
background: black;
color: white;
}
a {
color: skyblue;
}
input {
color: white;
background: #2a2a2a;
border: solid 1px darkgray;
border-radius: 1em;
padding: 1em;
}
article:focus-within {
box-shadow: 0 0 5px black;
background: rgba(255, 255, 255, 0.1);
}
article {
padding: 0.5em;
}
@media (min-width: 1122px) {
html {
overflow-x: hidden;
}
html:before {
content: ' ';
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: -1;
overflow: hidden;
display: block;
background-image: url(/bg.svg);
background-size: cover;
}
}
input[type='search'] {
width: calc(100% - 100px);
}
img {
padding-right: 1em;
}
@media (min-width: 500px) {
html {
min-height: 100%;
}
body {
margin-top: 1em;
min-height: calc(100vh - 2em);
border-radius: 1em;
}
input[type='search'] {
width: calc(100% - 60px);
}
article {
padding: 1em;
margin: 1em;
}
}
header {
display: flex;
justify-content: left;
align-items: center;
}
form {
width: 100%;
}
@media (max-width: 414px) {
header {
text-align: center;
display: block;
margin-bottom: 5px;
}
}
@media (max-width: 226px) {
input,
input[type='search'] {
width: 100%;
}
form {
text-align: center;
}
form * {
display: block;
}
}