_chat.scss 2.6 KB

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