rough_swal 0.0.3 → 0.0.4

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: d1351bd26619b558faeb186959fa75343d3c6518
4
- data.tar.gz: 236b61ab3a03f1088c4ca12520249936dfae8a7c
3
+ metadata.gz: 8bd0960e4a62148af99d3023ed78b6f4d83200bc
4
+ data.tar.gz: fe5f1c1aeadd6b761cc04231f3a7f05653fde931
5
5
  SHA512:
6
- metadata.gz: 89e4a90c9fbb9a4450f09bc4d630928e5c1563820046725e0aa80a7b2108cad89e152c9687b320c594d84240a638531f8383b412b60f45bf3b6b0265dd13874a
7
- data.tar.gz: b48b603b200293c025f15598c98443f8112e5e087c2c641a8aaa7ed50039b326c22abbbb93a1cae87525b1a6d4f703b8ae5723d76787649e99af76fbcc1767cb
6
+ metadata.gz: b5bb9b0aad907cbefffb75d977fccf4143a46af1e473260ab0f1aad2f990d92770df3425726ab54416a9b4b448795abbf27de222d3f0180044fa7c79e8f98665
7
+ data.tar.gz: 67c925f1257be322ab5e59eff097dee60b19e93c69e83537d1ce5a87cd2fadcd8119411fec3928ada0933867ae57cec50ec10bb803e28535f7a93ee22879239d
data/.codeclimate.yml ADDED
@@ -0,0 +1,2 @@
1
+ languages:
2
+ Ruby: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rough_swal (0.0.2)
4
+ rough_swal (0.0.3)
5
5
  rails (~> 4.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,13 +1,17 @@
1
+ [![Build Status](https://travis-ci.org/mmmpa/rough_swal.svg)](https://travis-ci.org/mmmpa/rough_swal)
2
+ [![Coverage Status](https://coveralls.io/repos/mmmpa/rough_swal/badge.svg?branch=master)](https://coveralls.io/r/mmmpa/rough_swal?branch=master)
3
+ [![Code Climate](https://codeclimate.com/github/mmmpa/rough_swal/badges/gpa.svg)](https://codeclimate.com/github/mmmpa/rough_swal)
4
+
1
5
  # RoughSwal
2
6
 
3
7
  RoughSwalはRailsのControllerからアラート代わりに[SweetAlert](http://t4t5.github.io/sweetalert/)を簡単に呼び出すために書かれました。
4
8
 
5
9
  ```ruby
6
10
  def create
7
- User.create!(user_params)
11
+ User.create!(user_params)
8
12
  rescue ActiveRecord::RecordInvalid => e
9
- swal{ error '不正な値が含まれています', '項目を確認の上、再度送信してください' }
10
- @user = e.record
13
+ swal{ error '不正な値が含まれています', '項目を確認の上、再度送信してください' }
14
+ @user = e.record
11
15
  end
12
16
  ```
13
17
 
@@ -1,3 +1,3 @@
1
1
  module RoughSwal
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/rough_swal.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
- spec.add_dependency "rails", "~> 4.0.0"
21
+ spec.add_dependency "rails"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.10"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -11,3 +11,4 @@
11
11
  // about supported directives.
12
12
  //
13
13
  //= require_tree .
14
+ //= require sweetalert.min
@@ -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){var a,r,s,l,i=function(e){return e&&e.__esModule?e:{"default":e}},u=o("./modules/handle-dom"),c=o("./modules/utils"),d=o("./modules/handle-swal-dom"),f=o("./modules/handle-click"),p=o("./modules/handle-key"),m=i(p),v=o("./modules/default-params"),y=i(v),h=o("./modules/set-params"),g=i(h);s=l=function(){function o(e){var t=s;return t[e]===n?y["default"][e]:t[e]}var s=arguments[0];if(u.addClass(t.body,"stop-scrolling"),d.resetInput(),s===n)return c.logStr("SweetAlert expects at least 1 attribute!"),!1;var l=c.extend({},y["default"]);switch(typeof s){case"string":l.title=s,l.text=arguments[1]||"",l.type=arguments[2]||"";break;case"object":if(s.title===n)return c.logStr('Missing "title" argument!'),!1;l.title=s.title;for(var i in y["default"])l[i]=o(i);l.confirmButtonText=l.showCancelButton?"Confirm":y["default"].confirmButtonText,l.confirmButtonText=o("confirmButtonText"),l.doneFunction=arguments[1]||null;break;default:return c.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof s),!1}g["default"](l),d.fixVerticalPosition(),d.openModal(arguments[1]);for(var p=d.getModal(),v=p.querySelectorAll("button"),h=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],b=function(e){return f.handleButton(e,l,p)},w=0;w<v.length;w++)for(var C=0;C<h.length;C++){var S=h[C];v[w][S]=b}d.getOverlay().onclick=b,a=e.onkeydown;var x=function(e){return m["default"](e,l,p)};e.onkeydown=x,e.onfocus=function(){setTimeout(function(){r!==n&&(r.focus(),r=n)},0)}},s.setDefaults=l.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");c.extend(y["default"],e)},s.close=l.close=function(){var o=d.getModal();u.fadeOut(d.getOverlay(),5),u.fadeOut(o,5),u.removeClass(o,"showSweetAlert"),u.addClass(o,"hideSweetAlert"),u.removeClass(o,"visible");var s=o.querySelector(".sa-icon.sa-success");u.removeClass(s,"animate"),u.removeClass(s.querySelector(".sa-tip"),"animateSuccessTip"),u.removeClass(s.querySelector(".sa-long"),"animateSuccessLong");var l=o.querySelector(".sa-icon.sa-error");u.removeClass(l,"animateErrorIcon"),u.removeClass(l.querySelector(".sa-x-mark"),"animateXMark");var i=o.querySelector(".sa-icon.sa-warning");return u.removeClass(i,"pulseWarning"),u.removeClass(i.querySelector(".sa-body"),"pulseWarningIns"),u.removeClass(i.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=o.getAttribute("data-custom-class");u.removeClass(o,e)},300),u.removeClass(t.body,"stop-scrolling"),e.onkeydown=a,e.previousActiveElement&&e.previousActiveElement.focus(),r=n,clearTimeout(o.timeout),!0},s.showInputError=l.showInputError=function(e){var t=d.getModal(),n=t.querySelector(".sa-input-error");u.addClass(n,"show");var o=t.querySelector(".sa-error-container");u.addClass(o,"show"),o.querySelector("p").innerHTML=e,t.querySelector("input").focus()},s.resetInputError=l.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=d.getModal(),n=t.querySelector(".sa-input-error");u.removeClass(n,"show");var o=t.querySelector(".sa-error-container");u.removeClass(o,"show")},"undefined"!=typeof e?e.sweetAlert=e.swal=s:c.logStr("SweetAlert is a frontend module!")},{"./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:"#AEDEF4",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:""};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 g=o.querySelector("button.confirm"),b=o.querySelector("button.cancel");m?b.style.boxShadow="none":g.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()},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()},g=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=g},{}],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)},g=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)"},b=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=g,a.openModal=b,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 <button class="confirm" tabIndex="1">OK</button>\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],g=y[1];h&&g?(m=h,v=g):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,r.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var b=e.doneFunction?!0:!1;t.setAttribute("data-has-done-function",b),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);
@@ -10,4 +10,5 @@
10
10
  *
11
11
  *= require_self
12
12
  *= require_tree .
13
+ *= require sweetalert
13
14
  */
@@ -0,0 +1,715 @@
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
+ @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 button {
162
+ background-color: #AEDEF4;
163
+ color: white;
164
+ border: none;
165
+ box-shadow: none;
166
+ font-size: 17px;
167
+ font-weight: 500;
168
+ -webkit-border-radius: 4px;
169
+ border-radius: 5px;
170
+ padding: 10px 32px;
171
+ margin: 26px 5px 0 5px;
172
+ cursor: pointer; }
173
+ .sweet-alert button:focus {
174
+ outline: none;
175
+ box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
176
+ .sweet-alert button:hover {
177
+ background-color: #a1d9f2; }
178
+ .sweet-alert button:active {
179
+ background-color: #81ccee; }
180
+ .sweet-alert button.cancel {
181
+ background-color: #D0D0D0; }
182
+ .sweet-alert button.cancel:hover {
183
+ background-color: #c8c8c8; }
184
+ .sweet-alert button.cancel:active {
185
+ background-color: #b6b6b6; }
186
+ .sweet-alert button.cancel:focus {
187
+ box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
188
+ .sweet-alert button::-moz-focus-inner {
189
+ border: 0; }
190
+ .sweet-alert[data-has-cancel-button=false] button {
191
+ box-shadow: none !important; }
192
+ .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
193
+ padding-bottom: 40px; }
194
+ .sweet-alert .sa-icon {
195
+ width: 80px;
196
+ height: 80px;
197
+ border: 4px solid gray;
198
+ -webkit-border-radius: 40px;
199
+ border-radius: 40px;
200
+ border-radius: 50%;
201
+ margin: 20px auto;
202
+ padding: 0;
203
+ position: relative;
204
+ box-sizing: content-box; }
205
+ .sweet-alert .sa-icon.sa-error {
206
+ border-color: #F27474; }
207
+ .sweet-alert .sa-icon.sa-error .sa-x-mark {
208
+ position: relative;
209
+ display: block; }
210
+ .sweet-alert .sa-icon.sa-error .sa-line {
211
+ position: absolute;
212
+ height: 5px;
213
+ width: 47px;
214
+ background-color: #F27474;
215
+ display: block;
216
+ top: 37px;
217
+ border-radius: 2px; }
218
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
219
+ -webkit-transform: rotate(45deg);
220
+ transform: rotate(45deg);
221
+ left: 17px; }
222
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
223
+ -webkit-transform: rotate(-45deg);
224
+ transform: rotate(-45deg);
225
+ right: 16px; }
226
+ .sweet-alert .sa-icon.sa-warning {
227
+ border-color: #F8BB86; }
228
+ .sweet-alert .sa-icon.sa-warning .sa-body {
229
+ position: absolute;
230
+ width: 5px;
231
+ height: 47px;
232
+ left: 50%;
233
+ top: 10px;
234
+ -webkit-border-radius: 2px;
235
+ border-radius: 2px;
236
+ margin-left: -2px;
237
+ background-color: #F8BB86; }
238
+ .sweet-alert .sa-icon.sa-warning .sa-dot {
239
+ position: absolute;
240
+ width: 7px;
241
+ height: 7px;
242
+ -webkit-border-radius: 50%;
243
+ border-radius: 50%;
244
+ margin-left: -3px;
245
+ left: 50%;
246
+ bottom: 10px;
247
+ background-color: #F8BB86; }
248
+ .sweet-alert .sa-icon.sa-info {
249
+ border-color: #C9DAE1; }
250
+ .sweet-alert .sa-icon.sa-info::before {
251
+ content: "";
252
+ position: absolute;
253
+ width: 5px;
254
+ height: 29px;
255
+ left: 50%;
256
+ bottom: 17px;
257
+ border-radius: 2px;
258
+ margin-left: -2px;
259
+ background-color: #C9DAE1; }
260
+ .sweet-alert .sa-icon.sa-info::after {
261
+ content: "";
262
+ position: absolute;
263
+ width: 7px;
264
+ height: 7px;
265
+ border-radius: 50%;
266
+ margin-left: -3px;
267
+ top: 19px;
268
+ background-color: #C9DAE1; }
269
+ .sweet-alert .sa-icon.sa-success {
270
+ border-color: #A5DC86; }
271
+ .sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
272
+ content: '';
273
+ -webkit-border-radius: 40px;
274
+ border-radius: 40px;
275
+ border-radius: 50%;
276
+ position: absolute;
277
+ width: 60px;
278
+ height: 120px;
279
+ background: white;
280
+ -webkit-transform: rotate(45deg);
281
+ transform: rotate(45deg); }
282
+ .sweet-alert .sa-icon.sa-success::before {
283
+ -webkit-border-radius: 120px 0 0 120px;
284
+ border-radius: 120px 0 0 120px;
285
+ top: -7px;
286
+ left: -33px;
287
+ -webkit-transform: rotate(-45deg);
288
+ transform: rotate(-45deg);
289
+ -webkit-transform-origin: 60px 60px;
290
+ transform-origin: 60px 60px; }
291
+ .sweet-alert .sa-icon.sa-success::after {
292
+ -webkit-border-radius: 0 120px 120px 0;
293
+ border-radius: 0 120px 120px 0;
294
+ top: -11px;
295
+ left: 30px;
296
+ -webkit-transform: rotate(-45deg);
297
+ transform: rotate(-45deg);
298
+ -webkit-transform-origin: 0px 60px;
299
+ transform-origin: 0px 60px; }
300
+ .sweet-alert .sa-icon.sa-success .sa-placeholder {
301
+ width: 80px;
302
+ height: 80px;
303
+ border: 4px solid rgba(165, 220, 134, 0.2);
304
+ -webkit-border-radius: 40px;
305
+ border-radius: 40px;
306
+ border-radius: 50%;
307
+ box-sizing: content-box;
308
+ position: absolute;
309
+ left: -4px;
310
+ top: -4px;
311
+ z-index: 2; }
312
+ .sweet-alert .sa-icon.sa-success .sa-fix {
313
+ width: 5px;
314
+ height: 90px;
315
+ background-color: white;
316
+ position: absolute;
317
+ left: 28px;
318
+ top: 8px;
319
+ z-index: 1;
320
+ -webkit-transform: rotate(-45deg);
321
+ transform: rotate(-45deg); }
322
+ .sweet-alert .sa-icon.sa-success .sa-line {
323
+ height: 5px;
324
+ background-color: #A5DC86;
325
+ display: block;
326
+ border-radius: 2px;
327
+ position: absolute;
328
+ z-index: 2; }
329
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
330
+ width: 25px;
331
+ left: 14px;
332
+ top: 46px;
333
+ -webkit-transform: rotate(45deg);
334
+ transform: rotate(45deg); }
335
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
336
+ width: 47px;
337
+ right: 8px;
338
+ top: 38px;
339
+ -webkit-transform: rotate(-45deg);
340
+ transform: rotate(-45deg); }
341
+ .sweet-alert .sa-icon.sa-custom {
342
+ background-size: contain;
343
+ border-radius: 0;
344
+ border: none;
345
+ background-position: center center;
346
+ background-repeat: no-repeat; }
347
+
348
+ /*
349
+ * Animations
350
+ */
351
+ @-webkit-keyframes showSweetAlert {
352
+ 0% {
353
+ transform: scale(0.7);
354
+ -webkit-transform: scale(0.7); }
355
+ 45% {
356
+ transform: scale(1.05);
357
+ -webkit-transform: scale(1.05); }
358
+ 80% {
359
+ transform: scale(0.95);
360
+ -webkit-transform: scale(0.95); }
361
+ 100% {
362
+ transform: scale(1);
363
+ -webkit-transform: scale(1); } }
364
+
365
+ @keyframes showSweetAlert {
366
+ 0% {
367
+ transform: scale(0.7);
368
+ -webkit-transform: scale(0.7); }
369
+ 45% {
370
+ transform: scale(1.05);
371
+ -webkit-transform: scale(1.05); }
372
+ 80% {
373
+ transform: scale(0.95);
374
+ -webkit-transform: scale(0.95); }
375
+ 100% {
376
+ transform: scale(1);
377
+ -webkit-transform: scale(1); } }
378
+
379
+ @-webkit-keyframes hideSweetAlert {
380
+ 0% {
381
+ transform: scale(1);
382
+ -webkit-transform: scale(1); }
383
+ 100% {
384
+ transform: scale(0.5);
385
+ -webkit-transform: scale(0.5); } }
386
+
387
+ @keyframes hideSweetAlert {
388
+ 0% {
389
+ transform: scale(1);
390
+ -webkit-transform: scale(1); }
391
+ 100% {
392
+ transform: scale(0.5);
393
+ -webkit-transform: scale(0.5); } }
394
+
395
+ @-webkit-keyframes slideFromTop {
396
+ 0% {
397
+ top: 0%; }
398
+ 100% {
399
+ top: 50%; } }
400
+
401
+ @keyframes slideFromTop {
402
+ 0% {
403
+ top: 0%; }
404
+ 100% {
405
+ top: 50%; } }
406
+
407
+ @-webkit-keyframes slideToTop {
408
+ 0% {
409
+ top: 50%; }
410
+ 100% {
411
+ top: 0%; } }
412
+
413
+ @keyframes slideToTop {
414
+ 0% {
415
+ top: 50%; }
416
+ 100% {
417
+ top: 0%; } }
418
+
419
+ @-webkit-keyframes slideFromBottom {
420
+ 0% {
421
+ top: 70%; }
422
+ 100% {
423
+ top: 50%; } }
424
+
425
+ @keyframes slideFromBottom {
426
+ 0% {
427
+ top: 70%; }
428
+ 100% {
429
+ top: 50%; } }
430
+
431
+ @-webkit-keyframes slideToBottom {
432
+ 0% {
433
+ top: 50%; }
434
+ 100% {
435
+ top: 70%; } }
436
+
437
+ @keyframes slideToBottom {
438
+ 0% {
439
+ top: 50%; }
440
+ 100% {
441
+ top: 70%; } }
442
+
443
+ .showSweetAlert[data-animation=pop] {
444
+ -webkit-animation: showSweetAlert 0.3s;
445
+ animation: showSweetAlert 0.3s; }
446
+
447
+ .showSweetAlert[data-animation=none] {
448
+ -webkit-animation: none;
449
+ animation: none; }
450
+
451
+ .showSweetAlert[data-animation=slide-from-top] {
452
+ -webkit-animation: slideFromTop 0.3s;
453
+ animation: slideFromTop 0.3s; }
454
+
455
+ .showSweetAlert[data-animation=slide-from-bottom] {
456
+ -webkit-animation: slideFromBottom 0.3s;
457
+ animation: slideFromBottom 0.3s; }
458
+
459
+ .hideSweetAlert[data-animation=pop] {
460
+ -webkit-animation: hideSweetAlert 0.2s;
461
+ animation: hideSweetAlert 0.2s; }
462
+
463
+ .hideSweetAlert[data-animation=none] {
464
+ -webkit-animation: none;
465
+ animation: none; }
466
+
467
+ .hideSweetAlert[data-animation=slide-from-top] {
468
+ -webkit-animation: slideToTop 0.4s;
469
+ animation: slideToTop 0.4s; }
470
+
471
+ .hideSweetAlert[data-animation=slide-from-bottom] {
472
+ -webkit-animation: slideToBottom 0.3s;
473
+ animation: slideToBottom 0.3s; }
474
+
475
+ @-webkit-keyframes animateSuccessTip {
476
+ 0% {
477
+ width: 0;
478
+ left: 1px;
479
+ top: 19px; }
480
+ 54% {
481
+ width: 0;
482
+ left: 1px;
483
+ top: 19px; }
484
+ 70% {
485
+ width: 50px;
486
+ left: -8px;
487
+ top: 37px; }
488
+ 84% {
489
+ width: 17px;
490
+ left: 21px;
491
+ top: 48px; }
492
+ 100% {
493
+ width: 25px;
494
+ left: 14px;
495
+ top: 45px; } }
496
+
497
+ @keyframes animateSuccessTip {
498
+ 0% {
499
+ width: 0;
500
+ left: 1px;
501
+ top: 19px; }
502
+ 54% {
503
+ width: 0;
504
+ left: 1px;
505
+ top: 19px; }
506
+ 70% {
507
+ width: 50px;
508
+ left: -8px;
509
+ top: 37px; }
510
+ 84% {
511
+ width: 17px;
512
+ left: 21px;
513
+ top: 48px; }
514
+ 100% {
515
+ width: 25px;
516
+ left: 14px;
517
+ top: 45px; } }
518
+
519
+ @-webkit-keyframes animateSuccessLong {
520
+ 0% {
521
+ width: 0;
522
+ right: 46px;
523
+ top: 54px; }
524
+ 65% {
525
+ width: 0;
526
+ right: 46px;
527
+ top: 54px; }
528
+ 84% {
529
+ width: 55px;
530
+ right: 0px;
531
+ top: 35px; }
532
+ 100% {
533
+ width: 47px;
534
+ right: 8px;
535
+ top: 38px; } }
536
+
537
+ @keyframes animateSuccessLong {
538
+ 0% {
539
+ width: 0;
540
+ right: 46px;
541
+ top: 54px; }
542
+ 65% {
543
+ width: 0;
544
+ right: 46px;
545
+ top: 54px; }
546
+ 84% {
547
+ width: 55px;
548
+ right: 0px;
549
+ top: 35px; }
550
+ 100% {
551
+ width: 47px;
552
+ right: 8px;
553
+ top: 38px; } }
554
+
555
+ @-webkit-keyframes rotatePlaceholder {
556
+ 0% {
557
+ transform: rotate(-45deg);
558
+ -webkit-transform: rotate(-45deg); }
559
+ 5% {
560
+ transform: rotate(-45deg);
561
+ -webkit-transform: rotate(-45deg); }
562
+ 12% {
563
+ transform: rotate(-405deg);
564
+ -webkit-transform: rotate(-405deg); }
565
+ 100% {
566
+ transform: rotate(-405deg);
567
+ -webkit-transform: rotate(-405deg); } }
568
+
569
+ @keyframes rotatePlaceholder {
570
+ 0% {
571
+ transform: rotate(-45deg);
572
+ -webkit-transform: rotate(-45deg); }
573
+ 5% {
574
+ transform: rotate(-45deg);
575
+ -webkit-transform: rotate(-45deg); }
576
+ 12% {
577
+ transform: rotate(-405deg);
578
+ -webkit-transform: rotate(-405deg); }
579
+ 100% {
580
+ transform: rotate(-405deg);
581
+ -webkit-transform: rotate(-405deg); } }
582
+
583
+ .animateSuccessTip {
584
+ -webkit-animation: animateSuccessTip 0.75s;
585
+ animation: animateSuccessTip 0.75s; }
586
+
587
+ .animateSuccessLong {
588
+ -webkit-animation: animateSuccessLong 0.75s;
589
+ animation: animateSuccessLong 0.75s; }
590
+
591
+ .sa-icon.sa-success.animate::after {
592
+ -webkit-animation: rotatePlaceholder 4.25s ease-in;
593
+ animation: rotatePlaceholder 4.25s ease-in; }
594
+
595
+ @-webkit-keyframes animateErrorIcon {
596
+ 0% {
597
+ transform: rotateX(100deg);
598
+ -webkit-transform: rotateX(100deg);
599
+ opacity: 0; }
600
+ 100% {
601
+ transform: rotateX(0deg);
602
+ -webkit-transform: rotateX(0deg);
603
+ opacity: 1; } }
604
+
605
+ @keyframes animateErrorIcon {
606
+ 0% {
607
+ transform: rotateX(100deg);
608
+ -webkit-transform: rotateX(100deg);
609
+ opacity: 0; }
610
+ 100% {
611
+ transform: rotateX(0deg);
612
+ -webkit-transform: rotateX(0deg);
613
+ opacity: 1; } }
614
+
615
+ .animateErrorIcon {
616
+ -webkit-animation: animateErrorIcon 0.5s;
617
+ animation: animateErrorIcon 0.5s; }
618
+
619
+ @-webkit-keyframes animateXMark {
620
+ 0% {
621
+ transform: scale(0.4);
622
+ -webkit-transform: scale(0.4);
623
+ margin-top: 26px;
624
+ opacity: 0; }
625
+ 50% {
626
+ transform: scale(0.4);
627
+ -webkit-transform: scale(0.4);
628
+ margin-top: 26px;
629
+ opacity: 0; }
630
+ 80% {
631
+ transform: scale(1.15);
632
+ -webkit-transform: scale(1.15);
633
+ margin-top: -6px; }
634
+ 100% {
635
+ transform: scale(1);
636
+ -webkit-transform: scale(1);
637
+ margin-top: 0;
638
+ opacity: 1; } }
639
+
640
+ @keyframes animateXMark {
641
+ 0% {
642
+ transform: scale(0.4);
643
+ -webkit-transform: scale(0.4);
644
+ margin-top: 26px;
645
+ opacity: 0; }
646
+ 50% {
647
+ transform: scale(0.4);
648
+ -webkit-transform: scale(0.4);
649
+ margin-top: 26px;
650
+ opacity: 0; }
651
+ 80% {
652
+ transform: scale(1.15);
653
+ -webkit-transform: scale(1.15);
654
+ margin-top: -6px; }
655
+ 100% {
656
+ transform: scale(1);
657
+ -webkit-transform: scale(1);
658
+ margin-top: 0;
659
+ opacity: 1; } }
660
+
661
+ .animateXMark {
662
+ -webkit-animation: animateXMark 0.5s;
663
+ animation: animateXMark 0.5s; }
664
+
665
+ @-webkit-keyframes pulseWarning {
666
+ 0% {
667
+ border-color: #F8D486; }
668
+ 100% {
669
+ border-color: #F8BB86; } }
670
+
671
+ @keyframes pulseWarning {
672
+ 0% {
673
+ border-color: #F8D486; }
674
+ 100% {
675
+ border-color: #F8BB86; } }
676
+
677
+ .pulseWarning {
678
+ -webkit-animation: pulseWarning 0.75s infinite alternate;
679
+ animation: pulseWarning 0.75s infinite alternate; }
680
+
681
+ @-webkit-keyframes pulseWarningIns {
682
+ 0% {
683
+ background-color: #F8D486; }
684
+ 100% {
685
+ background-color: #F8BB86; } }
686
+
687
+ @keyframes pulseWarningIns {
688
+ 0% {
689
+ background-color: #F8D486; }
690
+ 100% {
691
+ background-color: #F8BB86; } }
692
+
693
+ .pulseWarningIns {
694
+ -webkit-animation: pulseWarningIns 0.75s infinite alternate;
695
+ animation: pulseWarningIns 0.75s infinite alternate; }
696
+
697
+ /* Internet Explorer 9 has some special quirks that are fixed here */
698
+ /* The icons are not animated. */
699
+ /* This file is automatically merged into sweet-alert.min.js through Gulp */
700
+ /* Error icon */
701
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
702
+ -ms-transform: rotate(45deg) \9; }
703
+
704
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
705
+ -ms-transform: rotate(-45deg) \9; }
706
+
707
+ /* Success icon */
708
+ .sweet-alert .sa-icon.sa-success {
709
+ border-color: transparent\9; }
710
+
711
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
712
+ -ms-transform: rotate(45deg) \9; }
713
+
714
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
715
+ -ms-transform: rotate(-45deg) \9; }
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rough_swal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmmpa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-04 00:00:00.000000000 Z
11
+ date: 2015-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -143,6 +143,7 @@ executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
+ - ".codeclimate.yml"
146
147
  - ".coveralls.yml"
147
148
  - ".gitignore"
148
149
  - ".travis.yml"
@@ -159,7 +160,9 @@ files:
159
160
  - spec/dummy/Rakefile
160
161
  - spec/dummy/app/assets/images/.keep
161
162
  - spec/dummy/app/assets/javascripts/application.js
163
+ - spec/dummy/app/assets/javascripts/sweetalert.min.js
162
164
  - spec/dummy/app/assets/stylesheets/application.css
165
+ - spec/dummy/app/assets/stylesheets/sweetalert.css
163
166
  - spec/dummy/app/controllers/alerts_controller.rb
164
167
  - spec/dummy/app/controllers/application_controller.rb
165
168
  - spec/dummy/app/controllers/concerns/.keep