72 lines
1.6 KiB
CSS
72 lines
1.6 KiB
CSS
/* Dropdown Button */
|
|
.dropbtn {
|
|
background-color: #04AA6D;
|
|
color: white;
|
|
padding: 16px;
|
|
font-size: 16px;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Dropdown button on hover & focus */
|
|
.dropbtn:hover, .dropbtn:focus {
|
|
background-color: #3e8e41;
|
|
}
|
|
|
|
/* The search field */
|
|
#myInput {
|
|
box-sizing: border-box;
|
|
background-image: url('searchicon.png');
|
|
background-position: 14px 12px;
|
|
background-repeat: no-repeat;
|
|
font-size: 16px;
|
|
padding: 14px 20px 12px 45px;
|
|
border: none;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
/* The search field when it gets focus/clicked on */
|
|
#myInput:focus {outline: 3px solid #ddd;}
|
|
|
|
/* The container <div> - needed to position the dropdown content */
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Dropdown Content (Hidden by Default) */
|
|
.dropdown-content {
|
|
position: relative;
|
|
background-color: #f6f6f6;
|
|
min-width: 230px;
|
|
border: 1px solid #ddd;
|
|
z-index: 1;
|
|
}
|
|
|
|
.dropdown-options {
|
|
position: absolute;
|
|
background-color: #f6f6f6;
|
|
min-width: 230px;
|
|
border: 1px solid #ddd;
|
|
z-index: 1;
|
|
}
|
|
|
|
.dropdown-options div {
|
|
/* position: absolute; */
|
|
display: none;
|
|
color: black;
|
|
padding: 12px 16px;
|
|
text-decoration: none;
|
|
/* display: block; */
|
|
/* z-index: 1; */
|
|
}
|
|
|
|
/* Change color of dropdown links on hover */
|
|
.dropdown-content a:hover {background-color: #f1f1f1}
|
|
.dropdown-content p:hover {background-color: #f1f1f1}
|
|
.dropdown-content li:hover {background-color: #f1f1f1}
|
|
.dropdown-content div div:hover {background-color: #f1f1f1}
|
|
|
|
/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
|
|
.show {display:block !important;}
|