/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT 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 APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../mixins/hairline.less';
@import '../custom.less';
@import './vars.less';

@tabbar-prefix-cls: ~'@{css-prefix}mobile-tabbar';

.@{tabbar-prefix-cls} {
  z-index: 1;
  display: flex;
  box-sizing: content-box;
  width: 100%;
  height: var(--ti-mobile-tabbar-height, 48px);
  background-color: var(--ti-mobile-tabbar-bgcolor, #f0f0f0);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);

  &--fixed {
    position: fixed;
    bottom: 0;
    left: 0;
  }

  &--unfit {
    padding-bottom: 0;
  }

  &.is-border {
    .hairline('top', var(--ti-mobile-tabbar-border-color, #ccc), absolute);
  }
}
