html_instruct_style.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .chat {
  2. margin-left: auto;
  3. margin-right: auto;
  4. max-width: 800px;
  5. height: 66.67vh;
  6. overflow-y: auto;
  7. padding-right: 20px;
  8. display: flex;
  9. flex-direction: column-reverse;
  10. word-break: break-word;
  11. overflow-wrap: anywhere;
  12. }
  13. .message {
  14. display: grid;
  15. grid-template-columns: 60px 1fr;
  16. padding-bottom: 25px;
  17. font-size: 15px;
  18. font-family: Helvetica, Arial, sans-serif;
  19. line-height: 1.428571429;
  20. }
  21. .username {
  22. display: none;
  23. }
  24. .message-body {}
  25. .message-body p {
  26. font-size: 15px !important;
  27. }
  28. .message-body li {
  29. margin-top: 0.5em !important;
  30. margin-bottom: 0.5em !important;
  31. }
  32. .message-body li > p {
  33. display: inline !important;
  34. }
  35. .message-body code {
  36. overflow-x: auto;
  37. }
  38. .message-body :not(pre) > code {
  39. white-space: normal !important;
  40. }
  41. .dark .message-body p em {
  42. color: rgb(138, 138, 138) !important;
  43. }
  44. .message-body p em {
  45. color: rgb(110, 110, 110) !important;
  46. }
  47. .gradio-container .chat .assistant-message {
  48. padding: 15px;
  49. border-radius: 20px;
  50. background-color: #0000000f;
  51. margin-top: 9px !important;
  52. margin-bottom: 18px !important;
  53. }
  54. .gradio-container .chat .user-message {
  55. padding: 15px;
  56. border-radius: 20px;
  57. margin-bottom: 9px !important;
  58. }
  59. .dark .chat .assistant-message {
  60. background-color: #374151;
  61. }