/* Name: Sliding Login Panel with jQuery 1.3.2 Author: Jeremie Tisseau Author URI: http://web-kreation.com/ Script URI: http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery/ Date: March 26, 2009 Version: 1.0 The CSS, XHTML and design is released under Creative Common License 3.0: http://creativecommons.org/licenses/by-sa/3.0/ */ /***** clearfix *****/ .clear {clear: both;height: 0;line-height: 0;} .clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;} .clearfix {display: inline-block;} /* Hides from IE-mac \*/ * html .clearfix {height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */ .clearfix {height: 1%;} .clearfix {display: block;} /* Panel Tab/button */ .tab { position: relative; top: 0; z-index: 999; } .tab ul.login { display: block; position: relative; float: right; clear: right; width: auto; font-weight: normal; margin: 0; right: 0px; color: white; font-size: 11px; text-align: center; } .tab ul.login li { text-align: center; padding: 7px 10px; display: block; float: left; /*height: 40px;*/ background: #383838; -moz-border-radius: 0 0 8px 8px; -webkit-border-radius: 0 0 8px 8px; /*background: url(../img/btn-slider.png) top no-repeat;*/ } .tab ul.login li a { color: #fff; } .tab ul.login li a:hover { color: #f26522; } .tab .sep {color:#414141} .tab a.open, .tab a.close { /*line-height: 20px !important;*/ /*padding-left: 30px !important;*/ cursor: pointer; display: block; position: relative; width: 100%; } /* .tab a.open {background: url(../img/slider/bt_open.png) no-repeat left 0;} .tab a.close {background: url(../img/slider/bt_close.png) no-repeat left 0;} .tab a:hover.open {background: url(../img/slider/bt_open.png) no-repeat left -19px;} .tab a:hover.close {background: url(../img/slider/bt_close.png) no-repeat left -19px;} */ /* sliding panel */ #toppanel { /* position: absolute;*/ /*Panel will overlap content */ position: relative; /*Panel will "push" the content down */ top: 0; width: 100%; z-index: 999; text-align: center; margin-left: auto; margin-right: auto; } #panel { width: 100%; color: #ccc; background: #383838; overflow: hidden; position: relative; padding-bottom: 25px; z-index: 3; display: none; } .panel-2 { border-left: 1px solid #333333; float: left; width: 560px; padding: 0 15px; } #panel .content .panel-2 fieldset { border: none; margin: 0; padding: 0; } #panel h1 { font-size: 1.6em; padding: 5px 0 10px; margin: 0; color: white; } #panel h2{ font-size: 1.2em; padding: 10px 0 5px; margin: 0; color: white; } #panel p { margin: 5px 0; padding: 0; color:#ccc; } #panel a { text-decoration: none; color: #56BFF8; } #panel a:hover { color: white; } #panel a-lost-pwd { display: block; float: left; } #panel .content { width: 960px; margin: 0 auto; padding-top: 15px; text-align: left; } #panel .content .left { width: 280px; float: left; padding: 0 15px; border-left: 1px solid #333; } #panel .content .right { border-right: 1px solid #333; } #panel .content form { margin: 0 0 10px 0; } #panel .content label { float: left; padding-top: 8px; clear: both; width: 280px; display: block; font-weight:normal; color:#ccc; } #panel .content input.field { border: 1px #494949 solid; background: #414141; margin-right: 5px; margin-top: 4px; width: 200px; color: white; height: 16px; } #panel .content input:focus.field { background: #545454; } /* BUTTONS */ /* Login and Register buttons */ #panel .content input.bt_login, #panel .content input.bt_register, #panel .content input.ii_submit { display: block; float: left; clear: left; height: 24px; text-align: center; cursor: pointer; border: none; font-weight: bold; margin: 10px 0; } #panel .content input.bt_login { width: 74px; background: transparent url(../img/slider/bt_login.png) no-repeat 0 0; } #panel .content input.bt_register { width: 94px; color: #fff; background: transparent url(../img/slider/bt_register.png) no-repeat 0 0; } #panel .lost-pwd { display: block; float:left; clear: right; padding: 15px 5px 0; font-size: 0.95em; text-decoration: underline; }