mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Maurizio Vitale
parent
23c912989a
commit
e66cb4035a
@@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .mat-card-header-text {
|
.adf {
|
||||||
margin: 0px !important;
|
&-form-container {
|
||||||
}
|
max-width: 100% !important;
|
||||||
|
max-height: 100% !important;
|
||||||
& .mat-tab-body-content {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .mat-tab-label {
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.5;
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&-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-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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-form-title {
|
||||||
|
font-size: mat-font-size($alfresco-typography, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
& .mat-button-wrapper {
|
&-form-debug-container {
|
||||||
width: 58px;
|
padding: 10px;
|
||||||
height: 20px;
|
}
|
||||||
opacity: 0.54;
|
|
||||||
font-size: 14px;
|
&-form-debug-container .debug-toggle-text {
|
||||||
|
padding-left: 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-form-debug-container .debug-toggle-text:hover {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-form-reload-button {
|
||||||
|
position: absolute;
|
||||||
|
right: 12px;
|
||||||
|
top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-form-hide-button {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-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 {
|
||||||
form-field {
|
width: 100%;
|
||||||
width: 100%;
|
|
||||||
|
.mat-input-element {
|
||||||
.mat-input-element {
|
font-size: mat-font-size($config, body-2);
|
||||||
font-size: 14px;
|
padding-top: 8px;
|
||||||
padding-top: 8px;
|
line-height: normal;
|
||||||
line-height: normal;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user