From 42375b9229757bbf55d6c3611e3aaacfff0a4bf6 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 9 Apr 2012 20:30:15 +0200 Subject: header: hide login box until hover Signed-off-by: Florian Pritz --- application/views/file/header.php | 15 ++++++++++----- data/default.css | 16 ++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/application/views/file/header.php b/application/views/file/header.php index 215584cc5..896b9c894 100644 --- a/application/views/file/header.php +++ b/application/views/file/header.php @@ -18,11 +18,16 @@ - - - - - + + Login +
+ + + + + +
+
diff --git a/data/default.css b/data/default.css index 399ca1410..cd8b1af8e 100644 --- a/data/default.css +++ b/data/default.css @@ -56,6 +56,22 @@ p, li { padding-right: 10px; } +#login-form { + visibility: hidden; + position: absolute; + right: 0; + top: 0; + + /* these help to keep the box displayed once the user hovered over login*/ + padding-top: 35px; + padding-left: 10px; + padding-bottom: 10px; +} + +a:hover #login-form { + visibility: visible; +} + .top a { color: lightblue; } -- cgit v1.2.3-24-g4f1b