_chat.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. #chat-wrapper {
  2. position: absolute;
  3. width: 270px;
  4. right: 10px;
  5. top: 99px;
  6. border: 4px solid #fff;
  7. background: lighten($grey, 5%);
  8. z-index: 10;
  9. &.hidden {
  10. display: none;
  11. }
  12. h4 {
  13. font-family: 'Cherry Swash', cursive;
  14. font-size: 1.225rem;
  15. height: 3em;
  16. line-height: 3em;
  17. margin: 5px 5%;
  18. text-align: center;
  19. color: $dark-purple;
  20. }
  21. a.close {
  22. position: absolute;
  23. top: 0;
  24. right: 0;
  25. background: $dark-purple;
  26. color: #fff;
  27. font-size: 1.125rem;
  28. padding: 0 7px;
  29. text-decoration: none;
  30. font-weight: 600;
  31. margin: 1em 5%;
  32. cursor: pointer;
  33. &:hover {
  34. text-decoration: none;
  35. background: lighten($dark-purple, 5%);
  36. }
  37. }
  38. > span {
  39. font-size: .9rem;
  40. margin: 5px 5%;
  41. display: block;
  42. }
  43. }
  44. #chat-list {
  45. position: relative;
  46. top: 0;
  47. max-height: 300px;
  48. width: 100%;
  49. overflow-y: scroll;
  50. list-style-type: none;
  51. li {
  52. font-size: .9rem;
  53. padding: 10px;
  54. margin: 5px auto;
  55. width: 90%;
  56. border-radius: 5px;
  57. position: relative;
  58. &::before {
  59. position: absolute;
  60. content: '';
  61. top: 10px;
  62. }
  63. &.black {
  64. background: #424242;
  65. color: #fff;
  66. }
  67. &.white {
  68. background: #fff;
  69. color: #444;
  70. }
  71. &.left::before {
  72. left: 0;
  73. margin-left: -7px;
  74. border-bottom: 7px solid transparent;
  75. border-top: 7px solid transparent;
  76. }
  77. &.black.left::before {
  78. border-right: 7px solid #424242;
  79. }
  80. &.white.left::before {
  81. border-right: 7px solid #fff;
  82. }
  83. &.right::before {
  84. right: 0;
  85. margin-right: -7px;
  86. border-bottom: 7px solid transparent;
  87. border-top: 7px solid transparent;
  88. }
  89. &.black.right::before {
  90. border-left: 7px solid #424242;
  91. }
  92. &.white.right::before {
  93. border-left: 7px solid #fff;
  94. }
  95. }
  96. }
  97. #chat-form {
  98. input {
  99. width: 100%;
  100. padding: 15px 10px;
  101. border: none;
  102. outline: none;
  103. font-size: .9rem;
  104. border: 4px solid lighten($grey, 5%);
  105. &.black {
  106. background: #444;
  107. color: #fff;
  108. }
  109. &.white {
  110. background: #fff;
  111. color: #444;
  112. }
  113. }
  114. }
  115. #chat-icon {
  116. text-decoration: none;
  117. color: darken($blue, 10%);
  118. margin-right: 1em;
  119. line-height: 50px;
  120. height: 50px;
  121. float: right !important;
  122. cursor: pointer;
  123. font-weight: 600;
  124. &:hover {
  125. color: darken($blue, 5%);
  126. }
  127. img {
  128. vertical-align: middle;
  129. }
  130. }
  131. #chat-counter {
  132. position: absolute;
  133. margin-left: -.5em;
  134. margin-top: -.5em;
  135. border-radius: 50%;
  136. background: $red;
  137. width: 2em;
  138. height: 2em;
  139. text-align: center;
  140. line-height: 2em;
  141. color: #fff;
  142. }