From f1c1e5bfbf357dc32ab1ef70d8fd81a5af7a40b8 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 11 Nov 2014 20:40:23 +0100 Subject: [PATCH] Updated Alertify, SelectLanguage --- Site5/Master-v5.master | 3 +- Site5/Pages/v5/User/SelectLanguage.aspx | 7 +- Site5/Scripts/alertify.min.js | 14 +- Site5/Style/alertify.core.css | 139 +++++++++++++++++++ Site5/Style/alertify.css | 170 ------------------------ Site5/Style/alertify.default.css | 83 ++++++++++++ 6 files changed, 230 insertions(+), 186 deletions(-) create mode 100644 Site5/Style/alertify.core.css delete mode 100644 Site5/Style/alertify.css create mode 100644 Site5/Style/alertify.default.css diff --git a/Site5/Master-v5.master b/Site5/Master-v5.master index e4775ece..c6cd7cbd 100644 --- a/Site5/Master-v5.master +++ b/Site5/Master-v5.master @@ -29,7 +29,8 @@ - + + diff --git a/Site5/Pages/v5/User/SelectLanguage.aspx b/Site5/Pages/v5/User/SelectLanguage.aspx index 952855f4..62095aca 100644 --- a/Site5/Pages/v5/User/SelectLanguage.aspx +++ b/Site5/Pages/v5/User/SelectLanguage.aspx @@ -13,15 +13,16 @@ function confirmTranslate() { - /* -- this function doesn't seem to exist? alertify.set({ labels: { ok: "Proceed to Crowdin translation login", cancel: "Do not proceed" } - });*/ + }); - alertify.confirm("Thank you for helping to translate Swarmops.

As the dashboard reloads into on-site translation mode, you will be asked to sign into Crowdin, the swarm-powered translation tool. If you don't have an account at Crowdin, you can create one. Once logged in, you can translate Swarmops on-site into your language.

Click OK to continue logging into Crowdin or creating an account there.", function(response) { + alertify.set({ buttonFocus: "none" }); + + alertify.confirm("Thank you for helping to translate Swarmops.

As the dashboard reloads into on-site translation mode, you will be asked to sign into Crowdin, the swarm-powered translation tool. If you don't have an account at Crowdin, you can create one. Once logged in, you can translate Swarmops on-site into your language.

Do you want to continue logging into Crowdin or creating an account there?

", function(response) { if (response) { // ok document.location = "/Pages/v5/User/SetCulture.aspx?CultureId=af-ZA"; diff --git a/Site5/Scripts/alertify.min.js b/Site5/Scripts/alertify.min.js index fdfdfb8b..65ba19ba 100644 --- a/Site5/Scripts/alertify.min.js +++ b/Site5/Scripts/alertify.min.js @@ -1,12 +1,2 @@ -/** -* Alertify -* An unobtrusive customizable JavaScript notification system -* -* @author Fabien Doiron -* @copyright Fabien Doiron 2012 -* @license MIT -* @link http://www.github.com/fabien-d -* @module Alertify -* @version 0.2.4 -*/ -(function (e, t) { "use strict"; var n = e.document, r; r = function () { var r, i, s, o, u, a, f, l, c, h, p, d, v, m, g, y, b, w, E, S, x, T; return g = { buttons: { holder: '', submit: '', ok: '{{ok}}', cancel: '{{cancel}}' }, input: '', message: '

{{message}}

', log: '
{{message}}
' }, y = 5e3, E = { ENTER: 13, ESC: 27, SPACE: 32 }, S = { ok: "OK", cancel: "Cancel" }, T = [], w = !1, r = function (e) { return n.getElementById(e) }, i = function (i) { var o = r("aResetFocus"), u = r("aOK") || t, f = r("aCancel") || t, l = r("aText") || t, c = r("aForm") || t, p = typeof u != "undefined", d = typeof f != "undefined", v = typeof l != "undefined", m = "", g, y, b, w, S; g = function (e) { b(e), typeof l != "undefined" && (m = l.value), typeof i == "function" && i(!0, m), typeof e.preventDefault != "undefined" && e.preventDefault() }, y = function (e) { b(e), typeof i == "function" && i(!1), typeof e.preventDefault != "undefined" && e.preventDefault() }, b = function (e) { a(), h(n.body, "keyup", w), h(o, "focus", S), v && h(c, "submit", g), p && h(u, "click", g), d && h(f, "click", y) }, w = function (e) { var t = e.keyCode; t === E.SPACE && !v && g(e), t === E.ESC && d && y(e) }, S = function (e) { v ? l.focus() : d ? f.focus() : u.focus() }, s(o, "focus", S), p && s(u, "click", g), d && s(f, "click", y), s(n.body, "keyup", w), v && s(c, "submit", g), e.setTimeout(function () { l ? l.focus() : u.focus() }, 50) }, s = function (e, t, n) { typeof e.addEventListener == "function" ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n) }, o = function (e) { var t = "", n = e.type, r = e.message; t += '
', n === "prompt" && (t += '
'), t += '
', t += g.message.replace("{{message}}", r), n === "prompt" && (t += g.input), t += g.buttons.holder, t += "
", n === "prompt" && (t += "
"), t += 'Reset Focus', t += "
"; switch (n) { case "confirm": t = t.replace("{{buttons}}", g.buttons.cancel + g.buttons.ok), t = t.replace("{{ok}}", S.ok).replace("{{cancel}}", S.cancel); break; case "prompt": t = t.replace("{{buttons}}", g.buttons.cancel + g.buttons.submit), t = t.replace("{{ok}}", S.ok).replace("{{cancel}}", S.cancel); break; case "alert": t = t.replace("{{buttons}}", g.buttons.ok), t = t.replace("{{ok}}", S.ok); break; default: } return b.className = "alertify alertify-show alertify-" + n, m.className = "alertify-cover", t }, u = function (e) { s(e, "click", function () { x.removeChild(e) }), setTimeout(function () { typeof e != "undefined" && e.parentNode === x && x.removeChild(e) }, y) }, a = function () { T.splice(0, 1), T.length > 0 ? c() : (w = !1, b.className = "alertify alertify-hide alertify-hidden", m.className = "alertify-cover alertify-hidden") }, f = function () { n.createElement("nav"), n.createElement("article"), n.createElement("section"), m = n.createElement("div"), m.setAttribute("id", "alertifycover"), m.className = "alertify-cover alertify-hidden", n.body.appendChild(m), b = n.createElement("section"), b.setAttribute("id", "alertify"), b.className = "alertify alertify-hidden", n.body.appendChild(b), x = n.createElement("section"), x.setAttribute("id", "alertifylogs"), x.className = "alertify-logs", n.body.appendChild(x), delete this.init }, l = function (e, t) { var r = n.createElement("article"); r.className = "alertify-log" + (typeof t == "string" && t !== "" ? " alertify-log-" + t : ""), r.innerHTML = e, x.insertBefore(r, x.firstChild), setTimeout(function () { r.className = r.className + " alertify-log-show" }, 50), u(r) }, c = function () { var e = T[0]; w = !0, b.innerHTML = o(e), i(e.callback) }, h = function (e, t, n) { typeof e.removeEventListener == "function" ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n) }, p = function (e, t, n) { var r = function () { if (b && b.scrollTop !== null) return; r() }; if (typeof e != "string") throw new Error("message must be a string"); if (typeof t != "string") throw new Error("type must be a string"); if (typeof n != "undefined" && typeof n != "function") throw new Error("fn must be a function"); return typeof this.init == "function" && (this.init(), r()), T.push({ type: t, message: e, callback: n }), w || c(), this }, d = function (e) { return function (t) { v(t, e) } }, v = function (e, t) { var n = function () { if (x && x.scrollTop !== null) return; n() }; return typeof this.init == "function" && (this.init(), n()), l(e, t), this }, { alert: function (e, t) { return p.call(this, e, "alert", t), this }, confirm: function (e, t) { return p.call(this, e, "confirm", t), this }, extend: d, init: f, log: function (e, t) { return v.call(this, e, t), this }, prompt: function (e, t) { return p.call(this, e, "prompt", t), this }, success: function (e) { return v.call(this, e, "success"), this }, error: function (e) { return v.call(this, e, "error"), this }, delay: y, labels: S} }, typeof define == "function" ? define([], function () { return new r }) : typeof e.alertify == "undefined" && (e.alertify = new r) })(this); +/*! alertify - v0.3.11 - 2013-10-08 */ +!function (a, b) { "use strict"; var c, d = a.document; c = function () { var c, e, f, g, h, i, j, k, l, m, n, o, p, q = {}, r = {}, s = !1, t = { ENTER: 13, ESC: 27, SPACE: 32 }, u = []; return r = { buttons: { holder: '', submit: '', ok: '', cancel: '' }, input: '
', message: '

{{message}}

', log: '
{{message}}
' }, p = function () { var a, c, e = !1, f = d.createElement("fakeelement"), g = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "otransitionend", transition: "transitionend" }; for (a in g) if (f.style[a] !== b) { c = g[a], e = !0; break } return { type: c, supported: e } }, c = function (a) { return d.getElementById(a) }, q = { labels: { ok: "OK", cancel: "Cancel" }, delay: 5e3, buttonReverse: !1, buttonFocus: "ok", transition: b, addListeners: function (a) { var b, c, i, j, k, l = "undefined" != typeof f, m = "undefined" != typeof e, n = "undefined" != typeof o, p = "", q = this; b = function (b) { return "undefined" != typeof b.preventDefault && b.preventDefault(), i(b), "undefined" != typeof o && (p = o.value), "function" == typeof a && ("undefined" != typeof o ? a(!0, p) : a(!0)), !1 }, c = function (b) { return "undefined" != typeof b.preventDefault && b.preventDefault(), i(b), "function" == typeof a && a(!1), !1 }, i = function () { q.hide(), q.unbind(d.body, "keyup", j), q.unbind(g, "focus", k), l && q.unbind(f, "click", b), m && q.unbind(e, "click", c) }, j = function (a) { var d = a.keyCode; (d === t.SPACE && !n || n && d === t.ENTER) && b(a), d === t.ESC && m && c(a) }, k = function () { n ? o.focus() : !m || q.buttonReverse ? f.focus() : e.focus() }, this.bind(g, "focus", k), this.bind(h, "focus", k), l && this.bind(f, "click", b), m && this.bind(e, "click", c), this.bind(d.body, "keyup", j), this.transition.supported || this.setFocus() }, bind: function (a, b, c) { "function" == typeof a.addEventListener ? a.addEventListener(b, c, !1) : a.attachEvent && a.attachEvent("on" + b, c) }, handleErrors: function () { if ("undefined" != typeof a.onerror) { var b = this; return a.onerror = function (a, c, d) { b.error("[" + a + " on line " + d + " of " + c + "]", 0) }, !0 } return !1 }, appendButtons: function (a, b) { return this.buttonReverse ? b + a : a + b }, build: function (a) { var b = "", c = a.type, d = a.message, e = a.cssClass || ""; switch (b += '
', b += 'Reset Focus', "none" === q.buttonFocus && (b += ''), "prompt" === c && (b += '
'), b += '
', b += r.message.replace("{{message}}", d), "prompt" === c && (b += r.input), b += r.buttons.holder, b += "
", "prompt" === c && (b += "
"), b += 'Reset Focus', b += "
", c) { case "confirm": b = b.replace("{{buttons}}", this.appendButtons(r.buttons.cancel, r.buttons.ok)), b = b.replace("{{ok}}", this.labels.ok).replace("{{cancel}}", this.labels.cancel); break; case "prompt": b = b.replace("{{buttons}}", this.appendButtons(r.buttons.cancel, r.buttons.submit)), b = b.replace("{{ok}}", this.labels.ok).replace("{{cancel}}", this.labels.cancel); break; case "alert": b = b.replace("{{buttons}}", r.buttons.ok), b = b.replace("{{ok}}", this.labels.ok) } return l.className = "alertify alertify-" + c + " " + e, k.className = "alertify-cover", b }, close: function (a, b) { var c, d, e = b && !isNaN(b) ? +b : this.delay, f = this; this.bind(a, "click", function () { c(a) }), d = function (a) { a.stopPropagation(), f.unbind(this, f.transition.type, d), m.removeChild(this), m.hasChildNodes() || (m.className += " alertify-logs-hidden") }, c = function (a) { "undefined" != typeof a && a.parentNode === m && (f.transition.supported ? (f.bind(a, f.transition.type, d), a.className += " alertify-log-hide") : (m.removeChild(a), m.hasChildNodes() || (m.className += " alertify-logs-hidden"))) }, 0 !== b && setTimeout(function () { c(a) }, e) }, dialog: function (a, b, c, e, f) { j = d.activeElement; var g = function () { m && null !== m.scrollTop && k && null !== k.scrollTop || g() }; if ("string" != typeof a) throw new Error("message must be a string"); if ("string" != typeof b) throw new Error("type must be a string"); if ("undefined" != typeof c && "function" != typeof c) throw new Error("fn must be a function"); return this.init(), g(), u.push({ type: b, message: a, callback: c, placeholder: e, cssClass: f }), s || this.setup(), this }, extend: function (a) { if ("string" != typeof a) throw new Error("extend method must have exactly one paramter"); return function (b, c) { return this.log(b, a, c), this } }, hide: function () { var a, b = this; u.splice(0, 1), u.length > 0 ? this.setup(!0) : (s = !1, a = function (c) { c.stopPropagation(), b.unbind(l, b.transition.type, a) }, this.transition.supported ? (this.bind(l, this.transition.type, a), l.className = "alertify alertify-hide alertify-hidden") : l.className = "alertify alertify-hide alertify-hidden alertify-isHidden", k.className = "alertify-cover alertify-cover-hidden", j.focus()) }, init: function () { d.createElement("nav"), d.createElement("article"), d.createElement("section"), null == c("alertify-cover") && (k = d.createElement("div"), k.setAttribute("id", "alertify-cover"), k.className = "alertify-cover alertify-cover-hidden", d.body.appendChild(k)), null == c("alertify") && (s = !1, u = [], l = d.createElement("section"), l.setAttribute("id", "alertify"), l.className = "alertify alertify-hidden", d.body.appendChild(l)), null == c("alertify-logs") && (m = d.createElement("section"), m.setAttribute("id", "alertify-logs"), m.className = "alertify-logs alertify-logs-hidden", d.body.appendChild(m)), d.body.setAttribute("tabindex", "0"), this.transition = p() }, log: function (a, b, c) { var d = function () { m && null !== m.scrollTop || d() }; return this.init(), d(), m.className = "alertify-logs", this.notify(a, b, c), this }, notify: function (a, b, c) { var e = d.createElement("article"); e.className = "alertify-log" + ("string" == typeof b && "" !== b ? " alertify-log-" + b : ""), e.innerHTML = a, m.appendChild(e), setTimeout(function () { e.className = e.className + " alertify-log-show" }, 50), this.close(e, c) }, set: function (a) { var b; if ("object" != typeof a && a instanceof Array) throw new Error("args must be an object"); for (b in a) a.hasOwnProperty(b) && (this[b] = a[b]) }, setFocus: function () { o ? (o.focus(), o.select()) : i.focus() }, setup: function (a) { var d, j = u[0], k = this; s = !0, d = function (a) { a.stopPropagation(), k.setFocus(), k.unbind(l, k.transition.type, d) }, this.transition.supported && !a && this.bind(l, this.transition.type, d), l.innerHTML = this.build(j), g = c("alertify-resetFocus"), h = c("alertify-resetFocusBack"), f = c("alertify-ok") || b, e = c("alertify-cancel") || b, i = "cancel" === q.buttonFocus ? e : "none" === q.buttonFocus ? c("alertify-noneFocus") : f, o = c("alertify-text") || b, n = c("alertify-form") || b, "string" == typeof j.placeholder && "" !== j.placeholder && (o.value = j.placeholder), a && this.setFocus(), this.addListeners(j.callback) }, unbind: function (a, b, c) { "function" == typeof a.removeEventListener ? a.removeEventListener(b, c, !1) : a.detachEvent && a.detachEvent("on" + b, c) } }, { alert: function (a, b, c) { return q.dialog(a, "alert", b, "", c), this }, confirm: function (a, b, c) { return q.dialog(a, "confirm", b, "", c), this }, extend: q.extend, init: q.init, log: function (a, b, c) { return q.log(a, b, c), this }, prompt: function (a, b, c, d) { return q.dialog(a, "prompt", b, c, d), this }, success: function (a, b) { return q.log(a, "success", b), this }, error: function (a, b) { return q.log(a, "error", b), this }, set: function (a) { q.set(a) }, labels: q.labels, debug: q.handleErrors } }, "function" == typeof define ? define([], function () { return new c }) : "undefined" == typeof a.alertify && (a.alertify = new c) }(this); \ No newline at end of file diff --git a/Site5/Style/alertify.core.css b/Site5/Style/alertify.core.css new file mode 100644 index 00000000..cc95b37b --- /dev/null +++ b/Site5/Style/alertify.core.css @@ -0,0 +1,139 @@ +div#alertify-cover { background-color: black; opacity: 0.5; } + +.alertify, +.alertify-show, +.alertify-log { + -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); + -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); + -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); + -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); + transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); /* easeOutBack */ +} +.alertify-hide { + -webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + -moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + -ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + -o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */ +} +.alertify-log-hide { + -webkit-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + -moz-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + -ms-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + -o-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); + transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */ +} +.alertify-cover { + position: fixed; z-index: 99999; + top: 0; right: 0; bottom: 0; left: 0; + background-color:white; + filter:alpha(opacity=0); + opacity:0; +} + .alertify-cover-hidden { + display: none; + } +.alertify { + position: fixed; z-index: 99999; + top: 50px; left: 50%; + width: 550px; + margin-left: -275px; + opacity: 1; +} + .alertify-hidden { + -webkit-transform: translate(0,-150px); + -moz-transform: translate(0,-150px); + -ms-transform: translate(0,-150px); + -o-transform: translate(0,-150px); + transform: translate(0,-150px); + opacity: 0; + display: none; + } + /* overwrite display: none; for everything except IE6-8 */ + :root *> .alertify-hidden { + display: block; + visibility: hidden; + } +.alertify-logs { + position: fixed; + z-index: 5000; + bottom: 10px; + right: 10px; + width: 300px; +} +.alertify-logs-hidden { + display: none; +} + .alertify-log { + display: block; + margin-top: 10px; + position: relative; + right: -300px; + opacity: 0; + } + .alertify-log-show { + right: 0; + opacity: 1; + } + .alertify-log-hide { + -webkit-transform: translate(300px, 0); + -moz-transform: translate(300px, 0); + -ms-transform: translate(300px, 0); + -o-transform: translate(300px, 0); + transform: translate(300px, 0); + opacity: 0; + } + .alertify-dialog { + padding: 25px; + } + .alertify-resetFocus { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + } + .alertify-inner { + text-align: center; + } + .alertify-text { + margin-bottom: 15px; + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + font-size: 100%; + } + .alertify-buttons { + } + .alertify-button, + .alertify-button:hover, + .alertify-button:active, + .alertify-button:visited { + background: none; + text-decoration: none; + border: none; + /* line-height and font-size for input button */ + line-height: 1.5; + font-size: 100%; + display: inline-block; + cursor: pointer; + margin-left: 5px; + } + +@media only screen and (max-width: 680px) { + .alertify, + .alertify-logs { + width: 90%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .alertify { + left: 5%; + margin: 0; + } +} \ No newline at end of file diff --git a/Site5/Style/alertify.css b/Site5/Style/alertify.css deleted file mode 100644 index a493fb2c..00000000 --- a/Site5/Style/alertify.css +++ /dev/null @@ -1,170 +0,0 @@ -.alertify-show, -.alertify-log { - -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1); /* older webkit */ - -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); - -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); - -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); - -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); - transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); /* easeOutBack */ -} -.alertify-hide { - -webkit-transition: all 250ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */ - -webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); - -moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); - -ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); - -o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); - transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */ -} -.alertify-cover { - position: fixed; z-index: 99999; - top: 0; right: 0; bottom: 0; left: 0; -} -.alertify { - position: fixed; z-index: 99999; - top: 50px; left: 50%; - width: 550px; - margin-left: -275px; -} - .alertify-hidden { - top: -50px; - visibility: hidden; - } -.alertify-logs { - position: fixed; - z-index: 5000; - bottom: 10px; - right: 10px; - width: 300px; -} - .alertify-log { - display: block; - margin-top: 10px; - position: relative; - right: -300px; - } - .alertify-log-show { - right: 0; - } - .alertify-dialog { - padding: 25px; - } - .alertify-inner { - text-align: center; - } - .alertify-text { - margin-bottom: 15px; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - font-size: 18px; - } - .alertify-buttons { - } - .alertify-button { - display: inline-block; - cursor: pointer; - margin-left: 5px; - } - -@media only screen and (max-width: 680px) { - .alertify, - .alertify-logs { - width: 90%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - .alertify { - left: 5%; - margin: 0; - } -} - -/** - * Default Look and Feel - modified for Activizr - */ -.alertify, -.alertify-log { - font-family: Ubuntu, sans-serif; - font-size: 15px; -} -.alertify { - background: #FFF; - border: 10px solid #333; /* browsers that don't support rgba */ - border: 10px solid rgba(0,0,0,.7); - border-radius: 8px; - box-shadow: 0 3px 3px rgba(0,0,0,.3); - -webkit-background-clip: padding; /* Safari 4? Chrome 6? */ - -moz-background-clip: padding; /* Firefox 3.6 */ - background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ -} -.alertify-text { - border: 1px solid #CCC; - padding: 10px; - border-radius: 4px; -} -.alertify-button { - border-radius: 4px; - color: #FFF; - font-weight: bold; - padding: 6px 15px; - text-decoration: none; - text-shadow: 1px 1px 0 rgba(0,0,0,.5); - box-shadow: inset 0 1px 0 0 rgba(255,255,255,.5); - background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); - background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); - background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); - background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); - background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); -} -.alertify-button:hover, -.alertify-button:focus { - background-image: -webkit-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); - background-image: -moz-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); - background-image: -ms-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); - background-image: -o-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); - background-image: linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); -} -.alertify-button:active { - position: relative; - top: 1px; -} - .alertify-button-cancel { - background-color: #FE1A00; - border: 1px solid #D83526; - } - .alertify-button-ok { - background-color: #5CB811; - border: 1px solid #3b7808; - } -.alertify-log { - background: #1F1F1F; - background: rgba(0,0,0,.9); - padding: 15px; - border-radius: 4px; - color: #FFF; - text-shadow: 0px 0px rgba(0,0,0,.5); -} - .alertify-log-error { - background-color: #FF8080; - background: hsla(0,89%,78%,.9); - border: 2px solid #FE1A00; - box-shadow: 0px 0px 1px 1px #D83526 inset, 0px 2px 3px 1px #400000; - font-weight: 400; - color: #A00000; - } - .alertify-log-success { - background: #5CB811; - background: rgba(92,184,17,.9); - } - - - - p.alertify-message { - margin-bottom: 18px; - } - - a#aResetFocus { - display: none; - } \ No newline at end of file diff --git a/Site5/Style/alertify.default.css b/Site5/Style/alertify.default.css new file mode 100644 index 00000000..7fbf743a --- /dev/null +++ b/Site5/Style/alertify.default.css @@ -0,0 +1,83 @@ +/** + * Default Look and Feel + */ +.alertify, +.alertify-log { + font-family: Ubuntu; + font-size: 14px; + line-height: 120%; +} +.alertify { + background: #FFF; + border: 10px solid #333; /* browsers that don't support rgba */ + border: 10px solid rgba(0,0,0,.7); + border-radius: 8px; + box-shadow: 0 3px 3px rgba(0,0,0,.3); + -webkit-background-clip: padding; /* Safari 4? Chrome 6? */ + -moz-background-clip: padding; /* Firefox 3.6 */ + background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ +} + .alertify-text { + border: 1px solid #CCC; + padding: 10px; + border-radius: 4px; + } + .alertify-button { + border-radius: 4px; + color: #FFF; + font-weight: bold; + padding: 6px 15px; + text-decoration: none; + text-shadow: 1px 1px 0 rgba(0,0,0,.5); + box-shadow: inset 0 1px 0 0 rgba(255,255,255,.5); + background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); + background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); + background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); + background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); + background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0)); + } + .alertify-button:hover, + .alertify-button:focus { + outline: none; + background-image: -webkit-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); + background-image: -moz-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); + background-image: -ms-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); + background-image: -o-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); + background-image: linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0)); + } + .alertify-button:focus { + box-shadow: 0 0 15px #2B72D5; + } + .alertify-button:active { + position: relative; + box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); + } + .alertify-button-cancel, + .alertify-button-cancel:hover, + .alertify-button-cancel:focus { + background-color: #FE1A00; + border: 1px solid #D83526; + } + .alertify-button-ok, + .alertify-button-ok:hover, + .alertify-button-ok:focus { + background-color: #5CB811; + border: 1px solid #3B7808; + } + +.alertify-log { + background: #1F1F1F; + background: rgba(0,0,0,.9); + padding: 15px; + border-radius: 4px; + color: #FFF; + text-shadow: -1px -1px 0 rgba(0,0,0,.5); +} + .alertify-log-error { + background: #FE1A00; + background: rgba(254,26,0,.9); + } + .alertify-log-success { + background: #5CB811; + background: rgba(92,184,17,.9); + } \ No newline at end of file