From b72d631ca318edcc48629c896e318b4da41a6dbd Mon Sep 17 00:00:00 2001 From: Sarah Abouzainah Date: Mon, 19 Oct 2020 13:26:45 +0200 Subject: Apply style to mat-table in Mapping Issue-ID: CCSDK-2795 Signed-off-by: Sarah Abouzainah Change-Id: I1a2d977055835906ab86390986a2eea92d0422ae --- .../templ-mapp-creation.component.html | 130 ++++++++------------- cds-ui/designer-client/src/styles.css | 109 ++++++++++++++--- 2 files changed, 137 insertions(+), 102 deletions(-) (limited to 'cds-ui/designer-client/src') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html index be84e7127..70b1644ab 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html @@ -130,33 +130,32 @@
- - - Filter - - - -
-
- - -
- - -
- {{selectedProps.size}} selected - ({{resourceDictionaryRes.length}} attributes in total) -
-
-
+ +
+
+ + +
+ + +
+ {{selectedProps.size}} selected + ({{resourceDictionaryRes.length}} attributes in total) +
+
+ + + Filter + + - - + - - + - - + - + - - + - - - + - - + - - + - - + - -
@@ -180,8 +179,7 @@ Template Input @@ -193,19 +191,17 @@ Parameter Name {{dict['name'] }} Dictionary Name {{dict['name'] }} Dictionary Source @@ -217,23 +213,19 @@ Dependancies Default {{ dict.definition?.property?.default }} Velocity @@ -244,43 +236,34 @@ - - + Data Type {{ dict.definition?.property?.type }} Entry Schema {{dict.definition?.property['entry_schema']}}
No data matching the filter "{{input.value}}"
- -
- - - - Filter - - -
+ + Filter + + + - @@ -289,8 +272,7 @@ - - + - - + - + - - + - - - + - - + - - + - - + - -
Required Template Input @@ -298,19 +280,17 @@ Parameter Name {{dict['name'] }} Dictionary Name {{dict['name'] }} Dictionary Source @@ -318,23 +298,19 @@ disabled> Dependancies Default {{dict['property']['default']}} Velocity @@ -347,39 +323,27 @@ - - + Data Type {{ dict['property']['type'] }} Entry Schema {{dict['property']['entry_schema']}}
No data matching the filter "{{input.value}}"
- -
-
- - - - - diff --git a/cds-ui/designer-client/src/styles.css b/cds-ui/designer-client/src/styles.css index 8d4ee8e29..6c315ea3a 100644 --- a/cds-ui/designer-client/src/styles.css +++ b/cds-ui/designer-client/src/styles.css @@ -21,6 +21,9 @@ body{ .custom-control-input:checked ~ .custom-control-label::before{ border-color: transparent !important; } +.btn{ + transition: all .2s ease-out !important; +} .btn-outline-danger{ background: #fff !important; border: solid 1px #ECEDF2 !important; @@ -29,6 +32,10 @@ body{ .btn:disabled:hover{ cursor: default; } +.btn.disabled, +.btn:disabled{ + opacity: .5 !important; +} .custom-control-label::before{ border: solid 1px #C3CDDB !important; border-radius: 0 !important; @@ -3039,7 +3046,16 @@ padding: 0 10px 0 0; background: transparent; } .mapping-editBar{ - margin-bottom: 1rem; + margin-top: 6px; +} +.mapping-editBar .selectedAttributes{ + margin-left: 6px; + line-height: 35px; + font-size: 10px; + font-weight: bold; +} +.selectedAttributes .totalAtt{ + color: #C4CEDB; } .mapping-editBar .custom-checkbox, .mapping-editBar .btn{ @@ -3062,11 +3078,11 @@ padding: 0 10px 0 0; .mapping-editBar .btn i{ color: #1B3E6F; font-size: 18px; - opacity: .5; + /* opacity: .5; */ } .mapping-editBar .custom-checkbox:hover, .mapping-editBar .btn:hover i{ - opacity: 1; + opacity: .8; } .template-mapping-list{ background: #F4F9FE; @@ -3239,10 +3255,7 @@ margin-right: 5px; .template-mapping-action .btn-outline-secondary{ background:#fff !important ; border-color:#ECEDF2 !important ; - color: #C3CDDB !important ; -} -.template-mapping-action .btn-outline-secondary:hover{ - color: #1B3E6F !important; + color: #1B3E6F !important ; } .table-container{ width: 100%; @@ -3267,14 +3280,63 @@ margin-right: 5px; font-size: 13px; /* font-weight: bold; */ } - +/*Mat Table*/ +.mat-elevation-z8{ + box-shadow: none !important; +} +.mat-table, +.mat-paginator{ + background: #fff !important; + color: #1B3E6F !important; +} +.mat-table{ + border-top: solid 1px #ECEDF2; +} +.mat-paginator{ + /* display: inline-block; */ + width: 36%; + float: right; +} +.mat-input-element{ + font-size: 13px !important; + line-height: 20px !important; +} +tr.mat-header-row{ + background: #f4f9fe; + border-bottom: 1px solid #ecedf2; +} +.mat-sort-header-button{ + text-align: left; +} +.mat-cell, .mat-footer-cell{ + color: #1B3E6F !important; +} +.mat-form-field-appearance-legacy .mat-form-field-wrapper{ + padding-bottom: 0; +} +.mat-paginator-page-size-select .mat-form-field-wrapper{ + padding-bottom: 14px; +} +.mat-form-field-infix, .dataTables_filter input{ color: #1B3E6F; - background: url(../src/assets/img/icon-search.svg) 9px center no-repeat; - padding: 4px 9px 4px 24px !important; - border: solid 1px #ECEDF2; + padding: 4px 9px !important; + border: solid 1px #ECEDF2 !important; border-radius: 4px; } +.mat-focused .mat-form-field-infix{ + border-bottom: 0 !important; +} +.tableFilter{ + margin-top: 9px; +} +.tableFilter .mat-form-field-wrapper{ + padding-bottom: 0; +} +.tableFilter .mat-form-field-infix{ + background: url(../src/assets/img/icon-search.svg) 9px center no-repeat; + padding-left: 24px !important; +} .dataTables_filter input:focus{ box-shadow: 0 2px 6px 0 rgba(47, 83, 151, 0.1); } @@ -3290,11 +3352,25 @@ margin-right: 5px; padding-left: 20px !important; } .mapping-table thead th{ + padding: 4px 20px 4px 0 !important; border-bottom-color: #ECEDF2 !important; + color: #1B3E6F; + font-weight: bold; + font-size: 12px; } .mapping-table tbody tr:hover{ background-color: #F4F9FE !important; } +.mat-form-field-label{ + color: #1B3E6F !important; + font-size: 13px !important; + padding-left: 26px; + line-height: 20px !important; +} +.mat-select-value, +.mat-select-arrow{ + color: #1B3E6F !important; +} .mapping-table th{ padding-top: 10px !important; padding-bottom: 10px !important; @@ -3307,6 +3383,9 @@ table.dataTable.no-footer{ margin-bottom: 9px; border-bottom: solid 1px #ECEDF2 !important; } +.mat-paginator-container{ + padding-right: 0; +} .dataTables_info{ padding-top: 12px; color: #1B3E6F !important; @@ -3520,11 +3599,3 @@ for simplicity .mat-icon-button[disabled]{ color: rgba(224, 232, 242, .5) !important; } - - - - - - - - -- cgit 1.2.3-korg