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.

280 lines
5.0 KiB

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