123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- @color: #1e83d3;
- .clearfix() {
- &:after {
- content: ".";
- display: block;
- height:0;
- clear:both;
- visibility: hidden;
- }
- }
- .nowrap(){
- overflow: hidden;
- white-space:nowrap;
- text-overflow:ellipsis;
- }
- .mobileSelect{
- position: relative;
- z-index: 0;
- opacity: 0;
- visibility: hidden;
- -webkit-transition: opacity 0.4s, z-index 0.4s;
- transition: opacity 0.4s, z-index 0.4s;
- *{
- margin:0;
- padding:0;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
- .grayLayer{
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background: #eee;
- background: rgba(0, 0, 0, 0.7);
- z-index: 888;
- display: block;
- }
- .content{
- width: 100%;
- display: block;
- position: fixed;
- z-index: 889;
- color: black;
- -webkit-transition: all 0.4s;
- transition: all 0.4s;
- bottom: -350px;
- left:0;
- background: white;
- .fixWidth{
- .clearfix();
- width:90%;
- margin: 0 auto;
- position: relative;
- }
- .btnBar{
- border-bottom: 1px solid #DCDCDC;
- font-size: 15px;
- height: 45px;
- position: relative;
- text-align: center;
- line-height: 45px;
- .cancel,.ensure{
- height: 45px;
- width: 55px;
- cursor: pointer;
- position: absolute;
- top: 0;
- }
- .cancel{
- left: 0;
- color: #666;
- }
- .ensure{
- right:0;
- color:@color;
- }
- .title{
- font-size: 15px;
- padding:0 15%;
- .nowrap();
- }
- }
- .panel{
- .clearfix();
- .wheels{
- width:100%;
- height:200px;
- overflow: hidden;
- }
- .wheel{
- position: relative;
- z-index: 0;
- float: left;
- width: 50%;
- height: 200px;
- overflow: hidden;
- -webkit-transition: width 0.3s ease;
- transition: width 0.3s ease;
- .selectContainer{
- display: block;
- text-align: center;
- -webkit-transition: -webkit-transform 0.18s ease-out;
- transition: -webkit-transform 0.18s ease-out;
- transition: transform 0.18s ease-out;
- transition: transform 0.18s ease-out, -webkit-transform 0.18s ease-out;
- li{
- font-size: 15px;
- display: block;
- height: 40px;
- line-height: 40px;
- cursor: pointer;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- }
- .selectLine{
- height: 40px;
- width: 100%;
- position: absolute;
- top: 80px;
- pointer-events: none;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- border-top: 1px solid #DCDCDC;
- border-bottom: 1px solid #DCDCDC;
- }
- .shadowMask{
- position: absolute;
- top: 0;
- width: 100%;
- height: 200px;
- background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), color-stop(rgba(255, 255, 255, 0)), to(#ffffff));
- background: -webkit-linear-gradient(top, #ffffff, rgba(255, 255, 255, 0), #ffffff);
- background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0), #ffffff);
- opacity: 0.9;
- pointer-events: none;
- }
- }
- }
- }
- .mobileSelect-show{
- opacity: 1;
- z-index: 10000;
- visibility: visible;
- .content{
- bottom: 0;
- }
- }
|