[ADF-2109] Task Form - The form doesn't fit in the mobile screen (#2797)

* [ADF-2109] Task Form - The form doesn't fit in the mobile screen

* Made form mobile compatible

* Fixed issues arising due to the issue ADF-2094

* [ADF-2109] Task Form - The form doesn't fit in the mobile screen

* Made adf form mobile compatible

* Fixed issues arising due to the issue ADF-2094
This commit is contained in:
madhukar23
2017-12-27 15:40:17 +05:30
committed by Maurizio Vitale
parent 23c912989a
commit e66cb4035a
2 changed files with 106 additions and 101 deletions

View File

@@ -1,7 +1,11 @@
.adf { @mixin adf-form-component-theme($theme) {
$config: mat-typography-config();
.adf {
&-form-container { &-form-container {
width: 576px !important; max-width: 100% !important;
min-height: 814px !important; max-height: 100% !important;
& .mat-card { & .mat-card {
padding: 16px 24px; padding: 16px 24px;
@@ -17,8 +21,8 @@
} }
& .mat-tab-label { & .mat-tab-label {
font-size: 16px; font-size: mat-font-size($config, subheading-2);
line-height: 1.5; line-height: mat-line-height($config, headline);
letter-spacing: -0.4px; letter-spacing: -0.4px;
text-align: left; text-align: left;
color: rgba(0, 0, 0, 0.54); color: rgba(0, 0, 0, 0.54);
@@ -35,10 +39,7 @@
} }
&-form-title { &-form-title {
font-weight: 600; font-size: mat-font-size($alfresco-typography, title);
font-size: 20px;
letter-spacing: -0.5px;
line-height: 32px;
} }
&-form-debug-container { &-form-debug-container {
@@ -61,7 +62,7 @@
} }
&-form-hide-button { &-form-hide-button {
display: none; display: none !important;
} }
&-task-title { &-task-title {
@@ -71,8 +72,8 @@
&-label { &-label {
width: 32px; width: 32px;
height: 16px; height: 16px;
font-size: 12px; font-size: mat-font-size($config, caption);
line-height: 1.33; line-height: mat-line-height($config, headline);
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
} }
@@ -93,18 +94,20 @@
width: 58px; width: 58px;
height: 20px; height: 20px;
opacity: 0.54; opacity: 0.54;
font-size: 14px; font-size: mat-font-size($config, body-2);
font-weight: bold; font-weight: bold;
} }
} }
} }
form-field { form-field {
width: 100%; width: 100%;
.mat-input-element { .mat-input-element {
font-size: 14px; font-size: mat-font-size($config, body-2);
padding-top: 8px; padding-top: 8px;
line-height: normal; line-height: normal;
} }
}
} }

View File

@@ -20,6 +20,7 @@
@import '../toolbar/toolbar.component'; @import '../toolbar/toolbar.component';
@import '../userinfo/components/user-info.component'; @import '../userinfo/components/user-info.component';
@import '../viewer/components/viewer.component'; @import '../viewer/components/viewer.component';
@import '../form/components/form.component';
@mixin adf-core-theme($theme) { @mixin adf-core-theme($theme) {
@include adf-colors-theme($theme); @include adf-colors-theme($theme);
@@ -41,6 +42,7 @@
@include adf-toolbar-theme($theme); @include adf-toolbar-theme($theme);
@include adf-userinfo-theme($theme); @include adf-userinfo-theme($theme);
@include adf-viewer-theme($theme); @include adf-viewer-theme($theme);
@include adf-form-component-theme($theme)
} }