mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
138 lines
3.1 KiB
SCSS
138 lines
3.1 KiB
SCSS
@mixin adf-card-view-textitem-theme($theme) {
|
|
$foreground: map-get($theme, foreground);
|
|
|
|
.adf {
|
|
&-textitem-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
position: relative;
|
|
top: 4px;
|
|
padding-left: 8px;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
&-update-icon {
|
|
padding-left: 13px;
|
|
}
|
|
|
|
&-textitem-readonly {
|
|
cursor: pointer !important;
|
|
|
|
&:hover mat-icon {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&-textitem-clickable {
|
|
&:hover mat-icon {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&-textitem-clickable-value {
|
|
cursor: pointer !important;
|
|
color: mat-color($primary);
|
|
}
|
|
|
|
&-textitem-editable {
|
|
|
|
&-controls {
|
|
display: flex;
|
|
|
|
mat-icon:not(.adf-button-disabled):hover {
|
|
opacity: 1;
|
|
cursor: pointer !important;;
|
|
}
|
|
|
|
mat-form-field {
|
|
width: 100%;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus {
|
|
border: 1px solid mat-color($foreground, text, 0.15);
|
|
}
|
|
}
|
|
|
|
&-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-ellipsis {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.mat-button.adf-update-icon {
|
|
min-width: 40px;
|
|
line-height: 0;
|
|
margin-top: -4px;
|
|
padding: 0;
|
|
}
|
|
|
|
}
|