IO-1558 Add color to dates that are today.
This commit is contained in:
@@ -92,13 +92,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.production-completion-1 {
|
.production-completion-1 {
|
||||||
animation: production-completion-1-blinker 5s linear infinite;
|
color: rgba(207, 12, 12, 0.8);
|
||||||
}
|
|
||||||
@keyframes production-completion-1-blinker {
|
// animation: production-completion-1-blinker 1s linear infinite;
|
||||||
50% {
|
|
||||||
background: rgba(207, 12, 12, 0.555);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// @keyframes production-completion-1-blinker {
|
||||||
|
// 50% {
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
.react-resizable {
|
.react-resizable {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -72,14 +72,14 @@ export default function ProductionListDate({ record, field, time }) {
|
|||||||
style={{
|
style={{
|
||||||
height: "19px",
|
height: "19px",
|
||||||
}}
|
}}
|
||||||
|
className={
|
||||||
|
!!record[field] && moment().isSame(moment(record[field]), "day")
|
||||||
|
? "production-completion-1"
|
||||||
|
: ""
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<DateFormatter
|
<DateFormatter
|
||||||
bordered={false}
|
bordered={false}
|
||||||
className={
|
|
||||||
!!record[field] && new Date(record[field]) - Now < OneCalendarDay
|
|
||||||
? "production-completion-1"
|
|
||||||
: ""
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{record[field]}
|
{record[field]}
|
||||||
</DateFormatter>
|
</DateFormatter>
|
||||||
|
|||||||
Reference in New Issue
Block a user