sweetalert.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. body.stop-scrolling {
  2. height: 100%;
  3. overflow: hidden;
  4. }
  5. .sweet-overlay {
  6. background-color: black;
  7. /* IE8 */
  8. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
  9. /* IE8 */
  10. background-color: rgba(0, 0, 0, 0.4);
  11. position: fixed;
  12. left: 0;
  13. right: 0;
  14. top: 0;
  15. bottom: 0;
  16. display: none;
  17. z-index: 10000;
  18. }
  19. .sweet-alert {
  20. background-color: white;
  21. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  22. width: 478px;
  23. padding: 17px;
  24. border-radius: 5px;
  25. text-align: center;
  26. position: fixed;
  27. left: 50%;
  28. top: 50%;
  29. margin-left: -256px;
  30. margin-top: -200px;
  31. overflow: hidden;
  32. display: none;
  33. z-index: 99999;
  34. }
  35. @media all and (max-width: 540px) {
  36. .sweet-alert {
  37. width: auto;
  38. margin-left: 0;
  39. margin-right: 0;
  40. left: 15px;
  41. right: 15px;
  42. }
  43. }
  44. .sweet-alert h2 {
  45. color: #575757;
  46. font-size: 30px;
  47. text-align: center;
  48. font-weight: 600;
  49. text-transform: none;
  50. position: relative;
  51. margin: 25px 0;
  52. padding: 0;
  53. line-height: 40px;
  54. display: block;
  55. }
  56. .sweet-alert p {
  57. color: #797979;
  58. font-size: 16px;
  59. text-align: center;
  60. font-weight: 300;
  61. position: relative;
  62. text-align: inherit;
  63. float: none;
  64. margin: 0;
  65. padding: 0;
  66. line-height: normal;
  67. }
  68. .sweet-alert fieldset {
  69. border: none;
  70. position: relative;
  71. }
  72. .sweet-alert .sa-error-container {
  73. background-color: #f1f1f1;
  74. margin-left: -17px;
  75. margin-right: -17px;
  76. overflow: hidden;
  77. padding: 0 10px;
  78. max-height: 0;
  79. webkit-transition: padding 0.15s, max-height 0.15s;
  80. transition: padding 0.15s, max-height 0.15s;
  81. }
  82. .sweet-alert .sa-error-container.show {
  83. padding: 10px 0;
  84. max-height: 100px;
  85. webkit-transition: padding 0.2s, max-height 0.2s;
  86. transition: padding 0.25s, max-height 0.25s;
  87. }
  88. .sweet-alert .sa-error-container .icon {
  89. display: inline-block;
  90. width: 24px;
  91. height: 24px;
  92. border-radius: 50%;
  93. background-color: #ea7d7d;
  94. color: white;
  95. line-height: 24px;
  96. text-align: center;
  97. margin-right: 3px;
  98. }
  99. .sweet-alert .sa-error-container p {
  100. display: inline-block;
  101. }
  102. .sweet-alert .sa-input-error {
  103. position: absolute;
  104. top: 29px;
  105. right: 26px;
  106. width: 20px;
  107. height: 20px;
  108. opacity: 0;
  109. -webkit-transform: scale(0.5);
  110. transform: scale(0.5);
  111. -webkit-transform-origin: 50% 50%;
  112. transform-origin: 50% 50%;
  113. -webkit-transition: all 0.1s;
  114. transition: all 0.1s;
  115. }
  116. .sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
  117. content: "";
  118. width: 20px;
  119. height: 6px;
  120. background-color: #f06e57;
  121. border-radius: 3px;
  122. position: absolute;
  123. top: 50%;
  124. margin-top: -4px;
  125. left: 50%;
  126. margin-left: -9px;
  127. }
  128. .sweet-alert .sa-input-error::before {
  129. -webkit-transform: rotate(-45deg);
  130. transform: rotate(-45deg);
  131. }
  132. .sweet-alert .sa-input-error::after {
  133. -webkit-transform: rotate(45deg);
  134. transform: rotate(45deg);
  135. }
  136. .sweet-alert .sa-input-error.show {
  137. opacity: 1;
  138. -webkit-transform: scale(1);
  139. transform: scale(1);
  140. }
  141. .sweet-alert input {
  142. width: 100%;
  143. box-sizing: border-box;
  144. border-radius: 3px;
  145. border: 1px solid #d7d7d7;
  146. height: 43px;
  147. margin-top: 10px;
  148. margin-bottom: 17px;
  149. font-size: 18px;
  150. box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
  151. padding: 0 12px;
  152. display: none;
  153. -webkit-transition: all 0.3s;
  154. transition: all 0.3s;
  155. }
  156. .sweet-alert input:focus {
  157. outline: none;
  158. box-shadow: 0px 0px 3px #c4e6f5;
  159. border: 1px solid #b4dbed;
  160. }
  161. .sweet-alert input:focus::-moz-placeholder {
  162. transition: opacity 0.3s 0.03s ease;
  163. opacity: 0.5;
  164. }
  165. .sweet-alert input:focus:-ms-input-placeholder {
  166. transition: opacity 0.3s 0.03s ease;
  167. opacity: 0.5;
  168. }
  169. .sweet-alert input:focus::-webkit-input-placeholder {
  170. transition: opacity 0.3s 0.03s ease;
  171. opacity: 0.5;
  172. }
  173. .sweet-alert input::-moz-placeholder {
  174. color: #bdbdbd;
  175. }
  176. .sweet-alert input::-ms-clear {
  177. display: none;
  178. }
  179. .sweet-alert input:-ms-input-placeholder {
  180. color: #bdbdbd;
  181. }
  182. .sweet-alert input::-webkit-input-placeholder {
  183. color: #bdbdbd;
  184. }
  185. .sweet-alert.show-input input {
  186. display: block;
  187. }
  188. .sweet-alert .sa-confirm-button-container {
  189. display: inline-block;
  190. position: relative;
  191. }
  192. .sweet-alert .la-ball-fall {
  193. position: absolute;
  194. left: 50%;
  195. top: 50%;
  196. margin-left: -27px;
  197. margin-top: 4px;
  198. opacity: 0;
  199. visibility: hidden;
  200. }
  201. .sweet-alert button {
  202. background-color: #8CD4F5;
  203. color: white;
  204. border: none;
  205. box-shadow: none;
  206. font-size: 17px;
  207. font-weight: 500;
  208. -webkit-border-radius: 4px;
  209. border-radius: 5px;
  210. padding: 10px 32px;
  211. margin: 26px 5px 0 5px;
  212. cursor: pointer;
  213. }
  214. .sweet-alert button:focus {
  215. outline: none;
  216. box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  217. }
  218. .sweet-alert button:hover {
  219. background-color: #7ecff4;
  220. }
  221. .sweet-alert button:active {
  222. background-color: #5dc2f1;
  223. }
  224. .sweet-alert button.cancel {
  225. background-color: #C1C1C1;
  226. }
  227. .sweet-alert button.cancel:hover {
  228. background-color: #b9b9b9;
  229. }
  230. .sweet-alert button.cancel:active {
  231. background-color: #a8a8a8;
  232. }
  233. .sweet-alert button.cancel:focus {
  234. box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important;
  235. }
  236. .sweet-alert button[disabled] {
  237. opacity: .6;
  238. cursor: default;
  239. }
  240. .sweet-alert button.confirm[disabled] {
  241. color: transparent;
  242. }
  243. .sweet-alert button.confirm[disabled] ~ .la-ball-fall {
  244. opacity: 1;
  245. visibility: visible;
  246. transition-delay: 0s;
  247. }
  248. .sweet-alert button::-moz-focus-inner {
  249. border: 0;
  250. }
  251. .sweet-alert[data-has-cancel-button=false] button {
  252. box-shadow: none !important;
  253. }
  254. .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
  255. padding-bottom: 40px;
  256. }
  257. .sweet-alert .sa-icon {
  258. width: 80px;
  259. height: 80px;
  260. border: 4px solid gray;
  261. -webkit-border-radius: 40px;
  262. border-radius: 40px;
  263. border-radius: 50%;
  264. margin: 20px auto;
  265. padding: 0;
  266. position: relative;
  267. box-sizing: content-box;
  268. }
  269. .sweet-alert .sa-icon.sa-error {
  270. border-color: #F27474;
  271. }
  272. .sweet-alert .sa-icon.sa-error .sa-x-mark {
  273. position: relative;
  274. display: block;
  275. }
  276. .sweet-alert .sa-icon.sa-error .sa-line {
  277. position: absolute;
  278. height: 5px;
  279. width: 47px;
  280. background-color: #F27474;
  281. display: block;
  282. top: 37px;
  283. border-radius: 2px;
  284. }
  285. .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
  286. -webkit-transform: rotate(45deg);
  287. transform: rotate(45deg);
  288. left: 17px;
  289. }
  290. .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
  291. -webkit-transform: rotate(-45deg);
  292. transform: rotate(-45deg);
  293. right: 16px;
  294. }
  295. .sweet-alert .sa-icon.sa-warning {
  296. border-color: #F8BB86;
  297. }
  298. .sweet-alert .sa-icon.sa-warning .sa-body {
  299. position: absolute;
  300. width: 5px;
  301. height: 47px;
  302. left: 50%;
  303. top: 10px;
  304. -webkit-border-radius: 2px;
  305. border-radius: 2px;
  306. margin-left: -2px;
  307. background-color: #F8BB86;
  308. }
  309. .sweet-alert .sa-icon.sa-warning .sa-dot {
  310. position: absolute;
  311. width: 7px;
  312. height: 7px;
  313. -webkit-border-radius: 50%;
  314. border-radius: 50%;
  315. margin-left: -3px;
  316. left: 50%;
  317. bottom: 10px;
  318. background-color: #F8BB86;
  319. }
  320. .sweet-alert .sa-icon.sa-info {
  321. border-color: #C9DAE1;
  322. }
  323. .sweet-alert .sa-icon.sa-info::before {
  324. content: "";
  325. position: absolute;
  326. width: 5px;
  327. height: 29px;
  328. left: 50%;
  329. bottom: 17px;
  330. border-radius: 2px;
  331. margin-left: -2px;
  332. background-color: #C9DAE1;
  333. }
  334. .sweet-alert .sa-icon.sa-info::after {
  335. content: "";
  336. position: absolute;
  337. width: 7px;
  338. height: 7px;
  339. border-radius: 50%;
  340. margin-left: -3px;
  341. top: 19px;
  342. background-color: #C9DAE1;
  343. left: 50%;
  344. }
  345. .sweet-alert .sa-icon.sa-success {
  346. border-color: #A5DC86;
  347. }
  348. .sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
  349. content: '';
  350. -webkit-border-radius: 40px;
  351. border-radius: 40px;
  352. border-radius: 50%;
  353. position: absolute;
  354. width: 60px;
  355. height: 120px;
  356. background: white;
  357. -webkit-transform: rotate(45deg);
  358. transform: rotate(45deg);
  359. }
  360. .sweet-alert .sa-icon.sa-success::before {
  361. -webkit-border-radius: 120px 0 0 120px;
  362. border-radius: 120px 0 0 120px;
  363. top: -7px;
  364. left: -33px;
  365. -webkit-transform: rotate(-45deg);
  366. transform: rotate(-45deg);
  367. -webkit-transform-origin: 60px 60px;
  368. transform-origin: 60px 60px;
  369. }
  370. .sweet-alert .sa-icon.sa-success::after {
  371. -webkit-border-radius: 0 120px 120px 0;
  372. border-radius: 0 120px 120px 0;
  373. top: -11px;
  374. left: 30px;
  375. -webkit-transform: rotate(-45deg);
  376. transform: rotate(-45deg);
  377. -webkit-transform-origin: 0px 60px;
  378. transform-origin: 0px 60px;
  379. }
  380. .sweet-alert .sa-icon.sa-success .sa-placeholder {
  381. width: 80px;
  382. height: 80px;
  383. border: 4px solid rgba(165, 220, 134, 0.2);
  384. -webkit-border-radius: 40px;
  385. border-radius: 40px;
  386. border-radius: 50%;
  387. box-sizing: content-box;
  388. position: absolute;
  389. left: -4px;
  390. top: -4px;
  391. z-index: 2;
  392. }
  393. .sweet-alert .sa-icon.sa-success .sa-fix {
  394. width: 5px;
  395. height: 90px;
  396. background-color: white;
  397. position: absolute;
  398. left: 28px;
  399. top: 8px;
  400. z-index: 1;
  401. -webkit-transform: rotate(-45deg);
  402. transform: rotate(-45deg);
  403. }
  404. .sweet-alert .sa-icon.sa-success .sa-line {
  405. height: 5px;
  406. background-color: #A5DC86;
  407. display: block;
  408. border-radius: 2px;
  409. position: absolute;
  410. z-index: 2;
  411. }
  412. .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
  413. width: 25px;
  414. left: 14px;
  415. top: 46px;
  416. -webkit-transform: rotate(45deg);
  417. transform: rotate(45deg);
  418. }
  419. .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
  420. width: 47px;
  421. right: 8px;
  422. top: 38px;
  423. -webkit-transform: rotate(-45deg);
  424. transform: rotate(-45deg);
  425. }
  426. .sweet-alert .sa-icon.sa-custom {
  427. background-size: contain;
  428. border-radius: 0;
  429. border: none;
  430. background-position: center center;
  431. background-repeat: no-repeat;
  432. }
  433. /*
  434. * Animations
  435. */
  436. @-webkit-keyframes showSweetAlert {
  437. 0% {
  438. transform: scale(0.7);
  439. -webkit-transform: scale(0.7);
  440. }
  441. 45% {
  442. transform: scale(1.05);
  443. -webkit-transform: scale(1.05);
  444. }
  445. 80% {
  446. transform: scale(0.95);
  447. -webkit-transform: scale(0.95);
  448. }
  449. 100% {
  450. transform: scale(1);
  451. -webkit-transform: scale(1);
  452. }
  453. }
  454. @keyframes showSweetAlert {
  455. 0% {
  456. transform: scale(0.7);
  457. -webkit-transform: scale(0.7);
  458. }
  459. 45% {
  460. transform: scale(1.05);
  461. -webkit-transform: scale(1.05);
  462. }
  463. 80% {
  464. transform: scale(0.95);
  465. -webkit-transform: scale(0.95);
  466. }
  467. 100% {
  468. transform: scale(1);
  469. -webkit-transform: scale(1);
  470. }
  471. }
  472. @-webkit-keyframes hideSweetAlert {
  473. 0% {
  474. transform: scale(1);
  475. -webkit-transform: scale(1);
  476. }
  477. 100% {
  478. transform: scale(0.5);
  479. -webkit-transform: scale(0.5);
  480. }
  481. }
  482. @keyframes hideSweetAlert {
  483. 0% {
  484. transform: scale(1);
  485. -webkit-transform: scale(1);
  486. }
  487. 100% {
  488. transform: scale(0.5);
  489. -webkit-transform: scale(0.5);
  490. }
  491. }
  492. @-webkit-keyframes slideFromTop {
  493. 0% {
  494. top: 0%;
  495. }
  496. 100% {
  497. top: 50%;
  498. }
  499. }
  500. @keyframes slideFromTop {
  501. 0% {
  502. top: 0%;
  503. }
  504. 100% {
  505. top: 50%;
  506. }
  507. }
  508. @-webkit-keyframes slideToTop {
  509. 0% {
  510. top: 50%;
  511. }
  512. 100% {
  513. top: 0%;
  514. }
  515. }
  516. @keyframes slideToTop {
  517. 0% {
  518. top: 50%;
  519. }
  520. 100% {
  521. top: 0%;
  522. }
  523. }
  524. @-webkit-keyframes slideFromBottom {
  525. 0% {
  526. top: 70%;
  527. }
  528. 100% {
  529. top: 50%;
  530. }
  531. }
  532. @keyframes slideFromBottom {
  533. 0% {
  534. top: 70%;
  535. }
  536. 100% {
  537. top: 50%;
  538. }
  539. }
  540. @-webkit-keyframes slideToBottom {
  541. 0% {
  542. top: 50%;
  543. }
  544. 100% {
  545. top: 70%;
  546. }
  547. }
  548. @keyframes slideToBottom {
  549. 0% {
  550. top: 50%;
  551. }
  552. 100% {
  553. top: 70%;
  554. }
  555. }
  556. .showSweetAlert[data-animation=pop] {
  557. -webkit-animation: showSweetAlert 0.3s;
  558. animation: showSweetAlert 0.3s;
  559. }
  560. .showSweetAlert[data-animation=none] {
  561. -webkit-animation: none;
  562. animation: none;
  563. }
  564. .showSweetAlert[data-animation=slide-from-top] {
  565. -webkit-animation: slideFromTop 0.3s;
  566. animation: slideFromTop 0.3s;
  567. }
  568. .showSweetAlert[data-animation=slide-from-bottom] {
  569. -webkit-animation: slideFromBottom 0.3s;
  570. animation: slideFromBottom 0.3s;
  571. }
  572. .hideSweetAlert[data-animation=pop] {
  573. -webkit-animation: hideSweetAlert 0.2s;
  574. animation: hideSweetAlert 0.2s;
  575. }
  576. .hideSweetAlert[data-animation=none] {
  577. -webkit-animation: none;
  578. animation: none;
  579. }
  580. .hideSweetAlert[data-animation=slide-from-top] {
  581. -webkit-animation: slideToTop 0.4s;
  582. animation: slideToTop 0.4s;
  583. }
  584. .hideSweetAlert[data-animation=slide-from-bottom] {
  585. -webkit-animation: slideToBottom 0.3s;
  586. animation: slideToBottom 0.3s;
  587. }
  588. @-webkit-keyframes animateSuccessTip {
  589. 0% {
  590. width: 0;
  591. left: 1px;
  592. top: 19px;
  593. }
  594. 54% {
  595. width: 0;
  596. left: 1px;
  597. top: 19px;
  598. }
  599. 70% {
  600. width: 50px;
  601. left: -8px;
  602. top: 37px;
  603. }
  604. 84% {
  605. width: 17px;
  606. left: 21px;
  607. top: 48px;
  608. }
  609. 100% {
  610. width: 25px;
  611. left: 14px;
  612. top: 45px;
  613. }
  614. }
  615. @keyframes animateSuccessTip {
  616. 0% {
  617. width: 0;
  618. left: 1px;
  619. top: 19px;
  620. }
  621. 54% {
  622. width: 0;
  623. left: 1px;
  624. top: 19px;
  625. }
  626. 70% {
  627. width: 50px;
  628. left: -8px;
  629. top: 37px;
  630. }
  631. 84% {
  632. width: 17px;
  633. left: 21px;
  634. top: 48px;
  635. }
  636. 100% {
  637. width: 25px;
  638. left: 14px;
  639. top: 45px;
  640. }
  641. }
  642. @-webkit-keyframes animateSuccessLong {
  643. 0% {
  644. width: 0;
  645. right: 46px;
  646. top: 54px;
  647. }
  648. 65% {
  649. width: 0;
  650. right: 46px;
  651. top: 54px;
  652. }
  653. 84% {
  654. width: 55px;
  655. right: 0px;
  656. top: 35px;
  657. }
  658. 100% {
  659. width: 47px;
  660. right: 8px;
  661. top: 38px;
  662. }
  663. }
  664. @keyframes animateSuccessLong {
  665. 0% {
  666. width: 0;
  667. right: 46px;
  668. top: 54px;
  669. }
  670. 65% {
  671. width: 0;
  672. right: 46px;
  673. top: 54px;
  674. }
  675. 84% {
  676. width: 55px;
  677. right: 0px;
  678. top: 35px;
  679. }
  680. 100% {
  681. width: 47px;
  682. right: 8px;
  683. top: 38px;
  684. }
  685. }
  686. @-webkit-keyframes rotatePlaceholder {
  687. 0% {
  688. transform: rotate(-45deg);
  689. -webkit-transform: rotate(-45deg);
  690. }
  691. 5% {
  692. transform: rotate(-45deg);
  693. -webkit-transform: rotate(-45deg);
  694. }
  695. 12% {
  696. transform: rotate(-405deg);
  697. -webkit-transform: rotate(-405deg);
  698. }
  699. 100% {
  700. transform: rotate(-405deg);
  701. -webkit-transform: rotate(-405deg);
  702. }
  703. }
  704. @keyframes rotatePlaceholder {
  705. 0% {
  706. transform: rotate(-45deg);
  707. -webkit-transform: rotate(-45deg);
  708. }
  709. 5% {
  710. transform: rotate(-45deg);
  711. -webkit-transform: rotate(-45deg);
  712. }
  713. 12% {
  714. transform: rotate(-405deg);
  715. -webkit-transform: rotate(-405deg);
  716. }
  717. 100% {
  718. transform: rotate(-405deg);
  719. -webkit-transform: rotate(-405deg);
  720. }
  721. }
  722. .animateSuccessTip {
  723. -webkit-animation: animateSuccessTip 0.75s;
  724. animation: animateSuccessTip 0.75s;
  725. }
  726. .animateSuccessLong {
  727. -webkit-animation: animateSuccessLong 0.75s;
  728. animation: animateSuccessLong 0.75s;
  729. }
  730. .sa-icon.sa-success.animate::after {
  731. -webkit-animation: rotatePlaceholder 4.25s ease-in;
  732. animation: rotatePlaceholder 4.25s ease-in;
  733. }
  734. @-webkit-keyframes animateErrorIcon {
  735. 0% {
  736. transform: rotateX(100deg);
  737. -webkit-transform: rotateX(100deg);
  738. opacity: 0;
  739. }
  740. 100% {
  741. transform: rotateX(0deg);
  742. -webkit-transform: rotateX(0deg);
  743. opacity: 1;
  744. }
  745. }
  746. @keyframes animateErrorIcon {
  747. 0% {
  748. transform: rotateX(100deg);
  749. -webkit-transform: rotateX(100deg);
  750. opacity: 0;
  751. }
  752. 100% {
  753. transform: rotateX(0deg);
  754. -webkit-transform: rotateX(0deg);
  755. opacity: 1;
  756. }
  757. }
  758. .animateErrorIcon {
  759. -webkit-animation: animateErrorIcon 0.5s;
  760. animation: animateErrorIcon 0.5s;
  761. }
  762. @-webkit-keyframes animateXMark {
  763. 0% {
  764. transform: scale(0.4);
  765. -webkit-transform: scale(0.4);
  766. margin-top: 26px;
  767. opacity: 0;
  768. }
  769. 50% {
  770. transform: scale(0.4);
  771. -webkit-transform: scale(0.4);
  772. margin-top: 26px;
  773. opacity: 0;
  774. }
  775. 80% {
  776. transform: scale(1.15);
  777. -webkit-transform: scale(1.15);
  778. margin-top: -6px;
  779. }
  780. 100% {
  781. transform: scale(1);
  782. -webkit-transform: scale(1);
  783. margin-top: 0;
  784. opacity: 1;
  785. }
  786. }
  787. @keyframes animateXMark {
  788. 0% {
  789. transform: scale(0.4);
  790. -webkit-transform: scale(0.4);
  791. margin-top: 26px;
  792. opacity: 0;
  793. }
  794. 50% {
  795. transform: scale(0.4);
  796. -webkit-transform: scale(0.4);
  797. margin-top: 26px;
  798. opacity: 0;
  799. }
  800. 80% {
  801. transform: scale(1.15);
  802. -webkit-transform: scale(1.15);
  803. margin-top: -6px;
  804. }
  805. 100% {
  806. transform: scale(1);
  807. -webkit-transform: scale(1);
  808. margin-top: 0;
  809. opacity: 1;
  810. }
  811. }
  812. .animateXMark {
  813. -webkit-animation: animateXMark 0.5s;
  814. animation: animateXMark 0.5s;
  815. }
  816. @-webkit-keyframes pulseWarning {
  817. 0% {
  818. border-color: #F8D486;
  819. }
  820. 100% {
  821. border-color: #F8BB86;
  822. }
  823. }
  824. @keyframes pulseWarning {
  825. 0% {
  826. border-color: #F8D486;
  827. }
  828. 100% {
  829. border-color: #F8BB86;
  830. }
  831. }
  832. .pulseWarning {
  833. -webkit-animation: pulseWarning 0.75s infinite alternate;
  834. animation: pulseWarning 0.75s infinite alternate;
  835. }
  836. @-webkit-keyframes pulseWarningIns {
  837. 0% {
  838. background-color: #F8D486;
  839. }
  840. 100% {
  841. background-color: #F8BB86;
  842. }
  843. }
  844. @keyframes pulseWarningIns {
  845. 0% {
  846. background-color: #F8D486;
  847. }
  848. 100% {
  849. background-color: #F8BB86;
  850. }
  851. }
  852. .pulseWarningIns {
  853. -webkit-animation: pulseWarningIns 0.75s infinite alternate;
  854. animation: pulseWarningIns 0.75s infinite alternate;
  855. }
  856. @-webkit-keyframes rotate-loading {
  857. 0% {
  858. transform: rotate(0deg);
  859. }
  860. 100% {
  861. transform: rotate(360deg);
  862. }
  863. }
  864. @keyframes rotate-loading {
  865. 0% {
  866. transform: rotate(0deg);
  867. }
  868. 100% {
  869. transform: rotate(360deg);
  870. }
  871. }
  872. /* Internet Explorer 9 has some special quirks that are fixed here */
  873. /* The icons are not animated. */
  874. /* This file is automatically merged into sweet-alert.min.js through Gulp */
  875. /* Error icon */
  876. .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
  877. -ms-transform: rotate(45deg) \9;
  878. }
  879. .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
  880. -ms-transform: rotate(-45deg) \9;
  881. }
  882. /* Success icon */
  883. .sweet-alert .sa-icon.sa-success {
  884. border-color: transparent \9;
  885. }
  886. .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
  887. -ms-transform: rotate(45deg) \9;
  888. }
  889. .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
  890. -ms-transform: rotate(-45deg) \9;
  891. }
  892. /*!
  893. * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
  894. * Copyright 2015 Daniel Cardoso <@DanielCardoso>
  895. * Licensed under MIT
  896. */
  897. .la-ball-fall,
  898. .la-ball-fall > div {
  899. position: relative;
  900. -webkit-box-sizing: border-box;
  901. -moz-box-sizing: border-box;
  902. box-sizing: border-box;
  903. }
  904. .la-ball-fall {
  905. display: block;
  906. font-size: 0;
  907. color: #fff;
  908. }
  909. .la-ball-fall.la-dark {
  910. color: #333;
  911. }
  912. .la-ball-fall > div {
  913. display: inline-block;
  914. float: none;
  915. background-color: currentColor;
  916. border: 0 solid currentColor;
  917. }
  918. .la-ball-fall {
  919. width: 54px;
  920. height: 18px;
  921. }
  922. .la-ball-fall > div {
  923. width: 10px;
  924. height: 10px;
  925. margin: 4px;
  926. border-radius: 100%;
  927. opacity: 0;
  928. -webkit-animation: ball-fall 1s ease-in-out infinite;
  929. -moz-animation: ball-fall 1s ease-in-out infinite;
  930. -o-animation: ball-fall 1s ease-in-out infinite;
  931. animation: ball-fall 1s ease-in-out infinite;
  932. }
  933. .la-ball-fall > div:nth-child(1) {
  934. -webkit-animation-delay: -200ms;
  935. -moz-animation-delay: -200ms;
  936. -o-animation-delay: -200ms;
  937. animation-delay: -200ms;
  938. }
  939. .la-ball-fall > div:nth-child(2) {
  940. -webkit-animation-delay: -100ms;
  941. -moz-animation-delay: -100ms;
  942. -o-animation-delay: -100ms;
  943. animation-delay: -100ms;
  944. }
  945. .la-ball-fall > div:nth-child(3) {
  946. -webkit-animation-delay: 0ms;
  947. -moz-animation-delay: 0ms;
  948. -o-animation-delay: 0ms;
  949. animation-delay: 0ms;
  950. }
  951. .la-ball-fall.la-sm {
  952. width: 26px;
  953. height: 8px;
  954. }
  955. .la-ball-fall.la-sm > div {
  956. width: 4px;
  957. height: 4px;
  958. margin: 2px;
  959. }
  960. .la-ball-fall.la-2x {
  961. width: 108px;
  962. height: 36px;
  963. }
  964. .la-ball-fall.la-2x > div {
  965. width: 20px;
  966. height: 20px;
  967. margin: 8px;
  968. }
  969. .la-ball-fall.la-3x {
  970. width: 162px;
  971. height: 54px;
  972. }
  973. .la-ball-fall.la-3x > div {
  974. width: 30px;
  975. height: 30px;
  976. margin: 12px;
  977. }
  978. /*
  979. * Animation
  980. */
  981. @-webkit-keyframes ball-fall {
  982. 0% {
  983. opacity: 0;
  984. -webkit-transform: translateY(-145%);
  985. transform: translateY(-145%);
  986. }
  987. 10% {
  988. opacity: .5;
  989. }
  990. 20% {
  991. opacity: 1;
  992. -webkit-transform: translateY(0);
  993. transform: translateY(0);
  994. }
  995. 80% {
  996. opacity: 1;
  997. -webkit-transform: translateY(0);
  998. transform: translateY(0);
  999. }
  1000. 90% {
  1001. opacity: .5;
  1002. }
  1003. 100% {
  1004. opacity: 0;
  1005. -webkit-transform: translateY(145%);
  1006. transform: translateY(145%);
  1007. }
  1008. }
  1009. @-moz-keyframes ball-fall {
  1010. 0% {
  1011. opacity: 0;
  1012. -moz-transform: translateY(-145%);
  1013. transform: translateY(-145%);
  1014. }
  1015. 10% {
  1016. opacity: .5;
  1017. }
  1018. 20% {
  1019. opacity: 1;
  1020. -moz-transform: translateY(0);
  1021. transform: translateY(0);
  1022. }
  1023. 80% {
  1024. opacity: 1;
  1025. -moz-transform: translateY(0);
  1026. transform: translateY(0);
  1027. }
  1028. 90% {
  1029. opacity: .5;
  1030. }
  1031. 100% {
  1032. opacity: 0;
  1033. -moz-transform: translateY(145%);
  1034. transform: translateY(145%);
  1035. }
  1036. }
  1037. @-o-keyframes ball-fall {
  1038. 0% {
  1039. opacity: 0;
  1040. -o-transform: translateY(-145%);
  1041. transform: translateY(-145%);
  1042. }
  1043. 10% {
  1044. opacity: .5;
  1045. }
  1046. 20% {
  1047. opacity: 1;
  1048. -o-transform: translateY(0);
  1049. transform: translateY(0);
  1050. }
  1051. 80% {
  1052. opacity: 1;
  1053. -o-transform: translateY(0);
  1054. transform: translateY(0);
  1055. }
  1056. 90% {
  1057. opacity: .5;
  1058. }
  1059. 100% {
  1060. opacity: 0;
  1061. -o-transform: translateY(145%);
  1062. transform: translateY(145%);
  1063. }
  1064. }
  1065. @keyframes ball-fall {
  1066. 0% {
  1067. opacity: 0;
  1068. -webkit-transform: translateY(-145%);
  1069. -moz-transform: translateY(-145%);
  1070. -o-transform: translateY(-145%);
  1071. transform: translateY(-145%);
  1072. }
  1073. 10% {
  1074. opacity: .5;
  1075. }
  1076. 20% {
  1077. opacity: 1;
  1078. -webkit-transform: translateY(0);
  1079. -moz-transform: translateY(0);
  1080. -o-transform: translateY(0);
  1081. transform: translateY(0);
  1082. }
  1083. 80% {
  1084. opacity: 1;
  1085. -webkit-transform: translateY(0);
  1086. -moz-transform: translateY(0);
  1087. -o-transform: translateY(0);
  1088. transform: translateY(0);
  1089. }
  1090. 90% {
  1091. opacity: .5;
  1092. }
  1093. 100% {
  1094. opacity: 0;
  1095. -webkit-transform: translateY(145%);
  1096. -moz-transform: translateY(145%);
  1097. -o-transform: translateY(145%);
  1098. transform: translateY(145%);
  1099. }
  1100. }