alert.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,th,td{margin:0;padding:0;}
  2. body{
  3. font-family: "微软雅黑"
  4. }
  5. .alert-modal{
  6. left:0;
  7. top:0;
  8. width:100%;
  9. height:100%;
  10. background: #000;
  11. opacity: 0.6;
  12. filter: alpha(opacity=60);
  13. }
  14. .alert-container{
  15. display: inline-block;
  16. border-radius: 5px;
  17. -webkit-border-radius: 5px;
  18. -moz-border-radius: 5px;
  19. -o-border-radius: 5px;
  20. background: #fff;
  21. border:1px solid #f1f1f1;
  22. z-index: 99999;
  23. overflow: hidden;
  24. -moz-box-sizing: border-box;
  25. -webkit-box-sizing: border-box;
  26. -o-box-sizing: border-box;
  27. -ms-box-sizing: border-box;
  28. box-sizing: border-box;
  29. }
  30. .alert-title{
  31. font-size: 16px;
  32. text-align: center;
  33. line-height: 42px;
  34. color:#111;
  35. background: #fff;
  36. position: absolute;
  37. left:0;
  38. top:0;
  39. z-index: 999;
  40. width:100%;
  41. text-align: center;
  42. }
  43. .alert-content{
  44. font-size: 14px;
  45. padding:15px 20px;
  46. color:#555;
  47. height:100%;
  48. overflow: auto;
  49. -moz-box-sizing: border-box;
  50. -webkit-box-sizing: border-box;
  51. -o-box-sizing: border-box;
  52. -ms-box-sizing: border-box;
  53. box-sizing: border-box;
  54. }
  55. .alert-content-scrollbar{
  56. }
  57. .alert-btn-box{
  58. border-top:1px solid #f1f1f1;
  59. text-align: right;
  60. position: absolute;
  61. left:0;
  62. background: #fff;
  63. bottom: 0;
  64. z-index: 999;
  65. width:100%;
  66. }
  67. .alert-btn-p{
  68. display: inline-block;
  69. text-align: center;
  70. border-right:1px solid #f1f1f1;
  71. background-color: #fff;
  72. font-size:14px;
  73. line-height: 35px;
  74. cursor: pointer;
  75. color:#222;
  76. box-sizing: border-box;
  77. }
  78. .alert-btn-p:hover{
  79. background: #eee;
  80. }
  81. .alert-btn-p:last-child{
  82. border-right: none;
  83. }
  84. .pcAlert .alert-btn-box{
  85. padding-right:10px;
  86. border:none;
  87. }
  88. .pcAlert .alert-btn-p{
  89. border:1px solid #f1f1f1;
  90. border-radius: 3px;
  91. -webkit-border-radius: 3px;
  92. -moz-border-radius: 3px;
  93. -o-border-radius: 3px;
  94. box-sizing: border-box;
  95. -webkit-box-sizing: border-box;
  96. -moz-box-sizing: border-box;
  97. -o-box-sizing: border-box;
  98. line-height: 30px;
  99. margin:7px 0;
  100. padding:0 10px;
  101. margin-right:10px;
  102. }
  103. .alert-btn-close{
  104. position: absolute;
  105. right:10px;
  106. top:3px;
  107. font-size: 24px;
  108. cursor: pointer;
  109. z-index: 1000;
  110. }
  111. .alert-container-black{
  112. background-color:rgba(0,0,0,0.65);
  113. border:none;
  114. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
  115. }
  116. .alert-container-black .alert-content{
  117. color: #fff;
  118. }
  119. .linearTop{
  120. -webkit-animation-name: linearTop;
  121. -moz-animation-name: linearTop;
  122. -o-animation-name: linearTop;
  123. animation-name: linearTop;
  124. }
  125. .linearBottom{
  126. -webkit-animation-name: linearBottom;
  127. -moz-animation-name: linearBottom;
  128. -o-animation-name: linearBottom;
  129. animation-name: linearBottom;
  130. }
  131. /*alert-actionsheet*/
  132. .alert-actionsheet{
  133. border-radius: 0;
  134. background-color: #ddd;
  135. }
  136. .alert-actionsheet .alert-content{
  137. display: none;
  138. }
  139. .none{
  140. display: none;
  141. }
  142. .alert-actionsheet .alert-title{
  143. color: #aaa;
  144. line-height: 50px;
  145. }
  146. .alert-actionsheet .alert-title,.alert-actionsheet .alert-btn-box{
  147. position: static;
  148. }
  149. .alert-actionsheet .alert-btn-p{
  150. font-size: 16px;
  151. display: block;
  152. line-height: 40px;
  153. border-bottom: 1px solid #eee;
  154. }
  155. .alert-actionsheet .alert-btn-box{
  156. background-color: transparent;
  157. }
  158. .alert-actionsheet .alert-btn-sheet{
  159. margin-top:5px;
  160. }
  161. @keyframes linearBottom {
  162. 0%{
  163. -webkit-transform: translate3d(0,0,0);
  164. -moz-transform: translate3d(0,0,0);
  165. -o-transform: translate3d(0,0,0);
  166. transform: translate3d(0,0,0);
  167. opacity: 1;
  168. filter:alpha(opacity=100);
  169. }
  170. 100%{
  171. -webkit-transform: translate3d(0,80px,0);
  172. -moz-transform: translate3d(0,80px,0);
  173. -o-transform: translate3d(0,80px,0);
  174. transform: translate3d(0,80px,0);
  175. opacity: 0;
  176. filter:alpha(opacity=0);
  177. }
  178. }
  179. @keyframes linearTop {
  180. 0%{
  181. -webkit-transform: translate3d(0,80px,0);
  182. -moz-transform: translate3d(0,80px,0);
  183. -o-transform: translate3d(0,80px,0);
  184. transform: translate3d(0,80px,0);
  185. opacity: 0;
  186. filter:alpha(opacity=0);
  187. }
  188. 100%{
  189. -webkit-transform: translate3d(0,0,0);
  190. -moz-transform: translate3d(0,0,0);
  191. -o-transform: translate3d(0,0,0);
  192. transform: translate3d(0,0,0);
  193. opacity: 1;
  194. filter:alpha(opacity=100);
  195. }
  196. }
  197. /*显示动画*/
  198. .animated.infinite {
  199. animation-iteration-count: infinite;
  200. -webkit-animation-iteration-count: infinite;
  201. -moz-animation-iteration-count: infinite;
  202. -o-animation-iteration-count: infinite;
  203. }
  204. .animated.linearBottom,
  205. .animated.linearTop,
  206. .animated.bounceIn,
  207. .animated.bounceOut {
  208. -webkit-animation-duration: .45s;
  209. -moz-animation-duration: .45s;
  210. -o-animation-duration: .45s;
  211. animation-duration: .45s;
  212. }
  213. @keyframes bounceIn {
  214. 0%, 20%, 40%, 60%, 80%, 100% {
  215. -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  216. -moz-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  217. -o-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  218. animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  219. }
  220. 0% {
  221. opacity: 0;
  222. filter:alpha(opacity=0);
  223. -webkit-transform: scale3d(.3, .3, .3);
  224. -moz-transform: scale3d(.3, .3, .3);
  225. -o-transform: scale3d(.3, .3, .3);
  226. transform: scale3d(.3, .3, .3);
  227. }
  228. 100% {
  229. opacity: 1;
  230. filter: alpha(opacity=100);
  231. -webkit-transform: scale3d(1, 1, 1);
  232. -moz-transform: scale3d(1, 1, 1);
  233. -o-transform: scale3d(1, 1, 1);
  234. transform: scale3d(1, 1, 1);
  235. }
  236. }
  237. .bounceIn {
  238. -webkit-animation-name: bounceIn;
  239. -moz-animation-name: bounceIn;
  240. -o-animation-name: bounceIn;
  241. animation-name: bounceIn;
  242. }
  243. @keyframes bounceOut {
  244. 20% {
  245. -webkit-transform: scale3d(1.2, 1.2, 1.2);
  246. -moz-transform: scale3d(1.2, 1.2, 1.2);
  247. -o-transform: scale3d(1.2, 1.2, 1.2);
  248. transform: scale3d(1.2, 1.2, 1.2);
  249. }
  250. 65%, 70% {
  251. opacity: 1;
  252. filter: alpha(opacity=100);
  253. -webkit-transform: scale3d(.75, .75, .75);
  254. -moz-transform: scale3d(.75, .75, .75);
  255. -o-transform: scale3d(.75, .75, .75);
  256. transform: scale3d(.75, .75, .75);
  257. }
  258. 100% {
  259. opacity: 0;
  260. filter: alpha(opacity=0);
  261. -webkit-transform: scale3d(.3, .3, .3);
  262. -moz-transform: scale3d(.3, .3, .3);
  263. -o-transform: scale3d(.3, .3, .3);
  264. transform: scale3d(.3, .3, .3);
  265. }
  266. }
  267. .bounceOut {
  268. -webkit-animation-name: bounceOut;
  269. -moz-animation-name: bounceOut;
  270. -o-animation-name: bounceOut;
  271. animation-name: bounceOut;
  272. }