chat.less 3.1 KB

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