diff options
author | sanine-a <sanine.not@pm.me> | 2021-04-13 13:03:55 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2021-04-13 13:03:55 -0500 |
commit | 64c6fb119164afcfc654ccee3c2ad96426f17a0c (patch) | |
tree | 97cd91d4b741e71b9dd143f480322546cc79a6df /style.css | |
parent | 268b82d0efbc49ff48e1f2c4b7b6c620a099f6e3 (diff) |
add StyleDropdown.js
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -64,6 +64,7 @@ body { .StyleButtonEnabled { border-color: #2af; + cursor: pointer; } .StyleButtonEnabled:hover @@ -77,3 +78,51 @@ body { color: #444; border-color: #444; } + + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +.StyleDropdownButton +{ + padding: 10px; + border-radius: 8px; + border-style: solid; + border-width: 2px; + display: inline-block; + min-width: 100px; +} + +.StyleDropdownContainer +{ + position: relative; + display: inline-block; +} + +.StyleDropdownContent +{ + display: none; + position: absolute; + min-width: 160px; + max-height: 500%; + z-index: -1; + overflow: scroll; +} + +.StyleDropdownContent a +{ + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; +} + +.StyleDropdownContent a:hover +{ + background-color: #f1f1f1; +} + + +.StyleDropdownContainer:hover .StyleDropdownContent +{ + display: block; +} |