mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-04-03 11:52:40 +00:00
Add highlight to latest message
This commit is contained in:
parent
02f8fc9774
commit
c6f9edc9f7
@ -11,7 +11,9 @@
|
|||||||
<div class="jumping-circle" id="jc2"></div>
|
<div class="jumping-circle" id="jc2"></div>
|
||||||
<div class="jumping-circle" id="jc3"></div>
|
<div class="jumping-circle" id="jc3"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tfw-grid-message" *ngFor="let message of messages.slice().reverse()">
|
<div class="tfw-grid-message"
|
||||||
|
*ngFor="let message of messages.slice().reverse(); let first = first"
|
||||||
|
[class.highlighted-message]="first">
|
||||||
<div class="tfw-grid-message-header">
|
<div class="tfw-grid-message-header">
|
||||||
<img class="tao-grid-center-left" src="images/avataobot.svg"/>
|
<img class="tao-grid-center-left" src="images/avataobot.svg"/>
|
||||||
<div class="tao-grid-center-left originator">{{message.originator}}</div>
|
<div class="tao-grid-center-left originator">{{message.originator}}</div>
|
||||||
|
@ -34,6 +34,12 @@
|
|||||||
animation-timing-function: cubic-bezier(0.01, 0.1, 0, 1);
|
animation-timing-function: cubic-bezier(0.01, 0.1, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlighted-message {
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: $tao-blue-100;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes inflate {
|
@keyframes inflate {
|
||||||
0% { transform: scale(0,0); }
|
0% { transform: scale(0,0); }
|
||||||
100% { transform: scale(1,1); }
|
100% { transform: scale(1,1); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user