app-chat-list.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // ================================================================================================
  2. // File Name: app-chat-area.scss
  3. // Description: SCC file for chat area 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-widget-head-footer-height: 56px;
  18. $chat-widget-height: 390px;
  19. // User chat window css
  20. .chat-app-window {
  21. // User chats
  22. .user-chats {
  23. background-color: $chat-image-back-color;
  24. padding: 1rem;
  25. position: relative;
  26. height: calc(100% - #{$chat-head-footer-height} - #{$chat-head-footer-height});
  27. .avatar {
  28. img {
  29. border: 2px solid $white;
  30. }
  31. }
  32. }
  33. .active-chat {
  34. height: inherit;
  35. .chat-header {
  36. display: flex;
  37. justify-content: space-between;
  38. height: $chat-head-footer-height;
  39. background-color: $white;
  40. padding: 0 1rem;
  41. border-bottom: 1px solid $border-color;
  42. }
  43. }
  44. // Chat area css
  45. .chats {
  46. .chat-avatar {
  47. float: right;
  48. }
  49. .chat-body {
  50. display: block;
  51. margin: 10px 30px 0 0;
  52. overflow: hidden;
  53. .chat-content {
  54. float: right;
  55. padding: 0.7rem 1rem;
  56. margin: 0 1rem 10px 0;
  57. clear: both;
  58. color: $white;
  59. @include gradient-directional(map-get($primary-color, 'base'), map-get($primary-color, 'lighten-2'), 80deg);
  60. border-radius: $border-radius;
  61. box-shadow: 0 4px 8px 0 rgba($black, 0.12);
  62. max-width: 75%;
  63. p {
  64. margin: 0;
  65. }
  66. }
  67. }
  68. // Chat area left css
  69. .chat-left {
  70. .chat-avatar {
  71. float: left;
  72. }
  73. .chat-body {
  74. .chat-content {
  75. float: left;
  76. margin: 0 0 10px 1rem;
  77. color: $body-color;
  78. background: none;
  79. background-color: lighten($white, 18%);
  80. }
  81. }
  82. }
  83. }
  84. // Chat form of user area
  85. .chat-app-form {
  86. height: $chat-head-footer-height;
  87. padding: 0 1rem;
  88. background-color: $white;
  89. display: flex;
  90. align-items: center;
  91. border-top: 1px solid $border-color;
  92. }
  93. }
  94. // Chat Widget
  95. .chat-widget {
  96. .card-header {
  97. padding-top: 0.8rem;
  98. padding-bottom: 0.8rem;
  99. }
  100. .chat-app-window {
  101. // User chats
  102. .user-chats {
  103. background-color: $body-bg;
  104. height: $chat-widget-height;
  105. }
  106. .chat-app-form {
  107. border-top: 0;
  108. border-bottom-left-radius: $border-radius;
  109. border-bottom-right-radius: $border-radius;
  110. height: $chat-widget-head-footer-height;
  111. .input-group-text,
  112. .message {
  113. border: 0;
  114. padding-left: 0;
  115. }
  116. .input-group:not(.bootstrap-touchspin):focus-within {
  117. box-shadow: none;
  118. }
  119. }
  120. }
  121. }