frontend-tutorial-framework/src/app/messages/messages.component.scss

118 lines
2.2 KiB
SCSS

@import "../../assets/scss/variables.scss";
@import "../../assets/scss/mixins/layout";
@import "../../assets/scss/mixins/button";
.tfw-grid-message {
display: grid;
grid-template-rows: 1fr auto;
grid-row-gap: $hair;
width: 100%;
padding: $small;
border-radius: $tao-panel-border-radius-sm;
font-size: $font-size-base;
margin-bottom: 8px;
animation-name: inflate;
animation-duration: 0.5s;
animation-timing-function: cubic-bezier(0.01, 0.1, 0, 1);
color: white;
background-color: $tao-card-color;
.tfw-btn {
color: $tao-btn-font-color;
display: flex;
align-items: center;
text-align: center;
.no {
@include set-button-style($tao-red-color);
}
.yes {
@include set-button-style($tao-green-color);
}
.solution {
@include set-button-style($tao-green-color);
}
.hint {
@include set-button-style($tao-yellow-color);
}
.fix {
@include set-button-style($tao-yellow-color);
}
.next {
@include set-button-style($tao-blue-color);
}
}
}
.highlighted-message {
box-shadow: 0px 0px 3px 0px rgba($tao-gray-300,0.65);
}
@keyframes inflate {
0% { transform: scale(0,0); }
100% { transform: scale(1,1); }
}
.jumping-circle-container {
display: flex;
padding-top: 1.3em;
padding-bottom: 1em;
}
.jumping-circle {
width: 0.5em;
height: 0.5em;
border-radius: 50%;
background-color: gray;
margin-top: 0.3em;
margin-left: 0.3em;
animation-name: float;
animation-duration: 1.7s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
#jc2 { animation-delay: 0.2s; }
#jc3 { animation-delay: 0.45s; }
@keyframes float {
0% { transform: translateY(0em); }
30% { transform: translateY(-0.5em); }
60% { transform: translateY(0.2em); }
80% { transform: translateY(0em); }
90% { transform: translateY(-0.5em); }
100% { transform: translateY(0em); }
}
.tfw-grid-message-header {
display: grid;
grid-template-columns: 1fr 5fr 8fr;
grid-column-gap: 4px;
width: 100%;
img {
width: 12px;
}
.originator {
font-weight: 500;
}
.timestamp {
font-size: $font-size-tiny;
opacity: 0.37;
}
}
.tfw-grid-message-body {
@include word-break();
}