Denys Vuika a0926a38d8
Minor code and style fixes (#5398)
* type fixes

* import fixes

* fix typos

* fix warning for private props that init in ctor only

* typing fixes

* typing fixes

* style cleanup

* fix test template
2020-02-09 22:03:32 +00:00

284 lines
6.9 KiB
SCSS

@import '~@angular/material/theming';
@mixin adf-login-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$text-color-primary: mat-color($foreground, text);
.adf-login {
@include flex-column;
}
.adf-login-content {
background-size: cover;
background-position: center;
min-height: 100%;
min-width: 320px;
display: flex;
justify-content: center;
flex-direction: column;
// IE11 vertical centering
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
& {
display: table;
width: 100%;
height: 100%;
}
}
.adf-ie11FixerParent {
margin-top: 16px;
min-width: 320px;
// IE11 vertical centering
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
display: table-cell;
vertical-align: middle;
width: 100%;
padding-top: 16px;
}
}
// IE11 vertical centering
.adf-ie11FixerChild {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.adf-show {
display: block !important;
}
.adf-hide {
display: none !important;
}
.adf-icon-inline {
position: absolute;
display: block;
top: 31%;
left: 82%;
width: 30px;
overflow: hidden;
}
.adf-login-card-wide {
border-radius: 8px;
background-color: mat-color($background, dialog);
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
width: 450px;
min-width: 320px;
padding: 21px 64px 34px;
box-sizing: border-box;
}
@media (max-width: 482px) {
.adf-login-card-wide {
width: calc(100% - 32px);
}
}
.adf-error-container {
height: 45px;
}
.adf-error-message {
display: flex;
box-orient: horizontal;
flex-direction: row;
justify-content: flex-start;
color: mat-color($warn);
padding: 0;
margin-bottom: 4px;
font-size: 13px;
}
.adf-error-message .adf-error-icon {
margin-right: 10px;
}
.mat-card-header-text {
margin: 0 auto;
}
.adf-img-logo {
display: block;
margin-left: auto;
margin-right: auto;
}
.adf-alfresco-logo {
padding: 24px 16px;
}
.adf-alfresco-logo img {
max-height: 58px;
}
.adf-login-button {
width: 100%;
height: 36px;
line-height: 38px;
box-shadow: none;
}
.adf-login-button-label {
color: rgb(255, 255, 255);
}
.adf-login-button.adf-isChecking {
background-color: #e0f7fa;
}
.adf-login-button.adf-isChecking .adf-login-button-label {
color: #00bcd4;
}
.adf-login-button.adf-isWelcome {
background-color: #00bcd4;
color: #ffffff;
}
.adf-login-button.adf-isWelcome .adf-welcome-icon {
margin: 5px 0 0 10px;
}
.adf-interactive-login-label {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
box-orient: horizontal;
flex-direction: row;
-webkit-box-pack: center;
-moz-box-pack: center;
box-pack: center;
justify-content: center;
}
.adf-login-spinner-container {
margin-left: 15px;
margin-top: 5px;
}
.adf-login-checking-spinner > svg > circle {
stroke-width: 16% !important;
}
.adf-login-controls {
padding: 0 0 26px;
overflow: visible;
width: 100%;
}
.adf-login-action {
margin-top: 20px;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
box-orient: horizontal;
flex-direction: row;
-webkit-box-pack: space-between;
-moz-box-pack: space-between;
box-pack: space-between;
justify-content: space-between;
}
.adf-login-action-left a, .adf-login-action-right a {
text-decoration: none;
}
.adf-is-active {
background-color: transparent;
font-size: 12px;
font-weight: normal;
line-height: 1.33;
color: mat-color($warn);
}
.adf-copyright {
min-width: 320px;
text-align: center;
padding: 16px 0;
font-size: 12px;
opacity: 0.54;
}
.mat-form-field .adf-login-password-icon.mat-icon {
color: $text-color-primary;
}
.adf-login__field .mat-form-field-wrapper {
margin: 1em 0 0;
font-size: 16px;
}
.adf-login__field input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px mat-color($background, dialog) inset;
-webkit-text-fill-color: $text-color-primary !important;
}
.adf-login-validation {
background-color: transparent;
color: mat-color($warn);
font-size: 12px;
}
.adf-login-error {
color: mat-color($warn);
position: absolute;
font-size: 12px;
margin-top: -12px;
display: block;
}
.adf-full-width {
width: 100%;
}
.adf-login__remember-me {
padding-top: 22px;
}
.adf-login__remember-me .mat-checkbox-label {
opacity: 0.87;
}
.adf-login__field {
display: block;
margin-left: auto;
margin-right: auto;
padding-bottom: 18px;
}
.adf-login-remember-me {
color: $text-color-primary !important;
}
.adf-login-action-container {
border-top: 1px solid rgba(0, 0, 0, 0.1);
margin-top: 23px;
}
}
}