app.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. #chat-host ul {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. #chat-host ul li {
  6. list-style-type: none;
  7. }
  8. #chat-host input, #chat-host textarea, #chat-host button {
  9. font-family: inherit;
  10. font-size: inherit;
  11. border: none;
  12. }
  13. #chat-host input, #chat-host textarea {
  14. background-color: #ffffff;
  15. }
  16. #chat-host button {
  17. cursor: pointer;
  18. }
  19. #chat-host {
  20. position: fixed;
  21. left: 0;
  22. right: 0;
  23. top: 0;
  24. bottom: 0;
  25. display: flex;
  26. flex-direction: column;
  27. justify-content: center;
  28. align-items: stretch;
  29. padding: 1em;
  30. }
  31. #chat-host .login {
  32. align-self: center;
  33. display: flex;
  34. flex-direction: column;
  35. }
  36. #chat-host .login .loginError {
  37. margin-bottom: 2em;
  38. font-weight: bold;
  39. color: #ad2424;
  40. }
  41. #chat-host .login #chat-login-form {
  42. display: flex;
  43. flex-direction: column;
  44. }
  45. #chat-host .login #chat-login-form .inputWrapper {
  46. display: flex;
  47. margin: 0.5em;
  48. }
  49. #chat-host .login #chat-login-form .inputWrapper label {
  50. flex-grow: 1;
  51. width: 10em;
  52. margin-right: 1em;
  53. }
  54. #chat-host .login #chat-login-form button {
  55. margin-top: 2em;
  56. }
  57. #chat-host .main {
  58. flex-grow: 1;
  59. display: flex;
  60. overflow: hidden;
  61. }
  62. #chat-host s, #chat-host .userlistWrapper {
  63. padding: 0.3em;
  64. flex-grow: 1;
  65. }
  66. #chat-host .messages {
  67. flex-basis: 80%;
  68. overflow-x: auto;
  69. overflow-y: scroll;
  70. display: flex;
  71. flex-direction: column;
  72. align-items: flex-start;
  73. }
  74. #chat-host .messages .systemMsg {
  75. color: #666666;
  76. font-size: 85%;
  77. font-style: italic;
  78. }
  79. #chat-host .messages .userMsg {
  80. display: inline-flex;
  81. align-items: baseline;
  82. flex-wrap: wrap;
  83. min-width: 25%;
  84. max-width: 85%;
  85. padding: 0.5em;
  86. margin: 1em 0.5em;
  87. }
  88. #chat-host .messages .userMsg.self {
  89. align-self: flex-end;
  90. justify-content: flex-end;
  91. text-align: right;
  92. }
  93. #chat-host .messages .userMsg .avatar {
  94. cursor: pointer;
  95. }
  96. #chat-host .messages .userMsg .user {
  97. order: -1;
  98. margin-right: 0.3em;
  99. font-weight: bold;
  100. cursor: pointer;
  101. }
  102. #chat-host .messages .userMsg .time {
  103. margin-right: 0.3em;
  104. font-size: 85%;
  105. font-style: italic;
  106. }
  107. #chat-host .messages .userMsg .message {
  108. white-space: pre-wrap;
  109. width: 100%;
  110. overflow: hidden;
  111. text-overflow: ellipsis;
  112. }
  113. #chat-host .messages .userMsg .message img {
  114. max-width: 10em;
  115. max-height: 10em;
  116. }
  117. #chat-host .messages .userMsg .message img.favicon {
  118. max-width: 1.2em;
  119. max-height: 1.2em;
  120. position: relative;
  121. top: 0.25em;
  122. margin-right: 0.3em;
  123. line-height: 2em;
  124. }
  125. #chat-host .userlistWrapper {
  126. text-align: right;
  127. flex-basis: 20%;
  128. min-width: 8em;
  129. }
  130. #chat-host .userlistWrapper span {
  131. font-weight: bold;
  132. cursor: pointer;
  133. }
  134. #chat-host .userlistWrapper button {
  135. width: 2em;
  136. height: 2em;
  137. padding: 0.3em;
  138. margin-left: 0.5em;
  139. border-radius: 50%;
  140. }
  141. #chat-host .messageForm {
  142. display: flex;
  143. margin-top: 1em;
  144. }
  145. #chat-host .messageForm textarea {
  146. flex-grow: 1;
  147. margin-right: 1em;
  148. resize: none;
  149. }