_roster.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. #conversejs #converse-roster {
  2. text-align: left;
  3. width: 100%;
  4. position: relative;
  5. margin: 0;
  6. height: $roster-height;
  7. padding: 0;
  8. overflow: hidden;
  9. // XXX: FIXME
  10. height: calc(100% - 70px);
  11. /* Custom addition for CSP */
  12. #online-count {
  13. display: none;
  14. }
  15. .search-xmpp {
  16. ul {
  17. li.chat-info {
  18. padding-left: 10px;
  19. }
  20. }
  21. }
  22. .roster-filter-form {
  23. width: 100%;
  24. .button-group {
  25. padding: 0.2em;
  26. }
  27. span {
  28. padding: 0.3em;
  29. cursor: pointer;
  30. }
  31. .roster-filter {
  32. width: 100%;
  33. margin: 0.2em;
  34. font-size: calc(#{$font-size} - 2px);
  35. }
  36. .state-type {
  37. font-size: calc(#{$font-size} - 2px);
  38. width: 100%;
  39. }
  40. }
  41. .roster-contacts {
  42. padding: 0;
  43. margin: 0 0 0.2em 0;
  44. height: 100%;
  45. overflow-x: hidden;
  46. overflow-y: auto;
  47. .roster-group {
  48. border: none;
  49. color: $text-color;
  50. font-weight: normal;
  51. text-shadow: 0 1px 0 $text-shadow-color;
  52. margin: 0.75em 0 0.75em 0;
  53. .group-toggle {
  54. &:hover {
  55. color: $dark-gray-color;
  56. }
  57. font-family: $heading-font;
  58. color: $text-color;
  59. display: block;
  60. width: 100%;
  61. padding-top: 0;
  62. padding-bottom: 0.3rem;
  63. }
  64. li {
  65. border: none;
  66. clear: both;
  67. color: $text-color;
  68. display: block;
  69. overflow-y: hidden;
  70. text-shadow: 0 1px 0 $text-shadow-color;
  71. line-height: $font-size;
  72. width: 100%;
  73. height: 2em;
  74. padding-top: 0.5em;
  75. &.requesting-xmpp-contact {
  76. a {
  77. line-height: $line-height;
  78. &.fa {
  79. width: 1.5em;
  80. }
  81. }
  82. .req-contact-name {
  83. padding: 0 0.2em 0 0;
  84. }
  85. }
  86. a {
  87. &:hover {
  88. color: $dark-link-color;
  89. }
  90. .fa:hover {
  91. color: white;
  92. }
  93. }
  94. .open-chat {
  95. margin: 0;
  96. padding: 0;
  97. &.unread-msgs {
  98. font-weight: bold;
  99. .contact-name {
  100. width: 70%;
  101. }
  102. }
  103. .msgs-indicator {
  104. color: white;
  105. background-color: $chat-head-color;
  106. opacity: 1;
  107. border-radius: 10%;
  108. padding: 0.2em;
  109. font-size: $font-size-small;
  110. }
  111. .contact-name {
  112. overflow: hidden;
  113. white-space: nowrap;
  114. text-overflow: ellipsis;
  115. padding: 0;
  116. margin: 0;
  117. max-width: 80%;
  118. float: none;
  119. height: 100%;
  120. &.unread-msgs {
  121. max-width: 60%;
  122. }
  123. }
  124. .avatar {
  125. float: left;
  126. display: inline-block;
  127. }
  128. }
  129. &.current-xmpp-contact span {
  130. font-size: $font-size;
  131. float: left;
  132. margin-right: 0.5em;
  133. }
  134. &.odd {
  135. background-color: #DCEAC5;
  136. /* Make this difference */
  137. }
  138. a, span {
  139. display: inline-block;
  140. overflow: hidden;
  141. white-space: nowrap;
  142. text-overflow: ellipsis;
  143. }
  144. span {
  145. padding: 0;
  146. }
  147. .decline-xmpp-request {
  148. margin-left: 5px;
  149. }
  150. .remove-xmpp-contact {
  151. font-size: $font-size-tiny;
  152. margin: 0;
  153. padding: 0;
  154. width: 2em;
  155. display: none;
  156. &:before {
  157. font-size: $font-size;
  158. }
  159. }
  160. &:hover {
  161. background-color: lighten($controlbox-head-color, 45%);
  162. .remove-xmpp-contact {
  163. display: inline-block;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. span {
  170. &.pending-contact-name {
  171. line-height: $line-height;
  172. width: 100%;
  173. }
  174. }
  175. }