-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.css
102 lines (83 loc) · 1.94 KB
/
popup.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
textarea {
resize: none;
}
#settings {
color: inherit;
text-decoration: none;
}
#settings-div {
margin-top: 3%;
}
#message {
color: var(--dark-mode-1); /* Default for light mode */
margin-bottom: 10px;
}
/* Taken from https://www.w3schools.com/howto/howto_js_autocomplete.asp */
.autocomplete {
/* the container must be positioned relative: */
position: relative;
display: inline-block;
}
input {
border: 1px solid var(--light-mode-2);
padding: 10px;
font-size: 16px;
}
input[type=text] {
width: 100%;
}
input[type=submit] {
color: #fff;
background-color: var(--light-mode-1);
}
.autocomplete-items {
position: absolute;
border: 1px solid var(--light-mode-3);
border-bottom: none;
border-top: none;
z-index: 99;
/* position the autocomplete items to be the same width as the container: */
top: 100%;
left: 0;
right: 0;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
border-bottom: 1px solid var(--light-mode-3);
}
.autocomplete-items div:hover {
/* when hovering an item: */
background-color: var(--light-mode-4);
}
.autocomplete-active {
/* when navigating through the items using the arrow keys: */
background-color: var(--light-mode-1) !important;
color: #ffffff;
}
/* Light mode (default) */
input {
background-color: var(--light-mode-5);
}
input[type=submit] {
background-color: var(--light-mode-1);
}
#message.dark-mode {
color: var(--dark-mode-5);
}
input.dark-mode {
background-color: var(--dark-mode-2);
color: var(--dark-mode-5);
border: 1px solid var(--dark-mode-3);
}
input[type=submit].dark-mode {
background-color: var(--dark-mode-4);
}
.autocomplete-items div.dark-mode {
background-color: var(--dark-mode-2);
color: var(--dark-mode-5);
border-bottom: 1px solid var(--dark-mode-3);
}
.autocomplete-items div:hover.dark-mode {
background-color: var(--dark-mode-3);
}