page-companion.component_20241201213925.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .button-container {
  2. position: absolute; /* 绝对定位 */
  3. top: 8px; /* 距离顶部的距离 */
  4. left: 6px; /* 距离左侧的距离 */
  5. display: flex; /* 使用flexbox布局 */
  6. flex-direction: row; /* 垂直排列 */
  7. }
  8. .custom-button {
  9. font-size: 14px; /* 按钮字体大小 */
  10. border-radius: 6px; /* 圆角按钮 */
  11. color: rgb(250, 222, 222); /* 字体颜色 */
  12. transition: opacity 0.3s, color 0.3s; /* 添加过渡效果 */
  13. }
  14. /* 添加按钮的悬停效果 */
  15. .custom-button:hover {
  16. opacity: 0.5 !important; /* 悬停时透明度变化 */
  17. color:aqua !important;
  18. }
  19. ion-content {
  20. --background: #ffcccb; /* 设置背景颜色为粉色 */
  21. color: black; /* 设置文本颜色为黑色,确保可读性 */
  22. }
  23. ion-header {
  24. background-color: #f19595; /* 设置背景颜色为淡粉色 */
  25. color: black; /* 设置文本颜色为黑色 */
  26. }
  27. ion-toolbar {
  28. --background: transparent; /* 如果需要透明效果,可以设置为透明 */
  29. width: 200px;
  30. margin: auto;
  31. }
  32. .chat-container {
  33. display: flex;
  34. flex-direction: column;
  35. height: 100%;
  36. padding: 10px;
  37. background-color: #f0f0f0;
  38. }
  39. .chat-title {
  40. text-align: center;
  41. margin: 10px 0;
  42. }
  43. .messages {
  44. flex: 1;
  45. overflow-y: auto;
  46. padding: 10px;
  47. background-color: white;
  48. border-radius: 8px;
  49. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  50. }
  51. .user-message {
  52. text-align: right;
  53. margin: 5px 0;
  54. padding: 10px;
  55. background-color: #007bff;
  56. color: white;
  57. border-radius: 10px;
  58. display: inline-block;
  59. max-width: 70%; /* 限制用户消息宽度 */
  60. align-self: flex-end; /* 用户消息右对齐 */
  61. }
  62. .ai-message {
  63. text-align: left;
  64. margin: 5px 0;
  65. padding: 10px;
  66. background-color: #e0e0e0;
  67. border-radius: 10px;
  68. display: inline-block;
  69. max-width: 70%; /* 限制 AI 消息宽度 */
  70. align-self: flex-start; /* AI 消息左对齐 */
  71. }
  72. .input-area {
  73. display: flex;
  74. align-items: center;
  75. margin-top: 10px;
  76. }