From a47db2cad458aa4bedc60b34952ff328ce56777f Mon Sep 17 00:00:00 2001 From: Kyle Fox Date: Mon, 4 Oct 2010 15:49:52 -0600 Subject: [PATCH] some stuffs. --- README.md | 9 ++++++++- example.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ jquery.modal.js | 2 +- 3 files changed, 57 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b884de..9aac9d6 100644 --- a/README.md +++ b/README.md @@ -1 +1,8 @@ -View docs & demo [here.](http://dl.dropbox.com/u/780754/jquery-modal/example.html) \ No newline at end of file +View docs & demo [here.](http://dl.dropbox.com/u/780754/jquery-modal/example.html) + +ToDo +==== + +* Doesn't actually work in IE just yet. Would be a nice touch to get that working. +* Should be able to bind events to specific modals: `$('#window').modal().bind('modal:open' function() { ... });` +* \ No newline at end of file diff --git a/example.html b/example.html index 45f92f9..8c16cda 100644 --- a/example.html +++ b/example.html @@ -18,6 +18,38 @@ p code, li code {background:#ffffcc; color: #444;} pre { font-size: 12px; line-height: 18px; } hr { height: 10px; background: #eee; border: none; } + + + /* Example 2 (login form) */ + .login_form.modal { + border-radius: 0; + line-height: 18px; + padding: 0; + font-family: "Lucida Grande", Verdana, sans-serif; + } + + .login_form h3 { + margin: 0; + padding: 10px; + color: #fff; + font-size: 14px; + background: -moz-linear-gradient(top, #2e5764, #1e3d47); + background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #1e3d47),color-stop(1, #2e5764)); + } + + .login_form.modal p { padding: 20px 30px; border-bottom: 1px solid #ddd; margin: 0; + background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #eee),color-stop(1, #fff)); + overflow: hidden; + } + .login_form.modal p:last-child { border: none; } + .login_form.modal p label { float: left; font-weight: bold; color: #333; font-size: 13px; width: 110px; line-height: 22px; } + .login_form.modal p input[type="text"], + .login_form.modal p input[type="password"] { + font: normal 12px/18px "Lucida Grande", Verdana; + padding: 3px; + border: 1px solid #ddd; + width: 200px; + } jQuery Modal @@ -28,6 +60,7 @@

jQuery Modal