diff options
Diffstat (limited to 'src/app/components/navbutton/index.css')
| -rw-r--r-- | src/app/components/navbutton/index.css | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/app/components/navbutton/index.css b/src/app/components/navbutton/index.css new file mode 100644 index 0000000..6909464 --- /dev/null +++ b/src/app/components/navbutton/index.css @@ -0,0 +1,63 @@ +: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); +} + +.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; + width: 40px; + height: 40px; + border-radius: 40px; + display: grid; +} + +.item * { + margin: auto; +} + +.item:hover { + background: #5f5e9c; +} |