mcxdialog_ui.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. /**
  2. * Mcx Dialog Mobile v0.1.0
  3. * Copyright (C) 2018 mcx
  4. * https://github.com/code-mcx/mcx-dialog-mobile
  5. */
  6. .dialog-mobile-bg {
  7. position: fixed;
  8. top: 0;
  9. left: 0;
  10. z-index: 19;
  11. width: 100%;
  12. height: 100%;
  13. background-color: rgba(0, 0, 0, 0.3);
  14. -ms-transform: translate3d(0, 0, 0);
  15. -webkit-transform: translate3d(0, 0, 0);
  16. transform: translate3d(0, 0, 0);
  17. }
  18. /*alert confirm*/
  19. .dialog-mobile {
  20. padding: 0 40px 40px 40px;
  21. text-align:center;
  22. position: fixed;
  23. top: 50%;
  24. left: 0;
  25. z-index: 20;
  26. min-width:200px;
  27. background-color: #FFFFFF;
  28. border-radius: 7px;
  29. -ms-transform: translate3d(0, 0, 0);
  30. -webkit-transform: translate3d(0, 0, 0);
  31. transform: translate3d(0, 0, 0);
  32. }
  33. .dialog-mobile .dialog-content {
  34. position: relative;
  35. padding:50px 0 40px 0;
  36. line-height: 2em;
  37. text-align: left;
  38. color: #000;
  39. font-size:15px;
  40. text-align:center;
  41. }
  42. .dialog-mobile .dialog-content em {
  43. color:#df6400
  44. }
  45. .dialog-mobile .dialog-button,
  46. .dialog-mobile .dialog-sure-button,
  47. .dialog-mobile .dialog-cancel-button {
  48. display:inline-block;
  49. position: relative;
  50. margin:0 5px;
  51. padding:0 30px;
  52. min-width: 70px;
  53. height: 38px;
  54. line-height: 38px;
  55. text-align: center;
  56. font-size:14px;
  57. cursor:pointer;
  58. border-radius:3px;
  59. }
  60. .dialog-mobile .dialog-button{
  61. color: #fff;
  62. background:#000;
  63. border:1px solid #000;
  64. min-width:100px;
  65. }
  66. .dialog-mobile .dialog-cancel-button {
  67. color: #000;
  68. background: #fff;
  69. border:1px solid #999;
  70. min-width:100px;
  71. }
  72. .dialog-mobile .dialog-sure-button{
  73. color: #fff;
  74. background:#000;
  75. border:1px solid #000;
  76. min-width:100px;
  77. }
  78. .dialog-mobile button[i='1']{
  79. color: #000 !important;
  80. background:#fff !important;
  81. border:1px solid #777;
  82. min-width:100px;
  83. }
  84. /* 닫기 아이콘 */
  85. .dialog-close-btn {
  86. position:absolute;
  87. top:0;
  88. right:0;
  89. padding:20px;
  90. width: 17px;
  91. height: 17px;
  92. cursor:pointer;
  93. background:url('/image/btn_top_close.png') no-repeat 50% 50%;
  94. }
  95. /*bottom dialog*/
  96. .dialog-mobile-bottom {
  97. position: fixed;
  98. left: 0;
  99. bottom: 0;
  100. z-index: 10001;
  101. width: 100%;
  102. color: #333333;
  103. background-color: #EEEEEE;
  104. }
  105. .dialog-mobile-bottom .bottom-btn-item {
  106. text-align: center;
  107. }
  108. .bottom-btn-item .dialog-item-btn {
  109. background: #FFFFFF;
  110. padding: 0.5em 0;
  111. border-bottom: 1px solid #EEEEEE;
  112. }
  113. .bottom-btn-item .dialog-item-btn:last-child {
  114. border-bottom: none;
  115. }
  116. .dialog-mobile-bottom .dialog-cancel-btn {
  117. margin-top: 0.6em;
  118. text-align: center;
  119. background: #FFFFFF;
  120. padding: 0.5em 0;
  121. }
  122. /*toast*/
  123. .dialog-mobile-toast {
  124. position: fixed;
  125. bottom: 5em;
  126. }
  127. .dialog-mobile-toast .toast-content {
  128. padding: 0.5em 1em;
  129. color: #FFFFFF;
  130. border-radius: 2px;
  131. background-color: #333333;
  132. }
  133. /*loading*/
  134. .mobile-loading-bg {
  135. position: fixed;
  136. top: 0;
  137. left: 0;
  138. z-index: 10000;
  139. width: 100%;
  140. height: 100%;
  141. background-color: rgba(0, 0, 0, 0.3);
  142. -webkit-transform: translate3d(0, 0, 0);
  143. transform: translate3d(0, 0, 0);
  144. }
  145. .mobile-loading {
  146. position: fixed;
  147. top: 0;
  148. left: 0;
  149. z-index: 10001;
  150. min-width: 2em;
  151. min-height: 2em;
  152. padding: 0.8em 1.6em;
  153. text-align: center;
  154. border-radius: 2px;
  155. color: #FFFFF0;
  156. background-color: #0A0A0A;
  157. -webkit-transform: translate3d(0, 0, 0);
  158. transform: translate3d(0, 0, 0);
  159. }
  160. /*animation*/
  161. .animation-zoom-in, .animation-zoom-out,
  162. .animation-bottom-in, .animation-bottom-out,
  163. .animation-bg-fadeIn {
  164. -webkit-animation-duration: 0.3s;
  165. -webkit-animation-fill-mode: both;
  166. animation-duration: 0.3s;
  167. animation-fill-mode: both;
  168. }
  169. .animation-fade-in, .animation-fade-out {
  170. -webkit-animation-duration: 1s;
  171. -webkit-animation-timing-function: ease-out;
  172. -webkit-animation-fill-mode: both;
  173. animation-duration: 1s;
  174. animation-timing-function: ease-out;
  175. animation-fill-mode: both;
  176. }
  177. .animation-zoom-in {
  178. -webkit-animation-name: zoomIn;
  179. animation-name: zoomIn;
  180. }
  181. .animation-zoom-out {
  182. -webkit-animation-name: zoomOut;
  183. animation-name: zoomOut;
  184. }
  185. .animation-fade-in {
  186. -webkit-animation-name: fadeIn;
  187. animation-name: fadeIn;
  188. }
  189. .animation-fade-out {
  190. -webkit-animation-name: fadeOut;
  191. animation-name: fadeOut;
  192. }
  193. .animation-bottom-in {
  194. -webkit-animation-name: bottomIn;
  195. animation-name: bottomIn;
  196. }
  197. .animation-bottom-out {
  198. -webkit-animation-name: bottomOut;
  199. animation-name: bottomOut;
  200. }
  201. .animation-bg-fadeIn {
  202. -webkit-animation-name: fadeIn;
  203. animation-name: fadeIn;
  204. }
  205. @-webkit-keyframes zoomIn {
  206. from{
  207. opacity: 0;
  208. -webkit-transform: scale(0, 0);
  209. }
  210. to{
  211. opacity: 1;
  212. -webkit-transform: scale(1, 1);
  213. }
  214. }
  215. @-webkit-keyframes zoomOut {
  216. from{
  217. opacity: 1;
  218. -webkit-transform: scale(1, 1);
  219. }
  220. 90%{
  221. -webkit-transform: scale(0.3, 0.3);
  222. }
  223. to{
  224. opacity: 0;
  225. -webkit-transform: scale(0, 0);
  226. }
  227. }
  228. @keyframes zoomIn {
  229. from{
  230. opacity: 0;
  231. transform: scale(0, 0);
  232. }
  233. to{
  234. opacity: 1;
  235. transform: scale(1, 1);
  236. }
  237. }
  238. @keyframes zoomOut {
  239. from{
  240. opacity: 1;
  241. transform: scale(1, 1);
  242. }
  243. 90%{
  244. transform: scale(0.3, 0.3);
  245. }
  246. to{
  247. opacity: 0;
  248. transform: scale(0, 0);
  249. }
  250. }
  251. @-webkit-keyframes fadeIn {
  252. from{
  253. opacity: 0;
  254. }
  255. to{
  256. opacity: 1;
  257. }
  258. }
  259. @-webkit-keyframes fadeOut {
  260. from{
  261. opacity: 1;
  262. }
  263. 30%{
  264. opacity: 0.3;
  265. }
  266. to{
  267. opacity: 0;
  268. }
  269. }
  270. @keyframes fadeIn {
  271. from{
  272. opacity: 0;
  273. }
  274. to{
  275. opacity: 1;
  276. }
  277. }
  278. @keyframes fadeOut {
  279. from{
  280. opacity: 1;
  281. }
  282. 30%{
  283. opacity: 0.3;
  284. }
  285. to{
  286. opacity: 0;
  287. }
  288. }
  289. @-webkit-keyframes bottomIn {
  290. from{
  291. bottom: -1000px;
  292. }
  293. to{
  294. bottom: 0;
  295. }
  296. }
  297. @-webkit-keyframes bottomOut {
  298. from{
  299. bottom: 0;
  300. }
  301. to{
  302. bottom: -1000px;
  303. }
  304. }
  305. @keyframes bottomIn {
  306. from{
  307. bottom: -1000px;
  308. }
  309. to{
  310. bottom: 0;
  311. }
  312. }
  313. @keyframes bottomOut {
  314. from{
  315. bottom: 0;
  316. }
  317. to{
  318. bottom: -1000px;
  319. }
  320. }