Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Login dropdown display improvements.

- Fixes github issue 14.
- No longer shifts the toolbar links.
- Drops down, instead of appears from top-right corner.
- Background is opaque so that underneath content doesn't show through.
- Has a border around the box now.
  • Loading branch information...
commit 8a8a760836bfa3ad87cc30bef03f9119a2c4e907 1 parent 1de6854
@malcolmt authored
Showing with 14 additions and 3 deletions.
  1. +11 −0 static/css/style.layout.css
  2. +3 −3 static/js/login.js
View
11 static/css/style.layout.css
@@ -44,6 +44,17 @@
.tools {
float: right;
padding-right: 1em;
+ position: relative;
+}
+
+#login-form {
+ padding: 1em 0.5em 0;
+ margin: 0 -1em 0 0;
+ position: absolute;
+ top: 2em;
+ right: 0;
+ border: 2px solid #ffe680;
+ background: white;
}
View
6 static/js/login.js
@@ -1,14 +1,14 @@
function show_login_form() {
- $("#login-form").show("fast");
+ $("#login-form").slideDown(300);
return false;
}
function hide_login_form() {
- $("#login-form:visible").removeClass("active").hide("slow");
+ $("#login-form:visible").removeClass("active").slideUp(300);
}
function cancel_login() {
- $("#login-form:visible").removeClass("active").hide("slow");
+ $("#login-form:visible").removeClass("active").slideUp(300);
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.