style.module.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. .question {
  48. display: inline-block;
  49. max-width: 100%;
  50. }
  51. .answer {
  52. display: inline-block;
  53. max-width: 100%;
  54. }
  55. .answerWrap:hover .copyBtn {
  56. display: block;
  57. }
  58. .answerWrap .itemOperation {
  59. display: none;
  60. }
  61. .answerWrap:hover .itemOperation {
  62. display: flex;
  63. }
  64. .question::before {
  65. right: 0;
  66. background: url(./icons/question.svg) no-repeat;
  67. }
  68. .textArea {
  69. padding-top: 13px;
  70. padding-bottom: 13px;
  71. padding-right: 130px;
  72. border-radius: 12px;
  73. line-height: 20px;
  74. background-color: #fff;
  75. }
  76. .textArea:hover {
  77. background-color: #fff;
  78. }
  79. /* .textArea:focus {
  80. box-shadow: 0px 3px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.05);
  81. } */
  82. .count {
  83. /* display: none; */
  84. padding: 0 2px;
  85. }
  86. .sendBtn {
  87. background: url(./icons/send.svg) center center no-repeat;
  88. }
  89. .sendBtnActive {
  90. background-image: url(./icons/send-active.svg);
  91. }
  92. .sendBtn:hover {
  93. background-image: url(./icons/send-active.svg);
  94. background-color: #EBF5FF;
  95. }
  96. .textArea:focus+div .count {
  97. display: block;
  98. }
  99. .textArea:focus+div .sendBtn {
  100. background-image: url(./icons/send-active.svg);
  101. }