_conversation.scss 8.6 KB

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