variables.scss 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // radius
  2. $radius-chat_chatBox_content: var(--semi-border-radius-large); // 聊天框内容圆角
  3. $radius-chat_inputBox_container: 16px; // 输入框容器圆角
  4. $radius-chat_attachment_img: var(--semi-border-radius-medium); // 附件图片圆角
  5. $radius-chat_attachment_file: var(--semi-border-radius-medium); // 附件文件圆角
  6. $radius-chat_hint_item: var(--semi-border-radius-large); // 提示条圆角
  7. $radius-chat_chatBox_content_code: var(--semi-border-radius-large); // 代码块圆角
  8. $radius-chat_chatBox_content_code_topSlot_copy: var(--semi-border-radius-large); // 代码块顶部复制按钮圆角
  9. $radius-chat_dropArea: 16px; // 拖拽上传区域圆角
  10. //color
  11. $color-chat_action_content-bg: var(--semi-color-bg-0); // 返回按钮/停止生成内容按钮背景颜色
  12. $color-chat_action_content-border: var(--semi-color-border); // 返回按钮/停止生成按钮描边颜色
  13. $color-chat_divider: var(--semi-color-text-2); // 分割线颜色
  14. $color-chat_chatBox_title: var(--semi-color-text-0); //聊天框标题颜色
  15. $color-chat_chatBox_action_icon: var(--semi-color-text-2); // 聊天框操作区域按钮图标颜色
  16. $color-chat_chatBox_action_icon-hover: var(--semi-color-text-0); // 聊天框操作区域按钮图标hover颜色
  17. $color-chat_chatBox_action-bg-hover: transparent; // 聊天框操作区域按钮hover背景颜色
  18. $color-chat_chatBox_content_text: var(--semi-color-text-0); // 聊天框内容文字颜色
  19. $color-chat_chatBox_content_bg: var(--semi-color-fill-0); // 聊天框内容背景颜色
  20. $color-chat_chatBox_content_user-bg: var(--semi-color-primary); // 聊天框内容用户背景颜色
  21. $color-chat_chatBox_content_user-text: var(--semi-color-white); // 聊天框内容用户文字颜色
  22. $color-chat_chatBox_content_error-bg: var(--semi-color-danger-hover); // 聊天框内容错误背景颜色
  23. $color-chat_chatBox_content_error-text: var(--semi-color-white); // 聊天框内容错误文字颜色
  24. $color-chat_inputBottom_clearButton_icon: var(--semi-color-text-2); //清空按钮图标颜色
  25. $color-chat_inputBottom_uploadButton_icon: var(--semi-color-text-0); // 上传按钮图标颜色
  26. $color-chat_inputBottom_sendButton_icon-disable: var(--semi-color-primary-disabled); // 发送按钮禁用态图标颜色
  27. $color-chat_inputBox_container-border: var(--semi-color-border); // 输入框容器边框颜色
  28. $color-chat_attachment_clear_icon: var(--semi-color-text-2); // 附件清除图标颜色
  29. $color-chat_attachment_file-bg: var(--semi-color-fill-0); // 附件文件背景颜色
  30. $color-chat_chatBox_user_attachment_file-bg: var(--semi-color-bg-0); // 用户聊天框附件文件背景颜色
  31. $color-chat_chatBox_other_attachment_file-bg: var(--semi-color-fill-2); // 聊天框附件文件背景颜色
  32. $color-chat_attachment_file_icon: var(--semi-color-text-2); // 附件文件图标颜色
  33. $color-chat_attachment_file_title: var(--semi-color-text-0); // 附件文件标题颜色
  34. $color-chat_attachment_file_metadata_text: var(--semi-color-text-2); // 附件文件元数据文字颜色
  35. $color-chat_hint_item-border: var(--semi-color-border); // 提示条边框颜色
  36. $color-chat_hint_item-bg: transparent; // 提示条背景颜色
  37. $color-chat_hint_item-bg-hover: var(--semi-color-fill-0); // 提示条hover背景颜色
  38. $color-chat_hint_content_text: var(--semi-color-text-1); // 提示条文字颜色
  39. $color-chat_hint_icon: var(--semi-color-text-2); // 提示条图标颜色
  40. $color-chat_chatBox_loading-bg: var(--semi-color-text-0); // 聊天内容加载图标圆圈颜色
  41. $color-chat_chatBox_code_topSlot: rgba(var(--semi-white), 1); // 代码块顶部字体颜色
  42. $color-chat_chatBox_code_topSlot-bg: rgba(var(--semi-grey-4), 1); //代码块顶部背景色
  43. $color-chat_chatBox_code_topSlot_toCopy-bg-hover: rgba(var(--semi-grey-5), 1); // 代码块顶部复制按钮hover背景色
  44. $color-chat_chatBox_code_content: var(--semi-color-bg-0); // 代码块内容背景色
  45. $color-chat_action_content-bg-hover: var(--semi-color-tertiary-light-hover); // 返回按钮/停止生成按钮hover背景颜色
  46. $color-chat_dropArea-bg: rgba(var(--semi-grey-2), 0.9); // 拖拽区域文字颜色
  47. $color-chat_dropArea-border: var(--semi-color-border); // 拖拽区域边框颜色
  48. // spacing
  49. $spacing-chat_paddingY: 12px; // chat组件上下内边距
  50. $spacing-chat_container-paddingX: 16px; // 消息框水平内边距
  51. $spacing-chat_action_content-bottom: 0; // 返回按钮/停止生成按钮底部边距
  52. $spacing-chat_chatBox-marginY: 8px; // 聊天框上下外边距
  53. $spacing-chat_chatBox-columnGap: 12px; // 聊天框内容列间距
  54. $spacing-chat_chatBox_action-columnGap: 10px; // 聊天框操作区域按钮列间距
  55. $spacing-chat_chatBox_action-marginX: 10px; // 聊天框操作区域左右外边距
  56. $spacing-chat_chatBox_action_btn-padding: 0; // 聊天框操作区域按钮内边距
  57. $spacing-chat_chatBox_content-paddingY: 8px; // 聊天框内容上下内边距
  58. $spacing-chat_chatBox_content-paddingX: 12px; // 聊天框内容左右内边距
  59. $spacing-chat_inputBox-paddingTop: 8px; // 输入框顶部内边距
  60. $spacing-chat_inputBox-paddingBottom: 8px; // 输入框底部内边距
  61. $spacing-chat_inputBox-paddingX: 16px; // 输入框左右内边距
  62. $spacing-chat_inputBox_container-padding: 11px; // 输入框容器内边距
  63. $spacing-chat_inputBox_inner-columnGap: 4px; // 输入框容器列间距
  64. // $spacing-chat_inputBox_textarea-marginX: 5px; // 输入框textArea左右内边距
  65. $spacing-chat_inputBox-marginY: 4px;
  66. $spacing-chat_attachment-columnGap: 10px; // 附件列间距
  67. $spacing-chat_attachment-RowGap: 5px; // 附件行间距
  68. $spacing-chat_attachment-marginX: 12px; // 附件左右外边距
  69. $spacing-chat_attachment_clear-top: 8px; // 附件清除图标顶部间距
  70. $spacing-chat_attachment_clear-right: 8px; // 附件清除图标右内边距
  71. $spacing-chat_attachment_file-columnGap: 5px; // 文件附件列间距
  72. $spacing-chat_attachment_file-padding: 5px; // 文件附件内边距
  73. $spacing-chat_chatBox_loading_item-gap: 15px; // 聊天内容加载图标间距
  74. $spacing-chat_divider-marginY: 12px; // 分割线上下外边距
  75. $spacing-chat_chatBox_content_attachment-marginY: 4px; // 聊天框内容文件/图片上下外间距
  76. $spacing-chat_chatBox_content_attachment-marginRight: 4px; //聊天框内容文件/图片上下右间距
  77. $spacing-chat_chatBox_content_code_topSlot-paddingX: 5px; // 聊天框代码块顶部上下内边距
  78. $spacing-chat_chatBox_content_code_topSlot-paddingY: 8px; // 聊天框代码块顶部左右内边距
  79. $spacing-chat_chatBox_content_code_topSlot_copy-columnGap: 5px; // 聊天框代码块顶部复制按钮列间距:
  80. $spacing-chat_chatBox_content_code_topSlot_copy-padding: 5px; // 聊天框代码块顶部复制按钮列间距:
  81. $spacing-chat_chatBox_wrap: 8px; // 聊天框外层间距
  82. $spacing-chat_hint-rowGap: 10px; // 提示条行间距
  83. $spacing-chat_hint-marginY: 12px; // 提示条容器上下外边距
  84. $spacing-chat_hint-marginLeft: 34px; // 提示条容器左外边距
  85. $spacing-chat_hint_item-marginY: 8px; // 提示条上下外边距
  86. $spacing-chat_hint_item-marginX: 12px; // 提示条左右外边距
  87. $spacing-chat_hint_item-columnGap: 20px; // 提示条内容列间距
  88. $spacing-chat_chatBox_loading-item-marginX: 18px; // 聊天内容加载图标中心圆圈左右外边距
  89. $spacing-chat_chatBox_loading-item-marginY: 6px; // 聊天内容加载图标中心圆圈上下外边距
  90. // width
  91. $width-chat_backBottom_wrapper: 42px; // 返回按钮宽度
  92. $width-chat_action_content-border: 1px; // 返回按钮/停止生成按钮描边宽度
  93. $width-chat_inputBottom_clearButton: 48px; // 清空按钮宽度
  94. $width-chat_inputBottom_uploadButton: 32px; // 上传按钮宽度
  95. $width-chat_inputBottom_sendButton: 32px; // 发送按钮宽度
  96. $width-chat_inputBox_container-border: 1px; // 输入框容器边框宽度
  97. $width-chat_attachment_file: 50px; // 附件文件宽度
  98. $width-chat_hint_item-border: 1px; // 提示条边框宽度
  99. $width-chat_chatBox_loading: 8px; // 加载中单个圆圈图标宽度
  100. $width-chat_attachment_file_title: 90px; // 附件文件标题最大宽度
  101. $width-chat_max: 800px; // chat组件最大宽度
  102. $width-chat_dropArea-border: 5px; // 拖拽上传边框宽度
  103. $width-chat_chatBox_content_code_topSlot_copy: 150px; // 聊天框代码块顶部复制按钮最小宽度
  104. // height
  105. $height-chat_action_stop: 42px; //停止生成按钮高度
  106. //font
  107. $font-chat_divider-fontWeight: $font-weight-regular; // 分割线字重
  108. $font-chat_divider-fontSize: $font-size-small; // 分割线字体大小
  109. $font-chat_chatBox_title-lineHeight: 20px; //聊天框标题行高
  110. $font-chat_chatBox_title-fontSize: $font-size-header-6; // 聊天框标题字体大小
  111. $font-chat_chatBox_title-fontWeight: $font-weight-regular; // 聊天框标题字重
  112. $font-chat_inputBottom_clearButton_icon-fontSize: 30px; // 输入区清空上下文按钮图标大小
  113. $font-chat_attachment_file_title-fontSize: $font-size-header-6; // 附件文件标题字体大小
  114. $font-chat_attachment_file_metadata-fontSize: $font-size-regular; // 附件文件元数据字体大小
  115. $font-chat_hint_content-fontSize: $font-size-regular; // 提示条文字大小
  116. // $font-chat_hint_icon: 20px; // 提示条图标大小
  117. $font-chat_chatBox_code_topSlot: 12px; // 代码块顶部字体大小
  118. $font-chat_chatBox_code_topSlot-lineHeight: 16px; //代码块顶部区域字体行高
  119. $font-chat_dropArea_text: 48px; // 拖拽上传区域文字大小
  120. //z-index
  121. $z-chat_dropArea: 10; // 拖拽上传区域z-index
  122. $z-chat_action: 1; // 返回按钮/停止生成按钮z-index