|
|
Line 3: |
Line 3: |
| <style> | | <style> |
| | | |
− | .dropdown {
| |
− | float: right;
| |
− | overflow: hidden;
| |
− | }
| |
− |
| |
− | .dropdown .dropdown-button {
| |
− | font-size: 16px;
| |
− | border: none;
| |
− | outline: none;
| |
− | color: white;
| |
− | padding: 14px 16px;
| |
− | background-color: inherit;
| |
− | font-family: inherit;
| |
− | margin: 0;
| |
− | cursor: pointer;
| |
− | /*for transitions when hovering*/
| |
− | -o-transition: color .2s ease-out, background 1s ease-in;
| |
− | -ms-transition: color .2s ease-out, background 1s ease-in;
| |
− | -moz-transition: color .2s ease-out, background 1s ease-in;
| |
− | -webkit-transition: color .2s ease-out, background 1s ease-in;
| |
− | }
| |
− | .dropdown-content {
| |
− | /* opacity: 0; */
| |
− | display: none;
| |
− | position: absolute;
| |
− | background-color: whitesmoke;
| |
− | min-width: 160px;
| |
− | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
| |
− | z-index: 1;
| |
− | }
| |
− | .dropdown-content a {
| |
− | float: none;
| |
− | color: black;
| |
− | padding: 12px 16px;
| |
− | text-decoration: none;
| |
− | display: block;
| |
− | text-align: left;
| |
− | }
| |
− |
| |
− | .dropdown-content a:hover {
| |
− | background-color: white;
| |
− | }
| |
− |
| |
− | .dropdown:hover .dropdown-content {
| |
− | display: block;
| |
− | /*
| |
− | opacity: 1;
| |
− | transition: all 1s ease;
| |
− | -webkit-transition: all 1s ease;
| |
− | */
| |
− | }
| |
− | /* Base DIVs for whole website */
| |
− | #root {
| |
− | position: absolute;
| |
− | font-size: 16px;
| |
− | width: 100%;
| |
− | height: auto;
| |
− | margin: auto;
| |
− | background-color: Whitesmoke;
| |
− | }
| |
| #wrapper { /* Wraps all critical website content */ | | #wrapper { /* Wraps all critical website content */ |
| height: auto; | | height: auto; |