From 64389a5577639419d1aaca99560db1543a81979f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Popovics=20Andr=C3=A1s?= Date: Tue, 25 Jul 2017 16:22:32 +0100 Subject: [PATCH] Fix styling of card view text item ruined by global material styles :'( (#2128) --- .../view/card-view-textitem.component.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ng2-components/ng2-alfresco-core/src/components/view/card-view-textitem.component.scss b/ng2-components/ng2-alfresco-core/src/components/view/card-view-textitem.component.scss index fe91450fc3..982206c95f 100644 --- a/ng2-components/ng2-alfresco-core/src/components/view/card-view-textitem.component.scss +++ b/ng2-components/ng2-alfresco-core/src/components/view/card-view-textitem.component.scss @@ -54,12 +54,18 @@ display: none; } + &-textitem-editable /deep/ .mat-input-infix { + padding: 0; + border-top: none; + } + &-textitem-editable /deep/ .mat-input-placeholder-wrapper { padding-top: 2em; + position: static; } &-textitem-editable /deep/ .mat-input-placeholder { - top: 3px; + top: 0; } &-textitem-editable /deep/ .mat-input-element { @@ -71,7 +77,7 @@ &-textitem-editable /deep/ .mat-input-element:focus { padding: 5px; left: -6px; - top: -3px; + top: -6px; } &-textitem-editable /deep/ input.mat-input-element { @@ -79,6 +85,6 @@ } &-textitem-editable /deep/ input.mat-input-element:focus { - margin-bottom: -7px; + margin-bottom: -8px; } }