diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2020-06-22 10:13:40 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2020-06-22 10:13:40 -0400 |
| commit | fb4c9e80239275055711141c4a56226fa1c4b32b (patch) | |
| tree | b8b3ef3c2fd531be5ce33679fbd674e6a125c0bd /CSS/main.css | |
| parent | a66aebc02bd4593d94f39e462ee9ff5578ab4583 (diff) | |
Updated side bar to have drop downs
Diffstat (limited to 'CSS/main.css')
| -rw-r--r-- | CSS/main.css | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/CSS/main.css b/CSS/main.css index de524a0..716655e 100644 --- a/CSS/main.css +++ b/CSS/main.css @@ -90,6 +90,40 @@ main{ width: 90%; background-color: rgba(213,213,213,1.0); } +.dropbtn { + color: #000; + padding: 1.4em; + font-size: .9em; + cursor: pointer; + background: rgba(210,210,210,1); + border: none;*/ + display: block; + position: relative; + width: 100%; + text-align: left; +} +.dropbtn:hover, .dropbtn:focus { + background-color: #fff; +} +.dropdown { + position: relative; + display: inline-block; +} +.dropdown-content { + display: none; + position: absolute; + background-color: rgba(210,210,210,1); + width: 100%; + overflow: auto; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 1; +} +.dropdown-content a { + color: #000; + padding: 12px 16px; + text-decoration: none; + display: block; +} @media only screen and (min-width: 768px) and (min-height: 614px){ body{ display: grid; @@ -168,7 +202,7 @@ main{ } ul li a{ font-size: 0.625em; - padding: 1em; + padding: 1em; } } @media only screen and (max-height: 665px) and (min-height: 582px){ @@ -186,5 +220,5 @@ main{ body{ grid-template-columns: 16% auto; } - -}
\ No newline at end of file + +} |
