_conversation.scss 8.8 KB

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