/resources/assets/sass/_chat.scss

https://bitbucket.org/RoxyWalsh/hack24-2018 · Sass · 246 lines · 223 code · 15 blank · 8 comment · 0 complexity · 7bbb4b80761d54353f931f0afc58933f MD5 · raw file

  1. input, textarea, select, button {
  2. width: 100%;
  3. padding: 10px 15px;
  4. margin: 0;
  5. font-size: 18px;
  6. line-height: 1.4;
  7. color: #676767;
  8. background-color: #fff;
  9. border: 1px solid #d8d8d8;
  10. border-radius: 5px;
  11. &:focus {
  12. outline: none;
  13. }
  14. &:disabled {
  15. opacity: 0.5;
  16. }
  17. }
  18. textarea {
  19. resize: none;
  20. }
  21. label {
  22. display: block;
  23. padding: 0;
  24. margin: 0 0 10px;
  25. font-size: 16px;
  26. color: #676767;
  27. }
  28. .form-group {
  29. margin: 0 0 35px;
  30. &:last-of-type {
  31. margin-bottom: 0;
  32. }
  33. button {
  34. color: #fff;
  35. background-color: #4eaf4e;
  36. border-color: #4eaf4e;
  37. }
  38. }
  39. .chat-wrap {
  40. display: flex;
  41. flex-direction: column;
  42. flex: 1;
  43. width: 100%;
  44. padding: 0;
  45. }
  46. .chat-start {
  47. padding: 35px 15px 0;
  48. }
  49. .chat-ended {
  50. align-items: center;
  51. justify-content: center;
  52. &__title {
  53. display: block;
  54. padding: 10px 15px;
  55. margin: 0 0 35px;
  56. font-size: 16px;
  57. font-weight: 600;
  58. line-height: 1.5;
  59. color: #fff;
  60. background-color: #fb4343;
  61. border-radius: 25px;
  62. }
  63. &__total {
  64. font-size: 16px;
  65. font-weight: 600;
  66. color: #676767;
  67. }
  68. }
  69. .chat-feed {
  70. justify-content: flex-start;
  71. padding: 35px 15px 0;
  72. //overflow-y: scroll;
  73. }
  74. .chat-input {
  75. position: relative;
  76. width: 100%;
  77. padding: 10px 15px 27px;
  78. background-color: #b0f4ff;
  79. &:before {
  80. content: '';
  81. position: absolute;
  82. display: block;
  83. bottom: 100%;
  84. left: -15px;
  85. right: -15px;
  86. height: 50px;
  87. background: linear-gradient(to bottom, rgba(30,87,153,0) 0%,rgba(176,244,255,1) 100%);
  88. pointer-events: none;
  89. }
  90. }
  91. .chat-end {
  92. transform: rotate(225deg);
  93. }
  94. .messages {
  95. //display: flex;
  96. //flex-direction: column;
  97. padding: 0;
  98. margin: 0;
  99. height:100%;
  100. overflow-y: scroll;
  101. }
  102. .message {
  103. position: relative;
  104. display: block;
  105. max-width: 75%;
  106. padding: 10px 15px;
  107. margin: 0 0 5px;
  108. font-size: 16px;
  109. line-height: 1.5;
  110. border-radius: 25px;
  111. word-break: break-word;
  112. cursor: default;
  113. clear:both;
  114. &:last-of-type {
  115. margin-bottom: 50px;
  116. }
  117. &--sent {
  118. //align-self: flex-end;
  119. float:right;
  120. color: white;
  121. background-color: #4b88c7;
  122. + .message--reply {
  123. float:left;
  124. margin-top: 20px;
  125. }
  126. .message__time {
  127. right: 0;
  128. }
  129. }
  130. &--reply {
  131. align-self: flex-start;
  132. color: #676767;
  133. background-color: #fff;
  134. + .message--sent {
  135. margin-top: 20px;
  136. }
  137. .message__time {
  138. left: 0;
  139. }
  140. }
  141. &--time {
  142. margin-top: 20px;
  143. }
  144. &__time {
  145. position: absolute;
  146. bottom: 100%;
  147. margin: 0 0 5px;
  148. font-size: 13px;
  149. font-weight: 600;
  150. color: #676767;
  151. }
  152. &--end {
  153. max-width: 100%;
  154. width: 100%;
  155. margin: 20px 0 50px;
  156. font-weight: 600;
  157. text-align: center;
  158. color: #fff;
  159. background-color: #fb4343;
  160. }
  161. }
  162. .archive {
  163. display: flex;
  164. flex-direction: column;
  165. padding: 0;
  166. margin: 0;
  167. &-item {
  168. position: relative;
  169. display: block;
  170. padding: 10px 15px;
  171. margin: 0 0 20px;
  172. font-size: 16px;
  173. line-height: 1.5;
  174. border-radius: 25px;
  175. background-color: #fff;
  176. a {
  177. display: block;
  178. padding: 0;
  179. margin: 0;
  180. text-decoration: none !important;
  181. }
  182. h6 {
  183. margin: 0 0 10px;
  184. font-size: 18px;
  185. font-weight: 600;
  186. color: #676767;
  187. }
  188. p {
  189. margin: 0;
  190. font-size: 15px;
  191. color: #676767;
  192. }
  193. &__info {
  194. position: absolute;
  195. display: inline-block;
  196. top: 50%;
  197. right: 15px;
  198. width: 50px;
  199. height: 50px;
  200. margin: 0;
  201. background: #f5f5f5;
  202. color: #676767;
  203. border-radius: 50%;
  204. transform: translateY(-50%);
  205. .svg-inline--fa {
  206. position: absolute;
  207. top: 50%;
  208. left: 50%;
  209. transform: translate(-50%, -50%);
  210. }
  211. }
  212. }
  213. }
  214. //Easter eggs
  215. .skin-pikachu {
  216. .content {
  217. background: initial;
  218. background-image: url('/eggs/pikachu-wallpaper.jpg');
  219. background-size: cover;
  220. background-position: center;
  221. }
  222. .chat-input {
  223. &:before {
  224. background: linear-gradient(to bottom, rgba(30, 87, 153, 0) 0%, #f98420 100%);
  225. }
  226. background-color: #f98420;
  227. }
  228. }
  229. //.message--reply {
  230. // display: none;
  231. //}