AIChatter.module.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .container {
  2. position: relative;
  3. width: 100%;
  4. height: 60%; // 原值:60%
  5. padding: 10px;
  6. box-sizing: border-box;
  7. background-color: #ffffff;
  8. border-radius: 10px;
  9. .header {
  10. position: relative;
  11. padding-bottom: 10px;
  12. &::after {
  13. content: "";
  14. position: absolute;
  15. left: 0;
  16. right: 0;
  17. bottom: 0;
  18. height: 10px; /* 控制阴影的高度 */
  19. box-shadow: 0 8px 8px -4px rgba(0, 0, 0, 0.2); /* 自定义阴影的大小和颜色 */
  20. z-index: -1; /* 确保阴影在内容下方 */
  21. }
  22. }
  23. .message-box {
  24. width: 100%;
  25. height: 80%;
  26. overflow-y: auto;
  27. .item {
  28. display: flex;
  29. align-items: flex-start;
  30. margin-bottom: 15px;
  31. .content {
  32. background-color: #f0f0f0;
  33. padding: 8px 12px;
  34. border-radius: 16px;
  35. word-break: break-word;
  36. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  37. }
  38. }
  39. }
  40. .question-box {
  41. position: absolute;
  42. bottom: 10px;
  43. left: 10px;
  44. right: 10px;
  45. height: 10%;
  46. //background-color: red;
  47. .input-group {
  48. display: flex;
  49. align-items: center;
  50. //border: 1px solid #d9d9d9;
  51. border: 1px solid #ececec;
  52. border-radius: 5px;
  53. //background-color: red;
  54. & .button {
  55. width: 140px;
  56. //&:hover {
  57. // background-color: #d9d9d9;
  58. //}
  59. }
  60. }
  61. }
  62. }
  63. //教师视图 应当适配correctPage
  64. .teacher-view{
  65. position: relative;
  66. width: 100%;
  67. height: 90%;
  68. padding: 5px;
  69. box-sizing: border-box;
  70. background-color: #ffffff;
  71. border-radius: 10px;
  72. .message-box {
  73. width: 100%;
  74. height: 34vh;
  75. overflow: auto;
  76. .item {
  77. display: flex;
  78. align-items: flex-start;
  79. margin-bottom: 15px;
  80. .content {
  81. background-color: #f0f0f0;
  82. padding: 8px 12px;
  83. border-radius: 16px;
  84. word-break: break-word;
  85. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  86. }
  87. }
  88. }
  89. }
  90. // .question-box {
  91. // height: 10%;
  92. //
  93. // .input-group {
  94. // border: 1px solid #d9d9d9;
  95. // border-radius: 5px;
  96. // .button {
  97. // width: 40px;
  98. // &:hover {
  99. // background-color: #d9d9d9;
  100. // }
  101. // }
  102. // }
  103. // }
  104. //
  105. //}