ChatListItem.style.js 1.6 KB

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