diff options
Diffstat (limited to 'src/app/components/navbutton/index.css')
| -rw-r--r-- | src/app/components/navbutton/index.css | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/src/app/components/navbutton/index.css b/src/app/components/navbutton/index.css index bf1b4ee..4c1a138 100644 --- a/src/app/components/navbutton/index.css +++ b/src/app/components/navbutton/index.css @@ -1,9 +1,51 @@ -#button { +:host { position: absolute; bottom: 10px; right: 10px; + --items-count: 2; +} + +#button { + position: relative; + width: 50px; + height: 50px; + background: var(--secondary); + border-radius: 50px; + cursor: pointer; + color: var(--color); + transition: 0.2s ease height; + display: grid; + justify-content: center; + align-content: end; + overflow: hidden; +} + +#button.open { + height: calc(50px * (var(--items-count) + 1)); +} + +#menu { width: 50px; height: 50px; + background: red; + border-radius: 50px; + display: grid; background: var(--primary); - border-radius: 100%; +} + +.icon { + margin: auto; + width: fit-content; + height: fit-content; + padding-top: 4px; +} + +.items { + height: calc(50px * var(--items-count)); + display: grid; + grid-template-rows: repeat(var(--items-count), auto); +} + +.item { + margin: auto; } |