direct-chat.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /*
  2. * Component: Direct Chat
  3. * ----------------------
  4. */
  5. .direct-chat {
  6. .box-body {
  7. .border-bottom-radius(0);
  8. position: relative;
  9. overflow-x: hidden;
  10. padding: 0;
  11. }
  12. &.chat-pane-open {
  13. .direct-chat-contacts {
  14. .translate(0, 0);
  15. }
  16. }
  17. }
  18. .direct-chat-messages {
  19. .translate(0, 0);
  20. padding: 10px;
  21. height: 250px;
  22. overflow: auto;
  23. }
  24. .direct-chat-msg,
  25. .direct-chat-text {
  26. display: block;
  27. }
  28. .direct-chat-msg {
  29. .clearfix();
  30. margin-bottom: 10px;
  31. }
  32. .direct-chat-messages,
  33. .direct-chat-contacts {
  34. .transition-transform(.5s ease-in-out);
  35. }
  36. .direct-chat-text {
  37. .border-radius(5px);
  38. position: relative;
  39. padding: 5px 10px;
  40. background: @direct-chat-default-msg-bg;
  41. border: 1px solid @direct-chat-default-msg-border-color;
  42. margin: 5px 0 0 50px;
  43. color: @direct-chat-default-font-color;
  44. //Create the arrow
  45. &:after,
  46. &:before {
  47. position: absolute;
  48. right: 100%;
  49. top: 15px;
  50. border: solid transparent;
  51. border-right-color: @direct-chat-default-msg-border-color;
  52. content: ' ';
  53. height: 0;
  54. width: 0;
  55. pointer-events: none;
  56. }
  57. &:after {
  58. border-width: 5px;
  59. margin-top: -5px;
  60. }
  61. &:before {
  62. border-width: 6px;
  63. margin-top: -6px;
  64. }
  65. .right & {
  66. margin-right: 50px;
  67. margin-left: 0;
  68. &:after,
  69. &:before {
  70. right: auto;
  71. left: 100%;
  72. border-right-color: transparent;
  73. border-left-color: @direct-chat-default-msg-border-color;
  74. }
  75. }
  76. }
  77. .direct-chat-img {
  78. .border-radius(50%);
  79. float: left;
  80. width: 40px;
  81. height: 40px;
  82. .right & {
  83. float: right;
  84. }
  85. }
  86. .direct-chat-info {
  87. display: block;
  88. margin-bottom: 2px;
  89. font-size: 12px;
  90. }
  91. .direct-chat-name {
  92. font-weight: 600;
  93. }
  94. .direct-chat-timestamp {
  95. color: #999;
  96. }
  97. //Direct chat contacts pane
  98. .direct-chat-contacts-open {
  99. .direct-chat-contacts {
  100. .translate(0, 0);
  101. }
  102. }
  103. .direct-chat-contacts {
  104. .translate(101%, 0);
  105. position: absolute;
  106. top: 0;
  107. bottom: 0;
  108. height: 250px;
  109. width: 100%;
  110. background: #222d32;
  111. color: #fff;
  112. overflow: auto;
  113. }
  114. //Contacts list -- for displaying contacts in direct chat contacts pane
  115. .contacts-list {
  116. &:extend(.list-unstyled);
  117. > li {
  118. .clearfix();
  119. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  120. padding: 10px;
  121. margin: 0;
  122. &:last-of-type {
  123. border-bottom: none;
  124. }
  125. }
  126. }
  127. .contacts-list-img {
  128. .border-radius(50%);
  129. width: 40px;
  130. float: left;
  131. }
  132. .contacts-list-info {
  133. margin-left: 45px;
  134. color: #fff;
  135. }
  136. .contacts-list-name,
  137. .contacts-list-status {
  138. display: block;
  139. }
  140. .contacts-list-name {
  141. font-weight: 600;
  142. }
  143. .contacts-list-status {
  144. font-size: 12px;
  145. }
  146. .contacts-list-date {
  147. color: #aaa;
  148. font-weight: normal;
  149. }
  150. .contacts-list-msg {
  151. color: #999;
  152. }
  153. //Direct Chat Variants
  154. .direct-chat-danger {
  155. .direct-chat-variant(@red);
  156. }
  157. .direct-chat-primary {
  158. .direct-chat-variant(@light-blue);
  159. }
  160. .direct-chat-warning {
  161. .direct-chat-variant(@yellow);
  162. }
  163. .direct-chat-info {
  164. .direct-chat-variant(@aqua);
  165. }
  166. .direct-chat-success {
  167. .direct-chat-variant(@green);
  168. }