app.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. }
  72. #chat-host .messages .systemMsg {
  73. color: #666666;
  74. font-size: 85%;
  75. font-style: italic;
  76. }
  77. #chat-host .messages .userMsg {
  78. display: flex;
  79. align-items: baseline;
  80. }
  81. #chat-host .messages .userMsg .user {
  82. margin-right: 0.3em;
  83. font-weight: bold;
  84. }
  85. #chat-host .messages .userMsg .time {
  86. margin-right: 0.3em;
  87. font-size: 85%;
  88. font-style: italic;
  89. }
  90. #chat-host .messages .userMsg .message {
  91. white-space: pre-wrap;
  92. }
  93. #chat-host .userlistWrapper {
  94. text-align: right;
  95. flex-basis: 20%;
  96. min-width: 8em;
  97. }
  98. #chat-host .userlistWrapper button {
  99. width: 2em;
  100. height: 2em;
  101. padding: 0.3em;
  102. margin-left: 0.5em;
  103. border-radius: 50%;
  104. }
  105. #chat-host .messageForm {
  106. display: flex;
  107. margin-top: 1em;
  108. }
  109. #chat-host .messageForm textarea {
  110. flex-grow: 1;
  111. margin-right: 1em;
  112. resize: none;
  113. }