2
0

_roster.scss 5.3 KB

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