mirror of
https://github.com/Lissy93/happy-app.git
synced 2021-05-12 19:52:18 +03:00
45 lines
969 B
SCSS
45 lines
969 B
SCSS
@import "../../styles/constants.scss"; // All hardcoded reused values, must be defined as a constant
|
|
|
|
|
|
.message-chart{
|
|
|
|
.speech-bubble {
|
|
position: relative;
|
|
border-radius: 0.2em;
|
|
width: 12em;
|
|
min-height: 3em;
|
|
margin: 1em 0.5em;
|
|
padding: 0.5em;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
clear: both;
|
|
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 0;
|
|
border: 1.75em solid transparent;
|
|
border-bottom: 0;
|
|
border-left: 0;
|
|
margin-left: -0.875em;
|
|
margin-bottom: -1.75em;
|
|
}
|
|
|
|
@mixin color-mixin($color) {
|
|
background: $color; &:after{ border-top-color: $color; }
|
|
}
|
|
|
|
&.good { @include color-mixin(lighten(#4DC54E, 35%)); }
|
|
&.average { @include color-mixin(lighten(#D3D030, 35%)); }
|
|
&.bad { @include color-mixin(lighten(#BB5337, 35%)); }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|