app.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 .user {
  94. order: -1;
  95. margin-right: 0.3em;
  96. font-weight: bold;
  97. }
  98. #chat-host .messages .userMsg .time {
  99. margin-right: 0.3em;
  100. font-size: 85%;
  101. font-style: italic;
  102. }
  103. #chat-host .messages .userMsg .message {
  104. white-space: pre-wrap;
  105. width: 100%;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. }
  109. #chat-host .messages .userMsg .message img {
  110. max-width: 10em;
  111. max-height: 10em;
  112. }
  113. #chat-host .messages .userMsg .message img.favicon {
  114. max-width: 1.2em;
  115. max-height: 1.2em;
  116. position: relative;
  117. top: 0.25em;
  118. margin-right: 0.3em;
  119. line-height: 2em;
  120. }
  121. #chat-host .userlistWrapper {
  122. text-align: right;
  123. flex-basis: 20%;
  124. min-width: 8em;
  125. }
  126. #chat-host .userlistWrapper span {
  127. font-weight: bold;
  128. }
  129. #chat-host .userlistWrapper button {
  130. width: 2em;
  131. height: 2em;
  132. padding: 0.3em;
  133. margin-left: 0.5em;
  134. border-radius: 50%;
  135. }
  136. #chat-host .messageForm {
  137. display: flex;
  138. margin-top: 1em;
  139. }
  140. #chat-host .messageForm textarea {
  141. flex-grow: 1;
  142. margin-right: 1em;
  143. resize: none;
  144. }