ChatListItem.style.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import styled from "styled-components";
  2. import { Link } from "react-router-dom";
  3. export const ChatListItemWrapper = styled.li`
  4. padding: 0;
  5. background-color: ${(props) => props.isActive ? "#00a6dd" : "#fff"};
  6. height: 62px;
  7. width: 100%;
  8. &:hover{
  9. background-color: ${props => props.isActive ? "#00a6dd" : "#f3f3f3"};
  10. }
  11. `;
  12. export const ChatListItemLink = styled(Link)`
  13. display: flex;
  14. text-decoration: none;
  15. padding: 8px 13px 8px 8px;
  16. `;
  17. export const ChatListItemContent = styled.div`
  18. display: flex;
  19. flex-direction: column;
  20. justify-content: space-between;
  21. width: 100%;
  22. overflow: hidden;
  23. `;
  24. export const ChatListItemHeader = styled.div`
  25. display: flex;
  26. justify-content: space-between;
  27. width: 100%;
  28. `;
  29. export const ChatListItemTitle = styled.h3`
  30. margin: 0;
  31. font-weight: 500;
  32. font-size: 14px;
  33. letter-spacing: 0.3px;
  34. line-height: 1.5;
  35. text-align: left;
  36. color:${(props) => props.isActive ? "#fff" : "#000"} ;
  37. img{
  38. height: 12px;
  39. margin-left: 5px;
  40. }
  41. `;
  42. export const ChatListItemFooter = styled.div`
  43. display: flex;
  44. justify-content: space-between;
  45. // height: 13px;
  46. line-height: 0.5;
  47. width: 100%;
  48. `;
  49. export const ChatListLastMessage = styled.div`
  50. color: ${props => props.isActive ? "#fff" : "#a1a1a1"};
  51. font-size: 13px;
  52. line-height: 1.2;
  53. overflow: hidden !important;
  54. text-overflow: ellipsis;
  55. span{
  56. color: ${props => props.isActive ? "#fff" : "#00a6dd"};
  57. margin-right: 5px;
  58. }
  59. `;
  60. export const MessageDraftChatListItem = styled.div`
  61. color: ${props => props.isActive ? "#fff" : "#a1a1a1"};
  62. font-size: 13px;
  63. line-height: 1.2;
  64. overflow: hidden !important;
  65. text-overflow: ellipsis;
  66. span{
  67. color: ${props => props.isActive ? "#DDDDDD" : "#FF2109"};
  68. margin-right: 5px;
  69. font-size: 14px;
  70. }
  71. `;