/*!
 * Copyright (C) 2022 StApps
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, version 3.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <https://www.gnu.org/licenses/>.
 */
@import '../../../../theme/util/mixins';

:host {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;

  .menu-button {
    display: none;
  }

  @include ion-md-up {
    right: unset;
    top: 0;

    .menu-button {
      display: revert;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      margin-top: var(--spacing-xxl);
    }

    ion-tab-bar {
      border-top: unset;
      position: relative;
      border-right: var(--border);
      flex-direction: column;
      gap: var(--spacing-md);
      width: var(--navigation-rail-width);
      height: 100vh;
    }

    ion-tab-button {
      flex: unset;
      height: var(--navigation-rail-item-height);
    }
  }
}

.tab-selected ::ng-deep stapps-icon {
  --fill: 1;
}
