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.

497 lines
12 KiB

10 years ago
10 years ago
10 years ago
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. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Defaults
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Status */
  86. /*-------------------
  87. Neutral Text
  88. --------------------*/
  89. /*-------------------
  90. Brand Colors
  91. --------------------*/
  92. /*-------------------
  93. Borders
  94. --------------------*/
  95. /*-------------------
  96. Sizes
  97. --------------------*/
  98. /*-------------------
  99. Transitions
  100. --------------------*/
  101. /*-------------------
  102. Derived Values
  103. --------------------*/
  104. /* Makes sure padded grid can fit at 320px */
  105. /* Used to match floats with text */
  106. /* Positive / Negative Dupes */
  107. /* Header Colors */
  108. /* Responsive */
  109. /* Columns */
  110. /*******************************
  111. States
  112. *******************************/
  113. /*-------------------
  114. Disabled
  115. --------------------*/
  116. /*-------------------
  117. Hover
  118. --------------------*/
  119. /*--- Colors ---*/
  120. /*--- Emotive ---*/
  121. /*--- Neutrals ---*/
  122. /*-------------------
  123. Down (:active)
  124. --------------------*/
  125. /*--- Colors ---*/
  126. /*--- Emotive ---*/
  127. /*--- Neutrals ---*/
  128. /*-------------------
  129. Active
  130. --------------------*/
  131. /*--- Standard ---*/
  132. /*--- Emotive ---*/
  133. /*--- Neutrals ---*/
  134. /*******************************
  135. Chatroom
  136. *******************************/
  137. /*------------------
  138. Load Theme
  139. -------------------*/
  140. /*******************************
  141. Site Settings
  142. *******************************/
  143. /*-------------------
  144. Paths
  145. --------------------*/
  146. /*-------------------
  147. Fonts
  148. --------------------*/
  149. /*-------------------
  150. Site Colors
  151. --------------------*/
  152. /*--- Colors ---*/
  153. /*--- Light Colors ---*/
  154. /*-------------------
  155. Page
  156. --------------------*/
  157. /*-------------------
  158. Background Colors
  159. --------------------*/
  160. /* Used for differentiating neutrals */
  161. /* Used for differentiating layers */
  162. /*-------------------
  163. Grid
  164. --------------------*/
  165. /*-------------------
  166. Breakpoints
  167. --------------------*/
  168. /*******************************
  169. Power-User
  170. *******************************/
  171. /*-------------------
  172. Icons
  173. --------------------*/
  174. /* Max Width of Icon */
  175. /*-------------------
  176. Easing
  177. --------------------*/
  178. /*--- Neutrals ---*/
  179. /*--- Colored Backgrounds ---*/
  180. /*--- Colored Text ---*/
  181. /*--- Colored Headers ---*/
  182. /*-------------------
  183. Emotive Colors
  184. --------------------*/
  185. /* Mood */
  186. /* Status */
  187. /*-------------------
  188. Neutral Text
  189. --------------------*/
  190. /*-------------------
  191. Brand Colors
  192. --------------------*/
  193. /*-------------------
  194. Borders
  195. --------------------*/
  196. /*-------------------
  197. Sizes
  198. --------------------*/
  199. /*-------------------
  200. Transitions
  201. --------------------*/
  202. /*-------------------
  203. Derived Values
  204. --------------------*/
  205. /* Makes sure padded grid can fit at 320px */
  206. /* Used to match floats with text */
  207. /* Positive / Negative Dupes */
  208. /* Header Colors */
  209. /* Responsive */
  210. /* Columns */
  211. /*******************************
  212. States
  213. *******************************/
  214. /*-------------------
  215. Disabled
  216. --------------------*/
  217. /*-------------------
  218. Hover
  219. --------------------*/
  220. /*--- Colors ---*/
  221. /*--- Emotive ---*/
  222. /*--- Neutrals ---*/
  223. /*-------------------
  224. Down (:active)
  225. --------------------*/
  226. /*--- Colors ---*/
  227. /*--- Emotive ---*/
  228. /*--- Neutrals ---*/
  229. /*-------------------
  230. Active
  231. --------------------*/
  232. /*--- Standard ---*/
  233. /*--- Emotive ---*/
  234. /*--- Neutrals ---*/
  235. /*******************************
  236. Chatroom
  237. *******************************/
  238. /*------------------
  239. Load Site
  240. -------------------*/
  241. /*******************************
  242. User Global Variables
  243. *******************************/
  244. /*******************************
  245. User Variable Overrides
  246. *******************************/
  247. /*------------------
  248. Override Loader
  249. -------------------*/
  250. /*******************************
  251. Chat Room
  252. *******************************/
  253. .ui.chatroom {
  254. background-color: #F8F8F8;
  255. width: 330px;
  256. height: 370px;
  257. padding: 0px;
  258. }
  259. .ui.chatroom .room {
  260. position: relative;
  261. background-color: #FFFFFF;
  262. overflow: hidden;
  263. height: 286px;
  264. border: 1px solid rgba(0, 0, 0, 0.1);
  265. border-top: none;
  266. border-bottom: none;
  267. }
  268. .ui.chatroom .room .loader {
  269. display: none;
  270. margin: -25px 0px 0px -25px;
  271. }
  272. /* Chat Room Actions */
  273. .ui.chatroom .actions {
  274. overflow: hidden;
  275. background-color: #EEEEEE;
  276. padding: 4px;
  277. border: 1px solid rgba(0, 0, 0, 0.1);
  278. border-radius: 5px 5px 0px 0px;
  279. }
  280. .ui.chatroom .actions .button {
  281. float: right;
  282. margin-left: 3px;
  283. }
  284. /* Online User Count */
  285. .ui.chatroom .actions .message {
  286. float: left;
  287. margin-left: 6px;
  288. font-size: 11px;
  289. color: #AAAAAA;
  290. text-shadow: 0px -1px 0px rgba(255, 255, 255, 0.8);
  291. line-height: 28px;
  292. }
  293. .ui.chatroom .actions .message .loader {
  294. display: inline-block;
  295. margin-right: 8px;
  296. }
  297. /* Chat Room Text Log */
  298. .ui.chatroom .log {
  299. float: left;
  300. overflow: auto;
  301. overflow-x: hidden;
  302. overflow-y: auto;
  303. }
  304. .ui.chatroom .log .message {
  305. padding: 3px 0px;
  306. border-top: 1px dotted #DADADA;
  307. }
  308. .ui.chatroom .log .message:first-child {
  309. border-top: none;
  310. }
  311. /* status event */
  312. .ui.chatroom .status {
  313. padding: 5px 0px;
  314. color: #AAAAAA;
  315. font-size: 12px;
  316. font-style: italic;
  317. line-height: 1.33;
  318. border-top: 1px dotted #DADADA;
  319. }
  320. .ui.chatroom .log .status:first-child {
  321. border-top: none;
  322. }
  323. .ui.chatroom .log .flag {
  324. float: left;
  325. }
  326. .ui.chatroom .log p {
  327. margin-left: 0px;
  328. }
  329. .ui.chatroom .log .author {
  330. font-weight: bold;
  331. -webkit-transition: color 0.3s ease-out;
  332. transition: color 0.3s ease-out;
  333. }
  334. .ui.chatroom .log a.author:hover {
  335. opacity: 0.8;
  336. }
  337. .ui.chatroom .log .message.admin p {
  338. font-weight: bold;
  339. margin: 1px 0px 0px 23px;
  340. }
  341. .ui.chatroom .log .divider {
  342. margin: -1px 0px;
  343. font-size: 11px;
  344. padding: 10px 0px;
  345. border-top: 1px solid #F8F8F8;
  346. border-bottom: 1px solid #F8F8F8;
  347. }
  348. .ui.chatroom .log .divider .rule {
  349. top: 50%;
  350. width: 15%;
  351. }
  352. .ui.chatroom .log .divider .label {
  353. color: #777777;
  354. margin: 0px;
  355. }
  356. /* Chat Room User List */
  357. .ui.chatroom .room .list {
  358. position: relative;
  359. overflow: auto;
  360. overflow-x: hidden;
  361. overflow-y: auto;
  362. float: left;
  363. background-color: #EEEEEE;
  364. border-left: 1px solid #DDDDDD;
  365. }
  366. .ui.chatroom .room .list .user {
  367. display: table;
  368. padding: 3px 7px;
  369. border-bottom: 1px solid #DDDDDD;
  370. }
  371. .ui.chatroom .room .list .user:hover {
  372. background-color: #F8F8F8;
  373. }
  374. .ui.chatroom .room .list .image {
  375. display: table-cell;
  376. vertical-align: middle;
  377. width: 20px;
  378. }
  379. .ui.chatroom .room .list .image img {
  380. width: 20px;
  381. height: 20px;
  382. vertical-align: middle;
  383. }
  384. .ui.chatroom .room .list p {
  385. display: table-cell;
  386. vertical-align: middle;
  387. padding-left: 7px;
  388. padding-right: 14px;
  389. font-size: 11px;
  390. line-height: 1.2;
  391. font-weight: bold;
  392. }
  393. .ui.chatroom .room .list a:hover {
  394. opacity: 0.8;
  395. }
  396. /* User List Loading */
  397. .ui.chatroom.loading .loader {
  398. display: block;
  399. }
  400. /* Chat Room Talk Input */
  401. .ui.chatroom .talk {
  402. border: 1px solid rgba(0, 0, 0, 0.1);
  403. padding: 5px 0px 0px;
  404. background-color: #EEEEEE;
  405. border-radius: 0px 0px 5px 5px;
  406. }
  407. .ui.chatroom .talk .avatar,
  408. .ui.chatroom .talk input,
  409. .ui.chatroom .talk .button {
  410. float: left;
  411. }
  412. .ui.chatroom .talk .avatar img {
  413. display: block;
  414. width: 30px;
  415. height: 30px;
  416. margin-right: 4px;
  417. border-radius: 500rem;
  418. }
  419. .ui.chatroom .talk input {
  420. border: 1px solid #CCCCCC;
  421. margin: 0px;
  422. width: 196px;
  423. height: 14px;
  424. padding: 8px 5px;
  425. font-size: 12px;
  426. color: #555555;
  427. }
  428. .ui.chatroom .talk input.focus {
  429. border: 1px solid #AAAAAA;
  430. }
  431. .ui.chatroom .send {
  432. width: 80px;
  433. height: 32px;
  434. margin-left: -1px;
  435. padding: 4px 12px;
  436. font-size: 12px;
  437. line-height: 23px;
  438. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  439. border-radius: 0 5px 5px 0;
  440. }
  441. .ui.chatroom .talk .log-in.button {
  442. display: block;
  443. float: none;
  444. margin-top: -6px;
  445. height: 22px;
  446. border-radius: 0px 0px 4px 4px;
  447. }
  448. .ui.chatroom .talk .log-in.button i {
  449. vertical-align: text-top;
  450. }
  451. /* Quirky Flags */
  452. .ui.chatroom .log .team.flag {
  453. width: 18px;
  454. }
  455. /* Chat room Loaded */
  456. .ui.chatroom.loading .loader {
  457. display: block;
  458. }
  459. /* Standard Size */
  460. .ui.chatroom {
  461. width: 330px;
  462. height: 370px;
  463. }
  464. .ui.chatroom .room .container {
  465. width: 3000px;
  466. }
  467. .ui.chatroom .log {
  468. width: 314px;
  469. height: 278px;
  470. padding: 4px 7px;
  471. }
  472. .ui.chatroom .room .list {
  473. width: 124px;
  474. height: 278px;
  475. padding: 4px 0px;
  476. }
  477. .ui.chatroom .room .list .user {
  478. width: 110px;
  479. }
  480. .ui.chatroom .talk {
  481. height: 40px;
  482. }
  483. /*******************************
  484. Overrides
  485. *******************************/
  486. /*******************************
  487. User Overrides
  488. *******************************/