-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
119 lines (98 loc) · 2.17 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/* referenced FunFacts Chrome extension https://chrome.google.com/webstore/detail/funfacts/mblmhpinekmkfpnhjaaelgkhloeglnkk */
body {
color: black;
}
form {
padding: 5% 15% 3% 10%;
}
#searchBar{
background-color:rgb(230, 230, 230);
color: black;
font-size: 1rem;
border-color:rgba(128, 128, 128, 0.685);
border-radius: 3rem;
padding: 1.25rem;
}
input#searchBar{
color: black;
}
#searchBar:focus{
outline: 1px;
}
#searchButton{
background-color: white;
font-size: 1rem;
margin-left: .5rem;
border-radius: 2rem;
border: none;
display: none;
}
#searchButton:hover{
border-color: black;
}
.round {
border-radius: 10px;
}
#dinoThumbnail {
/* filter: invert(100%); */
position: absolute;
bottom: 5px;
right: 10px;
}
a {
color:rgb(81, 120, 187);
}
/* https://www.w3schools.com/howto/howto_js_popup.asp */
/* Popup container */
.popup {
position: relative;
display: flex;
justify-content: flex-end;
cursor: pointer;
padding:2% 0 1% 0;
}
.popup:hover {
color:rgb(81, 120, 187);
text-decoration: underline;
}
/* The actual popup (appears on top) */
.popup .popuptext {
visibility: hidden;
width: 300px;
background-color: black;
color: rgb(230, 230, 230);
font-size: smaller;
border-radius: 6px;
padding: 8px 8px 0 8px;
position: absolute;
z-index: 1;
bottom: 75%;
right: 0%;
margin-left: -30px;
}
/* Popup arrow */
.popup .popuptext::after {
content: "";
position: absolute;
top: 100%;
right: 5%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
visibility: visible;
-webkit-animation: fadeIn 1s;
animation: fadeIn 1s
}
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity:1 ;}
}