From 80ff5555dc9ded529686dd48ea75112a9758e0ca Mon Sep 17 00:00:00 2001 From: RubaXa Date: Fri, 20 Jun 2014 08:22:27 +0400 Subject: [PATCH] * upd --- Gruntfile.js | 8 ++++---- MIT-LICENSE.md | 22 ++++++++++++++++++++++ README.md | 4 ++++ index.html | 25 +++++++++---------------- package.json | 5 ++++- st/app.css | 15 ++++++++++----- 6 files changed, 53 insertions(+), 26 deletions(-) create mode 100644 MIT-LICENSE.md create mode 100644 README.md diff --git a/Gruntfile.js b/Gruntfile.js index 4059f79..07371c4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -32,10 +32,10 @@ module.exports = function (grunt){ instrumentedFiles: 'temp/', htmlReport: 'report/coverage', coberturaReport: 'report/', - linesThresholdPct: 95, - statementsThresholdPct: 95, - functionsThresholdPct: 95, - branchesThresholdPct: 95 + linesThresholdPct: 90, + statementsThresholdPct: 90, + functionsThresholdPct: 90, + branchesThresholdPct: 90 } } }, diff --git a/MIT-LICENSE.md b/MIT-LICENSE.md new file mode 100644 index 0000000..6fc9db4 --- /dev/null +++ b/MIT-LICENSE.md @@ -0,0 +1,22 @@ +## MIT LICENSE +Copyright 2013 Lebedev Konstantin +http://rubaxa.github.io/Ply/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b4dc0f0 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Ply +Amazing layer/modal/dialog system. Wow! + + diff --git a/index.html b/index.html index e22f74e..859309c 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,8 @@ +
+

Ply

@@ -95,21 +97,6 @@ hljs.configure({ classPrefix: '' }); - Ply.dialog({ - foo: { - data: 'Foo!', - next: 'bar', - nextEffect: 'inner' - }, - bar: { - data: { - text: 'Bar!', - ok: 'Wow!' - } - } - }); - - $('.example') .each(function () { var $el = $(this); @@ -184,12 +171,18 @@ cancel: 'No' }, back: 'Jonna', + backEffect: 'inner', next: 'Jonna-01', nextEffect: '3d-sign' }, 'Jonna': { - data: 'Jonna Lee (born Jonna Emily Lee Nilsson, October 3, 1981) is a singer-songwriter from Linköping, Sweden, currently residing in Stockholm. Lee is best known for being the creator and artist of iamamiwhoami. Lee started her own label "To whom it may concern" in 2010.', + data: { + children: [{ + text: 'Jonna Lee is a singer-songwriter from Linköping, Sweden. Lee is best known for being the creator and artist of iamamiwhoami. Lee started her own label "To whom it may concern" in 2010.', + css: { maxWidth: '400px' } + }] + }, back: 'next', next: 'Jonna-01', nextEffect: 'fade' diff --git a/package.json b/package.json index 86063f0..ccaca7f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,10 @@ "layer", "modal", "dialog", - "lightbox" + "lightbox", + "alert", + "confirm", + "prompt" ], "author": "Konstantin Lebedev ", "license": "MIT" diff --git a/st/app.css b/st/app.css index e7a285b..6da1902 100644 --- a/st/app.css +++ b/st/app.css @@ -30,7 +30,6 @@ h1 { text-shadow: 0 1px 3px rgba(0,0,0,.2); font-size: 200px; text-align: center; - margin-top: 50px; margin-bottom: 50px; } h1 u { @@ -68,11 +67,12 @@ h2 { } .example { + top: 0; cursor: pointer; - opacity: 0.95; position: relative; + transition: all 0.3s; } - .example:hover:after { + .example:after { top: 50%; left: 50%; line-height: 0; @@ -82,12 +82,17 @@ h2 { font-size: 100px; position: absolute; display: block; - opacity: .7; + opacity: 0; + transition: opacity 0.2s; } .example:hover { - opacity: 1; + top: -5px; + box-shadow: 0 2px 8px rgba(0,0,0,.2); } + .example:hover:after { + opacity: 0.7; + } pre code { background-color: #fff;