Message.style.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import styled from "styled-components";
  2. export const MessageWrapper = styled.div`
  3. display: flex;
  4. margin:30px;
  5. `;
  6. export const MessageContainer = styled.div`
  7. color: #000;
  8. max-width: 400px;
  9. background-color: #E2DCC2;
  10. padding: 12px 16px 8px;
  11. position: relative;
  12. display: block;
  13. border-radius: 5px 5px 5px 0px;
  14. &::before{
  15. content: '';
  16. width: 15px;
  17. height: 15px;
  18. position: absolute;
  19. background-color: #E2DCC2;
  20. bottom: 0;
  21. left: -14px;
  22. clip-path: polygon(75% 63%, 83% 53%, 90% 41%, 94% 31%, 98% 15%, 100% 0, 100% 100%, 22% 100%, 34% 94%, 43% 88%, 55% 80%, 65% 72%);
  23. };
  24. `;
  25. export const MessageText = styled.div`
  26. width: 100%;
  27. text-align: left;
  28. word-wrap: break-word;
  29. font-size: 14px;
  30. line-height: 1.4;
  31. `;
  32. export const TimeMessage = styled.span`
  33. color: #a1a1a1;
  34. font-size: 13px;
  35. `;
  36. export const MessageFooter = styled.div`
  37. display: flex;
  38. justify-content: space-between;
  39. margin-top: 5px;
  40. `;
  41. export const MessageOwner = styled.div`
  42. color: #a1a1a1;
  43. font-size: 13px;
  44. margin-right: 30px;
  45. `;