MessagesArea.style.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import styled from "styled-components";
  2. import 'simplebar/dist/simplebar.min.css';
  3. import SimpleBar from 'simplebar-react';
  4. export const MessagesAreaWrapper = styled.div`
  5. height: 100%;
  6. width: 100%;
  7. overflow: hidden;
  8. position: relative;
  9. `;
  10. export const SimpleBarWrapper = styled(SimpleBar)`
  11. height: 100%;
  12. overflow-x: hidden;
  13. div.simplebar-content-wrapper, div.simplebar-content, div.simplebar-vertical{
  14. display: flex;
  15. flex-direction: column-reverse;
  16. }
  17. `;
  18. export const DropContainer = styled.div`
  19. height: 100%;
  20. overflow: hidden;
  21. width: 100%;
  22. position: relative;
  23. div.drop{
  24. display: ${props => props.isDragAccept ? 'flex': 'none'};
  25. justify-content: center;
  26. font-size: 30px;
  27. align-items: center;
  28. position: absolute;
  29. color: rgba(0,0,0,.4);
  30. z-index: 100;
  31. width: 100%;
  32. height: 100%;
  33. border: 3px dashed grey;
  34. background: rgba(0,0,0,.3);
  35. top: 50%;
  36. left: 50%;
  37. transform: translate(-50%, -50%);
  38. }
  39. `;
  40. export const MessageGroup = styled.div`
  41. display: flex;
  42. margin-top: 10px;
  43. margin-left: 20px;
  44. `;
  45. export const ScrollBottom = styled.div`
  46. position: absolute;
  47. transition: all 0.2s ease-out;
  48. right: 50px;
  49. bottom: ${props => props.isVisible ? '50px' : '-50px'};
  50. border-radius: 50%;
  51. background-color: #00a6dd;
  52. display: flex;
  53. justify-content: center;
  54. align-items: center;
  55. z-index: 100;
  56. cursor: pointer;
  57. `;