mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-4900] Card View and Metadata Components refactoring * CSS linting * Unit test excluded * Rebase branch * Fix unit tests * Fix linting * Fix e2e tests * Fix 2e2 tests * Fix process-services e2e tests * More fixes * Fix more e2e tests * Fix unit test * Improve flaky unit test * Fix process services e2e tests * Update Process Header Cloud Page * Fix linting * Fix timing issue * Lintintg * Fix selectors * Fix e2e tests * Fix timing issue * Fix C260328 * Fix spellcheck * save screenshot * performance issue * Fix unit tests and e2e tests * fix e2e * refactoring * fix lint * fix e2e * Fix C309698 * fix other e2e * fix lint * increase timeout Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
189 lines
4.6 KiB
SCSS
189 lines
4.6 KiB
SCSS
@import '~@angular/material/theming';
|
|
|
|
@mixin adf-card-view-textitem-theme($theme) {
|
|
$foreground: map-get($theme, foreground);
|
|
$outline: 1px solid mat-color($alfresco-ecm-blue, A200) !default;
|
|
|
|
.adf {
|
|
&-textitem-edit-icon.mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: mat-color($foreground, text, 0.25);
|
|
}
|
|
|
|
&-textitem-action.mat-icon-button {
|
|
width: 20px;
|
|
height: 20px;
|
|
line-height: 20px;
|
|
color: mat-color($foreground, text, 0.25);
|
|
}
|
|
|
|
&-textitem-action:hover,
|
|
&-textitem-action:focus {
|
|
color: mat-color($foreground, text);
|
|
}
|
|
|
|
&-update-icon {
|
|
padding-left: 13px;
|
|
}
|
|
|
|
&-textitem-readonly {
|
|
cursor: pointer !important;
|
|
|
|
&:hover .adf-textitem-action,
|
|
&:focus .adf-textitem-action {
|
|
color: mat-color($foreground, text);
|
|
}
|
|
}
|
|
|
|
&-textitem-chip-list-container {
|
|
margin-bottom: 25px !important;
|
|
margin-top: 6px;
|
|
|
|
.mat-form-field-label {
|
|
margin-top: 6px;
|
|
}
|
|
}
|
|
|
|
&-textitem-clickable {
|
|
cursor: pointer !important;
|
|
padding-top: 3px;
|
|
|
|
.adf-textitem-edit-icon.mat-icon {
|
|
line-height: 16px;
|
|
}
|
|
|
|
&:hover .adf-textitem-action {
|
|
color: mat-color($foreground, text);
|
|
}
|
|
}
|
|
|
|
&-textitem-clickable-value {
|
|
cursor: pointer !important;
|
|
color: mat-color($primary) !important;
|
|
}
|
|
|
|
&-textitem-editable {
|
|
&-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
mat-icon:not(.adf-button-disabled):hover {
|
|
color: mat-color($foreground, text);
|
|
cursor: pointer !important;
|
|
}
|
|
|
|
mat-form-field {
|
|
width: 100%;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus {
|
|
border: $outline;
|
|
}
|
|
}
|
|
|
|
&-error {
|
|
font-size: 12px;
|
|
padding-top: 4px;
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style-type: none;
|
|
|
|
li {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-textitem-default-value {
|
|
color: mat-color($foreground, text, 0.54);
|
|
}
|
|
|
|
&-textitem-editable .mat-form-field-wrapper {
|
|
margin: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
&-textitem-editable .mat-form-field-underline {
|
|
display: none;
|
|
}
|
|
|
|
&-textitem-editable .mat-form-field-infix {
|
|
padding: 0;
|
|
border-top: none;
|
|
}
|
|
|
|
&-textitem-editable .mat-form-field-label-wrapper {
|
|
padding-top: 2em;
|
|
position: static;
|
|
}
|
|
|
|
&-textitem-editable .mat-form-field-label {
|
|
top: 4px;
|
|
}
|
|
|
|
&-textitem-editable .mat-input-element {
|
|
font-family: inherit;
|
|
position: relative;
|
|
padding-top: 6px;
|
|
}
|
|
|
|
&-textitem-editable .mat-input-element:focus {
|
|
padding: 5px;
|
|
left: -6px;
|
|
top: 0;
|
|
}
|
|
|
|
&-textitem-editable input.mat-input-element {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
&-textitem-editable input.mat-input-element:focus {
|
|
margin-bottom: -8px;
|
|
}
|
|
|
|
&-textitem-scroll {
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
display: block;
|
|
|
|
&::-webkit-scrollbar {
|
|
height: 5px;
|
|
}
|
|
|
|
&:hover::-webkit-scrollbar-thumb {
|
|
display: block;
|
|
background-color: mat-color($foreground, text, 0.25);
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
|
|
&-textitem-multiline {
|
|
display: block;
|
|
}
|
|
|
|
&-property-field .adf-property-clear-value {
|
|
display: none;
|
|
}
|
|
|
|
&-property-field.adf-card-textitem-field:hover {
|
|
.adf-textitem-edit-icon {
|
|
display: none;
|
|
}
|
|
.adf-property-clear-value {
|
|
color: mat-color($foreground, text, 0.25);
|
|
display: inline;
|
|
}
|
|
.adf-property-clear-value:hover {
|
|
color: mat-color($foreground, text, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|