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.

245 lines
4.8 KiB

10 years ago
10 years ago
  1. /*
  2. * # Semantic - Chat Room
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 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. -moz-transition: color 0.3s ease-out;
  94. transition: color 0.3s ease-out;
  95. }
  96. .ui.chatroom .log a.author:hover {
  97. opacity: 0.8;
  98. }
  99. .ui.chatroom .log .message.admin p {
  100. font-weight: bold;
  101. margin: 1px 0px 0px 23px;
  102. }
  103. .ui.chatroom .log .divider {
  104. margin: -1px 0px;
  105. font-size: 11px;
  106. padding: 10px 0px;
  107. border-top: 1px solid #F8F8F8;
  108. border-bottom: 1px solid #F8F8F8;
  109. }
  110. .ui.chatroom .log .divider .rule {
  111. top: 50%;
  112. width: 15%;
  113. }
  114. .ui.chatroom .log .divider .label {
  115. color: #777777;
  116. margin: 0px;
  117. }
  118. /* Chat Room User List */
  119. .ui.chatroom .room .list {
  120. position: relative;
  121. overflow: auto;
  122. overflow-x: hidden;
  123. overflow-y: auto;
  124. float: left;
  125. background-color: #EEEEEE;
  126. border-left: 1px solid #DDDDDD;
  127. }
  128. .ui.chatroom .room .list .user {
  129. display: table;
  130. padding: 3px 7px;
  131. border-bottom: 1px solid #DDDDDD;
  132. }
  133. .ui.chatroom .room .list .user:hover {
  134. background-color: #F8F8F8;
  135. }
  136. .ui.chatroom .room .list .image {
  137. display: table-cell;
  138. vertical-align: middle;
  139. width: 20px;
  140. }
  141. .ui.chatroom .room .list .image img {
  142. width: 20px;
  143. height: 20px;
  144. vertical-align: middle;
  145. }
  146. .ui.chatroom .room .list p {
  147. display: table-cell;
  148. vertical-align: middle;
  149. padding-left: 7px;
  150. padding-right: 14px;
  151. font-size: 11px;
  152. line-height: 1.2;
  153. font-weight: bold;
  154. }
  155. .ui.chatroom .room .list a:hover {
  156. opacity: 0.8;
  157. }
  158. /* User List Loading */
  159. .ui.chatroom.loading .loader {
  160. display: block;
  161. }
  162. /* Chat Room Talk Input */
  163. .ui.chatroom .talk {
  164. border: 1px solid rgba(0, 0, 0, 0.1);
  165. padding: 5px 0px 0px;
  166. background-color: #EEEEEE;
  167. border-radius: 0px 0px 5px 5px;
  168. }
  169. .ui.chatroom .talk .avatar,
  170. .ui.chatroom .talk input,
  171. .ui.chatroom .talk .button {
  172. float: left;
  173. }
  174. .ui.chatroom .talk .avatar img {
  175. display: block;
  176. width: 30px;
  177. height: 30px;
  178. margin-right: 4px;
  179. border-radius: 500rem;
  180. }
  181. .ui.chatroom .talk input {
  182. border: 1px solid #CCCCCC;
  183. margin: 0px;
  184. width: 196px;
  185. height: 14px;
  186. padding: 8px 5px;
  187. font-size: 12px;
  188. color: #555555;
  189. }
  190. .ui.chatroom .talk input.focus {
  191. border: 1px solid #AAAAAA;
  192. }
  193. .ui.chatroom .send {
  194. width: 80px;
  195. height: 32px;
  196. margin-left: -1px;
  197. padding: 4px 12px;
  198. font-size: 12px;
  199. line-height: 23px;
  200. -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  201. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  202. border-radius: 0 5px 5px 0;
  203. }
  204. .ui.chatroom .talk .log-in.button {
  205. display: block;
  206. float: none;
  207. margin-top: -6px;
  208. height: 22px;
  209. border-radius: 0px 0px 4px 4px;
  210. }
  211. .ui.chatroom .talk .log-in.button i {
  212. vertical-align: text-top;
  213. }
  214. /* Quirky Flags */
  215. .ui.chatroom .log .team.flag {
  216. width: 18px;
  217. }
  218. /* Chat room Loaded */
  219. .ui.chatroom.loading .loader {
  220. display: block;
  221. }
  222. /* Standard Size */
  223. .ui.chatroom {
  224. width: 330px;
  225. height: 370px;
  226. }
  227. .ui.chatroom .room .container {
  228. width: 3000px;
  229. }
  230. .ui.chatroom .log {
  231. width: 314px;
  232. height: 278px;
  233. padding: 4px 7px;
  234. }
  235. .ui.chatroom .room .list {
  236. width: 124px;
  237. height: 278px;
  238. padding: 4px 0px;
  239. }
  240. .ui.chatroom .room .list .user {
  241. width: 110px;
  242. }
  243. .ui.chatroom .talk {
  244. height: 40px;
  245. }