app.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. width: 10em;
  51. margin-right: 1em;
  52. }
  53. #chat-host .login #chat-login-form .inputWrapper input {
  54. flex-grow: 1;
  55. }
  56. #chat-host .login #chat-login-form button {
  57. margin-top: 2em;
  58. }
  59. #chat-host .main {
  60. flex-grow: 1;
  61. display: flex;
  62. overflow: hidden;
  63. }
  64. #chat-host .messages, #chat-host .userlistWrapper {
  65. padding: 0.3em;
  66. flex-grow: 1;
  67. }
  68. #chat-host .messages {
  69. flex-basis: 80%;
  70. overflow: auto;
  71. display: flex;
  72. flex-direction: column;
  73. align-items: flex-start;
  74. }
  75. #chat-host .messages .systemMsg {
  76. color: #666666;
  77. font-size: 85%;
  78. font-style: italic;
  79. }
  80. #chat-host .messages .userMsg {
  81. display: inline-flex;
  82. align-items: baseline;
  83. flex-wrap: wrap;
  84. min-width: 25%;
  85. max-width: 85%;
  86. padding: 0.5em;
  87. margin: 1em 0.5em;
  88. }
  89. #chat-host .messages .userMsg.self {
  90. align-self: flex-end;
  91. justify-content: flex-end;
  92. text-align: right;
  93. }
  94. #chat-host .messages .userMsg .user {
  95. order: -1;
  96. margin-right: 0.3em;
  97. font-weight: bold;
  98. }
  99. #chat-host .messages .userMsg .time {
  100. margin-right: 0.3em;
  101. font-size: 85%;
  102. font-style: italic;
  103. }
  104. #chat-host .messages .userMsg .message {
  105. white-space: pre-wrap;
  106. width: 100%;
  107. }
  108. #chat-host .userlistWrapper {
  109. text-align: right;
  110. flex-basis: 20%;
  111. min-width: 8em;
  112. }
  113. #chat-host .userlistWrapper span {
  114. font-weight: bold;
  115. }
  116. #chat-host .userlistWrapper button {
  117. width: 2em;
  118. height: 2em;
  119. padding: 0.3em;
  120. margin-left: 0.5em;
  121. border-radius: 50%;
  122. }
  123. #chat-host .messageForm {
  124. display: flex;
  125. margin-top: 1em;
  126. }
  127. #chat-host .messageForm textarea {
  128. flex-grow: 1;
  129. margin-right: 1em;
  130. resize: none;
  131. }