diff options
author | Aki <please@ignore.pl> | 2021-05-11 22:13:45 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-05-11 22:13:45 +0200 |
commit | 813ce4ad2f931938fb11e13957e4c7232ad1d517 (patch) | |
tree | d329a73b335c41f785cc656d63254a5289e76ba2 | |
parent | 9b4569074e88ae265b28b5ad0bd8e5368fda0284 (diff) | |
download | derelict-prototype-813ce4ad2f931938fb11e13957e4c7232ad1d517.zip derelict-prototype-813ce4ad2f931938fb11e13957e4c7232ad1d517.tar.gz derelict-prototype-813ce4ad2f931938fb11e13957e4c7232ad1d517.tar.bz2 |
Fixed toolbar on small screens
-rw-r--r-- | style.css | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -77,10 +77,10 @@ body { } .toolbar-wrap { - max-width: unset; + max-width: 26em; position: absolute; - width: 26em; - left: -26em; + width: 100%; + left: max(-100%, -26em); top: 0; transition: left 0.3s; z-index: 10000; @@ -93,11 +93,17 @@ body { .toolbar-wrap button { position: absolute; top: 1em; - left: calc(100% + 1em); + right: -7em; background: #282828; border: 1px solid #504945; color: #ebdbd2; - padding: 0.5em 0.8em; + width: 6em; + padding: 0.5em; + transition: right 0.3s; +} + +.toolbar-wrap.enabled button { + right: 1em; } .toolbar-wrap button:hover { |