/*
 * @Author: Rosen 
 * @Date: 2019-08-03 10:37:24 
 * @Last Modified by: Rosen
 * @Last Modified time: 2019-08-03 20:10:41
 */

/* 弹出菜单的样式文件 */
/* 弹出菜单容器，默认隐藏在屏幕的下面 */
.tt-action-sheet > .tt-action-sheet-wrap{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: auto;
    background: #eee;
    transition: transform .3s ease;
    transform: translateY(100%);
    z-index: 301;
}
/* 菜单弹出的时候，改变容器位移 */
.tt-action-sheet.show .tt-action-sheet-wrap{
    transform: translateY(0);
}
/* 默认隐藏蒙版 */
.tt-action-sheet > .tt-mask{
    opacity: 0;
    /* 屏蔽元素的点击事件 */
    pointer-events: none;
    transition: opacity .3s ease;
}
/* 菜单弹出的时候显示蒙版 */
.tt-action-sheet.show > .tt-mask{
    opacity: 1;
    pointer-events: auto;
}
/* 弹出菜单头部 */
.tt-action-sheet .tt-action-sheet-header{
    padding: 0 2rem;
    display: flex;
    align-items: center;
    text-align: center;
    height: 3rem;
    background: #fff;
}
/* 头部标题，用来描述菜单作用 */
.tt-action-sheet .tt-action-sheet-header > .tt-action-sheet-title{
    flex: 1;
    font-size: .7rem;
    line-height: 1rem;
    font-weight: normal;
    color: rgba(0, 0, 0, .3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* 中间主要内容区 */
.tt-action-sheet .tt-action-sheet-body{
    border-top: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
}
/* 菜单尾部，通常用来放取消按钮 */
.tt-action-sheet .tt-action-sheet-footer{
    margin-top: .3rem;
    background: #fff;
}
/* 每个菜单项 */
.tt-action-sheet .tt-action-sheet-menu{
    display: block;
    height: 2.8rem;
    line-height: 2.8rem;
    font-size: .8rem;
    text-align: center;
}
/* 菜单项的边框控制 */
.tt-action-sheet .tt-action-sheet-menu + .tt-action-sheet-menu{
    display: block;
    border-top: 1px solid rgba(0, 0, 0, .1);
}