You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

660 lines
13 KiB

4 years ago
  1. @-webkit-keyframes showSweetAlert {
  2. 0% {
  3. transform: scale(0.7);
  4. -webkit-transform: scale(0.7);
  5. }
  6. 45% {
  7. transform: scale(1.05);
  8. -webkit-transform: scale(1.05);
  9. }
  10. 80% {
  11. transform: scale(0.95);
  12. -webkit-tranform: scale(0.95);
  13. }
  14. 100% {
  15. transform: scale(1);
  16. -webkit-transform: scale(1);
  17. }
  18. }
  19. @keyframes showSweetAlert {
  20. 0% {
  21. transform: scale(0.7);
  22. -webkit-transform: scale(0.7);
  23. }
  24. 45% {
  25. transform: scale(1.05);
  26. -webkit-transform: scale(1.05);
  27. }
  28. 80% {
  29. transform: scale(0.95);
  30. -webkit-tranform: scale(0.95);
  31. }
  32. 100% {
  33. transform: scale(1);
  34. -webkit-transform: scale(1);
  35. }
  36. }
  37. @-webkit-keyframes hideSweetAlert {
  38. 0% {
  39. transform: scale(1);
  40. -webkit-transform: scale(1);
  41. }
  42. 100% {
  43. transform: scale(0.5);
  44. -webkit-transform: scale(0.5);
  45. }
  46. }
  47. @keyframes hideSweetAlert {
  48. 0% {
  49. transform: scale(1);
  50. -webkit-transform: scale(1);
  51. }
  52. 100% {
  53. transform: scale(0.5);
  54. -webkit-transform: scale(0.5);
  55. }
  56. }
  57. .showSweetAlert {
  58. -webkit-animation: showSweetAlert 0.3s;
  59. animation: showSweetAlert 0.3s;
  60. }
  61. .hideSweetAlert {
  62. -webkit-animation: hideSweetAlert 0.2s;
  63. animation: hideSweetAlert 0.2s;
  64. }
  65. @-webkit-keyframes animateSuccessTip {
  66. 0% {
  67. width: 0;
  68. left: 1px;
  69. top: 19px;
  70. }
  71. 54% {
  72. width: 0;
  73. left: 1px;
  74. top: 19px;
  75. }
  76. 70% {
  77. width: 50px;
  78. left: -8px;
  79. top: 37px;
  80. }
  81. 84% {
  82. width: 17px;
  83. left: 21px;
  84. top: 48px;
  85. }
  86. 100% {
  87. width: 25px;
  88. left: 14px;
  89. top: 45px;
  90. }
  91. }
  92. @keyframes animateSuccessTip {
  93. 0% {
  94. width: 0;
  95. left: 1px;
  96. top: 19px;
  97. }
  98. 54% {
  99. width: 0;
  100. left: 1px;
  101. top: 19px;
  102. }
  103. 70% {
  104. width: 50px;
  105. left: -8px;
  106. top: 37px;
  107. }
  108. 84% {
  109. width: 17px;
  110. left: 21px;
  111. top: 48px;
  112. }
  113. 100% {
  114. width: 25px;
  115. left: 14px;
  116. top: 45px;
  117. }
  118. }
  119. @-webkit-keyframes animateSuccessLong {
  120. 0% {
  121. width: 0;
  122. right: 46px;
  123. top: 54px;
  124. }
  125. 65% {
  126. width: 0;
  127. right: 46px;
  128. top: 54px;
  129. }
  130. 84% {
  131. width: 55px;
  132. right: 0px;
  133. top: 35px;
  134. }
  135. 100% {
  136. width: 47px;
  137. right: 8px;
  138. top: 38px;
  139. }
  140. }
  141. @keyframes animateSuccessLong {
  142. 0% {
  143. width: 0;
  144. right: 46px;
  145. top: 54px;
  146. }
  147. 65% {
  148. width: 0;
  149. right: 46px;
  150. top: 54px;
  151. }
  152. 84% {
  153. width: 55px;
  154. right: 0px;
  155. top: 35px;
  156. }
  157. 100% {
  158. width: 47px;
  159. right: 8px;
  160. top: 38px;
  161. }
  162. }
  163. @-webkit-keyframes rotatePlaceholder {
  164. 0% {
  165. transform: rotate(-45deg);
  166. -webkit-transform: rotate(-45deg);
  167. }
  168. 5% {
  169. transform: rotate(-45deg);
  170. -webkit-transform: rotate(-45deg);
  171. }
  172. 12% {
  173. transform: rotate(-405deg);
  174. -webkit-transform: rotate(-405deg);
  175. }
  176. 100% {
  177. transform: rotate(-405deg);
  178. -webkit-transform: rotate(-405deg);
  179. }
  180. }
  181. @keyframes rotatePlaceholder {
  182. 0% {
  183. transform: rotate(-45deg);
  184. -webkit-transform: rotate(-45deg);
  185. }
  186. 5% {
  187. transform: rotate(-45deg);
  188. -webkit-transform: rotate(-45deg);
  189. }
  190. 12% {
  191. transform: rotate(-405deg);
  192. -webkit-transform: rotate(-405deg);
  193. }
  194. 100% {
  195. transform: rotate(-405deg);
  196. -webkit-transform: rotate(-405deg);
  197. }
  198. }
  199. .animateSuccessTip {
  200. -webkit-animation: animateSuccessTip 0.75s;
  201. animation: animateSuccessTip 0.75s;
  202. }
  203. .animateSuccessLong {
  204. -webkit-animation: animateSuccessLong 0.75s;
  205. animation: animateSuccessLong 0.75s;
  206. }
  207. .icon.success.animate::after {
  208. -webkit-animation: rotatePlaceholder 4.25s ease-in;
  209. animation: rotatePlaceholder 4.25s ease-in;
  210. }
  211. @-webkit-keyframes animateErrorIcon {
  212. 0% {
  213. transform: rotateX(100deg);
  214. -webkit-transform: rotateX(100deg);
  215. opacity: 0;
  216. }
  217. 100% {
  218. transform: rotateX(0deg);
  219. -webkit-transform: rotateX(0deg);
  220. opacity: 1;
  221. }
  222. }
  223. @keyframes animateErrorIcon {
  224. 0% {
  225. transform: rotateX(100deg);
  226. -webkit-transform: rotateX(100deg);
  227. opacity: 0;
  228. }
  229. 100% {
  230. transform: rotateX(0deg);
  231. -webkit-transform: rotateX(0deg);
  232. opacity: 1;
  233. }
  234. }
  235. .animateErrorIcon {
  236. -webkit-animation: animateErrorIcon 0.5s;
  237. animation: animateErrorIcon 0.5s;
  238. }
  239. @-webkit-keyframes animateXMark {
  240. 0% {
  241. transform: scale(0.4);
  242. -webkit-transform: scale(0.4);
  243. margin-top: 26px;
  244. opacity: 0;
  245. }
  246. 50% {
  247. transform: scale(0.4);
  248. -webkit-transform: scale(0.4);
  249. margin-top: 26px;
  250. opacity: 0;
  251. }
  252. 80% {
  253. transform: scale(1.15);
  254. -webkit-transform: scale(1.15);
  255. margin-top: -6px;
  256. }
  257. 100% {
  258. transform: scale(1);
  259. -webkit-transform: scale(1);
  260. margin-top: 0;
  261. opacity: 1;
  262. }
  263. }
  264. @keyframes animateXMark {
  265. 0% {
  266. transform: scale(0.4);
  267. -webkit-transform: scale(0.4);
  268. margin-top: 26px;
  269. opacity: 0;
  270. }
  271. 50% {
  272. transform: scale(0.4);
  273. -webkit-transform: scale(0.4);
  274. margin-top: 26px;
  275. opacity: 0;
  276. }
  277. 80% {
  278. transform: scale(1.15);
  279. -webkit-transform: scale(1.15);
  280. margin-top: -6px;
  281. }
  282. 100% {
  283. transform: scale(1);
  284. -webkit-transform: scale(1);
  285. margin-top: 0;
  286. opacity: 1;
  287. }
  288. }
  289. .animateXMark {
  290. -webkit-animation: animateXMark 0.5s;
  291. animation: animateXMark 0.5s;
  292. }
  293. @-webkit-keyframes pulseWarning {
  294. 0% {
  295. border-color: #F8D486;
  296. }
  297. 100% {
  298. border-color: #F8BB86;
  299. }
  300. }
  301. @keyframes pulseWarning {
  302. 0% {
  303. border-color: #F8D486;
  304. }
  305. 100% {
  306. border-color: #F8BB86;
  307. }
  308. }
  309. .pulseWarning {
  310. -webkit-animation: pulseWarning 0.75s infinite alternate;
  311. animation: pulseWarning 0.75s infinite alternate;
  312. }
  313. @-webkit-keyframes pulseWarningIns {
  314. 0% {
  315. background-color: #F8D486;
  316. }
  317. 100% {
  318. background-color: #F8BB86;
  319. }
  320. }
  321. @keyframes pulseWarningIns {
  322. 0% {
  323. background-color: #F8D486;
  324. }
  325. 100% {
  326. background-color: #F8BB86;
  327. }
  328. }
  329. .pulseWarningIns {
  330. -webkit-animation: pulseWarningIns 0.75s infinite alternate;
  331. animation: pulseWarningIns 0.75s infinite alternate;
  332. }
  333. .sweet-overlay {
  334. background-color: rgba(0, 0, 0, 0.4);
  335. position: fixed;
  336. left: 0;
  337. right: 0;
  338. top: 0;
  339. bottom: 0;
  340. display: none;
  341. z-index: 1040;
  342. }
  343. .sweet-alert {
  344. background-color: #ffffff;
  345. width: 478px;
  346. padding: 17px;
  347. border-radius: 5px;
  348. text-align: center;
  349. position: fixed;
  350. left: 50%;
  351. top: 50%;
  352. margin-left: -256px;
  353. margin-top: -200px;
  354. overflow: hidden;
  355. display: none;
  356. z-index: 2000;
  357. }
  358. @media all and (max-width: 767px) {
  359. .sweet-alert {
  360. width: auto;
  361. margin-left: 0;
  362. margin-right: 0;
  363. left: 15px;
  364. right: 15px;
  365. }
  366. }
  367. .sweet-alert .icon {
  368. width: 80px;
  369. height: 80px;
  370. border: 4px solid gray;
  371. border-radius: 50%;
  372. margin: 20px auto;
  373. position: relative;
  374. box-sizing: content-box;
  375. }
  376. .sweet-alert .icon.error {
  377. border-color: #d43f3a;
  378. }
  379. .sweet-alert .icon.error .x-mark {
  380. position: relative;
  381. display: block;
  382. }
  383. .sweet-alert .icon.error .line {
  384. position: absolute;
  385. height: 5px;
  386. width: 47px;
  387. background-color: #d9534f;
  388. display: block;
  389. top: 37px;
  390. border-radius: 2px;
  391. }
  392. .sweet-alert .icon.error .line.left {
  393. -webkit-transform: rotate(45deg);
  394. transform: rotate(45deg);
  395. left: 17px;
  396. }
  397. .sweet-alert .icon.error .line.right {
  398. -webkit-transform: rotate(-45deg);
  399. transform: rotate(-45deg);
  400. right: 16px;
  401. }
  402. .sweet-alert .icon.warning {
  403. border-color: #eea236;
  404. }
  405. .sweet-alert .icon.warning .body {
  406. position: absolute;
  407. width: 5px;
  408. height: 47px;
  409. left: 50%;
  410. top: 10px;
  411. border-radius: 2px;
  412. margin-left: -2px;
  413. background-color: #f0ad4e;
  414. }
  415. .sweet-alert .icon.warning .dot {
  416. position: absolute;
  417. width: 7px;
  418. height: 7px;
  419. border-radius: 50%;
  420. margin-left: -3px;
  421. left: 50%;
  422. bottom: 10px;
  423. background-color: #f0ad4e;
  424. }
  425. .sweet-alert .icon.info {
  426. border-color: #46b8da;
  427. }
  428. .sweet-alert .icon.info::before {
  429. content: "";
  430. position: absolute;
  431. width: 5px;
  432. height: 29px;
  433. left: 50%;
  434. bottom: 17px;
  435. border-radius: 2px;
  436. margin-left: -2px;
  437. background-color: #5bc0de;
  438. }
  439. .sweet-alert .icon.info::after {
  440. content: "";
  441. position: absolute;
  442. width: 7px;
  443. height: 7px;
  444. border-radius: 50%;
  445. margin-left: -3px;
  446. top: 19px;
  447. background-color: #5bc0de;
  448. }
  449. .sweet-alert .icon.success {
  450. border-color: #4cae4c;
  451. }
  452. .sweet-alert .icon.success::before,
  453. .sweet-alert .icon.success::after {
  454. content: '';
  455. border-radius: 50%;
  456. position: absolute;
  457. width: 60px;
  458. height: 120px;
  459. background: white;
  460. -webkit-transform: rotate(45deg);
  461. transform: rotate(45deg);
  462. }
  463. .sweet-alert .icon.success::before {
  464. border-radius: 120px 0 0 120px;
  465. top: -7px;
  466. left: -33px;
  467. -webkit-transform: rotate(-45deg);
  468. transform: rotate(-45deg);
  469. -webkit-transform-origin: 60px 60px;
  470. transform-origin: 60px 60px;
  471. }
  472. .sweet-alert .icon.success::after {
  473. border-radius: 0 120px 120px 0;
  474. top: -11px;
  475. left: 30px;
  476. -webkit-transform: rotate(-45deg);
  477. transform: rotate(-45deg);
  478. -webkit-transform-origin: 0px 60px;
  479. transform-origin: 0px 60px;
  480. }
  481. .sweet-alert .icon.success .placeholder {
  482. width: 80px;
  483. height: 80px;
  484. border: 4px solid rgba(92, 184, 92, 0.2);
  485. border-radius: 50%;
  486. box-sizing: content-box;
  487. position: absolute;
  488. left: -4px;
  489. top: -4px;
  490. z-index: 2;
  491. }
  492. .sweet-alert .icon.success .fix {
  493. width: 5px;
  494. height: 90px;
  495. background-color: #ffffff;
  496. position: absolute;
  497. left: 28px;
  498. top: 8px;
  499. z-index: 1;
  500. -webkit-transform: rotate(-45deg);
  501. transform: rotate(-45deg);
  502. }
  503. .sweet-alert .icon.success .line {
  504. height: 5px;
  505. background-color: #5cb85c;
  506. display: block;
  507. border-radius: 2px;
  508. position: absolute;
  509. z-index: 2;
  510. }
  511. .sweet-alert .icon.success .line.tip {
  512. width: 25px;
  513. left: 14px;
  514. top: 46px;
  515. -webkit-transform: rotate(45deg);
  516. transform: rotate(45deg);
  517. }
  518. .sweet-alert .icon.success .line.long {
  519. width: 47px;
  520. right: 8px;
  521. top: 38px;
  522. -webkit-transform: rotate(-45deg);
  523. transform: rotate(-45deg);
  524. }
  525. .sweet-alert .icon.custom {
  526. background-size: contain;
  527. border-radius: 0;
  528. border: none;
  529. background-position: center center;
  530. background-repeat: no-repeat;
  531. }
  532. .sweet-alert .btn-default:focus {
  533. border-color: #cccccc;
  534. outline: 0;
  535. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(204, 204, 204, 0.6);
  536. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(204, 204, 204, 0.6);
  537. }
  538. .sweet-alert .btn-success:focus {
  539. border-color: #4cae4c;
  540. outline: 0;
  541. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(76, 174, 76, 0.6);
  542. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(76, 174, 76, 0.6);
  543. }
  544. .sweet-alert .btn-info:focus {
  545. border-color: #46b8da;
  546. outline: 0;
  547. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(70, 184, 218, 0.6);
  548. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(70, 184, 218, 0.6);
  549. }
  550. .sweet-alert .btn-danger:focus {
  551. border-color: #d43f3a;
  552. outline: 0;
  553. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(212, 63, 58, 0.6);
  554. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(212, 63, 58, 0.6);
  555. }
  556. .sweet-alert .btn-warning:focus {
  557. border-color: #eea236;
  558. outline: 0;
  559. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(238, 162, 54, 0.6);
  560. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(238, 162, 54, 0.6);
  561. }
  562. .sweet-alert button::-moz-focus-inner {
  563. border: 0;
  564. }