weui-half-screen-dialog.wxss 4.5 KB
Newer Older
X
xushengni 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
/**
* 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.wxss";

.weui-half-screen-dialog {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  max-height:75%;
  z-index:5000;

  line-height:1.4;
  background-color:#FFFFFF;
  border-top-left-radius:12px;
  border-top-right-radius:12px;
  overflow:hidden;

  padding:0 24px;
  padding:0 calc(24px ~"+ constant(safe-area-inset-right)") constant(safe-area-inset-bottom) calc(24px ~"+ constant(safe-area-inset-left)");
  padding:0 calc(24px ~"+ env(safe-area-inset-right)") env(safe-area-inset-bottom) calc(24px ~"+ env(safe-area-inset-left)");
}
.weui-half-screen-dialog__hd {
  font-size:8px;
  height:8em;
  display:flex;
  align-items:center;

  .weui-icon-btn{
    position:absolute;
    top:50%;
    -webkit-transform:translateY(-50%);
    transform:translateY(-50%);
  }
}
.weui-half-screen-dialog__hd__side{
  position:relative;
  left:-8px;
}
.weui-half-screen-dialog__hd__main {
  flex:1;
  .weui-half-screen-dialog__hd__side + &{
    text-align:center;
    padding:0 40px;
  }
  & + .weui-half-screen-dialog__hd__side{
    right:-8px;
    left:auto;
    .weui-icon-btn{
      right:0;
    }
  }
}
.weui-half-screen-dialog__title {
  display:block;
  color:rgba(0,0,0,.9);
  font-weight:700;
  font-size:15px;
}
.weui-half-screen-dialog__subtitle {
  display:block;
  color:rgba(0,0,0,.5);
  font-size:10px;
}

.weui-half-screen-dialog__bd {
  .hyphens();
  overflow-y:auto;
}
.weui-half-screen-dialog__desc {
  padding-top:4px;
  font-size:17px;
  font-weight:700;
  color:rgba(0,0,0,.9);
  line-height:1.4;
}
.weui-half-screen-dialog__tips {
  padding-top:16px;
  font-size:14px;
  color:rgba(0,0,0,.3);
  line-height:1.4;
}
.weui-half-screen-dialog__ft {
  padding:40px 24px 32px;
  text-align:center;
  .weui-btn:nth-last-child(n+2),
  .weui-btn:nth-last-child(n+2) + .weui-btn{
    display:inline-block;
    vertical-align:top;
    margin:0 8px;
    width:120px;
  }
}

.weui-icon-btn{
  background-color:transparent;
  background-repeat:no-repeat;
  background-position:50% 50%;
  background-size: 100%;
  border:0;
  outline:0;
  font-size:0;
}
.weui-icon-btn_goback{
  width:12px;
  height:24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E  %3Cg fill='none' fill-rule='evenodd' transform='translate(-16 -20)'%3E    %3Cpath fill='%23FFF' d='M0 12C0 5.373 5.367 0 12 0h390c6.628 0 12 5.374 12 12v52H0V12z'/%3E    %3Cpath fill='%23000' fill-opacity='.9' d='M26 39.438L24.955 40.5l-7.666-7.79a1.02 1.02 0 0 1 0-1.42l7.666-7.79L26 24.563 18.682 32 26 39.438z'/%3E  %3C/g%3E%3C/svg%3E");
}
.weui-icon-btn_close{
  width:24px;
  height:24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cdefs%3E    %3Cpath id='33cf2e7b-22e9-42d7-9c56-a9f4a4e03565-a' d='M8 6.943L1.807.75.75 1.807 6.943 8 .75 14.193l1.057 1.057L8 9.057l6.193 6.193 1.057-1.057L9.057 8l6.193-6.193L14.193.75z'/%3E  %3C/defs%3E  %3Cg fill='none' fill-rule='evenodd' transform='translate(-16 -20)'%3E    %3Cpath fill='%23FFF' d='M0 12C0 5.373 5.367 0 12 0h390c6.628 0 12 5.374 12 12v52H0V12z'/%3E    %3Cuse fill='%23000' fill-opacity='.9' transform='translate(20 24)' xlink:href='%2333cf2e7b-22e9-42d7-9c56-a9f4a4e03565-a'/%3E  %3C/g%3E%3C/svg%3E");
}
.weui-icon-btn_more{
  width:24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cg fill='none' fill-rule='evenodd' transform='translate(-374 -20)'%3E    %3Cpath fill='%23FFF' d='M0 12C0 5.373 5.367 0 12 0h390c6.628 0 12 5.374 12 12v52H0V12z'/%3E    %3Cpath fill='%23000' fill-opacity='.9' d='M380.75 32a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0zm5.25-1.75a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5zm7 0a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5z'/%3E  %3C/g%3E%3C/svg%3E");
}