diff --git a/demo-shell-ng2/app/components/login/login.component.css b/demo-shell-ng2/app/components/login/login.component.css index acc82bf023..30d931a564 100644 --- a/demo-shell-ng2/app/components/login/login.component.css +++ b/demo-shell-ng2/app/components/login/login.component.css @@ -1,40 +1,92 @@ -body { - padding-top: 40px; - padding-bottom: 40px; - background-color: #eee; +.login-card-wide.mdl-card { + width: 512px; + margin: auto; +} +.login-card-wide > .mdl-card__menu { + color: #000; } -.form-signin { - max-width: 330px; - padding: 15px; - margin: 0 auto; + + +.ng-invalid.ng-invalid.ng-touched { + border-color: rgb(222, 50, 38); + box-shadow: none; } -.form-signin .form-signin-heading, -.form-signin .checkbox { - margin-bottom: 10px; + +.ng-invalid.ng-invalid.ng-touched + label { + color: rgb(222, 50, 38); + font-size: 12px; } -.form-signin .checkbox { + +.ng-invalid.ng-invalid.ng-touched + label:after { + background-color: rgb(222, 50, 38); +} + +.ng-invalid.ng-invalid.ng-touched ~ .mdl-tooltip--validation { + background-color: rgb(222, 50, 38); +} + + +.ng-invalid.ng-touched:not(:focus) + label::before { + font-family: 'Material Icons'; font-weight: normal; + font-style: normal; + font-size: 24px; + /* Preferred icon size */ + + display: inline-block; + width: 1em; + height: 1em; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + /* Support for all WebKit browsers. */ + + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + + text-rendering: optimizeLegibility; + /* Support for Firefox. */ + + -moz-osx-font-smoothing: grayscale; + /* Support for IE. */ + + font-feature-settings: 'liga'; + content: "warning"; + position: absolute; + right: 0; + bottom: 20px; } -.form-signin .form-control { - position: relative; - height: auto; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 10px; - font-size: 16px; -} -.form-signin .form-control:focus { - z-index: 2; -} -.form-signin input[type="username"] { - margin-bottom: -1px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.form-signin input[type="password"] { - margin-bottom: 10px; - border-top-left-radius: 0; - border-top-right-radius: 0; -} + +.ng-valid.ng-touched:not(:focus) + label::before { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; + /* Preferred icon size */ + + display: inline-block; + width: 1em; + height: 1em; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + /* Support for all WebKit browsers. */ + + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + + text-rendering: optimizeLegibility; + /* Support for Firefox. */ + + -moz-osx-font-smoothing: grayscale; + /* Support for IE. */ + + font-feature-settings: 'liga'; + content: "done"; + position: absolute; + right: 0; + bottom: 20px; +} \ No newline at end of file diff --git a/demo-shell-ng2/app/components/login/login.component.html b/demo-shell-ng2/app/components/login/login.component.html index ed0630e1fe..bf97f55174 100644 --- a/demo-shell-ng2/app/components/login/login.component.html +++ b/demo-shell-ng2/app/components/login/login.component.html @@ -1,29 +1,33 @@ -