-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
110 lines (104 loc) · 1.92 KB
/
style.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
109
110
* {
box-sizing: border-box;
}
body,
section {
background-color: var(--gray-9);
display: flex;
flex-direction: column;
justify-content: top;
align-items: center;
gap: 1rem;
}
body {
justify-content: space-between;
}
#searchbar,
#output,
header {
width: 80vw;
}
header {
padding-top: var(--size-4);
font-size: var(--size-7);
font-weight: var(--font-weight-9);
}
#query {
overflow: hidden;
resize: vertical;
flex: 1 1 auto;
background-color: #171a1c;
margin-right: 20px;
}
a,
a:visited {
color: var(--yellow-6);
}
button {
flex: 0 1 200px;
min-width: 100px;
background-color: var(--yellow-6);
color: var(--gray-9);
border-radius: var(--radius-2);
padding: var(--size-1) var(--size-2);
}
button:hover {
background-color: var(--yellow-4);
padding: 2.5px var(--size-2) 7.5px var(--size-2);
}
button:active {
background-color: var(--yellow-9);
padding: var(--size-1) var(--size-2);
}
#searchbar {
width: calc(100%);
display: flex;
align-items: center;
justify-content: center;
position: sticky;
top: 0;
background: var(--gray-9);
padding-top: 2rem;
padding-bottom: 2.5rem;
margin-bottom: -0.5rem;
}
#output {
max-inline-size: initial;
width: calc(80vw - 2px);
color: var(--red-9);
border-radius: var(--radius-2);
padding: var(--size-4) var(--size-4);
background-color: #171a1c;
cursor: auto;
resize: none;
margin-bottom: 2rem;
}
footer {
text-align: center;
padding-bottom: var(--size-4);
}
.dropdown {
position: relative;
display: inline-block;
background-color:var(--yellow-5);
color:var(--gray-9);
padding: var(--size-1) var(--size-2);
border-radius: var(--radius-2);
}
.dropdown-content {
display: none;
position: absolute;
background-color: var(--gray-7);
min-width: 160px;
padding: 12px 16px;
z-index: 1;
border-radius: var(--radius-2);
margin-left:calc(var(--size-2) * -1);
top:40px;
}
.dropdown:hover{
z-index: 2;
}
.dropdown:hover .dropdown-content {
display: block;
}