Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CSS
- @charset "utf-8";
- /* CSS Document */
- html, body
- {
- width:100%;
- height: 100%;
- }
- body
- {
- background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1)), url(../images/bg.jpg);
- background-attachment: fixed;
- background-position: center center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- /*---Login Page---*/
- h7
- {
- font-family: 'Roboto', sans-serif;
- font-size:70px;
- color:#DDDDDD;
- }
- #container
- {
- margin-left:25%;
- margin-right:25%;
- }
- #greeting
- {
- width:100%;
- margin-top:15%;
- margin-bottom:15%;
- }
- #first_part, #second_part
- {
- text-align:center;
- }
- #first_part
- {
- font-size:52px;
- line-height:0.8;
- margin-bottom:30px;
- }
- #second_part
- {
- font-size:30px;
- }
- #google
- {
- background-color: #D34836;
- width:70%;
- height:35px;
- margin-bottom:20px;
- margin-left:15%;
- margin-right:15%;
- border:none;
- color:#FFFFFF;
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- }
- #signup, #signin
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:transparent;
- border: solid 1px;
- border-color:#FFFFFF;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:33.6%;
- height:35px;
- }
- #signup
- {
- margin-left: 15%;
- margin-right:1%;
- }
- #signin
- {
- margin-right: 15%;
- margin-left:1%;
- }
- #signup_container, #login_container
- {
- overflow:hidden;
- text-align:center;
- border-top: 1px solid #D1D1D1;
- box-shadow:0px -1px 2px #888888;
- -webkit-box-shadow:0px -1px 2px #888888;
- -moz-box-shadow:0px -1px 2px #888888;
- opacity:0.9;
- position:absolute;
- bottom:0px;
- display:none;
- background-color:#FFFFFF;
- }
- .wideActive
- {
- margin:25%;
- width:50%;
- }
- .narrowActive
- {
- margin:0;
- width:100%;
- }
- #forgot
- {
- font-size:14px;
- margin-top:4%;
- }
- input[type=text], input[type=email], input[type=password]
- {
- width:100%;
- padding-bottom:20px;
- padding-top:10px;
- padding-left:10px;
- padding-right:10px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border:none;
- border-bottom: 1px solid #D1D1D1;
- color:#2A2929;
- }
- #join, #login
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:#111111;
- border: solid 1px;
- border-color:#111111;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:94%;
- height:35px;
- margin-left:3%;
- margin-right:3%;
- margin-top:2%;
- margin-bottom:5%;
- }
- @media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait)
- {
- /*---Login Page---*/
- h7
- {
- font-family: 'Roboto', sans-serif;
- font-size:52px;
- color:#DDDDDD;
- }
- #container
- {
- margin-left:8%;
- margin-right:8%;
- }
- #greeting
- {
- width:100%;
- margin-top:28%;
- margin-bottom:32%;
- }
- #first_part
- {
- font-size:38px;
- line-height:0.8;
- margin-bottom:30px;
- }
- #second_part
- {
- font-size:22px;
- }
- #google
- {
- margin:0px;
- width:100%;
- margin-bottom:20px;
- }
- #signup, #signin
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:transparent;
- border: solid 1px;
- border-color:#FFFFFF;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:48%;
- height:35px;
- margin:0px;
- }
- #signin
- {
- margin-left: 3%;
- }
- input[type=text], input[type=email], input[type=password]
- {
- width:100%;
- padding-bottom:20px;
- padding-top:10px;
- padding-left:10px;
- padding-right:10px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border:none;
- border-bottom: 1px solid #D1D1D1;
- color:#2A2929;
- }
- #join, #login
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:#111111;
- border: solid 1px;
- border-color:#111111;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:94%;
- height:35px;
- margin-left:3%;
- margin-right:3%;
- margin-top:2%;
- margin-bottom:5%;
- }
- #signup_container, #login_container{
- display: none;
- }
- }
- @media screen and (min-width: 480px){
- #signup_container, #login_container{
- display: none;
- }
- }
- JS
- $(document).ready(function(){
- $(window).resize(function()
- {
- var currentWidth = window.innerWidth;
- $('#signup_container:visible').hide();
- $('#login_container:visible').hide();
- if(currentWidth > 320 && currentWidth <= 480 ){
- $('#signup').click(function(){
- $('#signup_container').removeClass().addClass('narrowActive').show("slide",{direction:'down'});
- });
- $('#signin').click(function(){
- $('#login_container').removeClass().addClass('narrowActive').show("slide",{direction:'down'});
- });
- }
- else if(currentWidth > 480){
- $('#signup').click(function(){
- $('#signup_container').removeClass().addClass('wideActive').fadeIn('slow');
- });
- $('#signin').click(function(){
- $('#login_container').removeClass().addClass('wideActive').fadeIn('slow');
- });
- }
- }).resize();
- });
Add Comment
Please, Sign In to add comment