-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (109 loc) · 1.85 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
*{
user-select: none;
box-sizing: border-box;
}
*:focus {
outline:0;
}
.heading {
width:100%;
text-align: center;
border-bottom: dotted 1px black;
padding: 8px 0px;
font-size: 20px;
font-weight: bold;
font-variant: small-caps;
font-family: "lucida", monospace;
}
#dos, #donts{
color: #1287A5;
font-size: 20px;
}
#dos .heading {
color: green;
}
#donts .heading {
color: red;
}
#main{
display:flex;
justify-content: space-around;
margin:10%;
}
#main > * {
width: calc(50% - 20px);
height: 500px;
border-style: ridge;
border-width: 5px;
border-radius: 10px;
background-color: #DAE0E2;
}
@media all and (max-width: 720px) {
#main {
display: block;
width: 80%;
}
#main > * {
margin-bottom: 20px;
width:100%;
}
}
#searchBox {
width: 60%;
margin:auto;
height:auto;
position: absolute;
top:50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
form > input[type="text"] {
border: 1px solid grey;
padding:20px 10px;
font-size: 20px;
width:100%;
max-height: 30px;
}
header {
border:1px black solid;
width: 100%;
height: 150px;
position: relative;
}
body{
background-color: #FBD28B;
}
/*
https://www.w3schools.com/howto/howto_js_autocomplete.asp
*/
.autocomplete {
position: relative;
display: inline-block;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
top: 100%;
left: 0;
right: 0;
font-size: 20px;
}
.autocomplete-items div {
padding: 10px;
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;
}