layer.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /**
  2. @Name: layer
  3. @Author: 贤心
  4. **/
  5. /* *html{background-image: url(about:blank); background-attachment: fixed;} */
  6. html #layuicss-layer{display: none; position: absolute; width: 1989px;}
  7. /* common */
  8. .layui-layer-shade, .layui-layer{position:fixed; _position:absolute; pointer-events: auto;}
  9. .layui-layer-shade{top:0; left:0; width:100%; height:100%; _height:expression(document.body.offsetHeight+"px");}
  10. .layui-layer{-webkit-overflow-scrolling: touch;}
  11. .layui-layer{top:150px; left: 0; margin:0; padding:0; background-color:#fff; -webkit-background-clip: content; border-radius: 2px; box-shadow: 1px 1px 50px rgba(0,0,0,.3);}
  12. .layui-layer-close{position:absolute;}
  13. .layui-layer-content{position:relative;}
  14. .layui-layer-border{border: 1px solid #B2B2B2; border: 1px solid rgba(0,0,0,.1); box-shadow: 1px 1px 5px rgba(0,0,0,.2);}
  15. .layui-layer-load{background:url(loading-1.gif) #eee center center no-repeat;}
  16. .layui-layer-ico{ background:url(icon.png) no-repeat;}
  17. .layui-layer-dialog .layui-layer-ico,
  18. .layui-layer-setwin a,
  19. .layui-layer-btn a{display:inline-block; *display:inline; *zoom:1; vertical-align:top;}
  20. .layui-layer-move{display: none; position: fixed; *position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; cursor: move; opacity: 0; filter:alpha(opacity=0); background-color: #fff; z-index: 2147483647;}
  21. .layui-layer-resize{position: absolute; width: 15px; height: 15px; right: 0; bottom: 0; cursor: se-resize;}
  22. /* 动画 */
  23. .layer-anim{-webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-duration:.3s; animation-duration:.3s;}
  24. @-webkit-keyframes layer-bounceIn { /* 默认 */
  25. 0% {opacity: 0; -webkit-transform: scale(.5); transform: scale(.5)}
  26. 100% {opacity: 1; -webkit-transform: scale(1); transform: scale(1)}
  27. }
  28. @keyframes layer-bounceIn {
  29. 0% {opacity: 0; -webkit-transform: scale(.5); -ms-transform: scale(.5); transform: scale(.5)}
  30. 100% {opacity: 1; -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1)}
  31. }
  32. .layer-anim-00{-webkit-animation-name: layer-bounceIn;animation-name: layer-bounceIn}
  33. @-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}
  34. @-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}
  35. @-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}
  36. @-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0px) rotate(0deg);transform:translateX(0px) rotate(0deg)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0px) rotate(0deg);-ms-transform:translateX(0px) rotate(0deg);transform:translateX(0px) rotate(0deg)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}
  37. @keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}
  38. @-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}
  39. /* 标题栏 */
  40. .layui-layer-title{padding:0 80px 0 20px; height:42px; line-height:42px; border-bottom:1px solid #eee; font-size:14px; color:#333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-color: #F8F8F8; border-radius: 2px 2px 0 0;}
  41. .layui-layer-setwin{position:absolute; right:15px; *right:0; top:15px; font-size:0; line-height: initial;}
  42. .layui-layer-setwin a{position:relative; width: 16px; height:16px; margin-left:10px; font-size:12px; _overflow:hidden;}
  43. .layui-layer-setwin .layui-layer-min cite{position:absolute; width:14px; height:2px; left:0; top:50%; margin-top:-1px; background-color:#2E2D3C; cursor:pointer; _overflow:hidden;}
  44. .layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA; }
  45. .layui-layer-setwin .layui-layer-max{background-position:-32px -40px;}
  46. .layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px;}
  47. .layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px;}
  48. .layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px;}
  49. .layui-layer-setwin .layui-layer-close1{background-position: 1px -40px; cursor: pointer;}
  50. .layui-layer-setwin .layui-layer-close1:hover{opacity:0.7;}
  51. .layui-layer-setwin .layui-layer-close2{position:absolute; right:-28px; top:-28px; width:30px; height:30px; margin-left:0; background-position:-149px -31px; *right:-18px; _display:none;}
  52. .layui-layer-setwin .layui-layer-close2:hover{ background-position:-180px -31px;}
  53. /* 按钮栏 */
  54. .layui-layer-btn{text-align: right; padding: 0 15px 12px; pointer-events: auto; user-select: none; -webkit-user-select: none;}
  55. .layui-layer-btn a{height: 28px; line-height: 28px; margin: 5px 5px 0; padding: 0 15px; border: 1px solid #dedede; background-color:#fff; color: #333; border-radius: 2px; font-weight:400; cursor:pointer; text-decoration: none;}
  56. .layui-layer-btn a:hover{opacity: 0.9; text-decoration: none;}
  57. .layui-layer-btn a:active{opacity: 0.8;}
  58. .layui-layer-btn .layui-layer-btn0{border-color: #1E9FFF; background-color: #1E9FFF; color:#fff;}
  59. .layui-layer-btn-l{text-align: left;}
  60. .layui-layer-btn-c{text-align: center;}
  61. /* 定制化 */
  62. .layui-layer-dialog{min-width:260px;}
  63. .layui-layer-dialog .layui-layer-content{position: relative; padding:20px; line-height:24px; word-break: break-all; overflow:hidden; font-size:14px; overflow-x: hidden; overflow-y:auto;}
  64. .layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute; top:16px; left:15px; _left:-40px; width:30px; height:30px;}
  65. .layui-layer-ico1{background-position:-30px 0 }
  66. .layui-layer-ico2{background-position:-60px 0;}
  67. .layui-layer-ico3{background-position:-90px 0;}
  68. .layui-layer-ico4{background-position:-120px 0;}
  69. .layui-layer-ico5{background-position:-150px 0;}
  70. .layui-layer-ico6{background-position:-180px 0;}
  71. .layui-layer-rim{border:6px solid #8D8D8D; border:6px solid rgba(0,0,0,.3); border-radius:5px; box-shadow: none;}
  72. .layui-layer-msg{min-width:180px; border:1px solid #D3D4D3; box-shadow: none;}
  73. .layui-layer-hui{min-width:100px; background-color: #000; filter:alpha(opacity=60); background-color: rgba(0,0,0,0.6); color: #fff; border:none;}
  74. .layui-layer-hui .layui-layer-content{padding:12px 25px; text-align:center;}
  75. .layui-layer-dialog .layui-layer-padding{padding: 20px 20px 20px 55px; text-align: left;}
  76. .layui-layer-page .layui-layer-content{position:relative; overflow:auto;}
  77. .layui-layer-page .layui-layer-btn,.layui-layer-iframe .layui-layer-btn{padding-top:10px;}
  78. .layui-layer-nobg{background:none;}
  79. .layui-layer-iframe iframe{display: block; width: 100%;}
  80. .layui-layer-loading{border-radius:100%; background:none; box-shadow:none; border:none;}
  81. .layui-layer-loading .layui-layer-content{width:60px; height:24px; background:url(loading-0.gif) no-repeat;}
  82. .layui-layer-loading .layui-layer-loading1{width:37px; height:37px; background:url(loading-1.gif) no-repeat;}
  83. .layui-layer-loading .layui-layer-loading2, .layui-layer-ico16{width:32px; height:32px; background:url(loading-2.gif) no-repeat;}
  84. .layui-layer-tips{background: none; box-shadow:none; border:none;}
  85. .layui-layer-tips .layui-layer-content{position: relative; line-height: 22px; min-width: 12px; padding: 8px 15px; font-size: 12px; _float:left; border-radius: 2px; box-shadow: 1px 1px 3px rgba(0,0,0,.2); background-color: #000; color: #fff;}
  86. .layui-layer-tips .layui-layer-close{right:-2px; top:-1px;}
  87. .layui-layer-tips i.layui-layer-TipsG{ position:absolute; width:0; height:0; border-width:8px; border-color:transparent; border-style:dashed; *overflow:hidden;}
  88. .layui-layer-tips i.layui-layer-TipsT, .layui-layer-tips i.layui-layer-TipsB{left:5px; border-right-style:solid; border-right-color: #000;}
  89. .layui-layer-tips i.layui-layer-TipsT{bottom:-8px;}
  90. .layui-layer-tips i.layui-layer-TipsB{top:-8px;}
  91. .layui-layer-tips i.layui-layer-TipsR, .layui-layer-tips i.layui-layer-TipsL{top: 5px; border-bottom-style:solid; border-bottom-color: #000;}
  92. .layui-layer-tips i.layui-layer-TipsR{left:-8px;}
  93. .layui-layer-tips i.layui-layer-TipsL{right:-8px;}
  94. /* skin */
  95. .layui-layer-lan[type="dialog"]{min-width:280px;}
  96. .layui-layer-lan .layui-layer-title{background:#4476A7; color:#fff; border: none;}
  97. .layui-layer-lan .layui-layer-btn{padding: 5px 10px 10px; text-align: right; border-top:1px solid #E9E7E7}
  98. .layui-layer-lan .layui-layer-btn a{background: #fff; border-color: #E9E7E7; color: #333;}
  99. .layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5;}
  100. .layui-layer-molv .layui-layer-title{background: #009f95; color:#fff; border: none;}
  101. .layui-layer-molv .layui-layer-btn a{background: #009f95; border-color: #009f95;}
  102. .layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1;}
  103. /**
  104. @Name: layer拓展样式
  105. */
  106. .layui-layer-iconext{background:url(icon-ext.png) no-repeat;}
  107. /* prompt模式 */
  108. .layui-layer-prompt .layui-layer-input{display: block; width: 230px; height: 36px; margin: 0 auto; line-height: 30px; padding-left: 10px; border: 1px solid #e6e6e6; color: #333;}
  109. .layui-layer-prompt textarea.layui-layer-input{width: 300px; height: 100px; line-height: 20px; padding: 6px 10px;}
  110. .layui-layer-prompt .layui-layer-content{padding: 20px;}
  111. .layui-layer-prompt .layui-layer-btn{padding-top: 0;}
  112. /* tab模式 */
  113. .layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4);}
  114. .layui-layer-tab .layui-layer-title{padding-left:0; overflow: visible;}
  115. .layui-layer-tab .layui-layer-title span{position:relative; float:left; min-width:80px; max-width:260px; padding:0 20px; text-align:center; cursor:default; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; cursor: pointer;}
  116. .layui-layer-tab .layui-layer-title span.layui-this{height: 43px; border-left: 1px solid #eee; border-right: 1px solid #eee; background-color: #fff; z-index: 10;}
  117. .layui-layer-tab .layui-layer-title span:first-child{border-left:none;}
  118. .layui-layer-tabmain{line-height:24px; clear:both;}
  119. .layui-layer-tabmain .layui-layer-tabli{display:none;}
  120. .layui-layer-tabmain .layui-layer-tabli.layui-this{display: block;}
  121. /* photo模式 */
  122. .layui-layer-photos{-webkit-animation-duration: .8s; animation-duration: .8s;}
  123. .layui-layer-photos .layui-layer-content{overflow:hidden; text-align: center;}
  124. .layui-layer-photos .layui-layer-phimg img{position: relative; width:100%; display: inline-block; *display:inline; *zoom:1; vertical-align:top;}
  125. .layui-layer-imguide,.layui-layer-imgbar{display:none;}
  126. .layui-layer-imgprev, .layui-layer-imgnext{position:absolute; top:50%; width:27px; _width:44px; height:44px; margin-top:-22px; outline:none;blr:expression(this.onFocus=this.blur());}
  127. .layui-layer-imgprev{left:10px; background-position:-5px -5px; _background-position:-70px -5px;}
  128. .layui-layer-imgprev:hover{background-position:-33px -5px; _background-position:-120px -5px;}
  129. .layui-layer-imgnext{right:10px; _right:8px; background-position:-5px -50px; _background-position:-70px -50px;}
  130. .layui-layer-imgnext:hover{background-position:-33px -50px; _background-position:-120px -50px;}
  131. .layui-layer-imgbar{position:absolute; left:0; bottom:0; width:100%; height:32px; line-height:32px; background-color:rgba(0,0,0,.8); background-color:#000\9; filter:Alpha(opacity=80); color:#fff; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size:0;}
  132. .layui-layer-imgtit{/*position:absolute; left:20px;*/}
  133. .layui-layer-imgtit *{display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size:12px;}
  134. .layui-layer-imgtit a{max-width:65%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color:#fff;}
  135. .layui-layer-imgtit a:hover{color:#fff; text-decoration:underline;}
  136. .layui-layer-imgtit em{padding-left:10px; font-style: normal;}
  137. /* 关闭动画 */
  138. @-webkit-keyframes layer-bounceOut {
  139. 100% {opacity: 0; -webkit-transform: scale(.7); transform: scale(.7)}
  140. 30% {-webkit-transform: scale(1.05); transform: scale(1.05)}
  141. 0% {-webkit-transform: scale(1); transform: scale(1);}
  142. }
  143. @keyframes layer-bounceOut {
  144. 100% {opacity: 0; -webkit-transform: scale(.7); -ms-transform: scale(.7); transform: scale(.7);}
  145. 30% {-webkit-transform: scale(1.05); -ms-transform: scale(1.05); transform: scale(1.05);}
  146. 0% {-webkit-transform: scale(1); -ms-transform: scale(1);transform: scale(1);}
  147. }
  148. .layer-anim-close{-webkit-animation-name: layer-bounceOut; animation-name: layer-bounceOut; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-duration:.2s; animation-duration:.2s;}
  149. @media screen and (max-width: 1100px) {
  150. .layui-layer-iframe{overflow-y: auto; -webkit-overflow-scrolling: touch;}
  151. }