<template>
    <div class="hy-navigation-tabbar">
        <slot />
    </div>
</template>

<script>
export default {
    name: "HyNavigationTabbar",
    data() {
        return {};
    },
    created() {},
    components: {},
};
</script>

<style lang="scss">
.hy-navigation-tabbar {
    width: 100%;
    min-height: calc(55px + env(safe-area-inset-bottom));
    position: fixed;
    bottom: 0;
    z-index: 100;
    border-bottom: 0;
    background-color: var(--hy-section-bg-color);
    padding: 15px 0;
    box-shadow: var(--hy-tabbar-shadow);

    display: flex;
    align-items: flex-start;
    justify-content: space-around;

    & > * {
        margin: 0;
        flex: 1;
    }

    .hy-navigation-option {
        display: flex;
        align-items: center;
        flex-direction: column;

        text-decoration: none;
        border: none;
        background: none;
        margin: 0;
        padding: 0;
        -moz-appearance: none;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: 0;

        color: rgba(128, 128, 128, 0.7);
        font-family: var(--hy-font-family);
        cursor: pointer;

        &.selected {
            color: var(--hy-accent-color);
            filter: saturate(150%) brightness(110%);
        }

        span {
            font-size: 13px;
            margin: 0;
        }

        i {
            font-size: 20px;
        }
    }
}
</style>
