style.module.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. .answerIcon {
  2. position: relative;
  3. background: url(./icons/robot.svg) 100%/100%;
  4. }
  5. .typeingIcon {
  6. position: absolute;
  7. top: 0px;
  8. left: 0px;
  9. display: flex;
  10. justify-content: center;
  11. align-items: center;
  12. width: 16px;
  13. height: 16px;
  14. background: #FFFFFF;
  15. box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  16. border-radius: 16px;
  17. }
  18. .questionIcon {
  19. background: url(./icons/default-avatar.jpg);
  20. background-size: contain;
  21. border-radius: 50%;
  22. }
  23. .answer::before,
  24. .question::before {
  25. content: '';
  26. position: absolute;
  27. top: 0;
  28. width: 8px;
  29. height: 12px;
  30. }
  31. .answer::before {
  32. left: 0;
  33. background: url(./icons/answer.svg) no-repeat;
  34. }
  35. .copyBtn {
  36. display: none;
  37. }
  38. .answerWrapWrap,
  39. .questionWrapWrap {
  40. width: 0;
  41. flex-grow: 1;
  42. }
  43. .questionWrapWrap {
  44. display: flex;
  45. justify-content: flex-end;
  46. }
  47. .answerWrap,
  48. .question {
  49. display: inline-block;
  50. max-width: 100%;
  51. }
  52. .answerWrap:hover .copyBtn {
  53. display: block;
  54. }
  55. .answerWrap .itemOperation {
  56. display: none;
  57. }
  58. .answerWrap:hover .itemOperation {
  59. display: flex;
  60. }
  61. .question::before {
  62. right: 0;
  63. background: url(./icons/question.svg) no-repeat;
  64. }
  65. .textArea {
  66. padding-top: 13px;
  67. padding-bottom: 13px;
  68. padding-right: 130px;
  69. border-radius: 12px;
  70. line-height: 20px;
  71. background-color: #fff;
  72. }
  73. .textArea:hover {
  74. background-color: #fff;
  75. }
  76. /* .textArea:focus {
  77. box-shadow: 0px 3px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.05);
  78. } */
  79. .count {
  80. /* display: none; */
  81. padding: 0 2px;
  82. }
  83. .sendBtn {
  84. background: url(./icons/send.svg) center center no-repeat;
  85. }
  86. .sendBtnActive {
  87. background-image: url(./icons/send-active.svg);
  88. }
  89. .sendBtn:hover {
  90. background-image: url(./icons/send-active.svg);
  91. background-color: #EBF5FF;
  92. }
  93. .textArea:focus+div .count {
  94. display: block;
  95. }
  96. .textArea:focus+div .sendBtn {
  97. background-image: url(./icons/send-active.svg);
  98. }