chat.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @new-message-height: 80px;
  2. #chat-wrapper {
  3. > .ui-layout-resizer > .ui-layout-toggler {
  4. display: none !important;
  5. }
  6. }
  7. .chat {
  8. .loading {
  9. font-family: @font-family-serif;
  10. padding: @line-height-computed / 2;
  11. text-align: center;
  12. }
  13. .no-messages {
  14. padding: @line-height-computed / 2;
  15. color: @chat-instructions-color;
  16. }
  17. .first-message {
  18. position: absolute;
  19. bottom: 0;
  20. width: 100%;
  21. padding: @line-height-computed / 2;
  22. color: @chat-instructions-color;
  23. }
  24. .messages {
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. right: 0;
  29. bottom: @new-message-height;
  30. overflow-x: hidden;
  31. background-color: @chat-bg;
  32. li.message {
  33. margin: @line-height-computed / 2;
  34. .date {
  35. font-size: 12px;
  36. color: @chat-message-date-color;
  37. margin-bottom: @line-height-computed / 2;
  38. text-align: right;
  39. }
  40. .message-wrapper {
  41. .name {
  42. font-size: 12px;
  43. color: @chat-message-name-color;
  44. margin-bottom: 4px;
  45. min-height: 16px;
  46. }
  47. .message {
  48. border-left: 3px solid transparent;
  49. font-size: 14px;
  50. box-shadow: @chat-message-box-shadow;
  51. border-radius: @chat-message-border-radius;
  52. position: relative;
  53. .message-content {
  54. padding: @chat-message-padding;
  55. overflow-x: auto;
  56. color: @chat-message-color;
  57. font-weight: @chat-message-weight;
  58. }
  59. .arrow {
  60. transform: rotate(90deg);
  61. right: 90%;
  62. top: -15px;
  63. border: solid;
  64. content: ' ';
  65. height: 0;
  66. width: 0;
  67. position: absolute;
  68. pointer-events: none;
  69. border-top-color: transparent !important;
  70. border-bottom-color: transparent !important;
  71. border-width: 10px;
  72. }
  73. }
  74. p {
  75. margin-bottom: @line-height-computed / 4;
  76. &:last-child {
  77. margin-bottom: 0;
  78. }
  79. }
  80. }
  81. &:not(.self) {
  82. .message {
  83. .arrow {
  84. border-left-color: transparent !important;
  85. }
  86. }
  87. }
  88. &.self {
  89. margin-top: @line-height-computed;
  90. .message-wrapper .message {
  91. border-left: none;
  92. border-right: 3px solid transparent;
  93. .arrow {
  94. left: 100%;
  95. right: auto;
  96. border-right-color: transparent !important;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. .new-message {
  103. .full-size;
  104. top: auto;
  105. height: @new-message-height;
  106. background-color: @chat-new-message-bg;
  107. padding: @line-height-computed / 4;
  108. border-top: 1px solid @chat-new-message-border-color;
  109. textarea {
  110. overflow: auto;
  111. resize: none;
  112. border-radius: @border-radius-base;
  113. border: 1px solid @chat-new-message-border-color;
  114. height: 100%;
  115. width: 100%;
  116. color: @chat-new-message-textarea-color;
  117. font-size: 14px;
  118. padding: @line-height-computed / 4;
  119. background-color: @chat-new-message-textarea-bg;
  120. }
  121. }
  122. }
  123. .break-word {
  124. word-break: break-all;
  125. }