/**
* Tencent is pleased to support the open source community by making
* WeUI-WXSS available.
*
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of
* the License at
*
*       http://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@import "../../base/fn";

.weui-cells {
  position: relative;
  margin-top: @weuiCellsMarginTop;
  background-color: @weuiCellBg;
  line-height: @weuiCellLineHeight;
  font-size: @weuiCellFontSize; //cell中间有效高度23px，跟客户端默认图标尺寸一致
  &:before {
    .setTopLine(@weuiCellBorderColor);
  }
  &:after {
    .setBottomLine(@weuiCellBorderColor);
  }
}

.weui-cells__title {
  margin-top: .77em; // 15px - 行高
  margin-bottom: .3em; // 8px - 行高
  padding-left: @weuiCellGapH;
  padding-right: @weuiCellGapH;
  color: @weuiTextColorGray;
  font-size: @weuiCellTipsFontSize;
}
.weui-cells_after-title{
  margin-top: 0;
}

.weui-cells__tips {
  margin-top: .3em; // 8px - 行高
  color: @weuiTextColorGray;
  padding-left: @weuiCellGapH;
  padding-right: @weuiCellGapH;
  font-size: @weuiCellTipsFontSize;
}

.weui-cell {
  padding: @weuiCellGapV @weuiCellGapH;
  position: relative; //这个是为了兼容cells容器onepx方案被before挡住而做的
  display: flex;
  align-items: center;
  &:before {
    .setTopLine(@weuiCellBorderColor);
    left: @weuiCellGapH;
  }
  &:first-child {
    &:before {
      display: none;
    }
  }
}
.weui-cell_active {
  background-color: @weuiCellActiveBg;
}
.weui-cell_primary{
  align-items: flex-start;
}
.weui-cell__bd{
  flex: 1;
}
.weui-cell__ft {
  text-align: right;
  color: @weuiTextColorGray;
}
