[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,110 +1,113 @@
.adf { @mixin adf-form-component-theme($theme) {
&-form-container {
width: 576px !important;
min-height: 814px !important;
& .mat-card { $config: mat-typography-config();
padding: 16px 24px;
overflow: hidden; .adf {
&-form-container {
max-width: 100% !important;
max-height: 100% !important;
& .mat-card {
padding: 16px 24px;
overflow: hidden;
}
& .mat-card-header-text {
margin: 0px !important;
}
& .mat-tab-body-content {
overflow: hidden;
}
& .mat-tab-label {
font-size: mat-font-size($config, subheading-2);
line-height: mat-line-height($config, headline);
letter-spacing: -0.4px;
text-align: left;
color: rgba(0, 0, 0, 0.54);
text-transform: uppercase;
}
& .mat-ink-bar {
height: 4px;
}
& .mat-input-wrapper {
margin: 0px 12px 0px 0px;
}
} }
& .mat-card-header-text { &-form-title {
margin: 0px !important; font-size: mat-font-size($alfresco-typography, title);
} }
& .mat-tab-body-content { &-form-debug-container {
overflow: hidden; padding: 10px;
} }
& .mat-tab-label { &-form-debug-container .debug-toggle-text {
font-size: 16px; padding-left: 15px;
line-height: 1.5; cursor: pointer;
letter-spacing: -0.4px;
text-align: left;
color: rgba(0, 0, 0, 0.54);
text-transform: uppercase;
} }
& .mat-ink-bar { &-form-debug-container .debug-toggle-text:hover {
height: 4px;
}
& .mat-input-wrapper {
margin: 0px 12px 0px 0px;
}
}
&-form-title {
font-weight: 600;
font-size: 20px;
letter-spacing: -0.5px;
line-height: 32px;
}
&-form-debug-container {
padding: 10px;
}
&-form-debug-container .debug-toggle-text {
padding-left: 15px;
cursor: pointer;
}
&-form-debug-container .debug-toggle-text:hover {
font-weight: bold;
}
&-form-reload-button {
position: absolute;
right: 12px;
top: 30px;
}
&-form-hide-button {
display: none;
}
&-task-title {
text-align: center
}
&-label {
width: 32px;
height: 16px;
font-size: 12px;
line-height: 1.33;
text-align: left;
white-space: nowrap;
}
&-form-mat-card-actions {
float: right;
padding-bottom: 25px !important;
padding-right: 25px !important;
& .mat-button {
width: 74px;
height: 36px;
border-radius: 5px;
}
& .mat-button-wrapper {
width: 58px;
height: 20px;
opacity: 0.54;
font-size: 14px;
font-weight: bold; font-weight: bold;
} }
}
}
form-field { &-form-reload-button {
width: 100%; position: absolute;
right: 12px;
top: 30px;
}
.mat-input-element { &-form-hide-button {
font-size: 14px; display: none !important;
padding-top: 8px; }
line-height: normal;
&-task-title {
text-align: center
}
&-label {
width: 32px;
height: 16px;
font-size: mat-font-size($config, caption);
line-height: mat-line-height($config, headline);
text-align: left;
white-space: nowrap;
}
&-form-mat-card-actions {
float: right;
padding-bottom: 25px !important;
padding-right: 25px !important;
& .mat-button {
width: 74px;
height: 36px;
border-radius: 5px;
}
& .mat-button-wrapper {
width: 58px;
height: 20px;
opacity: 0.54;
font-size: mat-font-size($config, body-2);
font-weight: bold;
}
}
} }
form-field {
width: 100%;
.mat-input-element {
font-size: mat-font-size($config, body-2);
padding-top: 8px;
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)
} }