abstracted 0.0.6 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +11 -8
  4. data/app/assets/javascripts/abstract_resources.js +29 -25
  5. data/app/assets/javascripts/crud.js.coffee +174 -29
  6. data/app/assets/javascripts/initializers.js.coffee +403 -58
  7. data/app/assets/javascripts/pagescrolling.js.coffee +92 -0
  8. data/app/assets/stylesheets/abstract_resources.css +5 -0
  9. data/app/assets/stylesheets/scaffold.css +4 -2
  10. data/app/assets/stylesheets/selectize.css.scss +0 -0
  11. data/app/controllers/abstract_resources_controller.rb +473 -134
  12. data/app/controllers/application_controller.rb +22 -7
  13. data/app/helpers/abstract_resources_helper.rb +515 -9
  14. data/app/helpers/fab_button_helper.rb +82 -0
  15. data/app/models/abstract_resource.rb +141 -89
  16. data/app/models/ancestry_abstract_resource.rb +27 -0
  17. data/app/models/concerns/roleable.rb +1 -1
  18. data/app/policies/abstract_resource_policy.rb +25 -0
  19. data/app/views/abstract_resources/_title.html.haml +2 -0
  20. data/app/views/abstract_resources/activate.html.haml +5 -0
  21. data/app/views/abstract_resources/attach.html.haml +6 -0
  22. data/app/views/abstract_resources/deactivate.html.haml +5 -0
  23. data/app/views/abstract_resources/defer.html.haml +5 -0
  24. data/app/views/abstract_resources/destroy.js.haml +2 -1
  25. data/app/views/abstract_resources/detach.html.haml +5 -0
  26. data/app/views/abstract_resources/edit.html.haml +4 -9
  27. data/app/views/abstract_resources/error.html.haml +2 -0
  28. data/app/views/abstract_resources/error.js.haml +2 -0
  29. data/app/views/abstract_resources/index.html.haml +27 -0
  30. data/app/views/abstract_resources/index.js.haml +2 -0
  31. data/app/views/abstract_resources/new.html.haml +4 -10
  32. data/app/views/abstract_resources/prefer.html.haml +5 -0
  33. data/app/views/abstract_resources/print.html.haml +2 -0
  34. data/app/views/abstract_resources/print.js.haml +2 -0
  35. data/app/views/abstract_resources/show.html.haml +5 -11
  36. data/app/views/layouts/_messages.html.haml +1 -0
  37. data/app/views/layouts/_navigation.html.haml +13 -0
  38. data/bower.json +34 -0
  39. data/config/initializers/exception.rb +19 -0
  40. data/config/initializers/pundit.rb +22 -0
  41. data/config/routes.rb +24 -0
  42. data/lib/abstracted.rb +3 -0
  43. data/lib/abstracted/version.rb +1 -1
  44. data/lib/abstracted_responder.rb +1 -0
  45. data/lib/exceptions.rb +61 -0
  46. data/vendor/assets/components/jquery/.bower.json +38 -0
  47. data/vendor/assets/components/jquery/MIT-LICENSE.txt +21 -0
  48. data/vendor/assets/components/jquery/bower.json +28 -0
  49. data/vendor/assets/components/jquery/dist/jquery.js +9210 -0
  50. data/vendor/assets/components/jquery/dist/jquery.min.js +5 -0
  51. data/vendor/assets/components/jquery/dist/jquery.min.map +1 -0
  52. data/vendor/assets/components/jquery/src/ajax.js +786 -0
  53. data/vendor/assets/components/jquery/src/ajax/jsonp.js +89 -0
  54. data/vendor/assets/components/jquery/src/ajax/load.js +75 -0
  55. data/vendor/assets/components/jquery/src/ajax/parseJSON.js +13 -0
  56. data/vendor/assets/components/jquery/src/ajax/parseXML.js +28 -0
  57. data/vendor/assets/components/jquery/src/ajax/script.js +64 -0
  58. data/vendor/assets/components/jquery/src/ajax/var/nonce.js +5 -0
  59. data/vendor/assets/components/jquery/src/ajax/var/rquery.js +3 -0
  60. data/vendor/assets/components/jquery/src/ajax/xhr.js +136 -0
  61. data/vendor/assets/components/jquery/src/attributes.js +11 -0
  62. data/vendor/assets/components/jquery/src/attributes/attr.js +141 -0
  63. data/vendor/assets/components/jquery/src/attributes/classes.js +158 -0
  64. data/vendor/assets/components/jquery/src/attributes/prop.js +94 -0
  65. data/vendor/assets/components/jquery/src/attributes/support.js +35 -0
  66. data/vendor/assets/components/jquery/src/attributes/val.js +161 -0
  67. data/vendor/assets/components/jquery/src/callbacks.js +205 -0
  68. data/vendor/assets/components/jquery/src/core.js +502 -0
  69. data/vendor/assets/components/jquery/src/core/access.js +60 -0
  70. data/vendor/assets/components/jquery/src/core/init.js +123 -0
  71. data/vendor/assets/components/jquery/src/core/parseHTML.js +39 -0
  72. data/vendor/assets/components/jquery/src/core/ready.js +97 -0
  73. data/vendor/assets/components/jquery/src/core/var/rsingleTag.js +4 -0
  74. data/vendor/assets/components/jquery/src/css.js +450 -0
  75. data/vendor/assets/components/jquery/src/css/addGetHookIf.js +22 -0
  76. data/vendor/assets/components/jquery/src/css/curCSS.js +57 -0
  77. data/vendor/assets/components/jquery/src/css/defaultDisplay.js +70 -0
  78. data/vendor/assets/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  79. data/vendor/assets/components/jquery/src/css/support.js +96 -0
  80. data/vendor/assets/components/jquery/src/css/swap.js +28 -0
  81. data/vendor/assets/components/jquery/src/css/var/cssExpand.js +3 -0
  82. data/vendor/assets/components/jquery/src/css/var/getStyles.js +12 -0
  83. data/vendor/assets/components/jquery/src/css/var/isHidden.js +13 -0
  84. data/vendor/assets/components/jquery/src/css/var/rmargin.js +3 -0
  85. data/vendor/assets/components/jquery/src/css/var/rnumnonpx.js +5 -0
  86. data/vendor/assets/components/jquery/src/data.js +178 -0
  87. data/vendor/assets/components/jquery/src/data/Data.js +181 -0
  88. data/vendor/assets/components/jquery/src/data/accepts.js +20 -0
  89. data/vendor/assets/components/jquery/src/data/var/data_priv.js +5 -0
  90. data/vendor/assets/components/jquery/src/data/var/data_user.js +5 -0
  91. data/vendor/assets/components/jquery/src/deferred.js +149 -0
  92. data/vendor/assets/components/jquery/src/deprecated.js +13 -0
  93. data/vendor/assets/components/jquery/src/dimensions.js +50 -0
  94. data/vendor/assets/components/jquery/src/effects.js +648 -0
  95. data/vendor/assets/components/jquery/src/effects/Tween.js +114 -0
  96. data/vendor/assets/components/jquery/src/effects/animatedSelector.js +13 -0
  97. data/vendor/assets/components/jquery/src/event.js +868 -0
  98. data/vendor/assets/components/jquery/src/event/ajax.js +13 -0
  99. data/vendor/assets/components/jquery/src/event/alias.js +39 -0
  100. data/vendor/assets/components/jquery/src/event/support.js +9 -0
  101. data/vendor/assets/components/jquery/src/exports/amd.js +24 -0
  102. data/vendor/assets/components/jquery/src/exports/global.js +32 -0
  103. data/vendor/assets/components/jquery/src/intro.js +44 -0
  104. data/vendor/assets/components/jquery/src/jquery.js +37 -0
  105. data/vendor/assets/components/jquery/src/manipulation.js +580 -0
  106. data/vendor/assets/components/jquery/src/manipulation/_evalUrl.js +18 -0
  107. data/vendor/assets/components/jquery/src/manipulation/support.js +32 -0
  108. data/vendor/assets/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  109. data/vendor/assets/components/jquery/src/offset.js +207 -0
  110. data/vendor/assets/components/jquery/src/outro.js +1 -0
  111. data/vendor/assets/components/jquery/src/queue.js +142 -0
  112. data/vendor/assets/components/jquery/src/queue/delay.js +22 -0
  113. data/vendor/assets/components/jquery/src/selector-native.js +172 -0
  114. data/vendor/assets/components/jquery/src/selector-sizzle.js +14 -0
  115. data/vendor/assets/components/jquery/src/selector.js +1 -0
  116. data/vendor/assets/components/jquery/src/serialize.js +111 -0
  117. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.js +2067 -0
  118. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  119. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  120. data/vendor/assets/components/jquery/src/traversing.js +199 -0
  121. data/vendor/assets/components/jquery/src/traversing/findFilter.js +100 -0
  122. data/vendor/assets/components/jquery/src/traversing/var/rneedsContext.js +6 -0
  123. data/vendor/assets/components/jquery/src/var/arr.js +3 -0
  124. data/vendor/assets/components/jquery/src/var/class2type.js +4 -0
  125. data/vendor/assets/components/jquery/src/var/concat.js +5 -0
  126. data/vendor/assets/components/jquery/src/var/hasOwn.js +5 -0
  127. data/vendor/assets/components/jquery/src/var/indexOf.js +5 -0
  128. data/vendor/assets/components/jquery/src/var/pnum.js +3 -0
  129. data/vendor/assets/components/jquery/src/var/push.js +5 -0
  130. data/vendor/assets/components/jquery/src/var/rnotwhite.js +3 -0
  131. data/vendor/assets/components/jquery/src/var/slice.js +5 -0
  132. data/vendor/assets/components/jquery/src/var/strundefined.js +3 -0
  133. data/vendor/assets/components/jquery/src/var/support.js +4 -0
  134. data/vendor/assets/components/jquery/src/var/toString.js +5 -0
  135. data/vendor/assets/components/jquery/src/wrap.js +79 -0
  136. data/vendor/assets/components/microplugin/.bower.json +38 -0
  137. data/vendor/assets/components/microplugin/.gitignore +2 -0
  138. data/vendor/assets/components/microplugin/.npmignore +3 -0
  139. data/vendor/assets/components/microplugin/README.md +115 -0
  140. data/vendor/assets/components/microplugin/bower.json +22 -0
  141. data/vendor/assets/components/microplugin/package.json +15 -0
  142. data/vendor/assets/components/microplugin/src/microplugin.js +135 -0
  143. data/vendor/assets/components/selectize/.bower.json +60 -0
  144. data/vendor/assets/components/selectize/.gitignore +5 -0
  145. data/vendor/assets/components/selectize/LICENSE +202 -0
  146. data/vendor/assets/components/selectize/README.md +105 -0
  147. data/vendor/assets/components/selectize/bower.json +40 -0
  148. data/vendor/assets/components/selectize/dist/css/selectize.bootstrap2.css +487 -0
  149. data/vendor/assets/components/selectize/dist/css/selectize.bootstrap3.css +401 -0
  150. data/vendor/assets/components/selectize/dist/css/selectize.css +317 -0
  151. data/vendor/assets/components/selectize/dist/css/selectize.default.css +387 -0
  152. data/vendor/assets/components/selectize/dist/css/selectize.legacy.css +364 -0
  153. data/vendor/assets/components/selectize/dist/js/selectize.js +3058 -0
  154. data/vendor/assets/components/selectize/dist/js/selectize.min.js +3 -0
  155. data/vendor/assets/components/selectize/dist/js/standalone/selectize.js +3667 -0
  156. data/vendor/assets/components/selectize/dist/js/standalone/selectize.min.js +3 -0
  157. data/vendor/assets/components/selectize/dist/less/plugins/drag_drop.less +16 -0
  158. data/vendor/assets/components/selectize/dist/less/plugins/dropdown_header.less +20 -0
  159. data/vendor/assets/components/selectize/dist/less/plugins/optgroup_columns.less +17 -0
  160. data/vendor/assets/components/selectize/dist/less/plugins/remove_button.less +37 -0
  161. data/vendor/assets/components/selectize/dist/less/selectize.bootstrap2.less +161 -0
  162. data/vendor/assets/components/selectize/dist/less/selectize.bootstrap3.less +150 -0
  163. data/vendor/assets/components/selectize/dist/less/selectize.default.less +84 -0
  164. data/vendor/assets/components/selectize/dist/less/selectize.legacy.less +75 -0
  165. data/vendor/assets/components/selectize/dist/less/selectize.less +295 -0
  166. data/vendor/assets/components/selectize/karma.conf.js +107 -0
  167. data/vendor/assets/components/sifter/.bower.json +44 -0
  168. data/vendor/assets/components/sifter/.gitignore +3 -0
  169. data/vendor/assets/components/sifter/.npmignore +4 -0
  170. data/vendor/assets/components/sifter/README.md +149 -0
  171. data/vendor/assets/components/sifter/bower.json +23 -0
  172. data/vendor/assets/components/sifter/package.json +48 -0
  173. data/vendor/assets/components/sifter/sifter.js +471 -0
  174. data/vendor/assets/components/sifter/sifter.min.js +2 -0
  175. data/vendor/assets/components/sweetalert/.bower.json +36 -0
  176. data/vendor/assets/components/sweetalert/.editorconfig +11 -0
  177. data/vendor/assets/components/sweetalert/.gitignore +5 -0
  178. data/vendor/assets/components/sweetalert/.jshintrc +11 -0
  179. data/vendor/assets/components/sweetalert/.travis.yml +6 -0
  180. data/vendor/assets/components/sweetalert/LICENSE +22 -0
  181. data/vendor/assets/components/sweetalert/README.md +157 -0
  182. data/vendor/assets/components/sweetalert/bower.json +25 -0
  183. data/vendor/assets/components/sweetalert/dev/gulpfile-wrap-template.js +18 -0
  184. data/vendor/assets/components/sweetalert/dev/ie9.css +23 -0
  185. data/vendor/assets/components/sweetalert/dev/loader-animation.css +209 -0
  186. data/vendor/assets/components/sweetalert/dev/modules/default-params.js +26 -0
  187. data/vendor/assets/components/sweetalert/dev/modules/handle-click.js +128 -0
  188. data/vendor/assets/components/sweetalert/dev/modules/handle-dom.js +161 -0
  189. data/vendor/assets/components/sweetalert/dev/modules/handle-key.js +73 -0
  190. data/vendor/assets/components/sweetalert/dev/modules/handle-swal-dom.js +148 -0
  191. data/vendor/assets/components/sweetalert/dev/modules/injected-html.js +69 -0
  192. data/vendor/assets/components/sweetalert/dev/modules/set-params.js +221 -0
  193. data/vendor/assets/components/sweetalert/dev/modules/utils.js +71 -0
  194. data/vendor/assets/components/sweetalert/dev/sweetalert.es6.js +311 -0
  195. data/vendor/assets/components/sweetalert/dev/sweetalert.scss +648 -0
  196. data/vendor/assets/components/sweetalert/dist/sweetalert-dev.js +1281 -0
  197. data/vendor/assets/components/sweetalert/dist/sweetalert.css +932 -0
  198. data/vendor/assets/components/sweetalert/dist/sweetalert.min.js +1 -0
  199. data/vendor/assets/components/sweetalert/example/example.css +442 -0
  200. data/vendor/assets/components/sweetalert/example/example.scss +580 -0
  201. data/vendor/assets/components/sweetalert/example/images/logo_big.png +0 -0
  202. data/vendor/assets/components/sweetalert/example/images/logo_big@2x.png +0 -0
  203. data/vendor/assets/components/sweetalert/example/images/logo_small.png +0 -0
  204. data/vendor/assets/components/sweetalert/example/images/logo_small@2x.png +0 -0
  205. data/vendor/assets/components/sweetalert/example/images/te-logo-small.svg +12 -0
  206. data/vendor/assets/components/sweetalert/example/images/thumbs-up.jpg +0 -0
  207. data/vendor/assets/components/sweetalert/example/images/vs_icon.png +0 -0
  208. data/vendor/assets/components/sweetalert/example/images/vs_icon@2x.png +0 -0
  209. data/vendor/assets/components/sweetalert/gulpfile.js +97 -0
  210. data/vendor/assets/components/sweetalert/index.html +584 -0
  211. data/vendor/assets/components/sweetalert/package.json +45 -0
  212. data/vendor/assets/components/sweetalert/sweetalert.gif +0 -0
  213. data/vendor/assets/components/sweetalert/test/index.html +20 -0
  214. data/vendor/assets/components/sweetalert/test/tests.js +143 -0
  215. data/vendor/assets/components/sweetalert/themes/facebook/facebook.css +111 -0
  216. data/vendor/assets/components/sweetalert/themes/facebook/facebook.scss +146 -0
  217. data/vendor/assets/components/sweetalert/themes/google/google.css +115 -0
  218. data/vendor/assets/components/sweetalert/themes/google/google.scss +148 -0
  219. data/vendor/assets/components/sweetalert/themes/twitter/twitter.css +140 -0
  220. data/vendor/assets/components/sweetalert/themes/twitter/twitter.scss +177 -0
  221. metadata +214 -5
  222. data/abstracted-0.0.4.gem +0 -0
  223. data/abstracted.gemspec +0 -51
  224. data/app/views/abstract_resources/index.html.erb +0 -1
@@ -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 i=c.extend({},y["default"]);switch(typeof s){case"string":i.title=s,i.text=arguments[1]||"",i.type=arguments[2]||"";break;case"object":if(s.title===n)return c.logStr('Missing "title" argument!'),!1;i.title=s.title;for(var p in y["default"])i[p]=o(p);i.confirmButtonText=i.showCancelButton?"Confirm":y["default"].confirmButtonText,i.confirmButtonText=o("confirmButtonText"),i.doneFunction=arguments[1]||null;break;default:return c.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof s),!1}g["default"](i),d.fixVerticalPosition(),d.openModal(arguments[1]);for(var v=d.getModal(),h=v.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],w=function(e){return f.handleButton(e,i,v)},C=0;C<h.length;C++)for(var S=0;S<b.length;S++){var x=b[S];h[C][x]=w}d.getOverlay().onclick=w,a=e.onkeydown;var k=function(e){return m["default"](e,i,v)};e.onkeydown=k,e.onfocus=function(){setTimeout(function(){r!==n&&(r.focus(),r=n)},0)},l.enableButtons()},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,setTimeout(function(){s.enableButtons()},1),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")},s.disableButtons=l.disableButtons=function(){var e=d.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},s.enableButtons=l.enableButtons=function(){var e=d.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},"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:"#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 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(),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()},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 <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],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,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,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);
@@ -0,0 +1,442 @@
1
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300);
2
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700);
3
+ body {
4
+ background-color: #f2f4f6;
5
+ font-family: 'Open Sans', sans-serif;
6
+ text-align: center; }
7
+
8
+ h1 {
9
+ background-image: url("images/logo_big.png");
10
+ background-image: -webkit-image-set(url("images/logo_big.png") 1x, url("images/logo_big@2x.png") 2x);
11
+ width: 385px;
12
+ height: 81px;
13
+ text-indent: -9999px;
14
+ white-space: nowrap;
15
+ margin: 50px auto; }
16
+ @media all and (max-width: 420px) {
17
+ h1 {
18
+ width: 300px;
19
+ background-size: contain;
20
+ background-repeat: no-repeat;
21
+ background-position: center; } }
22
+ @media all and (max-width: 330px) {
23
+ h1 {
24
+ width: 250px; } }
25
+
26
+ h2 {
27
+ font-size: 20px;
28
+ color: #A9B2BC;
29
+ line-height: 25px;
30
+ text-transform: uppercase;
31
+ font-weight: 300;
32
+ text-align: center;
33
+ display: block; }
34
+
35
+ h3 {
36
+ font-size: 28px;
37
+ color: #C7CCD1;
38
+ text-transform: uppercase;
39
+ font-family: 'Open Sans Condensed', sans-serif;
40
+ margin-top: 100px;
41
+ text-align: center;
42
+ position: relative; }
43
+ h3#download-section {
44
+ margin-top: 50px;
45
+ padding-top: 40px; }
46
+ h3::after {
47
+ content: "";
48
+ background-color: #e2e5e8;
49
+ height: 4px;
50
+ width: 700px;
51
+ left: 50%;
52
+ margin-left: -350px;
53
+ position: absolute;
54
+ margin-top: -50px;
55
+ border-radius: 2px; }
56
+ @media all and (max-width: 740px) {
57
+ h3::after {
58
+ width: auto;
59
+ left: 20px;
60
+ right: 20px;
61
+ margin-left: 0; } }
62
+
63
+ a {
64
+ text-decoration: none; }
65
+
66
+ p {
67
+ max-width: 826px;
68
+ margin: 30px auto;
69
+ font-size: 17px;
70
+ font-weight: 300;
71
+ color: #848D94;
72
+ line-height: 25px;
73
+ text-align: left; }
74
+ p.center {
75
+ text-align: center; }
76
+ p strong {
77
+ color: #8A8F94;
78
+ font-weight: 600; }
79
+ p a {
80
+ color: #9ECADF;
81
+ font-weight: 600; }
82
+ p a:hover {
83
+ text-decoration: underline; }
84
+ p a.twitter {
85
+ color: #5eaade; }
86
+ p a.dribbble {
87
+ color: #f26798; }
88
+ p a.github {
89
+ color: #323131; }
90
+
91
+ button, .button {
92
+ background-color: #AEDEF4;
93
+ color: white;
94
+ border: none;
95
+ box-shadow: none;
96
+ font-size: 17px;
97
+ font-weight: 500;
98
+ font-weight: 600;
99
+ border-radius: 3px;
100
+ padding: 15px 35px;
101
+ margin: 26px 5px 0 5px;
102
+ cursor: pointer; }
103
+ button:focus, .button:focus {
104
+ outline: none; }
105
+ button:hover, .button:hover {
106
+ background-color: #a1d9f2; }
107
+ button:active, .button:active {
108
+ background-color: #81ccee; }
109
+ button.cancel, .button.cancel {
110
+ background-color: #D0D0D0; }
111
+ button.cancel:hover, .button.cancel:hover {
112
+ background-color: #c8c8c8; }
113
+ button.cancel:active, .button.cancel:active {
114
+ background-color: #b6b6b6; }
115
+ button.download, .button.download {
116
+ position: fixed;
117
+ right: 30px;
118
+ top: 0;
119
+ background-color: rgba(255, 255, 255, 0.9);
120
+ color: #ABCADA;
121
+ font-weight: 500;
122
+ text-transform: uppercase;
123
+ z-index: 3; }
124
+ @media all and (max-width: 1278px) {
125
+ button.download, .button.download {
126
+ display: none; } }
127
+
128
+ .center-container {
129
+ max-width: 700px;
130
+ margin: 70px auto; }
131
+
132
+ pre {
133
+ background-color: #49483e;
134
+ color: #f8f8f2;
135
+ padding: 10px;
136
+ border-radius: 5px;
137
+ white-space: pre-line;
138
+ text-align: left;
139
+ font-size: 14px;
140
+ max-width: 600px; }
141
+ pre .str {
142
+ color: #e6db74; }
143
+ pre .func {
144
+ color: #66d9ef; }
145
+ pre .val {
146
+ color: #a381ff; }
147
+ pre .tag {
148
+ color: #e92772; }
149
+ pre .attr {
150
+ color: #a6e22d; }
151
+ pre .arg {
152
+ color: #fd9720; }
153
+
154
+ .showcase {
155
+ background-color: #eceef0;
156
+ padding: 20px;
157
+ display: inline-block;
158
+ width: 383px;
159
+ vertical-align: top;
160
+ position: relative; }
161
+ @media all and (max-width: 865px) {
162
+ .showcase {
163
+ margin: 5px auto;
164
+ padding: 46px 20px; } }
165
+ @media all and (max-width: 440px) {
166
+ .showcase {
167
+ width: auto; } }
168
+ .showcase h4 {
169
+ font-size: 16px;
170
+ color: #BCBCBC;
171
+ line-height: 22px;
172
+ margin: 0 auto;
173
+ font-weight: 400; }
174
+ .showcase.sweet h4 {
175
+ width: 117px;
176
+ height: 25px;
177
+ margin-top: -3px;
178
+ text-indent: -9999px;
179
+ background-image: url("images/logo_small.png");
180
+ background-image: -webkit-image-set(url("images/logo_small.png") 1x, url("images/logo_small@2x.png") 2x); }
181
+ .showcase h5 {
182
+ margin-bottom: -7px;
183
+ text-align: left;
184
+ font-weight: 500;
185
+ text-transform: uppercase;
186
+ color: #c2c2c2; }
187
+ .showcase button {
188
+ margin-bottom: 10px; }
189
+ .showcase .vs-icon {
190
+ background-image: url("images/vs_icon.png");
191
+ background-image: -webkit-image-set(url("images/vs_icon.png") 1x, url("images/vs_icon@2x.png") 2x);
192
+ width: 69px;
193
+ height: 69px;
194
+ position: absolute;
195
+ right: -34px;
196
+ top: 60px;
197
+ z-index: 2; }
198
+ @media all and (max-width: 865px) {
199
+ .showcase .vs-icon {
200
+ margin: 5px auto;
201
+ right: auto;
202
+ left: 50%;
203
+ margin-left: -35px;
204
+ top: auto;
205
+ bottom: -35px; } }
206
+
207
+ ul.examples {
208
+ list-style-type: none;
209
+ width: 700px;
210
+ margin: 0 auto;
211
+ text-align: left;
212
+ padding-left: 0; }
213
+ @media all and (max-width: 758px) {
214
+ ul.examples {
215
+ width: auto; } }
216
+ ul.examples li {
217
+ padding-left: 0; }
218
+ ul.examples .ui, ul.examples pre {
219
+ display: inline-block;
220
+ vertical-align: top; }
221
+ @media all and (max-width: 758px) {
222
+ ul.examples .ui, ul.examples pre {
223
+ display: block;
224
+ max-width: none;
225
+ margin: 0 auto; } }
226
+ ul.examples .ui {
227
+ width: 300px;
228
+ text-align: center; }
229
+ ul.examples .ui button {
230
+ margin-top: 12px; }
231
+ ul.examples .ui p {
232
+ text-align: center;
233
+ margin-bottom: 0; }
234
+ ul.examples pre {
235
+ max-width: 370px;
236
+ margin-top: 67px; }
237
+ @media all and (max-width: 758px) {
238
+ ul.examples pre {
239
+ margin-top: 16px !important;
240
+ margin-bottom: 60px; } }
241
+ ul.examples .warning pre {
242
+ margin-top: 93px; }
243
+
244
+ ol {
245
+ max-width: 700px;
246
+ margin: 70px auto;
247
+ list-style-position: inside;
248
+ padding-left: 0; }
249
+ ol li {
250
+ color: #A7ADB2; }
251
+ ol li p {
252
+ margin-bottom: 10px; }
253
+
254
+ table {
255
+ width: 700px;
256
+ font-size: 14px;
257
+ color: #8a8f94;
258
+ margin: 10px auto;
259
+ text-align: left;
260
+ border-collapse: collapse; }
261
+ @media all and (max-width: 750px) {
262
+ table {
263
+ width: auto;
264
+ margin: 10px 20px; } }
265
+ table th {
266
+ background-color: white;
267
+ padding: 9px;
268
+ color: #acb9be;
269
+ font-weight: 400;
270
+ text-align: center;
271
+ position: relative; }
272
+ table th .border-left, table th .border-right {
273
+ position: absolute;
274
+ background-color: white;
275
+ border-radius: 50%;
276
+ top: 0;
277
+ left: -17px;
278
+ width: 37px;
279
+ height: 37px; }
280
+ table th .border-right {
281
+ left: auto;
282
+ right: -17px; }
283
+ @media all and (max-width: 750px) {
284
+ table th:nth-child(2) {
285
+ display: none; } }
286
+ table td {
287
+ padding: 10px 20px;
288
+ vertical-align: top; }
289
+ table td:first-child {
290
+ padding-left: 0px; }
291
+ table td:last-child {
292
+ padding-right: 0px; }
293
+ @media all and (max-width: 750px) {
294
+ table td:nth-child(2) {
295
+ display: none; } }
296
+ @media all and (max-width: 360px) {
297
+ table td {
298
+ padding: 10px 4px; }
299
+ table td b {
300
+ font-size: 13px; } }
301
+
302
+ footer {
303
+ margin-top: 100px;
304
+ padding-bottom: 30px;
305
+ color: #9A999F;
306
+ display: inline-block;
307
+ position: relative;
308
+ color: gray;
309
+ font-weight: 400;
310
+ color: #93a1aa;
311
+ font-weight: 300; }
312
+ footer .te-logo {
313
+ text-indent: -99999px;
314
+ background-size: contain;
315
+ background-repeat: no-repeat;
316
+ background-position: center center;
317
+ height: 16px;
318
+ width: 16px;
319
+ display: inline-block;
320
+ margin-right: 5px;
321
+ background-image: url("images/te-logo-small.svg");
322
+ position: absolute;
323
+ left: -22px;
324
+ top: 3px; }
325
+
326
+ .sweet-alert.twitter {
327
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
328
+ padding: 15px;
329
+ padding-top: 55px;
330
+ text-align: right;
331
+ border-radius: 6px;
332
+ box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.11), 0px 6px 30px rgba(0, 0, 0, 0.14); }
333
+ .sweet-alert.twitter ~ .sweet-overlay {
334
+ background: rgba(41, 47, 51, 0.9); }
335
+ .sweet-alert.twitter h2 {
336
+ position: absolute;
337
+ top: 0;
338
+ left: 0;
339
+ right: 0;
340
+ height: 40px;
341
+ line-height: 40px;
342
+ font-size: 16px;
343
+ font-weight: 400;
344
+ color: #8899a6;
345
+ margin: 0;
346
+ color: #66757f;
347
+ border-bottom: 1px solid #e1e8ed; }
348
+ .sweet-alert.twitter p {
349
+ display: block;
350
+ text-align: center;
351
+ color: #66757f;
352
+ font-weight: 400;
353
+ font-size: 13px;
354
+ margin-top: 7px; }
355
+ .sweet-alert.twitter .sa-button-container {
356
+ background-color: #f5f8fa;
357
+ border-top: 1px solid #e1e8ed;
358
+ box-shadow: 0px -1px 0px white;
359
+ margin: -15px;
360
+ margin-top: 0; }
361
+ .sweet-alert.twitter[data-has-confirm-button=false][data-has-cancel-button=false] {
362
+ padding-bottom: 10px; }
363
+ .sweet-alert.twitter[data-has-confirm-button=false][data-has-cancel-button=false] .sa-button-container {
364
+ display: none; }
365
+ .sweet-alert.twitter button {
366
+ border-radius: 2px;
367
+ box-shadow: none !important;
368
+ text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
369
+ margin: 17px 0px;
370
+ border-radius: 4px;
371
+ font-size: 14px;
372
+ font-weight: 600;
373
+ padding: 8px 16px;
374
+ position: relative; }
375
+ .sweet-alert.twitter button:focus, .sweet-alert.twitter button.cancel:focus {
376
+ box-shadow: none !important; }
377
+ .sweet-alert.twitter button:focus::before, .sweet-alert.twitter button.cancel:focus::before {
378
+ content: "";
379
+ position: absolute;
380
+ left: -5px;
381
+ top: -5px;
382
+ right: -5px;
383
+ bottom: -5px;
384
+ border: 2px solid #a5b0b4;
385
+ border-radius: 8px; }
386
+ .sweet-alert.twitter button.confirm {
387
+ background-color: #55acee !important;
388
+ background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05));
389
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#0C000000)";
390
+ border: 1px solid #3b88c3;
391
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
392
+ margin-right: 15px; }
393
+ .sweet-alert.twitter button.confirm:hover {
394
+ background-color: #55acee;
395
+ background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.15));
396
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#26000000)";
397
+ border-color: #3b88c3; }
398
+ .sweet-alert.twitter button.cancel {
399
+ color: #66757e;
400
+ background-color: #f5f8fa;
401
+ background-image: linear-gradient(#fff, #f5f8fa);
402
+ text-shadow: 0px -1px 0px white;
403
+ margin-right: 9px;
404
+ border: 1px solid #e1e8ed; }
405
+ .sweet-alert.twitter button.cancel:hover, .sweet-alert.twitter button.cancel:focus:hover {
406
+ background-color: #e1e8ed;
407
+ background-image: linear-gradient(#fff, #e1e8ed);
408
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
409
+ border-color: #e1e8ed; }
410
+ .sweet-alert.twitter button.cancel:focus {
411
+ background: #fff;
412
+ border-color: #fff; }
413
+ .sweet-alert.twitter .sa-icon {
414
+ transform: scale(0.72);
415
+ margin-bottom: -2px;
416
+ margin-top: -10px; }
417
+ .sweet-alert.twitter input {
418
+ border: 1px solid #e1e8ed;
419
+ border-radius: 3px;
420
+ padding: 10px 7px;
421
+ height: auto;
422
+ box-shadow: none;
423
+ font-size: 13px;
424
+ margin: 10px 0; }
425
+ .sweet-alert.twitter input:focus {
426
+ border-color: #94A1A6;
427
+ box-shadow: inset 0 0 0 1px rgba(77, 99, 107, 0.7); }
428
+ .sweet-alert.twitter fieldset .sa-input-error {
429
+ display: none; }
430
+ .sweet-alert.twitter .sa-error-container {
431
+ text-align: center;
432
+ border: none;
433
+ background-color: #fbedc0;
434
+ margin-bottom: 6px; }
435
+ .sweet-alert.twitter .sa-error-container.show {
436
+ border: 1px solid #f0e1b9; }
437
+ .sweet-alert.twitter .sa-error-container .icon {
438
+ display: none; }
439
+ .sweet-alert.twitter .sa-error-container p {
440
+ color: #292f33;
441
+ font-weight: 600;
442
+ margin-top: 0; }
@@ -0,0 +1,580 @@
1
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300); // Open Sans font
2
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700); // Condensed
3
+
4
+ @mixin retina-background($url, $type:png) {
5
+ background-image: url("#{$url}.#{$type}");
6
+ background-image: -webkit-image-set(url("#{$url}.#{$type}") 1x,
7
+ url("#{$url}@2x.#{$type}") 2x);
8
+ }
9
+
10
+ body {
11
+ background-color: #f2f4f6;
12
+ font-family: 'Open Sans', sans-serif;
13
+ text-align: center;
14
+ }
15
+
16
+ h1 {
17
+ @include retina-background("images/logo_big");
18
+ width: 385px;
19
+ height: 81px;
20
+ text-indent: -9999px;
21
+ white-space: nowrap;
22
+ margin: 50px auto;
23
+ @media all and (max-width: 420px) {
24
+ width: 300px;
25
+ background-size: contain;
26
+ background-repeat: no-repeat;
27
+ background-position: center;
28
+ }
29
+ @media all and (max-width: 330px) {
30
+ width: 250px;
31
+ }
32
+ }
33
+ h2 {
34
+ font-size: 20px;
35
+ color: #A9B2BC;
36
+ line-height: 25px;
37
+ text-transform: uppercase;
38
+ font-weight: 300;
39
+ text-align: center;
40
+ display: block;
41
+ }
42
+ h3 {
43
+ font-size: 28px;
44
+ color: #C7CCD1;
45
+ text-transform: uppercase;
46
+ font-family: 'Open Sans Condensed', sans-serif;
47
+ margin-top: 100px;
48
+ text-align: center;
49
+ position: relative;
50
+ &#download-section {
51
+ margin-top: 50px;
52
+ padding-top: 40px;
53
+ }
54
+ &::after {
55
+ content: "";
56
+ background-color: #e2e5e8;
57
+ height: 4px;
58
+ width: 700px;
59
+ left: 50%;
60
+ margin-left: -350px;
61
+ position: absolute;
62
+ margin-top: -50px;
63
+ border-radius: 2px;
64
+
65
+ @media all and (max-width: 740px) {
66
+ width: auto;
67
+ left: 20px;
68
+ right: 20px;
69
+ margin-left: 0;
70
+ }
71
+ }
72
+ }
73
+
74
+ a {
75
+ text-decoration: none;
76
+ }
77
+
78
+ p {
79
+ max-width: 826px;
80
+ margin: 30px auto;
81
+ font-size: 17px;
82
+ font-weight: 300;
83
+ color: #848D94;
84
+ line-height: 25px;
85
+ text-align: left;
86
+ &.center {
87
+ text-align: center;
88
+ }
89
+
90
+ strong {
91
+ color: #8A8F94;
92
+ font-weight: 600;
93
+ }
94
+ a {
95
+ color: #9ECADF;
96
+ font-weight: 600;
97
+ &:hover {
98
+ text-decoration: underline;
99
+ }
100
+ &.twitter {
101
+ color: #5eaade;
102
+ }
103
+ &.dribbble {
104
+ color: #f26798;
105
+ }
106
+ &.github {
107
+ color: #323131;
108
+ }
109
+ }
110
+ }
111
+
112
+ button, .button {
113
+ $btnBlue: #AEDEF4;
114
+ $btnGray: #D0D0D0;
115
+
116
+ background-color: $btnBlue;
117
+ color: white;
118
+ border: none;
119
+ box-shadow: none;
120
+ font-size: 17px;
121
+ font-weight: 500;
122
+ font-weight: 600;
123
+ border-radius: 3px;
124
+ padding: 15px 35px;
125
+ margin: 26px 5px 0 5px;
126
+ cursor: pointer;
127
+ &:focus {
128
+ outline: none;
129
+ }
130
+ &:hover {
131
+ background-color: darken($btnBlue, 3%);
132
+ }
133
+ &:active {
134
+ background-color: darken($btnBlue, 10%);
135
+ }
136
+ &.cancel {
137
+ background-color: $btnGray;
138
+ &:hover {
139
+ background-color: darken($btnGray, 3%);
140
+ }
141
+ &:active {
142
+ background-color: darken($btnGray, 10%);
143
+ }
144
+ }
145
+ &.download {
146
+ position: fixed;
147
+ right: 30px;
148
+ top: 0;
149
+ background-color: rgba(white, 0.9);
150
+ color: #ABCADA;
151
+ font-weight: 500;
152
+ text-transform: uppercase;
153
+ z-index: 3;
154
+
155
+ @media all and (max-width: 1278px) {
156
+ display: none;
157
+ }
158
+ }
159
+ }
160
+
161
+ .center-container {
162
+ max-width: 700px;
163
+ margin: 70px auto;
164
+ }
165
+
166
+ pre {
167
+ background-color: #49483e;
168
+ color: #f8f8f2;
169
+ padding: 10px;
170
+ border-radius: 5px;
171
+ white-space: pre-line;
172
+ text-align: left;
173
+ font-size: 14px;
174
+ max-width: 600px;
175
+
176
+ .str {
177
+ color: #e6db74;
178
+ }
179
+ .func {
180
+ color: #66d9ef;
181
+ }
182
+ .val {
183
+ color: #a381ff;
184
+ }
185
+ .tag {
186
+ color: #e92772;
187
+ }
188
+ .attr {
189
+ color: #a6e22d;
190
+ }
191
+ .arg {
192
+ color: #fd9720;
193
+ }
194
+ }
195
+
196
+ .showcase {
197
+ background-color: #eceef0;
198
+ padding: 20px;
199
+ display: inline-block;
200
+ width: 383px;
201
+ vertical-align: top;
202
+ position: relative;
203
+
204
+ @media all and (max-width: 865px) {
205
+ margin: 5px auto;
206
+ padding: 46px 20px;
207
+ }
208
+ @media all and (max-width: 440px) {
209
+ width: auto;
210
+ }
211
+
212
+ h4 {
213
+ font-size: 16px;
214
+ color: #BCBCBC;
215
+ line-height: 22px;
216
+ margin: 0 auto;
217
+ font-weight: 400;
218
+ }
219
+ &.sweet h4 {
220
+ width: 117px;
221
+ height: 25px;
222
+ margin-top: -3px;
223
+ text-indent: -9999px;
224
+ @include retina-background("images/logo_small");
225
+ }
226
+ h5 {
227
+ margin-bottom: -7px;
228
+ text-align: left;
229
+ font-weight: 500;
230
+ text-transform: uppercase;
231
+ color: rgb(194, 194, 194);
232
+ }
233
+
234
+ button {
235
+ margin-bottom: 10px;
236
+ }
237
+
238
+ .vs-icon {
239
+ @include retina-background("images/vs_icon");
240
+ width: 69px;
241
+ height: 69px;
242
+ position: absolute;
243
+ right: -34px;
244
+ top: 60px;
245
+ z-index: 2;
246
+
247
+ @media all and (max-width: 865px) {
248
+ margin: 5px auto;
249
+ right: auto;
250
+ left: 50%;
251
+ margin-left: -35px;
252
+ top: auto;
253
+ bottom: -35px;
254
+ }
255
+ }
256
+ }
257
+
258
+
259
+ ul.examples {
260
+ list-style-type: none;
261
+ width: 700px;
262
+ margin: 0 auto;
263
+ text-align: left;
264
+ padding-left: 0;
265
+ @media all and (max-width: 758px) {
266
+ width: auto;
267
+ }
268
+
269
+ li {
270
+ padding-left: 0;
271
+ }
272
+
273
+ .ui, pre {
274
+ display: inline-block;
275
+ vertical-align: top;
276
+
277
+ @media all and (max-width: 758px) {
278
+ display: block;
279
+ max-width: none;
280
+ margin: 0 auto;
281
+ }
282
+ }
283
+ .ui {
284
+ width: 300px;
285
+ text-align: center;
286
+
287
+ button {
288
+ margin-top: 12px;
289
+ }
290
+
291
+ p {
292
+ text-align: center;
293
+ margin-bottom: 0;
294
+ }
295
+ }
296
+
297
+ pre {
298
+ max-width: 370px;
299
+ margin-top: 67px;
300
+
301
+ @media all and (max-width: 758px) {
302
+ margin-top: 16px !important;
303
+ margin-bottom: 60px;
304
+ }
305
+ }
306
+ .warning pre {
307
+ margin-top: 93px;
308
+ }
309
+ }
310
+
311
+
312
+ ol {
313
+ max-width: 700px;
314
+ margin: 70px auto;
315
+ list-style-position: inside;
316
+ padding-left: 0;
317
+
318
+ li {
319
+ color: #A7ADB2;
320
+
321
+ p {
322
+ margin-bottom: 10px;
323
+ }
324
+ }
325
+ }
326
+
327
+
328
+ table {
329
+ width: 700px;
330
+ font-size: 14px;
331
+ color: #8a8f94;
332
+ margin: 10px auto;
333
+ text-align: left;
334
+ border-collapse: collapse;
335
+ @media all and (max-width: 750px) {
336
+ width: auto;
337
+ margin: 10px 20px;
338
+ }
339
+
340
+ th {
341
+ background-color: white;
342
+ padding: 9px;
343
+ color: rgb(172, 185, 190);
344
+ font-weight: 400;
345
+ text-align: center;
346
+ position: relative;
347
+ .border-left, .border-right {
348
+ position: absolute;
349
+ background-color: white;
350
+ border-radius: 50%;
351
+ top: 0;
352
+ left: -17px;
353
+ width: 37px;
354
+ height: 37px;
355
+ }
356
+ .border-right {
357
+ left: auto;
358
+ right: -17px;
359
+ }
360
+ @media all and (max-width: 750px) {
361
+ &:nth-child(2) {
362
+ display: none;
363
+ }
364
+ }
365
+ }
366
+
367
+ td {
368
+ padding: 10px 20px;
369
+ vertical-align: top;
370
+ &:first-child {
371
+ padding-left: 0px;
372
+ }
373
+ &:last-child {
374
+ padding-right: 0px;
375
+ }
376
+ @media all and (max-width: 750px) {
377
+ &:nth-child(2) {
378
+ display: none;
379
+ }
380
+ }
381
+ @media all and (max-width: 360px) {
382
+ padding: 10px 4px;
383
+ b {
384
+ font-size: 13px;
385
+ }
386
+ }
387
+ }
388
+ }
389
+
390
+ footer {
391
+ margin-top: 100px;
392
+ padding-bottom: 30px;
393
+ color: #9A999F;
394
+ display: inline-block;
395
+ position: relative;
396
+ color: gray;
397
+ font-weight: 400;
398
+ color: rgb(147, 161, 170);
399
+ font-weight: 300;
400
+
401
+ .te-logo {
402
+ text-indent: -99999px;
403
+ background-size: contain;
404
+ background-repeat: no-repeat;
405
+ background-position: center center;
406
+ height: 16px;
407
+ width: 16px;
408
+ display: inline-block;
409
+ margin-right: 5px;
410
+ background-image: url("images/te-logo-small.svg");
411
+ position: absolute;
412
+ left: -22px;
413
+ top: 3px;
414
+ }
415
+ }
416
+
417
+
418
+ // Theme example (Twitter)
419
+ // Twitter Theme for SweetAlert
420
+ // By Tristan Edwards
421
+
422
+ .sweet-alert.twitter {
423
+ $header-height: 40px;
424
+ $footer-height: 66px;
425
+ $text-color: #66757f;
426
+ $padding: 15px;
427
+
428
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
429
+ padding: $padding;
430
+ padding-top: $header-height + $padding;
431
+ text-align: right; // Align buttons
432
+ border-radius: 6px;
433
+ box-shadow: 0px 0px 0px 1px rgba(black, 0.11), 0px 6px 30px rgba(black, 0.14);
434
+
435
+ ~ .sweet-overlay {
436
+ background: rgba(41,47,51,0.9);
437
+ }
438
+
439
+ h2 {
440
+ position: absolute;
441
+ top: 0;
442
+ left: 0;
443
+ right: 0;
444
+ height: $header-height;
445
+ line-height: $header-height;
446
+ font-size: 16px;
447
+ font-weight: 400;
448
+ color: #8899a6;
449
+ margin: 0;
450
+ color: $text-color;
451
+ border-bottom: 1px solid #e1e8ed;
452
+ }
453
+
454
+ p {
455
+ display: block;
456
+ text-align: center;
457
+ color: #66757f;
458
+ font-weight: 400;
459
+ font-size: 13px;
460
+ margin-top: 7px;
461
+ }
462
+
463
+ .sa-button-container {
464
+ background-color: #f5f8fa;
465
+ border-top: 1px solid #e1e8ed;
466
+ box-shadow: 0px -1px 0px white;
467
+ margin: -$padding;
468
+ margin-top: 0;
469
+ }
470
+ &[data-has-confirm-button=false][data-has-cancel-button=false] {
471
+ padding-bottom: 10px;
472
+ .sa-button-container {
473
+ display: none;
474
+ }
475
+ }
476
+
477
+ button {
478
+ border-radius: 2px;
479
+ box-shadow: none !important;
480
+ text-shadow: 0px -1px 0px rgba(black, 0.3);
481
+ margin: 17px 0px;
482
+ border-radius: 4px;
483
+ font-size: 14px;
484
+ font-weight: 600;
485
+ padding: 8px 16px;
486
+ position: relative;
487
+ &:focus, &.cancel:focus {
488
+ box-shadow: none !important;
489
+ &::before {
490
+ content: "";
491
+ position: absolute;
492
+ left: -5px;
493
+ top: -5px;
494
+ right: -5px;
495
+ bottom: -5px;
496
+ border: 2px solid #a5b0b4;
497
+ border-radius: 8px;
498
+ }
499
+ }
500
+
501
+ &.confirm {
502
+ background-color: #55acee !important;
503
+ background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.05));
504
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#0C000000)";
505
+ border: 1px solid #3b88c3;
506
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
507
+ margin-right: $padding;
508
+ &:hover {
509
+ background-color: #55acee;
510
+ background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.15));
511
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#26000000)";
512
+ border-color: #3b88c3;
513
+ }
514
+ }
515
+ &.cancel {
516
+ color: #66757e;
517
+ background-color: #f5f8fa;
518
+ background-image: linear-gradient(#fff,#f5f8fa);
519
+ text-shadow: 0px -1px 0px white;
520
+ margin-right: 9px;
521
+ border: 1px solid #e1e8ed;
522
+ &:hover, &:focus:hover {
523
+ background-color: #e1e8ed;
524
+ background-image: linear-gradient(#fff,#e1e8ed);
525
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
526
+ border-color: #e1e8ed;
527
+ }
528
+ &:focus {
529
+ background: #fff;
530
+ border-color: #fff;
531
+ }
532
+ }
533
+ }
534
+
535
+ .sa-icon {
536
+ transform: scale(0.72);
537
+ margin-bottom: -2px;
538
+ margin-top: -10px;
539
+ }
540
+
541
+ input {
542
+ border: 1px solid #e1e8ed;
543
+ border-radius: 3px;
544
+ padding: 10px 7px;
545
+ height: auto;
546
+ box-shadow: none;
547
+ font-size: 13px;
548
+ margin: 10px 0;
549
+ &:focus {
550
+ border-color: #94A1A6;
551
+ box-shadow: inset 0 0 0 1px rgba(77, 99, 107, 0.7);
552
+ }
553
+ }
554
+
555
+ fieldset .sa-input-error {
556
+ display: none;
557
+ }
558
+
559
+ .sa-error-container {
560
+ text-align: center;
561
+ border: none;
562
+ background-color: #fbedc0;
563
+ margin-bottom: 6px;
564
+ &.show {
565
+ border: 1px solid #f0e1b9;
566
+ }
567
+
568
+ .icon {
569
+ display: none;
570
+ }
571
+ p {
572
+ color: #292f33;
573
+ font-weight: 600;
574
+ margin-top: 0;
575
+ }
576
+ }
577
+ }
578
+
579
+
580
+