mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* [ADF-4755] [CardViewDateItemComponent] Provide a way to reset date. * Added clear icon to reset date to empty. * Added Translation key to the new icon. * * Added displayClearAction flag to toggle clear action.* Added None as default for the selectItem components.* Added displayNoneOption flag to toggle the default none option. * * Fixed comments. * * Added translation key for 'none' option. * * Updated dateItem css to the match recent changes. * * Fixed failing unit tests* Updated TaskHeader components with the displayClearAction. * * Updated demo shell card-view component to test the latest changes
60 lines
1.5 KiB
SCSS
60 lines
1.5 KiB
SCSS
@mixin adf-card-view-dateitem-theme($theme) {
|
|
|
|
.adf {
|
|
&-invisible-date-input {
|
|
height: 2px;
|
|
width: 0;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
border: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
float: right;
|
|
}
|
|
|
|
&-dateitem-editable {
|
|
cursor: pointer;
|
|
|
|
&-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
button.mat-icon-button {
|
|
line-height: 20px;
|
|
height: 20px;
|
|
width: 20px;
|
|
}
|
|
|
|
mat-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&:hover mat-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.adf-datepicker-toggle {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
mat-icon.adf-date-reset-icon {
|
|
line-height: 10px;
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
position: relative;
|
|
top: 4px;
|
|
padding-left: 8px;
|
|
opacity: 0.3;
|
|
}
|
|
&:hover mat-icon.adf-date-reset-icon {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|