Navigation Menu

Skip to content

Commit

Permalink
First cut of branding the login page
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Aug 22, 2013
1 parent 14ea2b6 commit 98e38b3
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 1 deletion.
Expand Up @@ -34,6 +34,7 @@ module Branding {
branding.appName = 'Management Console';
branding.appLogo = '';
branding.loginBg = 'img/branding/login-screen-background.jpg';
branding.fullscreenLogin = true;
}

});
Expand Down
3 changes: 3 additions & 0 deletions hawtio-web/src/main/webapp/app/core/js/app.ts
Expand Up @@ -161,6 +161,9 @@ module Core {
});

$scope.fullScreen = () => {
if ($location.url().startsWith("/login")) {
return branding.fullscreenLogin;
}
var tab = $location.search()['tab'];
if (tab) {
return tab === "fullscreen";
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/corePlugin.ts
Expand Up @@ -121,7 +121,8 @@ angular.module('hawtioCore', ['bootstrap', 'ngResource', 'ui', 'ui.bootstrap.dia
return {
appName: 'hawtio',
appLogo: 'img/logo-16px.png',
loginBg: 'img/fire.jpg'
loginBg: 'img/fire.jpg',
fullscreenLogin: false
}

}).
Expand Down
148 changes: 148 additions & 0 deletions hawtio-web/src/main/webapp/css/site-branding.css
Expand Up @@ -2,6 +2,10 @@
font-family: "Open Sans", sans-serif;
}

input, button, select, textarea {
font-family: "Open Sans", sans-serif;
}

html, body {
min-height: 800px;
min-width: 850px;
Expand Down Expand Up @@ -116,3 +120,147 @@ a:hover {
padding-left: 10px;
padding-right: 10px;
}


select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
font-size: 13.5px;
border-radius: 0;
/*
color: #555555;
display: inline-block;
font-size: 14px;
height: 20px;
line-height: 20px;
margin-bottom: 10px;
padding: 4px 6px;
vertical-align: middle;
*/
}

div[ng-controller='Core.LoginController']:after {
position: absolute;
top: 50px;
right: 64px;
content: url('../img/branding/login-screen-logo.png');
}

.login-wrapper:before {
position: absolute;
top: -38px;
left: 104px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 200;
font-size: 22px;
font-size: 22px;
content: 'Management Console';
color: #FFFFFF;
}

.login-wrapper {
top: inherit;
border-radius: 0;
box-shadow: none;
left: 0;
position: absolute;
bottom: 15%;
padding-left: 100px;
width: 100%;
min-width: 850px;
border-top: 1px rgba(255, 255, 255, 0.05) solid;
border-bottom: 1px rgba(255, 255, 255, 0.05) solid;
background-color: rgba(0, 0, 0, 0.3);

}

.login-wrapper form {
background: inherit;
border-radius: 0;
box-shadow: none;
padding: 0;
margin: 0;
}

.login-wrapper form fieldset {
padding-top: 40px;
padding-bottom: 40px;
width: 344px;
}

.login-wrapper form fieldset input[type="text"],
.login-wrapper form fieldset input[type="password"] {
margin: 4px;
padding: 3px 6px;
min-width: 200px;
height: 26px;
border: 1px #b6b6b6 solid;
border-radius: 2px;
background: url("../img/branding/input-background.png") repeat-x top left;
}

.login-wrapper form fieldset input[type="text"]:hover,
.login-wrapper form fieldset input[type="password"]:hover {
border-color: #62afdb;
}

.login-wrapper form fieldset input[type="text"]:focus,
.login-wrapper form fieldset input[type="password"]:focus {
border-color: #62afdb;
box-shadow: #62afdb 0 0 5px;
}

.login-wrapper form fieldset button[type="submit"] {
padding: 4px 14px;
border: 1px #21799e solid;
border-radius: 2px;
background-image: linear-gradient(top, #00A9EC 0%, #009BD3 100%);
background-image: -o-linear-gradient(top, #00A9EC 0%, #009BD3 100%);
background-image: -moz-linear-gradient(top, #00A9EC 0%, #009BD3 100%);
background-image: -webkit-linear-gradient(top, #00A9EC 0%, #009BD3 100%);
background-image: -ms-linear-gradient(top, #00A9EC 0%, #009BD3 100%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0.0, #00A9EC),
color-stop(1,0, #009BD3)
);
color: #fff;
font-weight: bold;
font-size: 12px;
letter-spacing: 0.6px;
}

.login-wrapper form fieldset button[type="submit"]:hover,
.login-wrapper form fieldset button[type="submit"]:focus {
background-color: #009BD3;
background-image: none;
cursor: pointer;
}

.login-wrapper form fieldset button[type="submit"]:active {
background-color: #0099d4;
background-image: none;
cursor: pointer;
box-shadow: inset 0 0 5px 3px #0074ae;
}

.login-wrapper form fieldset input[type="checkbox"] {
margin-right: 6px;
}

.login-wrapper form fieldset input[type="text"],
.login-wrapper form fieldset input[type="password"] {
color: #ffffff;
background-color:
margin: 4px 0;
margin-bottom: 14px;
width: 282px;
}

.login-wrapper form fieldset button[type="submit"] {
float: right;
margin-top: 12px;
}


Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 98e38b3

Please sign in to comment.