app-chat.scss 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. // ================================================================================================
  2. // File Name: app-chat.scss
  3. // Description: SCC file for chat application page.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. @import '../bootstrap-extended/include'; // Bootstrap includes
  10. @import '../components/include'; // Components includes
  11. @import '../core/colors/palette-variables';
  12. @import 'bootstrap/scss/mixins/_gradients';
  13. @import 'bootstrap/scss/mixins/gradients';
  14. //Variables
  15. $chat-image-back-color: #f2f0f7;
  16. $chat-head-footer-height: 65px;
  17. $chat-profile-sidebar-head-height: 200px;
  18. .chat-application {
  19. .content-area-wrapper {
  20. border: 1px solid $border-color;
  21. border-radius: $card-border-radius;
  22. }
  23. // chat admin profile sidebar
  24. .chat-profile-sidebar {
  25. border-right: 1px solid $border-color;
  26. height: inherit;
  27. width: $chat-sidebar-width;
  28. border-radius: $border-radius-sm;
  29. border-top-right-radius: 0;
  30. border-bottom-right-radius: 0;
  31. position: absolute;
  32. background-color: $white;
  33. transform: translateX(-110%);
  34. transition: all 0.3s ease, background 0s, border 0s, color 0s;
  35. z-index: 6;
  36. &.show {
  37. transform: translateX(0);
  38. transition: all 0.3s ease, background 0s, border 0s, color 0s;
  39. }
  40. // admin profile header section
  41. .chat-profile-header {
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. height: $chat-profile-sidebar-head-height;
  46. text-align: center;
  47. .avatar {
  48. margin-bottom: 1.25rem;
  49. }
  50. }
  51. // Admin profile scroll area
  52. .profile-sidebar-area {
  53. height: calc(100% - #{$chat-profile-sidebar-head-height});
  54. position: relative;
  55. padding: 0 2rem 1.5rem;
  56. }
  57. }
  58. // close icon style for all chat sidebars
  59. .close-icon {
  60. position: absolute;
  61. top: 0.85rem;
  62. right: 1rem;
  63. cursor: pointer;
  64. }
  65. .sidebar-close-icon,
  66. .close-icon {
  67. svg,
  68. i {
  69. font-size: 1.143rem;
  70. height: 1.143rem;
  71. width: 1.143rem;
  72. }
  73. }
  74. // for avatar border
  75. .avatar-border {
  76. img {
  77. border: 2px solid $white;
  78. }
  79. }
  80. // Main Sidebar Content
  81. .sidebar-content {
  82. background-color: $white;
  83. border-right: 1px solid $border-color;
  84. height: inherit;
  85. width: $chat-sidebar-width;
  86. border-radius: $border-radius-sm;
  87. border-top-right-radius: 0;
  88. border-bottom-right-radius: 0;
  89. margin: 0;
  90. box-shadow: none;
  91. // Close Icon
  92. .sidebar-close-icon {
  93. position: absolute;
  94. right: 0.25rem;
  95. top: 0.25rem;
  96. font-size: 1.25rem;
  97. z-index: 1;
  98. cursor: pointer;
  99. visibility: hidden;
  100. }
  101. // Chat search area
  102. .chat-fixed-search {
  103. width: $chat-sidebar-width;
  104. border-bottom: 1px solid $border-color;
  105. padding: 0 1.286rem;
  106. height: $chat-head-footer-height;
  107. display: flex;
  108. .sidebar-profile-toggle {
  109. .avatar {
  110. display: inline-table;
  111. }
  112. }
  113. .input-group {
  114. &:focus-within {
  115. background-color: transparent;
  116. box-shadow: none;
  117. }
  118. }
  119. }
  120. .chat-list-title {
  121. color: $primary;
  122. margin: 2rem 1.286rem 0.5rem;
  123. }
  124. // Sidebar chat list
  125. .chat-user-list-wrapper {
  126. position: relative;
  127. height: calc(100% - #{$chat-head-footer-height});
  128. width: $chat-sidebar-width;
  129. border-radius: 0;
  130. // Specific alignment for avatar status
  131. .avatar {
  132. height: 42px;
  133. [class*='avatar-status-'] {
  134. right: 1px;
  135. bottom: 1px;
  136. }
  137. }
  138. .contact-list {
  139. .chat-info {
  140. width: calc(100% - 46px); // ? avatar size with 2px border = 42+2+2 =46px
  141. padding-right: 0;
  142. }
  143. }
  144. .no-results {
  145. padding: 0.786rem 1.286rem;
  146. display: none !important;
  147. &.show {
  148. display: block !important;
  149. }
  150. }
  151. ul {
  152. padding-left: 0;
  153. margin-bottom: 0;
  154. }
  155. li {
  156. display: flex;
  157. padding: 0.786rem 1.286rem;
  158. .chat-info {
  159. margin-top: 0.3rem;
  160. width: calc(100% - 46px - 46px); // ? avatar size with 2px border = 42+2+2 =46px & date area width = 46px
  161. padding: 0 0.75rem;
  162. .card-text,
  163. p {
  164. color: $text-muted;
  165. }
  166. }
  167. .chat-time {
  168. color: $text-muted;
  169. }
  170. &:hover {
  171. cursor: pointer;
  172. background: $body-bg;
  173. }
  174. &.active {
  175. @include gradient-directional(map-get($primary-color, 'base'), map-get($primary-color, 'lighten-2'), 80deg);
  176. h1,
  177. h2,
  178. h3,
  179. h4,
  180. h5,
  181. h6,
  182. .card-text,
  183. .chat-time {
  184. color: $white;
  185. }
  186. }
  187. img {
  188. border: 2px solid $white;
  189. }
  190. }
  191. }
  192. }
  193. // User chat window css
  194. .chat-app-window {
  195. height: 100%;
  196. // Before starting chat
  197. .start-chat-area,
  198. .user-chats {
  199. background-image: url($chat-bg-light);
  200. background-color: $chat-image-back-color;
  201. background-repeat: repeat;
  202. background-size: 210px;
  203. }
  204. .start-chat-area {
  205. height: inherit;
  206. display: flex;
  207. justify-content: center;
  208. align-items: center;
  209. flex-direction: column;
  210. .start-chat-icon,
  211. .start-chat-text {
  212. background: $white;
  213. box-shadow: 0 4px 8px 0 rgba($black, 0.12) !important;
  214. color: $body-color;
  215. }
  216. .start-chat-text {
  217. padding: 0.5rem 1rem;
  218. border-radius: calc(#{$border-radius} * 4);
  219. cursor: pointer;
  220. }
  221. .start-chat-icon {
  222. border-radius: 50%;
  223. padding: 2rem;
  224. svg,
  225. i {
  226. height: 4rem;
  227. width: 4rem;
  228. font-size: 4rem;
  229. }
  230. }
  231. }
  232. }
  233. // User Profile right sidebar
  234. .user-profile-sidebar {
  235. width: $chat-sidebar-width;
  236. border-radius: $border-radius-sm;
  237. border-top-left-radius: 0;
  238. border-bottom-left-radius: 0;
  239. background-color: $white;
  240. position: absolute;
  241. transform: translateX(110%);
  242. transition: all 0.3s ease, background 0s, border 0s, color 0s;
  243. z-index: 6;
  244. right: 0;
  245. bottom: 0;
  246. top: 0;
  247. &.show {
  248. transform: translateX(0%);
  249. transition: all 0.3s ease, background 0s, border 0s, color 0s;
  250. }
  251. .user-profile-header {
  252. .header-profile-sidebar {
  253. height: $chat-profile-sidebar-head-height;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. text-align: center;
  258. flex-direction: column;
  259. width: 100%;
  260. }
  261. .avatar {
  262. margin-bottom: 1.25rem;
  263. }
  264. }
  265. .user-profile-sidebar-area {
  266. position: relative;
  267. height: calc(100% - #{$chat-profile-sidebar-head-height});
  268. padding: 0 2rem 1.5rem;
  269. }
  270. }
  271. }
  272. @include media-breakpoint-down(md) {
  273. .content-right {
  274. width: 100%;
  275. }
  276. .chat-application {
  277. .sidebar-content {
  278. transform: translateX(-110%);
  279. transition: all 0.3s ease-in-out;
  280. position: absolute;
  281. z-index: 5;
  282. &.show {
  283. transform: translateX(0);
  284. transition: all 0.3s ease;
  285. }
  286. }
  287. }
  288. }
  289. @include media-breakpoint-down(sm) {
  290. .chat-application {
  291. .sidebar-content {
  292. .sidebar-close-icon {
  293. visibility: visible;
  294. top: 15px;
  295. right: 0;
  296. padding: 0.65rem;
  297. line-height: 1;
  298. }
  299. .chat-fixed-search {
  300. padding-right: 2.5rem;
  301. }
  302. }
  303. }
  304. }
  305. @include media-breakpoint-down(xs) {
  306. .chat-application {
  307. .sidebar {
  308. position: unset !important;
  309. }
  310. .sidebar-content {
  311. width: 100%;
  312. .chat-fixed-search,
  313. .chat-user-list-wrapper {
  314. width: 100%;
  315. }
  316. }
  317. .chat-profile-sidebar {
  318. width: 100%;
  319. }
  320. .user-profile-sidebar {
  321. width: 100%;
  322. }
  323. }
  324. }