sweet-alert 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29df968afc1140b043fbb232b5c8713d8da06c00
4
- data.tar.gz: b8c7665e366791bc871909ef13ea6abd65e309ec
3
+ metadata.gz: f1a0e07367606a70b4288cb974f0b1dd0b741874
4
+ data.tar.gz: cf5f928e4af4c0589fee197d2cb4a5c46d04822f
5
5
  SHA512:
6
- metadata.gz: 2484701b8cec5a38ca1ed6808715a059e2928c0e527ccae2c0836f1d3a8d1bd485007eb9dd9ff7445d763e1691c36c866268892f0d5bfecb85af5e84a3114ea4
7
- data.tar.gz: f171b802dba0c738509ca9ce0c4aea48cd82100e42c78e7923f474a79d1d9f21c480bff18e8200c0d99234ad5716d4ac4c750da68ffde5f8081a8f57b3b0dff2
6
+ metadata.gz: 0e4d3fa1a5a85234e4ac580c8cbba8daa84ddafc06534e1235390fa1a9000abd02c05328942fa710909704c4ce18b328156e854d807538598478b72b7a9a23e0
7
+ data.tar.gz: db1077fe508056abf6b0c1621be5302f0a4a378802ca3b9ceaa2831d01f4613c5300d846bc434aa88397694480cda14219f769e2e3a4bf47a97032f199a65924
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -0,0 +1 @@
1
+ !function(e,t,n){"use strict";!function o(e,t,n){function a(s,l){if(!t[s]){if(!e[s]){var i="function"==typeof require&&require;if(!l&&i)return i(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return a(n?n:t)},c,c.exports,o,e,t,n)}return t[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(o,a,r){var s=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(r,"__esModule",{value:!0});var l,i,u,c,d=o("./modules/handle-dom"),f=o("./modules/utils"),p=o("./modules/handle-swal-dom"),m=o("./modules/handle-click"),v=o("./modules/handle-key"),y=s(v),h=o("./modules/default-params"),b=s(h),g=o("./modules/set-params"),w=s(g);r["default"]=u=c=function(){function o(e){var t=a;return t[e]===n?b["default"][e]:t[e]}var a=arguments[0];if(d.addClass(t.body,"stop-scrolling"),p.resetInput(),a===n)return f.logStr("SweetAlert expects at least 1 attribute!"),!1;var r=f.extend({},b["default"]);switch(typeof a){case"string":r.title=a,r.text=arguments[1]||"",r.type=arguments[2]||"";break;case"object":if(a.title===n)return f.logStr('Missing "title" argument!'),!1;r.title=a.title;for(var s in b["default"])r[s]=o(s);r.confirmButtonText=r.showCancelButton?"Confirm":b["default"].confirmButtonText,r.confirmButtonText=o("confirmButtonText"),r.doneFunction=arguments[1]||null;break;default:return f.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof a),!1}w["default"](r),p.fixVerticalPosition(),p.openModal(arguments[1]);for(var u=p.getModal(),v=u.querySelectorAll("button"),h=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],g=function(e){return m.handleButton(e,r,u)},C=0;C<v.length;C++)for(var S=0;S<h.length;S++){var x=h[S];v[C][x]=g}p.getOverlay().onclick=g,l=e.onkeydown;var k=function(e){return y["default"](e,r,u)};e.onkeydown=k,e.onfocus=function(){setTimeout(function(){i!==n&&(i.focus(),i=n)},0)},c.enableButtons()},u.setDefaults=c.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");f.extend(b["default"],e)},u.close=c.close=function(){var o=p.getModal();d.fadeOut(p.getOverlay(),5),d.fadeOut(o,5),d.removeClass(o,"showSweetAlert"),d.addClass(o,"hideSweetAlert"),d.removeClass(o,"visible");var a=o.querySelector(".sa-icon.sa-success");d.removeClass(a,"animate"),d.removeClass(a.querySelector(".sa-tip"),"animateSuccessTip"),d.removeClass(a.querySelector(".sa-long"),"animateSuccessLong");var r=o.querySelector(".sa-icon.sa-error");d.removeClass(r,"animateErrorIcon"),d.removeClass(r.querySelector(".sa-x-mark"),"animateXMark");var s=o.querySelector(".sa-icon.sa-warning");return d.removeClass(s,"pulseWarning"),d.removeClass(s.querySelector(".sa-body"),"pulseWarningIns"),d.removeClass(s.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=o.getAttribute("data-custom-class");d.removeClass(o,e)},300),d.removeClass(t.body,"stop-scrolling"),e.onkeydown=l,e.previousActiveElement&&e.previousActiveElement.focus(),i=n,clearTimeout(o.timeout),!0},u.showInputError=c.showInputError=function(e){var t=p.getModal(),n=t.querySelector(".sa-input-error");d.addClass(n,"show");var o=t.querySelector(".sa-error-container");d.addClass(o,"show"),o.querySelector("p").innerHTML=e,setTimeout(function(){u.enableButtons()},1),t.querySelector("input").focus()},u.resetInputError=c.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=p.getModal(),n=t.querySelector(".sa-input-error");d.removeClass(n,"show");var o=t.querySelector(".sa-error-container");d.removeClass(o,"show")},u.disableButtons=c.disableButtons=function(){var e=p.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},u.enableButtons=c.enableButtons=function(){var e=p.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},"undefined"!=typeof e?e.sweetAlert=e.swal=u:f.logStr("SweetAlert is a frontend module!"),a.exports=r["default"]},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1};n["default"]=o,t.exports=n["default"]},{}],3:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=t("./utils"),r=(t("./handle-swal-dom"),t("./handle-dom")),s=function(t,n,o){function s(e){m&&n.confirmButtonColor&&(p.style.backgroundColor=e)}var u,c,d,f=t||e.event,p=f.target||f.srcElement,m=-1!==p.className.indexOf("confirm"),v=-1!==p.className.indexOf("sweet-overlay"),y=r.hasClass(o,"visible"),h=n.doneFunction&&"true"===o.getAttribute("data-has-done-function");switch(m&&n.confirmButtonColor&&(u=n.confirmButtonColor,c=a.colorLuminance(u,-.04),d=a.colorLuminance(u,-.14)),f.type){case"mouseover":s(c);break;case"mouseout":s(u);break;case"mousedown":s(d);break;case"mouseup":s(c);break;case"focus":var b=o.querySelector("button.confirm"),g=o.querySelector("button.cancel");m?g.style.boxShadow="none":b.style.boxShadow="none";break;case"click":var w=o===p,C=r.isDescendant(o,p);if(!w&&!C&&y&&!n.allowOutsideClick)break;m&&h&&y?l(o,n):h&&y||v?i(o,n):r.isDescendant(o,p)&&"BUTTON"===p.tagName&&sweetAlert.close()}},l=function(e,t){var n=!0;r.hasClass(e,"show-input")&&(n=e.querySelector("input").value,n||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},i=function(e,t){var n=String(t.doneFunction).replace(/\s/g,""),o="function("===n.substring(0,9)&&")"!==n.substring(9,10);o&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};o["default"]={handleButton:s,handleConfirm:l,handleCancel:i},n.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},s=function(e,t){r(e,t)||(e.className+=" "+t)},l=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(r(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},i=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity="",e.style.display="block"},c=function(e){if(e&&!e.length)return u(e);for(var t=0;t<e.length;++t)u(e[t])},d=function(e){e.style.opacity="",e.style.display="none"},f=function(e){if(e&&!e.length)return d(e);for(var t=0;t<e.length;++t)d(e[t])},p=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},m=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},v=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(o,t)});o()}e.style.display="block"},y=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(o,t):e.style.display="none"});o()},h=function(n){if("function"==typeof MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),n.dispatchEvent(a)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},b=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};a.hasClass=r,a.addClass=s,a.removeClass=l,a.escapeHtml=i,a._show=u,a.show=c,a._hide=d,a.hide=f,a.isDescendant=p,a.getTopMargin=m,a.fadeIn=v,a.fadeOut=y,a.fireClick=h,a.stopEventPropagation=b},{}],5:[function(t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t("./handle-dom"),s=t("./handle-swal-dom"),l=function(t,o,a){var l=t||e.event,i=l.keyCode||l.which,u=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),d=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(i)){for(var f=l.target||l.srcElement,p=-1,m=0;m<d.length;m++)if(f===d[m]){p=m;break}9===i?(f=-1===p?u:p===d.length-1?d[0]:d[p+1],r.stopEventPropagation(l),f.focus(),o.confirmButtonColor&&s.setFocusStyle(f,o.confirmButtonColor)):13===i?("INPUT"===f.tagName&&(f=u,u.focus()),f=-1===p?u:n):27===i&&o.allowEscapeKey===!0?(f=c,r.fireClick(f,l)):f=n}};a["default"]=l,o.exports=a["default"]},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,o,a){var r=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(a,"__esModule",{value:!0});var s=n("./utils"),l=n("./handle-dom"),i=n("./default-params"),u=r(i),c=n("./injected-html"),d=r(c),f=".sweet-alert",p=".sweet-overlay",m=function(){var e=t.createElement("div");for(e.innerHTML=d["default"];e.firstChild;)t.body.appendChild(e.firstChild)},v=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(f);return e||(m(),e=v()),e}),y=function(){var e=v();return e?e.querySelector("input"):void 0},h=function(){return t.querySelector(p)},b=function(e,t){var n=s.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},g=function(n){var o=v();l.fadeIn(h(),10),l.show(o),l.addClass(o,"showSweetAlert"),l.removeClass(o,"hideSweetAlert"),e.previousActiveElement=t.activeElement;var a=o.querySelector("button.confirm");a.focus(),setTimeout(function(){l.addClass(o,"visible")},500);var r=o.getAttribute("data-timer");if("null"!==r&&""!==r){var s=n;o.timeout=setTimeout(function(){var e=(s||null)&&"true"===o.getAttribute("data-has-done-function");e?s(null):sweetAlert.close()},r)}},w=function(){var e=v(),t=y();l.removeClass(e,"show-input"),t.value=u["default"].inputValue,t.setAttribute("type",u["default"].inputType),t.setAttribute("placeholder",u["default"].inputPlaceholder),C()},C=function(e){if(e&&13===e.keyCode)return!1;var t=v(),n=t.querySelector(".sa-input-error");l.removeClass(n,"show");var o=t.querySelector(".sa-error-container");l.removeClass(o,"show")},S=function(){var e=v();e.style.marginTop=l.getTopMargin(v())};a.sweetAlertInitialize=m,a.getModal=v,a.getOverlay=h,a.getInput=y,a.setFocusStyle=b,a.openModal=g,a.resetInput=w,a.resetInputError=C,a.fixVerticalPosition=S},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>';n["default"]=o,t.exports=n["default"]},{}],8:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});var a=e("./utils"),r=e("./handle-swal-dom"),s=e("./handle-dom"),l=["error","warning","info","success","input","prompt"],i=function(e){var t=r.getModal(),o=t.querySelector("h2"),i=t.querySelector("p"),u=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(o.innerHTML=e.html?e.title:s.escapeHtml(e.title).split("\n").join("<br>"),i.innerHTML=e.html?e.text:s.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&s.show(i),e.customClass)s.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");s.removeClass(t,d),t.setAttribute("data-custom-class","")}if(s.hide(t.querySelectorAll(".sa-icon")),e.type&&!a.isIE8()){var f=function(){for(var o=!1,a=0;a<l.length;a++)if(e.type===l[a]){o=!0;break}if(!o)return logStr("Unknown alert type: "+e.type),{v:!1};var i=["success","error","warning","info"],u=n;-1!==i.indexOf(e.type)&&(u=t.querySelector(".sa-icon.sa-"+e.type),s.show(u));var c=r.getInput();switch(e.type){case"success":s.addClass(u,"animate"),s.addClass(u.querySelector(".sa-tip"),"animateSuccessTip"),s.addClass(u.querySelector(".sa-long"),"animateSuccessLong");break;case"error":s.addClass(u,"animateErrorIcon"),s.addClass(u.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":s.addClass(u,"pulseWarning"),s.addClass(u.querySelector(".sa-body"),"pulseWarningIns"),s.addClass(u.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":c.setAttribute("type",e.inputType),c.value=e.inputValue,c.setAttribute("placeholder",e.inputPlaceholder),s.addClass(t,"show-input"),setTimeout(function(){c.focus(),c.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof f)return f.v}if(e.imageUrl){var p=t.querySelector(".sa-icon.sa-custom");p.style.backgroundImage="url("+e.imageUrl+")",s.show(p);var m=80,v=80;if(e.imageSize){var y=e.imageSize.toString().split("x"),h=y[0],b=y[1];h&&b?(m=h,v=b):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}p.setAttribute("style",p.getAttribute("style")+"width:"+m+"px; height:"+v+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?u.style.display="inline-block":s.hide(u),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":s.hide(c),e.cancelButtonText&&(u.innerHTML=s.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=s.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,r.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var g=e.doneFunction?!0:!1;t.setAttribute("data-has-done-function",g),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)};o["default"]=i,t.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},r=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},s=function(){return e.attachEvent&&!e.addEventListener},l=function(t){e.console&&e.console.log("SweetAlert: "+t)},i=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,o,a="#";for(o=0;3>o;o++)n=parseInt(e.substr(2*o,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),a+=("00"+n).substr(n.length);return a};o.extend=a,o.hexToRgb=r,o.isIE8=s,o.logStr=l,o.colorLuminance=i},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document);
File without changes
@@ -1,444 +1,932 @@
1
- // SweetAlert
2
- // 2014 (c) - Tristan Edwards
3
- // github.com/t4t5/sweetalert
1
+ body.stop-scrolling {
2
+ height: 100%;
3
+ overflow: hidden; }
4
4
 
5
5
  .sweet-overlay {
6
- background-color: rgb(0, 0, 0); /* IE8 */
7
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; /* IE8 */
8
- background-color: rgba(black, 0.4);
9
-
10
- position: fixed;
11
- left: 0;
12
- right: 0;
13
- top: 0;
14
- bottom: 0;
15
-
16
- display: none;
17
- z-index: 10000;
18
- }
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; }
19
18
 
20
19
  .sweet-alert {
21
- $width: 478px;
22
- $padding: 17px;
23
-
24
- background-color: white;
25
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
26
- width: $width;
27
- padding: $padding;
28
- border-radius: 5px;
29
- text-align: center;
30
-
31
- position: fixed;
32
- left: 50%;
33
- top: 50%;
34
- margin-left: -($width/2 + $padding);
35
- margin-top: -200px;
36
-
37
- overflow: hidden;
38
- display: none;
39
- z-index: 99999;
40
-
41
- @media all and (max-width: 540px) {
42
- width: auto;
43
- margin-left: 0;
44
- margin-right: 0;
45
-
46
- left: 15px;
47
- right: 15px;
48
- }
49
-
50
- h2 {
51
- color: #575757;
52
- font-size: 30px;
53
- text-align: center;
54
- font-weight: 600;
55
- text-transform: none;
56
- position: relative;
57
- margin: 25px 0;
58
- padding: 0;
59
- line-height: 40px;
60
- display: block;
61
- }
62
-
63
- p {
64
- color: #797979;
65
- font-size: 16px;
66
- text-align: center;
67
- font-weight: 300;
68
- position: relative;
69
- text-align: inherit;
70
- float: none;
71
- margin: 0;
72
- padding: 0;
73
- line-height: normal;
74
- }
75
-
76
- button {
77
- $btnBlue: #AEDEF4;
78
- $btnGray: #D0D0D0;
79
-
80
- background-color: $btnBlue;
81
- color: white;
82
- border: none;
83
- box-shadow: none;
84
- font-size: 17px;
85
- font-weight: 500;
86
- -webkit-border-radius: 4px;
87
- border-radius: 5px;
88
- padding: 10px 32px;
89
- margin: 26px 5px 0 5px;
90
- cursor: pointer;
91
- &:focus {
92
- outline: none;
93
- box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
94
- }
95
- &:hover {
96
- background-color: darken($btnBlue, 3%);
97
- }
98
- &:active {
99
- background-color: darken($btnBlue, 10%);
100
- }
101
- &.cancel {
102
- background-color: $btnGray;
103
- &:hover {
104
- background-color: darken($btnGray, 3%);
105
- }
106
- &:active {
107
- background-color: darken($btnGray, 10%);
108
- }
109
- // Cancel button should keep the same style
110
- &:focus {
111
- box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important;
112
- }
113
- }
114
- // Removes selection outline in Firefox
115
- &::-moz-focus-inner {
116
- border: 0;
117
- }
118
- }
119
-
120
- // Only show focus-style when there is multiple choice of actions
121
- &[data-has-cancel-button=false] button {
122
- box-shadow: none !important;
123
- }
124
-
125
-
126
- .icon {
127
- $red: #F27474;
128
- $orange: #F8BB86;
129
- $blue: #C9DAE1;
130
- $green: #A5DC86;
131
-
132
- width: 80px;
133
- height: 80px;
134
- border: 4px solid gray;
135
- -webkit-border-radius: 40px;
136
- border-radius: 40px;
137
- border-radius: 50%;
138
- margin: 20px auto;
139
- padding: 0;
140
- position: relative;
141
- box-sizing: content-box;
142
-
143
- &.error {
144
- border-color: $red;
145
-
146
- .x-mark {
147
- position: relative;
148
- display: block;
149
- }
150
-
151
- .line {
152
- position: absolute;
153
- height: 5px;
154
- width: 47px;
155
- background-color: $red;
156
- display: block;
157
- top: 37px;
158
- border-radius: 2px;
159
-
160
- &.left {
161
- -webkit-transform: rotate(45deg);
162
- transform: rotate(45deg);
163
- left: 17px;
164
- }
165
- &.right {
166
- -webkit-transform: rotate(-45deg);
167
- transform: rotate(-45deg);
168
- right: 16px;
169
- }
170
- }
171
- }
172
- &.warning {
173
- border-color: $orange;
174
-
175
- .body { // Exclamation mark body
176
- position: absolute;
177
- width: 5px;
178
- height: 47px;
179
- left: 50%;
180
- top: 10px;
181
- -webkit-border-radius: 2px;
182
- border-radius: 2px;
183
- margin-left: -2px;
184
- background-color: $orange;
185
- }
186
- .dot { // Exclamation mark dot
187
- position: absolute;
188
- width: 7px;
189
- height: 7px;
190
- -webkit-border-radius: 50%;
191
- border-radius: 50%;
192
- margin-left: -3px;
193
- left: 50%;
194
- bottom: 10px;
195
- background-color: $orange;
196
- }
197
- }
198
- &.info {
199
- border-color: $blue;
200
-
201
- &::before { // i-letter body
202
- content: "";
203
- position: absolute;
204
- width: 5px;
205
- height: 29px;
206
- left: 50%;
207
- bottom: 17px;
208
- border-radius: 2px;
209
- margin-left: -2px;
210
- background-color: $blue;
211
- }
212
- &::after { // i-letter dot
213
- content: "";
214
- position: absolute;
215
- width: 7px;
216
- height: 7px;
217
- border-radius: 50%;
218
- margin-left: -3px;
219
- top: 19px;
220
- background-color: $blue;
221
- }
222
- }
223
- &.success {
224
- border-color: $green;
225
-
226
- &::before, &::after { // Emulate moving circular line
227
- content: '';
228
- -webkit-border-radius: 40px;
229
- border-radius: 40px;
230
- border-radius: 50%;
231
- position: absolute;
232
- width: 60px;
233
- height: 120px;
234
- background: white;
235
- -webkit-transform: rotate(45deg);
236
- transform: rotate(45deg);
237
- }
238
- &::before {
239
- -webkit-border-radius: 120px 0 0 120px;
240
- border-radius: 120px 0 0 120px;
241
- top: -7px;
242
- left: -33px;
243
-
244
- -webkit-transform: rotate(-45deg);
245
- transform: rotate(-45deg);
246
- -webkit-transform-origin: 60px 60px;
247
- transform-origin: 60px 60px;
248
- }
249
- &::after {
250
- -webkit-border-radius: 0 120px 120px 0;
251
- border-radius: 0 120px 120px 0;
252
- top: -11px;
253
- left: 30px;
254
-
255
- -webkit-transform: rotate(-45deg);
256
- transform: rotate(-45deg);
257
- -webkit-transform-origin: 0px 60px;
258
- transform-origin: 0px 60px;
259
- }
260
-
261
- .placeholder { // Ring
262
- width: 80px;
263
- height: 80px;
264
- border: 4px solid rgba($green, 0.2);
265
- -webkit-border-radius: 40px;
266
- border-radius: 40px;
267
- border-radius: 50%;
268
- box-sizing: content-box;
269
-
270
- position: absolute;
271
- left: -4px;
272
- top: -4px;
273
- z-index: 2;
274
- }
275
-
276
- .fix { // Hide corners left from animation
277
- width: 5px;
278
- height: 90px;
279
- background-color: white;
280
-
281
- position: absolute;
282
- left: 28px;
283
- top: 8px;
284
- z-index: 1;
285
-
286
- -webkit-transform: rotate(-45deg);
287
- transform: rotate(-45deg);
288
- }
289
-
290
- .line {
291
- height: 5px;
292
- background-color: $green;
293
- display: block;
294
- border-radius: 2px;
295
-
296
- position: absolute;
297
- z-index: 2;
298
-
299
- &.tip {
300
- width: 25px;
301
-
302
- left: 14px;
303
- top: 46px;
304
-
305
- -webkit-transform: rotate(45deg);
306
- transform: rotate(45deg);
307
- }
308
- &.long {
309
- width: 47px;
310
-
311
- right: 8px;
312
- top: 38px;
313
-
314
- -webkit-transform: rotate(-45deg);
315
- transform: rotate(-45deg);
316
- }
317
- }
318
- }
319
- &.custom {
320
- background-size: contain;
321
- border-radius: 0;
322
- border: none;
323
- background-position: center center;
324
- background-repeat: no-repeat;
325
- }
326
- }
327
-
328
- }
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
+ @media all and (max-width: 540px) {
35
+ .sweet-alert {
36
+ width: auto;
37
+ margin-left: 0;
38
+ margin-right: 0;
39
+ left: 15px;
40
+ right: 15px; } }
41
+ .sweet-alert h2 {
42
+ color: #575757;
43
+ font-size: 30px;
44
+ text-align: center;
45
+ font-weight: 600;
46
+ text-transform: none;
47
+ position: relative;
48
+ margin: 25px 0;
49
+ padding: 0;
50
+ line-height: 40px;
51
+ display: block; }
52
+ .sweet-alert p {
53
+ color: #797979;
54
+ font-size: 16px;
55
+ text-align: center;
56
+ font-weight: 300;
57
+ position: relative;
58
+ text-align: inherit;
59
+ float: none;
60
+ margin: 0;
61
+ padding: 0;
62
+ line-height: normal; }
63
+ .sweet-alert fieldset {
64
+ border: none;
65
+ position: relative; }
66
+ .sweet-alert .sa-error-container {
67
+ background-color: #f1f1f1;
68
+ margin-left: -17px;
69
+ margin-right: -17px;
70
+ overflow: hidden;
71
+ padding: 0 10px;
72
+ max-height: 0;
73
+ webkit-transition: padding 0.15s, max-height 0.15s;
74
+ transition: padding 0.15s, max-height 0.15s; }
75
+ .sweet-alert .sa-error-container.show {
76
+ padding: 10px 0;
77
+ max-height: 100px;
78
+ webkit-transition: padding 0.2s, max-height 0.2s;
79
+ transition: padding 0.25s, max-height 0.25s; }
80
+ .sweet-alert .sa-error-container .icon {
81
+ display: inline-block;
82
+ width: 24px;
83
+ height: 24px;
84
+ border-radius: 50%;
85
+ background-color: #ea7d7d;
86
+ color: white;
87
+ line-height: 24px;
88
+ text-align: center;
89
+ margin-right: 3px; }
90
+ .sweet-alert .sa-error-container p {
91
+ display: inline-block; }
92
+ .sweet-alert .sa-input-error {
93
+ position: absolute;
94
+ top: 29px;
95
+ right: 26px;
96
+ width: 20px;
97
+ height: 20px;
98
+ opacity: 0;
99
+ -webkit-transform: scale(0.5);
100
+ transform: scale(0.5);
101
+ -webkit-transform-origin: 50% 50%;
102
+ transform-origin: 50% 50%;
103
+ -webkit-transition: all 0.1s;
104
+ transition: all 0.1s; }
105
+ .sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
106
+ content: "";
107
+ width: 20px;
108
+ height: 6px;
109
+ background-color: #f06e57;
110
+ border-radius: 3px;
111
+ position: absolute;
112
+ top: 50%;
113
+ margin-top: -4px;
114
+ left: 50%;
115
+ margin-left: -9px; }
116
+ .sweet-alert .sa-input-error::before {
117
+ -webkit-transform: rotate(-45deg);
118
+ transform: rotate(-45deg); }
119
+ .sweet-alert .sa-input-error::after {
120
+ -webkit-transform: rotate(45deg);
121
+ transform: rotate(45deg); }
122
+ .sweet-alert .sa-input-error.show {
123
+ opacity: 1;
124
+ -webkit-transform: scale(1);
125
+ transform: scale(1); }
126
+ .sweet-alert input {
127
+ width: 100%;
128
+ box-sizing: border-box;
129
+ border-radius: 3px;
130
+ border: 1px solid #d7d7d7;
131
+ height: 43px;
132
+ margin-top: 10px;
133
+ margin-bottom: 17px;
134
+ font-size: 18px;
135
+ box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
136
+ padding: 0 12px;
137
+ display: none;
138
+ -webkit-transition: all 0.3s;
139
+ transition: all 0.3s; }
140
+ .sweet-alert input:focus {
141
+ outline: none;
142
+ box-shadow: 0px 0px 3px #c4e6f5;
143
+ border: 1px solid #b4dbed; }
144
+ .sweet-alert input:focus::-moz-placeholder {
145
+ transition: opacity 0.3s 0.03s ease;
146
+ opacity: 0.5; }
147
+ .sweet-alert input:focus:-ms-input-placeholder {
148
+ transition: opacity 0.3s 0.03s ease;
149
+ opacity: 0.5; }
150
+ .sweet-alert input:focus::-webkit-input-placeholder {
151
+ transition: opacity 0.3s 0.03s ease;
152
+ opacity: 0.5; }
153
+ .sweet-alert input::-moz-placeholder {
154
+ color: #bdbdbd; }
155
+ .sweet-alert input:-ms-input-placeholder {
156
+ color: #bdbdbd; }
157
+ .sweet-alert input::-webkit-input-placeholder {
158
+ color: #bdbdbd; }
159
+ .sweet-alert.show-input input {
160
+ display: block; }
161
+ .sweet-alert .sa-confirm-button-container {
162
+ display: inline-block;
163
+ position: relative; }
164
+ .sweet-alert .la-ball-fall {
165
+ position: absolute;
166
+ left: 50%;
167
+ top: 50%;
168
+ margin-left: -27px;
169
+ margin-top: 4px;
170
+ opacity: 0;
171
+ visibility: hidden; }
172
+ .sweet-alert button {
173
+ background-color: #8CD4F5;
174
+ color: white;
175
+ border: none;
176
+ box-shadow: none;
177
+ font-size: 17px;
178
+ font-weight: 500;
179
+ -webkit-border-radius: 4px;
180
+ border-radius: 5px;
181
+ padding: 10px 32px;
182
+ margin: 26px 5px 0 5px;
183
+ cursor: pointer; }
184
+ .sweet-alert button:focus {
185
+ outline: none;
186
+ box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
187
+ .sweet-alert button:hover {
188
+ background-color: #7ecff4; }
189
+ .sweet-alert button:active {
190
+ background-color: #5dc2f1; }
191
+ .sweet-alert button.cancel {
192
+ background-color: #C1C1C1; }
193
+ .sweet-alert button.cancel:hover {
194
+ background-color: #b9b9b9; }
195
+ .sweet-alert button.cancel:active {
196
+ background-color: #a8a8a8; }
197
+ .sweet-alert button.cancel:focus {
198
+ box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
199
+ .sweet-alert button[disabled] {
200
+ opacity: .6;
201
+ cursor: default; }
202
+ .sweet-alert button.confirm[disabled] {
203
+ color: transparent; }
204
+ .sweet-alert button.confirm[disabled] ~ .la-ball-fall {
205
+ opacity: 1;
206
+ visibility: visible;
207
+ transition-delay: 0s; }
208
+ .sweet-alert button::-moz-focus-inner {
209
+ border: 0; }
210
+ .sweet-alert[data-has-cancel-button=false] button {
211
+ box-shadow: none !important; }
212
+ .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
213
+ padding-bottom: 40px; }
214
+ .sweet-alert .sa-icon {
215
+ width: 80px;
216
+ height: 80px;
217
+ border: 4px solid gray;
218
+ -webkit-border-radius: 40px;
219
+ border-radius: 40px;
220
+ border-radius: 50%;
221
+ margin: 20px auto;
222
+ padding: 0;
223
+ position: relative;
224
+ box-sizing: content-box; }
225
+ .sweet-alert .sa-icon.sa-error {
226
+ border-color: #F27474; }
227
+ .sweet-alert .sa-icon.sa-error .sa-x-mark {
228
+ position: relative;
229
+ display: block; }
230
+ .sweet-alert .sa-icon.sa-error .sa-line {
231
+ position: absolute;
232
+ height: 5px;
233
+ width: 47px;
234
+ background-color: #F27474;
235
+ display: block;
236
+ top: 37px;
237
+ border-radius: 2px; }
238
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
239
+ -webkit-transform: rotate(45deg);
240
+ transform: rotate(45deg);
241
+ left: 17px; }
242
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
243
+ -webkit-transform: rotate(-45deg);
244
+ transform: rotate(-45deg);
245
+ right: 16px; }
246
+ .sweet-alert .sa-icon.sa-warning {
247
+ border-color: #F8BB86; }
248
+ .sweet-alert .sa-icon.sa-warning .sa-body {
249
+ position: absolute;
250
+ width: 5px;
251
+ height: 47px;
252
+ left: 50%;
253
+ top: 10px;
254
+ -webkit-border-radius: 2px;
255
+ border-radius: 2px;
256
+ margin-left: -2px;
257
+ background-color: #F8BB86; }
258
+ .sweet-alert .sa-icon.sa-warning .sa-dot {
259
+ position: absolute;
260
+ width: 7px;
261
+ height: 7px;
262
+ -webkit-border-radius: 50%;
263
+ border-radius: 50%;
264
+ margin-left: -3px;
265
+ left: 50%;
266
+ bottom: 10px;
267
+ background-color: #F8BB86; }
268
+ .sweet-alert .sa-icon.sa-info {
269
+ border-color: #C9DAE1; }
270
+ .sweet-alert .sa-icon.sa-info::before {
271
+ content: "";
272
+ position: absolute;
273
+ width: 5px;
274
+ height: 29px;
275
+ left: 50%;
276
+ bottom: 17px;
277
+ border-radius: 2px;
278
+ margin-left: -2px;
279
+ background-color: #C9DAE1; }
280
+ .sweet-alert .sa-icon.sa-info::after {
281
+ content: "";
282
+ position: absolute;
283
+ width: 7px;
284
+ height: 7px;
285
+ border-radius: 50%;
286
+ margin-left: -3px;
287
+ top: 19px;
288
+ background-color: #C9DAE1; }
289
+ .sweet-alert .sa-icon.sa-success {
290
+ border-color: #A5DC86; }
291
+ .sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
292
+ content: '';
293
+ -webkit-border-radius: 40px;
294
+ border-radius: 40px;
295
+ border-radius: 50%;
296
+ position: absolute;
297
+ width: 60px;
298
+ height: 120px;
299
+ background: white;
300
+ -webkit-transform: rotate(45deg);
301
+ transform: rotate(45deg); }
302
+ .sweet-alert .sa-icon.sa-success::before {
303
+ -webkit-border-radius: 120px 0 0 120px;
304
+ border-radius: 120px 0 0 120px;
305
+ top: -7px;
306
+ left: -33px;
307
+ -webkit-transform: rotate(-45deg);
308
+ transform: rotate(-45deg);
309
+ -webkit-transform-origin: 60px 60px;
310
+ transform-origin: 60px 60px; }
311
+ .sweet-alert .sa-icon.sa-success::after {
312
+ -webkit-border-radius: 0 120px 120px 0;
313
+ border-radius: 0 120px 120px 0;
314
+ top: -11px;
315
+ left: 30px;
316
+ -webkit-transform: rotate(-45deg);
317
+ transform: rotate(-45deg);
318
+ -webkit-transform-origin: 0px 60px;
319
+ transform-origin: 0px 60px; }
320
+ .sweet-alert .sa-icon.sa-success .sa-placeholder {
321
+ width: 80px;
322
+ height: 80px;
323
+ border: 4px solid rgba(165, 220, 134, 0.2);
324
+ -webkit-border-radius: 40px;
325
+ border-radius: 40px;
326
+ border-radius: 50%;
327
+ box-sizing: content-box;
328
+ position: absolute;
329
+ left: -4px;
330
+ top: -4px;
331
+ z-index: 2; }
332
+ .sweet-alert .sa-icon.sa-success .sa-fix {
333
+ width: 5px;
334
+ height: 90px;
335
+ background-color: white;
336
+ position: absolute;
337
+ left: 28px;
338
+ top: 8px;
339
+ z-index: 1;
340
+ -webkit-transform: rotate(-45deg);
341
+ transform: rotate(-45deg); }
342
+ .sweet-alert .sa-icon.sa-success .sa-line {
343
+ height: 5px;
344
+ background-color: #A5DC86;
345
+ display: block;
346
+ border-radius: 2px;
347
+ position: absolute;
348
+ z-index: 2; }
349
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
350
+ width: 25px;
351
+ left: 14px;
352
+ top: 46px;
353
+ -webkit-transform: rotate(45deg);
354
+ transform: rotate(45deg); }
355
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
356
+ width: 47px;
357
+ right: 8px;
358
+ top: 38px;
359
+ -webkit-transform: rotate(-45deg);
360
+ transform: rotate(-45deg); }
361
+ .sweet-alert .sa-icon.sa-custom {
362
+ background-size: contain;
363
+ border-radius: 0;
364
+ border: none;
365
+ background-position: center center;
366
+ background-repeat: no-repeat; }
329
367
 
330
368
  /*
331
369
  * Animations
332
370
  */
333
-
334
- @mixin keyframes($animation-name) {
335
- @-webkit-keyframes #{$animation-name} {
336
- @content;
337
- }
338
- @keyframes #{$animation-name} {
339
- @content;
340
- }
341
- }
342
- @mixin animation($str) {
343
- -webkit-animation: #{$str};
344
- animation: #{$str};
345
- }
346
-
347
-
348
- // Modal animation
349
-
350
- @include keyframes(showSweetAlert) {
351
- 0% { transform: scale(0.7); -webkit-transform: scale(0.7); }
352
- 45% { transform: scale(1.05); -webkit-transform: scale(1.05); }
353
- 80% { transform: scale(0.95); -webkit-tranform: scale(0.95); }
354
- 100% { transform: scale(1); -webkit-transform: scale(1); }
355
- }
356
- @include keyframes(hideSweetAlert) {
357
- 0% { transform: scale(1); -webkit-transform: scale(1); }
358
- 100% { transform: scale(0.5); -webkit-transform: scale(0.5); }
359
- }
360
-
361
- .showSweetAlert {
362
- @include animation('showSweetAlert 0.3s');
363
-
364
- &[data-animation=none] {
365
- @include animation('none');
366
- }
367
- }
368
- .hideSweetAlert {
369
- @include animation('hideSweetAlert 0.2s');
370
-
371
- &[data-animation=none] {
372
- @include animation('none');
373
- }
374
- }
375
-
376
-
377
-
378
- // Success icon animation
379
-
380
- @include keyframes(animateSuccessTip) {
381
- 0% { width: 0; left: 1px; top: 19px; }
382
- 54% { width: 0; left: 1px; top: 19px; }
383
- 70% { width: 50px; left: -8px; top: 37px; }
384
- 84% { width: 17px; left: 21px; top: 48px; }
385
- 100% { width: 25px; left: 14px; top: 45px; }
386
- }
387
- @include keyframes(animateSuccessLong) {
388
- 0% { width: 0; right: 46px; top: 54px; }
389
- 65% { width: 0; right: 46px; top: 54px; }
390
- 84% { width: 55px; right: 0px; top: 35px; }
391
- 100% { width: 47px; right: 8px; top: 38px; }
392
- }
393
- @include keyframes(rotatePlaceholder) {
394
- 0% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); }
395
- 5% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); }
396
- 12% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); }
397
- 100% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); }
398
- }
371
+ @-webkit-keyframes showSweetAlert {
372
+ 0% {
373
+ transform: scale(0.7);
374
+ -webkit-transform: scale(0.7); }
375
+ 45% {
376
+ transform: scale(1.05);
377
+ -webkit-transform: scale(1.05); }
378
+ 80% {
379
+ transform: scale(0.95);
380
+ -webkit-transform: scale(0.95); }
381
+ 100% {
382
+ transform: scale(1);
383
+ -webkit-transform: scale(1); } }
384
+
385
+ @keyframes showSweetAlert {
386
+ 0% {
387
+ transform: scale(0.7);
388
+ -webkit-transform: scale(0.7); }
389
+ 45% {
390
+ transform: scale(1.05);
391
+ -webkit-transform: scale(1.05); }
392
+ 80% {
393
+ transform: scale(0.95);
394
+ -webkit-transform: scale(0.95); }
395
+ 100% {
396
+ transform: scale(1);
397
+ -webkit-transform: scale(1); } }
398
+
399
+ @-webkit-keyframes hideSweetAlert {
400
+ 0% {
401
+ transform: scale(1);
402
+ -webkit-transform: scale(1); }
403
+ 100% {
404
+ transform: scale(0.5);
405
+ -webkit-transform: scale(0.5); } }
406
+
407
+ @keyframes hideSweetAlert {
408
+ 0% {
409
+ transform: scale(1);
410
+ -webkit-transform: scale(1); }
411
+ 100% {
412
+ transform: scale(0.5);
413
+ -webkit-transform: scale(0.5); } }
414
+
415
+ @-webkit-keyframes slideFromTop {
416
+ 0% {
417
+ top: 0%; }
418
+ 100% {
419
+ top: 50%; } }
420
+
421
+ @keyframes slideFromTop {
422
+ 0% {
423
+ top: 0%; }
424
+ 100% {
425
+ top: 50%; } }
426
+
427
+ @-webkit-keyframes slideToTop {
428
+ 0% {
429
+ top: 50%; }
430
+ 100% {
431
+ top: 0%; } }
432
+
433
+ @keyframes slideToTop {
434
+ 0% {
435
+ top: 50%; }
436
+ 100% {
437
+ top: 0%; } }
438
+
439
+ @-webkit-keyframes slideFromBottom {
440
+ 0% {
441
+ top: 70%; }
442
+ 100% {
443
+ top: 50%; } }
444
+
445
+ @keyframes slideFromBottom {
446
+ 0% {
447
+ top: 70%; }
448
+ 100% {
449
+ top: 50%; } }
450
+
451
+ @-webkit-keyframes slideToBottom {
452
+ 0% {
453
+ top: 50%; }
454
+ 100% {
455
+ top: 70%; } }
456
+
457
+ @keyframes slideToBottom {
458
+ 0% {
459
+ top: 50%; }
460
+ 100% {
461
+ top: 70%; } }
462
+
463
+ .showSweetAlert[data-animation=pop] {
464
+ -webkit-animation: showSweetAlert 0.3s;
465
+ animation: showSweetAlert 0.3s; }
466
+
467
+ .showSweetAlert[data-animation=none] {
468
+ -webkit-animation: none;
469
+ animation: none; }
470
+
471
+ .showSweetAlert[data-animation=slide-from-top] {
472
+ -webkit-animation: slideFromTop 0.3s;
473
+ animation: slideFromTop 0.3s; }
474
+
475
+ .showSweetAlert[data-animation=slide-from-bottom] {
476
+ -webkit-animation: slideFromBottom 0.3s;
477
+ animation: slideFromBottom 0.3s; }
478
+
479
+ .hideSweetAlert[data-animation=pop] {
480
+ -webkit-animation: hideSweetAlert 0.2s;
481
+ animation: hideSweetAlert 0.2s; }
482
+
483
+ .hideSweetAlert[data-animation=none] {
484
+ -webkit-animation: none;
485
+ animation: none; }
486
+
487
+ .hideSweetAlert[data-animation=slide-from-top] {
488
+ -webkit-animation: slideToTop 0.4s;
489
+ animation: slideToTop 0.4s; }
490
+
491
+ .hideSweetAlert[data-animation=slide-from-bottom] {
492
+ -webkit-animation: slideToBottom 0.3s;
493
+ animation: slideToBottom 0.3s; }
494
+
495
+ @-webkit-keyframes animateSuccessTip {
496
+ 0% {
497
+ width: 0;
498
+ left: 1px;
499
+ top: 19px; }
500
+ 54% {
501
+ width: 0;
502
+ left: 1px;
503
+ top: 19px; }
504
+ 70% {
505
+ width: 50px;
506
+ left: -8px;
507
+ top: 37px; }
508
+ 84% {
509
+ width: 17px;
510
+ left: 21px;
511
+ top: 48px; }
512
+ 100% {
513
+ width: 25px;
514
+ left: 14px;
515
+ top: 45px; } }
516
+
517
+ @keyframes animateSuccessTip {
518
+ 0% {
519
+ width: 0;
520
+ left: 1px;
521
+ top: 19px; }
522
+ 54% {
523
+ width: 0;
524
+ left: 1px;
525
+ top: 19px; }
526
+ 70% {
527
+ width: 50px;
528
+ left: -8px;
529
+ top: 37px; }
530
+ 84% {
531
+ width: 17px;
532
+ left: 21px;
533
+ top: 48px; }
534
+ 100% {
535
+ width: 25px;
536
+ left: 14px;
537
+ top: 45px; } }
538
+
539
+ @-webkit-keyframes animateSuccessLong {
540
+ 0% {
541
+ width: 0;
542
+ right: 46px;
543
+ top: 54px; }
544
+ 65% {
545
+ width: 0;
546
+ right: 46px;
547
+ top: 54px; }
548
+ 84% {
549
+ width: 55px;
550
+ right: 0px;
551
+ top: 35px; }
552
+ 100% {
553
+ width: 47px;
554
+ right: 8px;
555
+ top: 38px; } }
556
+
557
+ @keyframes animateSuccessLong {
558
+ 0% {
559
+ width: 0;
560
+ right: 46px;
561
+ top: 54px; }
562
+ 65% {
563
+ width: 0;
564
+ right: 46px;
565
+ top: 54px; }
566
+ 84% {
567
+ width: 55px;
568
+ right: 0px;
569
+ top: 35px; }
570
+ 100% {
571
+ width: 47px;
572
+ right: 8px;
573
+ top: 38px; } }
574
+
575
+ @-webkit-keyframes rotatePlaceholder {
576
+ 0% {
577
+ transform: rotate(-45deg);
578
+ -webkit-transform: rotate(-45deg); }
579
+ 5% {
580
+ transform: rotate(-45deg);
581
+ -webkit-transform: rotate(-45deg); }
582
+ 12% {
583
+ transform: rotate(-405deg);
584
+ -webkit-transform: rotate(-405deg); }
585
+ 100% {
586
+ transform: rotate(-405deg);
587
+ -webkit-transform: rotate(-405deg); } }
588
+
589
+ @keyframes rotatePlaceholder {
590
+ 0% {
591
+ transform: rotate(-45deg);
592
+ -webkit-transform: rotate(-45deg); }
593
+ 5% {
594
+ transform: rotate(-45deg);
595
+ -webkit-transform: rotate(-45deg); }
596
+ 12% {
597
+ transform: rotate(-405deg);
598
+ -webkit-transform: rotate(-405deg); }
599
+ 100% {
600
+ transform: rotate(-405deg);
601
+ -webkit-transform: rotate(-405deg); } }
399
602
 
400
603
  .animateSuccessTip {
401
- @include animation('animateSuccessTip 0.75s');
402
- }
403
- .animateSuccessLong {
404
- @include animation('animateSuccessLong 0.75s');
405
- }
406
- .icon.success.animate::after {
407
- @include animation('rotatePlaceholder 4.25s ease-in');
408
- }
604
+ -webkit-animation: animateSuccessTip 0.75s;
605
+ animation: animateSuccessTip 0.75s; }
409
606
 
607
+ .animateSuccessLong {
608
+ -webkit-animation: animateSuccessLong 0.75s;
609
+ animation: animateSuccessLong 0.75s; }
610
+
611
+ .sa-icon.sa-success.animate::after {
612
+ -webkit-animation: rotatePlaceholder 4.25s ease-in;
613
+ animation: rotatePlaceholder 4.25s ease-in; }
614
+
615
+ @-webkit-keyframes animateErrorIcon {
616
+ 0% {
617
+ transform: rotateX(100deg);
618
+ -webkit-transform: rotateX(100deg);
619
+ opacity: 0; }
620
+ 100% {
621
+ transform: rotateX(0deg);
622
+ -webkit-transform: rotateX(0deg);
623
+ opacity: 1; } }
624
+
625
+ @keyframes animateErrorIcon {
626
+ 0% {
627
+ transform: rotateX(100deg);
628
+ -webkit-transform: rotateX(100deg);
629
+ opacity: 0; }
630
+ 100% {
631
+ transform: rotateX(0deg);
632
+ -webkit-transform: rotateX(0deg);
633
+ opacity: 1; } }
410
634
 
411
- // Error icon animation
412
-
413
- @include keyframes(animateErrorIcon) {
414
- 0% { transform: rotateX(100deg); -webkit-transform: rotateX(100deg); opacity: 0; }
415
- 100% { transform: rotateX(0deg); -webkit-transform: rotateX(0deg); opacity: 1; }
416
- }
417
635
  .animateErrorIcon {
418
- @include animation('animateErrorIcon 0.5s');
419
- }
420
- @include keyframes(animateXMark) {
421
- 0% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; }
422
- 50% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; }
423
- 80% { transform: scale(1.15); -webkit-transform: scale(1.15); margin-top: -6px; }
424
- 100% { transform: scale(1); -webkit-transform: scale(1); margin-top: 0; opacity: 1; }
425
- }
636
+ -webkit-animation: animateErrorIcon 0.5s;
637
+ animation: animateErrorIcon 0.5s; }
638
+
639
+ @-webkit-keyframes animateXMark {
640
+ 0% {
641
+ transform: scale(0.4);
642
+ -webkit-transform: scale(0.4);
643
+ margin-top: 26px;
644
+ opacity: 0; }
645
+ 50% {
646
+ transform: scale(0.4);
647
+ -webkit-transform: scale(0.4);
648
+ margin-top: 26px;
649
+ opacity: 0; }
650
+ 80% {
651
+ transform: scale(1.15);
652
+ -webkit-transform: scale(1.15);
653
+ margin-top: -6px; }
654
+ 100% {
655
+ transform: scale(1);
656
+ -webkit-transform: scale(1);
657
+ margin-top: 0;
658
+ opacity: 1; } }
659
+
660
+ @keyframes animateXMark {
661
+ 0% {
662
+ transform: scale(0.4);
663
+ -webkit-transform: scale(0.4);
664
+ margin-top: 26px;
665
+ opacity: 0; }
666
+ 50% {
667
+ transform: scale(0.4);
668
+ -webkit-transform: scale(0.4);
669
+ margin-top: 26px;
670
+ opacity: 0; }
671
+ 80% {
672
+ transform: scale(1.15);
673
+ -webkit-transform: scale(1.15);
674
+ margin-top: -6px; }
675
+ 100% {
676
+ transform: scale(1);
677
+ -webkit-transform: scale(1);
678
+ margin-top: 0;
679
+ opacity: 1; } }
680
+
426
681
  .animateXMark {
427
- @include animation('animateXMark 0.5s');
428
- }
682
+ -webkit-animation: animateXMark 0.5s;
683
+ animation: animateXMark 0.5s; }
684
+
685
+ @-webkit-keyframes pulseWarning {
686
+ 0% {
687
+ border-color: #F8D486; }
688
+ 100% {
689
+ border-color: #F8BB86; } }
690
+
691
+ @keyframes pulseWarning {
692
+ 0% {
693
+ border-color: #F8D486; }
694
+ 100% {
695
+ border-color: #F8BB86; } }
429
696
 
430
- @include keyframes(pulseWarning) {
431
- 0% { border-color: #F8D486; }
432
- 100% { border-color: #F8BB86; }
433
- }
434
697
  .pulseWarning {
435
- @include animation('pulseWarning 0.75s infinite alternate');
436
- }
698
+ -webkit-animation: pulseWarning 0.75s infinite alternate;
699
+ animation: pulseWarning 0.75s infinite alternate; }
700
+
701
+ @-webkit-keyframes pulseWarningIns {
702
+ 0% {
703
+ background-color: #F8D486; }
704
+ 100% {
705
+ background-color: #F8BB86; } }
706
+
707
+ @keyframes pulseWarningIns {
708
+ 0% {
709
+ background-color: #F8D486; }
710
+ 100% {
711
+ background-color: #F8BB86; } }
437
712
 
438
- @include keyframes(pulseWarningIns) {
439
- 0% { background-color: #F8D486; }
440
- 100% { background-color: #F8BB86; }
441
- }
442
713
  .pulseWarningIns {
443
- @include animation('pulseWarningIns 0.75s infinite alternate');
444
- }
714
+ -webkit-animation: pulseWarningIns 0.75s infinite alternate;
715
+ animation: pulseWarningIns 0.75s infinite alternate; }
716
+
717
+ @-webkit-keyframes rotate-loading {
718
+ 0% {
719
+ transform: rotate(0deg); }
720
+ 100% {
721
+ transform: rotate(360deg); } }
722
+
723
+ @keyframes rotate-loading {
724
+ 0% {
725
+ transform: rotate(0deg); }
726
+ 100% {
727
+ transform: rotate(360deg); } }
728
+
729
+ /* Internet Explorer 9 has some special quirks that are fixed here */
730
+ /* The icons are not animated. */
731
+ /* This file is automatically merged into sweet-alert.min.js through Gulp */
732
+ /* Error icon */
733
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
734
+ -ms-transform: rotate(45deg) \9; }
735
+
736
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
737
+ -ms-transform: rotate(-45deg) \9; }
738
+
739
+ /* Success icon */
740
+ .sweet-alert .sa-icon.sa-success {
741
+ border-color: transparent\9; }
742
+
743
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
744
+ -ms-transform: rotate(45deg) \9; }
745
+
746
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
747
+ -ms-transform: rotate(-45deg) \9; }
748
+
749
+ /*!
750
+ * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
751
+ * Copyright 2015 Daniel Cardoso <@DanielCardoso>
752
+ * Licensed under MIT
753
+ */
754
+ .la-ball-fall,
755
+ .la-ball-fall > div {
756
+ position: relative;
757
+ -webkit-box-sizing: border-box;
758
+ -moz-box-sizing: border-box;
759
+ box-sizing: border-box; }
760
+
761
+ .la-ball-fall {
762
+ display: block;
763
+ font-size: 0;
764
+ color: #fff; }
765
+
766
+ .la-ball-fall.la-dark {
767
+ color: #333; }
768
+
769
+ .la-ball-fall > div {
770
+ display: inline-block;
771
+ float: none;
772
+ background-color: currentColor;
773
+ border: 0 solid currentColor; }
774
+
775
+ .la-ball-fall {
776
+ width: 54px;
777
+ height: 18px; }
778
+
779
+ .la-ball-fall > div {
780
+ width: 10px;
781
+ height: 10px;
782
+ margin: 4px;
783
+ border-radius: 100%;
784
+ opacity: 0;
785
+ -webkit-animation: ball-fall 1s ease-in-out infinite;
786
+ -moz-animation: ball-fall 1s ease-in-out infinite;
787
+ -o-animation: ball-fall 1s ease-in-out infinite;
788
+ animation: ball-fall 1s ease-in-out infinite; }
789
+
790
+ .la-ball-fall > div:nth-child(1) {
791
+ -webkit-animation-delay: -200ms;
792
+ -moz-animation-delay: -200ms;
793
+ -o-animation-delay: -200ms;
794
+ animation-delay: -200ms; }
795
+
796
+ .la-ball-fall > div:nth-child(2) {
797
+ -webkit-animation-delay: -100ms;
798
+ -moz-animation-delay: -100ms;
799
+ -o-animation-delay: -100ms;
800
+ animation-delay: -100ms; }
801
+
802
+ .la-ball-fall > div:nth-child(3) {
803
+ -webkit-animation-delay: 0ms;
804
+ -moz-animation-delay: 0ms;
805
+ -o-animation-delay: 0ms;
806
+ animation-delay: 0ms; }
807
+
808
+ .la-ball-fall.la-sm {
809
+ width: 26px;
810
+ height: 8px; }
811
+
812
+ .la-ball-fall.la-sm > div {
813
+ width: 4px;
814
+ height: 4px;
815
+ margin: 2px; }
816
+
817
+ .la-ball-fall.la-2x {
818
+ width: 108px;
819
+ height: 36px; }
820
+
821
+ .la-ball-fall.la-2x > div {
822
+ width: 20px;
823
+ height: 20px;
824
+ margin: 8px; }
825
+
826
+ .la-ball-fall.la-3x {
827
+ width: 162px;
828
+ height: 54px; }
829
+
830
+ .la-ball-fall.la-3x > div {
831
+ width: 30px;
832
+ height: 30px;
833
+ margin: 12px; }
834
+
835
+ /*
836
+ * Animation
837
+ */
838
+ @-webkit-keyframes ball-fall {
839
+ 0% {
840
+ opacity: 0;
841
+ -webkit-transform: translateY(-145%);
842
+ transform: translateY(-145%); }
843
+ 10% {
844
+ opacity: .5; }
845
+ 20% {
846
+ opacity: 1;
847
+ -webkit-transform: translateY(0);
848
+ transform: translateY(0); }
849
+ 80% {
850
+ opacity: 1;
851
+ -webkit-transform: translateY(0);
852
+ transform: translateY(0); }
853
+ 90% {
854
+ opacity: .5; }
855
+ 100% {
856
+ opacity: 0;
857
+ -webkit-transform: translateY(145%);
858
+ transform: translateY(145%); } }
859
+
860
+ @-moz-keyframes ball-fall {
861
+ 0% {
862
+ opacity: 0;
863
+ -moz-transform: translateY(-145%);
864
+ transform: translateY(-145%); }
865
+ 10% {
866
+ opacity: .5; }
867
+ 20% {
868
+ opacity: 1;
869
+ -moz-transform: translateY(0);
870
+ transform: translateY(0); }
871
+ 80% {
872
+ opacity: 1;
873
+ -moz-transform: translateY(0);
874
+ transform: translateY(0); }
875
+ 90% {
876
+ opacity: .5; }
877
+ 100% {
878
+ opacity: 0;
879
+ -moz-transform: translateY(145%);
880
+ transform: translateY(145%); } }
881
+
882
+ @-o-keyframes ball-fall {
883
+ 0% {
884
+ opacity: 0;
885
+ -o-transform: translateY(-145%);
886
+ transform: translateY(-145%); }
887
+ 10% {
888
+ opacity: .5; }
889
+ 20% {
890
+ opacity: 1;
891
+ -o-transform: translateY(0);
892
+ transform: translateY(0); }
893
+ 80% {
894
+ opacity: 1;
895
+ -o-transform: translateY(0);
896
+ transform: translateY(0); }
897
+ 90% {
898
+ opacity: .5; }
899
+ 100% {
900
+ opacity: 0;
901
+ -o-transform: translateY(145%);
902
+ transform: translateY(145%); } }
903
+
904
+ @keyframes ball-fall {
905
+ 0% {
906
+ opacity: 0;
907
+ -webkit-transform: translateY(-145%);
908
+ -moz-transform: translateY(-145%);
909
+ -o-transform: translateY(-145%);
910
+ transform: translateY(-145%); }
911
+ 10% {
912
+ opacity: .5; }
913
+ 20% {
914
+ opacity: 1;
915
+ -webkit-transform: translateY(0);
916
+ -moz-transform: translateY(0);
917
+ -o-transform: translateY(0);
918
+ transform: translateY(0); }
919
+ 80% {
920
+ opacity: 1;
921
+ -webkit-transform: translateY(0);
922
+ -moz-transform: translateY(0);
923
+ -o-transform: translateY(0);
924
+ transform: translateY(0); }
925
+ 90% {
926
+ opacity: .5; }
927
+ 100% {
928
+ opacity: 0;
929
+ -webkit-transform: translateY(145%);
930
+ -moz-transform: translateY(145%);
931
+ -o-transform: translateY(145%);
932
+ transform: translateY(145%); } }