_conversation.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. #conversation {
  2. display: flex;
  3. position: relative;
  4. flex-direction: column;
  5. background-image: url('../img/wallpaper_light.png?');
  6. height: 100%;
  7. .detail-header {
  8. .header-avatar {
  9. cursor: pointer;
  10. }
  11. .header-details {
  12. flex-grow: 1;
  13. cursor: pointer;
  14. overflow: hidden;
  15. > *:first-child {
  16. font-weight: bold;
  17. }
  18. }
  19. h3 {
  20. margin: 0 0 4px;
  21. padding: 0;
  22. font-size: 120%;
  23. }
  24. .conversation-header-details-detail,
  25. .conversation-header-details-name {
  26. display: inherit;
  27. max-width: 100%;
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. line-height: 1.3;
  31. white-space: nowrap;
  32. }
  33. }
  34. #conversation-is-private {
  35. display: flex;
  36. flex-grow: 1;
  37. align-items: center;
  38. justify-content: center;
  39. }
  40. #conversation-chat {
  41. @include scrollbar;
  42. flex-grow: 1;
  43. overflow: auto;
  44. overflow-y: scroll;
  45. }
  46. #conversation-quote {
  47. display: flex;
  48. flex-direction: row;
  49. align-items: center;
  50. justify-content: space-between;
  51. background-color: #ffffff;
  52. padding: 8px;
  53. .message-quote {
  54. @include word-wrap;
  55. max-width: 85%;
  56. max-height: 9.4em;
  57. overflow: hidden;
  58. line-height: 1.3em;
  59. }
  60. }
  61. #scrolljump {
  62. $scrolljump-height: 36px;
  63. position: relative;
  64. right: 16px;
  65. bottom: 8px + $scrolljump-height;
  66. align-self: flex-end;
  67. z-index: 15;
  68. outline: none;
  69. height: 0;
  70. svg {
  71. cursor: pointer;
  72. width: $scrolljump-height;
  73. height: $scrolljump-height;
  74. }
  75. }
  76. #conversation-footer {
  77. background-color: $dark-background-color;
  78. .chat-input {
  79. margin: 0;
  80. padding: 0;
  81. width: 100%;
  82. }
  83. #mention-selector {
  84. padding: 0;
  85. ul {
  86. margin: 0;
  87. padding: 0;
  88. list-style-type: none;
  89. > li {
  90. cursor: pointer;
  91. &:not(:hover) {
  92. &:not(.selected) {
  93. background-color: #ffffff;
  94. }
  95. }
  96. }
  97. }
  98. .contact-badge {
  99. .avatar-box {
  100. margin: $main-padding;
  101. padding: 0;
  102. .avatar {
  103. width: 28px;
  104. height: 28px;
  105. img {
  106. width: inherit;
  107. height: inherit;
  108. }
  109. > .work-indicator,
  110. > .home-indicator {
  111. top: 15px;
  112. width: 14px;
  113. height: 14px;
  114. }
  115. }
  116. }
  117. .contact-badge-identity {
  118. margin-right: $main-padding;
  119. }
  120. }
  121. }
  122. }
  123. }
  124. // Quoting
  125. .message-quote-content {
  126. border-left: 5px solid #0000ff;
  127. padding-left: 5px;
  128. font-size: .9em;
  129. .message-name {
  130. display: block;
  131. margin-bottom: 8px;
  132. font-size: .9em;
  133. font-weight: bold;
  134. }
  135. .message-quote {
  136. @include word-wrap;
  137. }
  138. }
  139. #conversation-chat .chat {
  140. display: flex;
  141. flex-direction: column;
  142. margin: 0;
  143. padding: 0;
  144. min-height: 100%;
  145. li {
  146. display: inline-block;
  147. margin: 0 0 $main-padding;
  148. padding: 0;
  149. &.load-more {
  150. margin-top: $main-padding;
  151. text-align: center;
  152. .loading {
  153. @include message-bubble-shadow;
  154. display: inline-block;
  155. border-radius: 50%;
  156. background-color: #ffffff;
  157. padding: 6px;
  158. width: 30px;
  159. height: 30px;
  160. }
  161. }
  162. &.typing-indicator {
  163. .message-body {
  164. min-width: 15px;
  165. }
  166. }
  167. }
  168. .message {
  169. display: flex;
  170. flex-direction: row;
  171. align-items: flex-start;
  172. md-menu {
  173. &:not(.md-open) {
  174. position: relative;
  175. visibility: hidden;
  176. }
  177. }
  178. &:hover {
  179. md-menu {
  180. visibility: visible;
  181. }
  182. }
  183. .message-quote-content {
  184. margin-bottom: 8px;
  185. }
  186. .loading-element {
  187. margin: 0;
  188. > :first-child {
  189. width: 50px;
  190. height: 50px;
  191. }
  192. }
  193. // arrow
  194. .bubble-triangle {
  195. position: relative;
  196. width: $bubble-triangle-size;
  197. height: $bubble-triangle-size;
  198. &::after {
  199. @include message-bubble-triangle;
  200. z-index: 3;
  201. }
  202. &::before {
  203. @include message-bubble-triangle;
  204. @include message-bubble-shadow;
  205. z-index: 1;
  206. }
  207. }
  208. }
  209. .message-body {
  210. @include message-bubble-shadow;
  211. display: flex;
  212. flex-direction: column;
  213. z-index: 2;
  214. border-radius: 5px;
  215. padding: 8px;
  216. min-width: 64px;
  217. max-width: 85%;
  218. &:not(.text-message-body) {
  219. .thumbnail-loader {
  220. width: 100%;
  221. filter: blur(10px);
  222. }
  223. .thumbnail {
  224. text-align: center;
  225. }
  226. .message-text {
  227. display: inline-block;
  228. margin-top: 8px;
  229. }
  230. }
  231. .message-name {
  232. margin-bottom: 8px;
  233. font-size: .9em;
  234. font-weight: bold;
  235. // Emoji styling
  236. > span {
  237. &:not(.ng-binding) {
  238. transform: scale(.6);
  239. }
  240. }
  241. }
  242. .message-text {
  243. @include word-wrap;
  244. line-height: 1.3em;
  245. a {
  246. cursor: pointer;
  247. }
  248. span {
  249. white-space: pre-wrap;
  250. }
  251. }
  252. .message-media {
  253. location {
  254. display: flex;
  255. flex-direction: column;
  256. align-items: center;
  257. padding: 4px 0;
  258. .location-message {
  259. display: flex;
  260. flex-direction: row;
  261. align-items: center;
  262. justify-content: flex-start;
  263. cursor: pointer;
  264. .location-details {
  265. margin-left: 8px;
  266. .description {
  267. margin-bottom: 6px;
  268. }
  269. .details {
  270. line-height: 1.2em;
  271. font-size: .9em;
  272. }
  273. }
  274. }
  275. }
  276. audio {
  277. &:focus {
  278. outline: none;
  279. }
  280. }
  281. }
  282. .message-info {
  283. display: flex;
  284. flex-direction: row;
  285. align-items: flex-end;
  286. margin-top: 4px;
  287. height: 16px;
  288. color: #808080;
  289. font-size: .8em;
  290. .message-state {
  291. margin-left: 5px;
  292. i {
  293. position: relative;
  294. top: 2px;
  295. }
  296. i.timeout {
  297. color: $status-error;
  298. }
  299. }
  300. md-icon {
  301. width: 1em;
  302. min-width: 1em;
  303. height: 1em;
  304. min-height: 1em;
  305. vertical-align: top;
  306. font-size: 1em;
  307. }
  308. }
  309. }
  310. .message-in {
  311. .message-body {
  312. position: relative;
  313. background-color: $message-bubble-color-in;
  314. }
  315. // arrow
  316. .bubble-triangle {
  317. margin-left: $main-padding;
  318. &::after {
  319. background-color: $message-bubble-color-in;
  320. }
  321. &::before {
  322. background-color: $message-bubble-color-in;
  323. }
  324. }
  325. .message-info {
  326. justify-content: flex-start;
  327. }
  328. }
  329. .message-out {
  330. flex-direction: row-reverse;
  331. .message-body {
  332. position: relative;
  333. background-color: $message-bubble-color-out;
  334. }
  335. // arrow
  336. .bubble-triangle {
  337. left: 0 - $bubble-triangle-size;
  338. &::after {
  339. background-color: $message-bubble-color-out;
  340. }
  341. &::before {
  342. background-color: $message-bubble-color-out;
  343. }
  344. }
  345. .message-info {
  346. justify-content: flex-end;
  347. }
  348. }
  349. .message-avatar {
  350. flex-shrink: 0;
  351. margin-left: 8px;
  352. cursor: pointer;
  353. }
  354. .message-status {
  355. justify-content: center;
  356. .message-body {
  357. background-color: #fcf8e3;
  358. .message-text {
  359. margin-top: 0;
  360. }
  361. }
  362. }
  363. .unread-separator {
  364. display: flex;
  365. flex-direction: row;
  366. flex-wrap: nowrap;
  367. align-items: center;
  368. justify-content: space-between;
  369. margin: 16px 8px;
  370. width: 100%;
  371. .line {
  372. flex-grow: 1;
  373. border-bottom: 1px solid #bbbbbb;
  374. text-align: center;
  375. line-height: 0;
  376. }
  377. .text {
  378. margin: 0;
  379. padding: 0 10px;
  380. text-shadow: 0 0 4px #bbbbbb;
  381. font-size: .9em;
  382. font-weight: 300;
  383. }
  384. }
  385. .message-info {
  386. .message-meta-item {
  387. padding-right: 5px;
  388. &::after {
  389. padding-left: 5px;
  390. content: '|';
  391. }
  392. }
  393. }
  394. }
  395. md-menu-item {
  396. a span {
  397. color: $material-grey-dark;
  398. }
  399. }