layui.mobile.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /**
  2. @Name: layui mobile
  3. @Author: 贤心
  4. @Site: http://www.layui.com/mobile/
  5. */
  6. /* reset */
  7. body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,input,button,textarea,p,blockquote,th,td,form,legend{margin:0; padding:0; -webkit-tap-highlight-color:rgba(0,0,0,0)}
  8. html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif; -ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
  9. a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0);}
  10. a{text-decoration: none; background:transparent}
  11. a:active,a:hover{outline:0}
  12. table{border-collapse:collapse;border-spacing:0}
  13. li{list-style:none;}
  14. b,strong{font-weight:700;}
  15. h1, h2, h3, h4, h5, h6{font-weight:500;}
  16. address,cite,dfn,em,var{font-style:normal;}
  17. dfn{font-style:italic}
  18. sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
  19. img{border:0; vertical-align: bottom}
  20. button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0; outline: 0;}
  21. button,select{text-transform:none}
  22. select{-webkit-appearance: none; border:none;}
  23. input{line-height:normal; }
  24. input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}
  25. input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}
  26. input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
  27. input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}
  28. label,input{vertical-align: middle;}
  29. /** 图标字体 **/
  30. @font-face {font-family: 'layui-icon';
  31. src: url('../font/iconfont.eot?v=1.0.7');
  32. src: url('../font/iconfont.eot?v=1.0.7#iefix') format('embedded-opentype'),
  33. url('../font/iconfont.woff?v=1.0.7') format('woff'),
  34. url('../font/iconfont.ttf?v=1.0.7') format('truetype'),
  35. url('../font/iconfont.svg?v=1.0.7#iconfont') format('svg');
  36. }
  37. .layui-icon{
  38. font-family:"layui-icon" !important;
  39. font-size: 16px;
  40. font-style: normal;
  41. -webkit-font-smoothing: antialiased;
  42. -moz-osx-font-smoothing: grayscale;
  43. }
  44. /** 基础通用 **/
  45. /* 消除第三方ui可能造成的冲突 */.layui-box, .layui-box *{-webkit-box-sizing: content-box !important; -moz-box-sizing: content-box !important; box-sizing: content-box !important;}
  46. .layui-border-box, .layui-border-box *{-webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
  47. .layui-inline{position: relative; display: inline-block; *display:inline; *zoom:1; vertical-align: middle;}
  48. /* 三角形 */.layui-edge{position: absolute; width: 0; height: 0; border-style: dashed; border-color: transparent; overflow: hidden;}
  49. /* 单行溢出省略 */.layui-elip{text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}
  50. /* 屏蔽选中 */.layui-unselect{-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none;}
  51. .layui-disabled,.layui-disabled:active{background-color: #d2d2d2 !important; color: #fff !important; cursor: not-allowed !important;}
  52. /* 纯圆角 */.layui-circle{border-radius: 100%;}
  53. .layui-show{display: block !important;}
  54. .layui-hide{display: none !important;}
  55. .layui-upload-iframe{position: absolute; width: 0px; height: 0px; border: 0px; visibility: hidden;}
  56. .layui-upload-enter{border: 1px solid #009E94; background-color: #009E94; color: #fff; -webkit-transform: scale(1.1); transform: scale(1.1);}
  57. /* 弹出动画 */
  58. @-webkit-keyframes layui-m-anim-scale { /* 默认 */
  59. 0% {opacity: 0; -webkit-transform: scale(.5); transform: scale(.5)}
  60. 100% {opacity: 1; -webkit-transform: scale(1); transform: scale(1)}
  61. }
  62. @keyframes layui-m-anim-scale { /* 由小到大 */
  63. 0% {opacity: 0; -webkit-transform: scale(.5); transform: scale(.5)}
  64. 100% {opacity: 1; -webkit-transform: scale(1); transform: scale(1)}
  65. }
  66. .layui-m-anim-scale{animation-name: layui-m-anim-scale; -webkit-animation-name: layui-m-anim-scale;}
  67. @-webkit-keyframes layui-m-anim-up{ /* 从下往上 */
  68. 0%{opacity: 0; -webkit-transform: translateY(800px); transform: translateY(800px)}
  69. 100%{opacity: 1; -webkit-transform: translateY(0); transform: translateY(0)}
  70. }
  71. @keyframes layui-m-anim-up{
  72. 0%{opacity: 0; -webkit-transform: translateY(800px); transform: translateY(800px)}
  73. 100%{opacity: 1; -webkit-transform: translateY(0); transform: translateY(0)}
  74. }
  75. .layui-m-anim-up{-webkit-animation-name: layui-m-anim-up; animation-name: layui-m-anim-up}
  76. @-webkit-keyframes layui-m-anim-left{ /* 从右往左 */
  77. 0%{-webkit-transform: translateX(100%); transform: translateX(100%)}
  78. 100%{-webkit-transform: translateX(0); transform: translateX(0)}
  79. }
  80. @keyframes layui-m-anim-left{
  81. 0%{-webkit-transform: translateX(100%); transform: translateX(100%)}
  82. 100%{-webkit-transform: translateX(0); transform: translateX(0)}
  83. }
  84. .layui-m-anim-left{-webkit-animation-name: layui-m-anim-left; animation-name: layui-m-anim-left}
  85. @-webkit-keyframes layui-m-anim-right{ /* 从左往右 */
  86. 0%{-webkit-transform: translateX(-100%); transform: translateX(-100%)}
  87. 100%{-webkit-transform: translateX(0); transform: translateX(0)}
  88. }
  89. @keyframes layui-m-anim-right{
  90. 0%{-webkit-transform: translateX(-100%); transform: translateX(-100%)}
  91. 100%{-webkit-transform: translateX(0); transform: translateX(0)}
  92. }
  93. .layui-m-anim-right{-webkit-animation-name: layui-m-anim-right; animation-name: layui-m-anim-right}
  94. @-webkit-keyframes layui-m-anim-lout{ /* 往左收缩 */
  95. 0%{-webkit-transform: translateX(0); transform: translateX(0)}
  96. 100%{-webkit-transform: translateX(-100%); transform: translateX(-100%)}
  97. }
  98. @keyframes layui-m-anim-lout{
  99. 0%{-webkit-transform: translateX(0); transform: translateX(0)}
  100. 100%{-webkit-transform: translateX(-100%); transform: translateX(-100%)}
  101. }
  102. .layui-m-anim-lout{-webkit-animation-name: layui-m-anim-lout; animation-name: layui-m-anim-lout}
  103. @-webkit-keyframes layui-m-anim-rout{ /* 往右收缩 */
  104. 0%{-webkit-transform: translateX(0); transform: translateX(0)}
  105. 100%{-webkit-transform: translateX(100%); transform: translateX(100%)}
  106. }
  107. @keyframes layui-m-anim-rout{
  108. 0%{-webkit-transform: translateX(0); transform: translateX(0)}
  109. 100%{-webkit-transform: translateX(100%); transform: translateX(100%)}
  110. }
  111. .layui-m-anim-rout{-webkit-animation-name: layui-m-anim-rout; animation-name: layui-m-anim-rout}
  112. /** layer mobile */
  113. .layui-m-layer{position:relative; z-index: 19891014;}
  114. .layui-m-layer *{-webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box;}
  115. .layui-m-layershade,
  116. .layui-m-layermain{position:fixed; left:0; top:0; width:100%; height:100%;}
  117. .layui-m-layershade{background-color:rgba(0,0,0, .7); pointer-events:auto;}
  118. .layui-m-layermain{display:table; font-family: Helvetica, arial, sans-serif; pointer-events: none;}
  119. .layui-m-layermain .layui-m-layersection{display:table-cell; vertical-align:middle; text-align:center;}
  120. .layui-m-layerchild{position:relative; display:inline-block; text-align:left; background-color:#fff; font-size:14px; border-radius: 5px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); pointer-events:auto; -webkit-overflow-scrolling: touch;}
  121. .layui-m-layerchild{-webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-duration: .2s; animation-duration: .2s;}
  122. .layui-m-layer0 .layui-m-layerchild{width: 90%; max-width: 640px;}
  123. .layui-m-layer1 .layui-m-layerchild{border:none; border-radius:0;}
  124. .layui-m-layer2 .layui-m-layerchild{width:auto; max-width:260px; min-width:40px; border:none; background: none; box-shadow: none; color:#fff;}
  125. .layui-m-layerchild h3{padding: 0 10px; height: 60px; line-height: 60px; font-size:16px; font-weight: 400; border-radius: 5px 5px 0 0; text-align: center;}
  126. .layui-m-layerchild h3,
  127. .layui-m-layerbtn span{ text-overflow:ellipsis; overflow:hidden; white-space:nowrap;}
  128. .layui-m-layercont{padding: 50px 30px; line-height: 22px; text-align:center;}
  129. .layui-m-layer1 .layui-m-layercont{padding:0; text-align:left;}
  130. .layui-m-layer2 .layui-m-layercont{text-align:center; padding: 0; line-height: 0;}
  131. .layui-m-layer2 .layui-m-layercont i{width:25px; height:25px; margin-left:8px; display:inline-block; background-color:#fff; border-radius:100%;}
  132. .layui-m-layer2 .layui-m-layercont p{margin-top: 20px;}
  133. /* loading */
  134. @-webkit-keyframes layui-m-anim-loading{
  135. 0%,80%,100%{transform:scale(0); -webkit-transform:scale(0)}
  136. 40%{transform:scale(1); -webkit-transform:scale(1)}
  137. }
  138. @keyframes layui-m-anim-loading{
  139. 0%,80%,100%{transform:scale(0); -webkit-transform:scale(0)}
  140. 40%{transform:scale(1); -webkit-transform:scale(1)}
  141. }
  142. .layui-m-layer2 .layui-m-layercont i{-webkit-animation: layui-m-anim-loading 1.4s infinite ease-in-out; animation: layui-m-anim-loading 1.4s infinite ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both;}
  143. .layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0; -webkit-animation-delay: -.32s; animation-delay: -.32s;}
  144. .layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay: -.16s; animation-delay: -.16s;}
  145. .layui-m-layer2 .layui-m-layercont>div{line-height:22px; padding-top:7px; margin-bottom:20px; font-size: 14px;}
  146. .layui-m-layerbtn{display: box; display: -moz-box; display: -webkit-box; width: 100%; position:relative; height: 50px; line-height: 50px; font-size: 0; text-align:center; border-top:1px solid #D0D0D0; background-color: #F2F2F2; border-radius: 0 0 5px 5px;}
  147. .layui-m-layerbtn span{position:relative; display: block; -moz-box-flex: 1; box-flex: 1; -webkit-box-flex: 1; text-align:center; font-size:14px; border-radius: 0 0 5px 5px; cursor:pointer;}
  148. .layui-m-layerbtn span[yes]{color: #40AFFE;}
  149. .layui-m-layerbtn span[no]{border-right: 1px solid #D0D0D0; border-radius: 0 0 0 5px;}
  150. .layui-m-layerbtn span:active{background-color: #F6F6F6;}
  151. .layui-m-layerend{position:absolute; right:7px; top:10px; width:30px; height:30px; border: 0; font-weight:400; background: transparent; cursor: pointer; -webkit-appearance: none; font-size:30px;}
  152. .layui-m-layerend::before, .layui-m-layerend::after{position:absolute; left:5px; top:15px; content:''; width:18px; height:1px; background-color:#999; transform:rotate(45deg); -webkit-transform:rotate(45deg); border-radius: 3px;}
  153. .layui-m-layerend::after{transform:rotate(-45deg); -webkit-transform:rotate(-45deg);}
  154. /* 底部对话框风格 */
  155. body .layui-m-layer .layui-m-layer-footer{position: fixed; width: 95%; max-width: 100%; margin: 0 auto; left:0; right: 0; bottom: 10px; background: none;}
  156. .layui-m-layer-footer .layui-m-layercont{padding: 20px; border-radius: 5px 5px 0 0; background-color: rgba(255,255,255,.8);}
  157. .layui-m-layer-footer .layui-m-layerbtn{display: block; height: auto; background: none; border-top: none;}
  158. .layui-m-layer-footer .layui-m-layerbtn span{background-color: rgba(255,255,255,.8);}
  159. .layui-m-layer-footer .layui-m-layerbtn span[no]{color: #FD482C; border-top: 1px solid #c2c2c2; border-radius: 0 0 5px 5px;}
  160. .layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top: 10px; border-radius: 5px;}
  161. /* 通用提示 */
  162. body .layui-m-layer .layui-m-layer-msg{width: auto; max-width: 90%; margin: 0 auto; bottom: -150px; background-color: rgba(0,0,0,.7); color: #fff;}
  163. .layui-m-layer-msg .layui-m-layercont{padding: 10px 20px;}