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.

298 lines
4.8 KiB

  1. /*
  2. * # Semantic - Chat Room
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Chat Room
  13. *******************************/
  14. .ui.chatroom {
  15. background-color: #F8F8F8;
  16. width: 330px;
  17. height: 370px;
  18. padding: 0px;
  19. }
  20. .ui.chatroom .room {
  21. position: relative;
  22. background-color: #FFFFFF;
  23. overflow: hidden;
  24. height: 286px;
  25. border: 1px solid rgba(0, 0, 0, 0.1);
  26. border-top: none;
  27. border-bottom: none;
  28. }
  29. .ui.chatroom .room .loader {
  30. display: none;
  31. margin: -25px 0px 0px -25px;
  32. }
  33. /* Chat Room Actions */
  34. .ui.chatroom .actions {
  35. overflow: hidden;
  36. background-color: #EEEEEE;
  37. padding: 4px;
  38. border: 1px solid rgba(0, 0, 0, 0.1);
  39. border-radius: 5px 5px 0px 0px;
  40. }
  41. .ui.chatroom .actions .button {
  42. float: right;
  43. margin-left: 3px;
  44. }
  45. /* Online User Count */
  46. .ui.chatroom .actions .message {
  47. float: left;
  48. margin-left: 6px;
  49. font-size: 11px;
  50. color: #AAAAAA;
  51. text-shadow: 0px -1px 0px rgba(255, 255, 255, 0.8);
  52. line-height: 28px;
  53. }
  54. .ui.chatroom .actions .message .loader {
  55. display: inline-block;
  56. margin-right: 8px;
  57. }
  58. /* Chat Room Text Log */
  59. .ui.chatroom .log {
  60. float: left;
  61. overflow: auto;
  62. overflow-x: hidden;
  63. overflow-y: auto;
  64. }
  65. .ui.chatroom .log .message {
  66. padding: 3px 0px;
  67. border-top: 1px dotted #DADADA;
  68. }
  69. .ui.chatroom .log .message:first-child {
  70. border-top: none;
  71. }
  72. /* status event */
  73. .ui.chatroom .status {
  74. padding: 5px 0px;
  75. color: #AAAAAA;
  76. font-size: 12px;
  77. font-style: italic;
  78. line-height: 1.33;
  79. border-top: 1px dotted #DADADA;
  80. }
  81. .ui.chatroom .log .status:first-child {
  82. border-top: none;
  83. }
  84. .ui.chatroom .log .flag {
  85. float: left;
  86. }
  87. .ui.chatroom .log p {
  88. margin-left: 0px;
  89. }
  90. .ui.chatroom .log .author {
  91. font-weight: bold;
  92. -webkit-transition: color 0.3s ease-out;
  93. transition: color 0.3s ease-out;
  94. }
  95. .ui.chatroom .log a.author:hover {
  96. opacity: 0.8;
  97. }
  98. .ui.chatroom .log .message.admin p {
  99. font-weight: bold;
  100. margin: 1px 0px 0px 23px;
  101. }
  102. .ui.chatroom .log .divider {
  103. margin: -1px 0px;
  104. font-size: 11px;
  105. padding: 10px 0px;
  106. border-top: 1px solid #F8F8F8;
  107. border-bottom: 1px solid #F8F8F8;
  108. }
  109. .ui.chatroom .log .divider .rule {
  110. top: 50%;
  111. width: 15%;
  112. }
  113. .ui.chatroom .log .divider .label {
  114. color: #777777;
  115. margin: 0px;
  116. }
  117. /* Chat Room User List */
  118. .ui.chatroom .room .list {
  119. position: relative;
  120. overflow: auto;
  121. overflow-x: hidden;
  122. overflow-y: auto;
  123. float: left;
  124. background-color: #EEEEEE;
  125. border-left: 1px solid #DDDDDD;
  126. }
  127. .ui.chatroom .room .list .user {
  128. display: table;
  129. padding: 3px 7px;
  130. border-bottom: 1px solid #DDDDDD;
  131. }
  132. .ui.chatroom .room .list .user:hover {
  133. background-color: #F8F8F8;
  134. }
  135. .ui.chatroom .room .list .image {
  136. display: table-cell;
  137. vertical-align: middle;
  138. width: 20px;
  139. }
  140. .ui.chatroom .room .list .image img {
  141. width: 20px;
  142. height: 20px;
  143. vertical-align: middle;
  144. }
  145. .ui.chatroom .room .list p {
  146. display: table-cell;
  147. vertical-align: middle;
  148. padding-left: 7px;
  149. padding-right: 14px;
  150. font-size: 11px;
  151. line-height: 1.2;
  152. font-weight: bold;
  153. }
  154. .ui.chatroom .room .list a:hover {
  155. opacity: 0.8;
  156. }
  157. /* User List Loading */
  158. .ui.chatroom.loading .loader {
  159. display: block;
  160. }
  161. /* Chat Room Talk Input */
  162. .ui.chatroom .talk {
  163. border: 1px solid rgba(0, 0, 0, 0.1);
  164. padding: 5px 0px 0px;
  165. background-color: #EEEEEE;
  166. border-radius: 0px 0px 5px 5px;
  167. }
  168. .ui.chatroom .talk .avatar,
  169. .ui.chatroom .talk input,
  170. .ui.chatroom .talk .button {
  171. float: left;
  172. }
  173. .ui.chatroom .talk .avatar img {
  174. display: block;
  175. width: 30px;
  176. height: 30px;
  177. margin-right: 4px;
  178. border-radius: 500rem;
  179. }
  180. .ui.chatroom .talk input {
  181. border: 1px solid #CCCCCC;
  182. margin: 0px;
  183. width: 196px;
  184. height: 14px;
  185. padding: 8px 5px;
  186. font-size: 12px;
  187. color: #555555;
  188. }
  189. .ui.chatroom .talk input.focus {
  190. border: 1px solid #AAAAAA;
  191. }
  192. .ui.chatroom .send {
  193. width: 80px;
  194. height: 32px;
  195. margin-left: -1px;
  196. padding: 4px 12px;
  197. font-size: 12px;
  198. line-height: 23px;
  199. -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  200. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  201. border-radius: 0 5px 5px 0;
  202. }
  203. .ui.chatroom .talk .log-in.button {
  204. display: block;
  205. float: none;
  206. margin-top: -6px;
  207. height: 22px;
  208. border-radius: 0px 0px 4px 4px;
  209. }
  210. .ui.chatroom .talk .log-in.button i {
  211. vertical-align: text-top;
  212. }
  213. /* Quirky Flags */
  214. .ui.chatroom .log .team.flag {
  215. width: 18px;
  216. }
  217. /* Chat room Loaded */
  218. .ui.chatroom.loading .loader {
  219. display: block;
  220. }
  221. /* Standard Size */
  222. .ui.chatroom {
  223. width: 330px;
  224. height: 370px;
  225. }
  226. .ui.chatroom .room .container {
  227. width: 3000px;
  228. }
  229. .ui.chatroom .log {
  230. width: 314px;
  231. height: 278px;
  232. padding: 4px 7px;
  233. }
  234. .ui.chatroom .room .list {
  235. width: 124px;
  236. height: 278px;
  237. padding: 4px 0px;
  238. }
  239. .ui.chatroom .room .list .user {
  240. width: 110px;
  241. }
  242. .ui.chatroom .talk {
  243. height: 40px;
  244. }