From 8224f6148e74ed3422bd70cfbdcee92bdccd8553 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 18 Sep 2013 15:50:49 +0200 Subject: [PATCH] [IMPROVEMENT] @nrpatten supplied better quicklogin * Needs to be fixed to properly use fieldset tags --- public/site_assets/test/css/layout.css | 60 ++++++++++++++++++++++--- public/templates/test/global/header.tpl | 4 +- public/templates/test/login/small.tpl | 16 ++++--- 3 files changed, 66 insertions(+), 14 deletions(-) diff --git a/public/site_assets/test/css/layout.css b/public/site_assets/test/css/layout.css index 220be7fd..0b8f708a 100644 --- a/public/site_assets/test/css/layout.css +++ b/public/site_assets/test/css/layout.css @@ -867,10 +867,58 @@ span.unconfirmed { border-radius: 4px; } div.login_small { - float: right; - background: #E0E0E3; - position: absolute; - padding: 5px; - top: 10px; - right: 10px; + float: right; + background: #E0E0E3; + background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(241, 241, 241) 50%, rgb(225, 225, 225) 51%, rgb(246, 246, 246) 100%) repeat scroll 0% 0%; + border-radius: 5px 5px 5px 5px; + position: absolute; + padding: 5px; + top: 10px; + right: 10px; +} + +fieldset2 { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + background: #F6F6F6; + padding: 1% 0%; + margin: 10px 0; +} + +fieldset2 label { + display: block; + float: left; + height: 25px; + line-height: 25px; + text-shadow: 0 1px 0 #fff; + font-weight: bold; + padding-left: 10px; + text-transform: uppercase; +} + +fieldset2 input[type=text], fieldset2 input[type=password] { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + border: 1px solid #BBBBBB; + height: 20px; + color: #666666; + -webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff; + -moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff; + box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff; + padding-left: 10px; + background-position: 10px 6px; + margin: 0; + display: block; + float: left; + margin: 0 10px; +} + +fieldset2 input[type=text]:focus, fieldset2 input[type=password]:focus, fieldset2 input[type=checkbox] { + outline: none; + border: 1px solid #77BACE; + -webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6; + -moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6; + box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6; } diff --git a/public/templates/test/global/header.tpl b/public/templates/test/global/header.tpl index 8083e632..49cb595e 100644 --- a/public/templates/test/global/header.tpl +++ b/public/templates/test/global/header.tpl @@ -2,6 +2,4 @@

{$GLOBAL.website.name}

{if $smarty.request.action|default:""}{$smarty.request.action|capitalize}{else}{$smarty.request.page|default:"home"|capitalize}{/if}

-
- {include file="login/small.tpl"} -
+ {include file="login/small.tpl"} diff --git a/public/templates/test/login/small.tpl b/public/templates/test/login/small.tpl index 0fa665b0..c63b0ae8 100644 --- a/public/templates/test/login/small.tpl +++ b/public/templates/test/login/small.tpl @@ -1,11 +1,17 @@ {if $smarty.session.AUTHENTICATED|default:"0" == 0} +
- - - - - + + + + + + + + +
+
{/if}