-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (81 loc) · 2.01 KB
/
styles.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
/* Tooltip container */
.tooltip {
position: relative;
/* display: inline-block; */
color: DarkBlue;
/* border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}
/* Tooltip text */
.tooltip .tooltiptext {
visibility: hidden;
width: 200px;
background-color: white;
color: black;
text-align: center;
padding: 5px 0;
border-radius: 6px;
border: 1px solid DarkBlue;
/* Position the tooltip text - see examples below! */
position: absolute;
z-index: 1;
top: 100%;
left: 50%;
margin-top: 4px;
margin-left: -100px; /* Use half of the width (120/2 = 60), to center the tooltip */
padding-right: 3px;
padding-left: 3px;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
visibility: visible;
}
.tooltip:hover {
text-decoration: underline;
}
.tooltip .tooltiptext::after {
content: " ";
position: absolute;
bottom: 100%; /* At the top of the tooltip */
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent DarkBlue transparent;
}
/*the container must be positioned relative:*/
.autocomplete {
position: relative;
display: inline-block;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
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: 2px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
/*when hovering an item:*/
.autocomplete-items div:hover {
background-color: #e9e9e9;
}
/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
background-color: DodgerBlue !important;
color: #ffffff;
}
textarea {
font-family: inherit;
font-size: inherit;
width: 300px;
height: 50px;
}