You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_chat.scss 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. #chat-conversation-container {
  2. // extract message input height
  3. height: calc(100% - 64px);
  4. overflow: hidden;
  5. position: relative;
  6. }
  7. #chatconversation {
  8. box-sizing: border-box;
  9. flex: 1;
  10. font-size: 10pt;
  11. height: 100%;
  12. line-height: 20px;
  13. overflow: auto;
  14. padding: 16px;
  15. text-align: left;
  16. word-wrap: break-word;
  17. display: flex;
  18. flex-direction: column;
  19. & > :first-child {
  20. margin-top: auto;
  21. }
  22. a {
  23. display: block;
  24. }
  25. a:link {
  26. color: rgb(184, 184, 184);
  27. }
  28. a:visited {
  29. color: white;
  30. }
  31. a:hover {
  32. color: rgb(213, 213, 213);
  33. }
  34. a:active {
  35. color: black;
  36. }
  37. }
  38. .chat-input-container {
  39. padding: 0 16px 24px;
  40. }
  41. #chat-input {
  42. display: flex;
  43. align-items: flex-end;
  44. position: relative;
  45. }
  46. .chat-input {
  47. flex: 1;
  48. margin-right: 8px;
  49. }
  50. #nickname {
  51. text-align: center;
  52. color: #9d9d9d;
  53. font-size: 16px;
  54. margin: auto 0;
  55. padding: 0 16px;
  56. label[for="nickinput"] {
  57. > div > span {
  58. color: #B8C7E0;
  59. }
  60. }
  61. input {
  62. height: 40px;
  63. }
  64. label {
  65. line-height: 24px;
  66. }
  67. }
  68. .mobile-browser {
  69. #nickname {
  70. input {
  71. height: 48px;
  72. }
  73. }
  74. .chatmessage .usermessage {
  75. font-size: 16px;
  76. }
  77. }
  78. .chatmessage {
  79. &.error {
  80. border-radius: 0px;
  81. .timestamp,
  82. .display-name {
  83. display: none;
  84. }
  85. .usermessage {
  86. color: red;
  87. padding: 0;
  88. }
  89. }
  90. .messagecontent {
  91. max-width: 100%;
  92. overflow: hidden;
  93. }
  94. }
  95. #smileys {
  96. font-size: 20pt;
  97. margin: auto;
  98. cursor: pointer;
  99. }
  100. #smileys img {
  101. width: 22px;
  102. padding: 2px;
  103. }
  104. .smiley-input {
  105. display: flex;
  106. position: absolute;
  107. top: 0;
  108. left: 0;
  109. }
  110. .smileys-panel {
  111. bottom: 100%;
  112. box-sizing: border-box;
  113. background-color: rgba(0, 0, 0, .6) !important;
  114. height: auto;
  115. display: flex;
  116. overflow: hidden;
  117. position: absolute;
  118. width: calc(#{$sidebarWidth} - 32px);
  119. margin-bottom: 5px;
  120. margin-left: -5px;
  121. /**
  122. * CSS transitions do not apply for auto dimensions. So to produce the css
  123. * accordion effect for showing and hiding the smiley-panel, while allowing
  124. * for variable panel, height, use a very large max-height and animate off
  125. * of that.
  126. */
  127. transition: max-height 0.3s;
  128. #smileysContainer {
  129. background-color: $chatBackgroundColor;
  130. border-top: 1px solid #A4B8D1;
  131. }
  132. }
  133. #smileysContainer .smiley {
  134. font-size: 20pt;
  135. }
  136. .smileyContainer {
  137. width: 40px;
  138. height: 40px;
  139. display: inline-block;
  140. text-align: center;
  141. }
  142. .smileyContainer:hover {
  143. background-color: rgba(255, 255, 255, 0.15);
  144. border-radius: 5px;
  145. cursor: pointer;
  146. }
  147. .chat-message-group {
  148. &.local {
  149. align-items: flex-end;
  150. .display-name {
  151. display: none;
  152. }
  153. .timestamp {
  154. text-align: right;
  155. }
  156. }
  157. &.error {
  158. .display-name {
  159. display: none;
  160. }
  161. }
  162. }
  163. .chat-dialog {
  164. display: flex;
  165. flex-direction: column;
  166. height: 100%;
  167. margin-top: -5px; // Margin set by atlaskit.
  168. &-header {
  169. display: flex;
  170. justify-content: space-between;
  171. align-items: center;
  172. margin: 16px;
  173. width: calc(100% - 32px);
  174. box-sizing: border-box;
  175. color: #fff;
  176. font-weight: 600;
  177. font-size: 24px;
  178. line-height: 32px;
  179. .jitsi-icon {
  180. cursor: pointer;
  181. }
  182. }
  183. #chatconversation {
  184. width: 100%;
  185. }
  186. }
  187. /**
  188. * Make header close button more easily tappable on mobile.
  189. */
  190. .mobile-browser .chat-dialog-header .jitsi-icon {
  191. display: grid;
  192. place-items: center;
  193. height: 48px;
  194. width: 48px;
  195. background: #36383C;
  196. border-radius: 3px;
  197. }