_chat.scss 2.6 KB

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