From 790afc2581f8af37b95a5395762a4a8af7ee3514 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 26 Mar 2015 13:34:13 +0000 Subject: [PATCH] enhanced the style of the login view --- codepot/src/codepot/views/login.php | 38 ++++- codepot/src/css/common.css | 254 +++++++++++++++++++++------- 2 files changed, 228 insertions(+), 64 deletions(-) diff --git a/codepot/src/codepot/views/login.php b/codepot/src/codepot/views/login.php index bb5e2b61..7299da5f 100644 --- a/codepot/src/codepot/views/login.php +++ b/codepot/src/codepot/views/login.php @@ -41,7 +41,7 @@ $this->load->view ( ); ?> -
+
$message
"; ?> @@ -50,20 +50,50 @@ $this->load->view ( -
+ -
+ -
+ diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css index 9880110b..0db05678 100644 --- a/codepot/src/css/common.css +++ b/codepot/src/css/common.css @@ -103,40 +103,13 @@ body { .content .taskbar form input[type="text"] { height: 1.8em; // lower than line-height of taskbar vertical-align: middle; - - border: 1px solid #B9BDC1; - -moz-box-shadow: 0 2px 4px #bbb inset; - -webkit-box-shadow: 0 2px 4px #BBB inset; - box-shadow: 0 2px 4px #BBB inset; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.content .taskbar form input[type="text"]:focus { - background-color: #E7E8E7; - outline: 0; } .content .taskbar form input[type="password"] { height: 1.8em; // lower than line-height of taskbar vertical-align: middle; - - border: 1px solid #B9BDC1; - -moz-box-shadow: 0 2px 4px #bbb inset; - -webkit-box-shadow: 0 2px 4px #BBB inset; - box-shadow: 0 2px 4px #BBB inset; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; } -.content .taskbar form input[type="password"]:focus { - background-color: #E7E8E7; - outline: 0; -} - -/* .content .taskbar form input[type="submit"] { cursor: pointer; height: 1.8em; // lower than line-height of taskbar @@ -145,39 +118,6 @@ body { padding-right: 5px; text-transform: uppercase; } -*/ - -.content .taskbar .button { - cursor: pointer; - height: 1.8em; // lower than line-height of taskbar - vertical-align: middle; - padding-left: 5px; - padding-right: 5px; - text-transform: uppercase; - - background: #3498db; - background-image: -webkit-linear-gradient(top, #3498db, #2980b9); - background-image: -moz-linear-gradient(top, #3498db, #2980b9); - background-image: -ms-linear-gradient(top, #3498db, #2980b9); - background-image: -o-linear-gradient(top, #3498db, #2980b9); - background-image: linear-gradient(to bottom, #3498db, #2980b9); - -webkit-border-radius: 28; - -moz-border-radius: 28; - border-radius: 5px; - text-shadow: 1px 1px 3px #666666; - color: #ffffff; - text-decoration: none; -} - -.content .taskbar .button:hover { - background: #3cb0fd; - background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db); - background-image: -moz-linear-gradient(top, #3cb0fd, #3498db); - background-image: -ms-linear-gradient(top, #3cb0fd, #3498db); - background-image: -o-linear-gradient(top, #3cb0fd, #3498db); - background-image: linear-gradient(to bottom, #3cb0fd, #3498db); - text-decoration: none; -} .content .projectbar { /*margin: 0.1em 0em 0em 0em;*/ @@ -683,10 +623,204 @@ pre.prettyprint li.L9 { background: #eee } background: url("images/username.png") no-repeat scroll 0% 0% rgb(234, 231, 231); background-position: 0px 1px !important; padding-left: 24px; + + height: 1.8em; // lower than line-height of taskbar + vertical-align: middle; + + border: 1px solid #B9BDC1; + -moz-box-shadow: 0 2px 4px #bbb inset; + -webkit-box-shadow: 0 2px 4px #BBB inset; + box-shadow: 0 2px 4px #BBB inset; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +#taskbar_user_name:focus { + background-color: #E7E8E7; + outline: 0; } #taskbar_user_pass { background: url("images/password.png") no-repeat scroll 0% 0% rgb(234, 231, 231); background-position: 0px 1px !important; padding-left: 24px; + + height: 1.8em; // lower than line-height of taskbar + vertical-align: middle; + + border: 1px solid #B9BDC1; + -moz-box-shadow: 0 2px 4px #bbb inset; + -webkit-box-shadow: 0 2px 4px #BBB inset; + box-shadow: 0 2px 4px #BBB inset; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +#taskbar_user_pass:focus { + background-color: #E7E8E7; + outline: 0; +} + +#taskbar_signin_button { + cursor: pointer; + height: 1.8em; // lower than line-height of taskbar + vertical-align: middle; + padding-left: 5px; + padding-right: 5px; + text-transform: uppercase; + + background: #3498db; + background-image: -webkit-linear-gradient(top, #3498db, #2980b9); + background-image: -moz-linear-gradient(top, #3498db, #2980b9); + background-image: -ms-linear-gradient(top, #3498db, #2980b9); + background-image: -o-linear-gradient(top, #3498db, #2980b9); + background-image: linear-gradient(to bottom, #3498db, #2980b9); + -webkit-border-radius: 28; + -moz-border-radius: 28; + border-radius: 5px; + text-shadow: 1px 1px 3px #666666; + color: #ffffff; + text-decoration: none; +} + +#taskbar_signin_button:hover { + background: #3cb0fd; + background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db); + background-image: -moz-linear-gradient(top, #3cb0fd, #3498db); + background-image: -ms-linear-gradient(top, #3cb0fd, #3498db); + background-image: -o-linear-gradient(top, #3cb0fd, #3498db); + background-image: linear-gradient(to bottom, #3cb0fd, #3498db); + text-decoration: none; +} + +#taskbar_signout_button { + cursor: pointer; + height: 1.8em; // lower than line-height of taskbar + vertical-align: middle; + padding-left: 5px; + padding-right: 5px; + text-transform: uppercase; + + background: #3498db; + background-image: -webkit-linear-gradient(top, #3498db, #2980b9); + background-image: -moz-linear-gradient(top, #3498db, #2980b9); + background-image: -ms-linear-gradient(top, #3498db, #2980b9); + background-image: -o-linear-gradient(top, #3498db, #2980b9); + background-image: linear-gradient(to bottom, #3498db, #2980b9); + -webkit-border-radius: 28; + -moz-border-radius: 28; + border-radius: 5px; + text-shadow: 1px 1px 3px #666666; + color: #ffffff; + text-decoration: none; +} + +#taskbar_signout_button:hover { + background: #3cb0fd; + background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db); + background-image: -moz-linear-gradient(top, #3cb0fd, #3498db); + background-image: -ms-linear-gradient(top, #3cb0fd, #3498db); + background-image: -o-linear-gradient(top, #3cb0fd, #3498db); + background-image: linear-gradient(to bottom, #3cb0fd, #3498db); + text-decoration: none; +} + + + + +/* ================ login page =================== */ + +#login_user_name { + background: url("images/username.png") no-repeat scroll 0% 0% rgb(234, 231, 231); + background-position: 0px 1px !important; + padding-left: 24px; + padding-top: 2px; + padding-bottom: 2px; + + height: 2em; + vertical-align: middle; + + border: 1px solid #B9BDC1; + -moz-box-shadow: 0 2px 4px #bbb inset; + -webkit-box-shadow: 0 2px 4px #BBB inset; + box-shadow: 0 2px 4px #BBB inset; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + + font-size: 1em; +} + +#login_user_name:focus { + background-color: #E7E8E7; + outline: 0; +} + +#login_user_pass { + background: url("images/password.png") no-repeat scroll 0% 0% rgb(234, 231, 231); + background-position: 0px 1px !important; + padding-left: 24px; + + height: 2em; + vertical-align: middle; + + border: 1px solid #B9BDC1; + -moz-box-shadow: 0 2px 4px #bbb inset; + -webkit-box-shadow: 0 2px 4px #BBB inset; + box-shadow: 0 2px 4px #BBB inset; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + + font-size: 1em; +} + +#login_user_pass:focus { + background-color: #E7E8E7; + outline: 0; +} + +#login_signin_button { + cursor: pointer; + height: 2em; + vertical-align: middle; + padding-left: 5px; + padding-right: 5px; + text-transform: uppercase; + + background: #3498db; + background-image: -webkit-linear-gradient(top, #3498db, #2980b9); + background-image: -moz-linear-gradient(top, #3498db, #2980b9); + background-image: -ms-linear-gradient(top, #3498db, #2980b9); + background-image: -o-linear-gradient(top, #3498db, #2980b9); + background-image: linear-gradient(to bottom, #3498db, #2980b9); + -webkit-border-radius: 28; + -moz-border-radius: 28; + border-radius: 5px; + text-shadow: 1px 1px 3px #666666; + color: #ffffff; + text-decoration: none; + + font-size: 1em; +} + +#login_signin_button:hover { + background: #3cb0fd; + background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db); + background-image: -moz-linear-gradient(top, #3cb0fd, #3498db); + background-image: -ms-linear-gradient(top, #3cb0fd, #3498db); + background-image: -o-linear-gradient(top, #3cb0fd, #3498db); + background-image: linear-gradient(to bottom, #3cb0fd, #3498db); + text-decoration: none; +} + + +#login_mainarea .login_form_field_div { // keep it similar to taskbar + text-transform: uppercase; + padding-top: 0.3em; + padding-bottom: 0.3em; + vertical-align: middle; + font-size: 1em; }