_conversation.scss 11 KB

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