2
0

_roster.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. }
  36. .state-type {
  37. font-size: calc(#{$font-size} - 2px);
  38. height: $controlbox-dropdown-height;
  39. width: 100%;
  40. }
  41. }
  42. .roster-contacts {
  43. padding: 0;
  44. margin: 0 0 0.2em 0;
  45. height: 100%;
  46. overflow-x: hidden;
  47. overflow-y: auto;
  48. .roster-group {
  49. border: none;
  50. color: $text-color;
  51. font-weight: normal;
  52. text-shadow: 0 1px 0 $text-shadow-color;
  53. margin: 0.75em 0 0.75em 0;
  54. .group-toggle {
  55. &:hover {
  56. color: $dark-gray-color;
  57. }
  58. color: $text-color;
  59. display: block;
  60. width: 100%;
  61. padding: 0 0 0.5em 0;
  62. }
  63. li {
  64. border: none;
  65. clear: both;
  66. color: $text-color;
  67. display: block;
  68. height: 24px;
  69. overflow-y: hidden;
  70. text-shadow: 0 1px 0 $text-shadow-color;
  71. line-height: $font-size;
  72. width: 100%;
  73. margin-top: 0.5em;
  74. &.requesting-xmpp-contact {
  75. a {
  76. line-height: $line-height;
  77. &.fa {
  78. width: 1.5em;
  79. }
  80. }
  81. .req-contact-name {
  82. padding: 0 0.2em 0 0;
  83. }
  84. }
  85. a:hover {
  86. color: $dark-link-color;
  87. }
  88. a.fa:hover {
  89. color: $gray-color;
  90. }
  91. .open-chat {
  92. margin: 0;
  93. padding: 0;
  94. &.unread-msgs {
  95. font-weight: bold;
  96. .contact-name {
  97. width: 70%;
  98. }
  99. }
  100. .msgs-indicator {
  101. color: white;
  102. background-color: $chat-head-color;
  103. opacity: 1;
  104. border-radius: 10%;
  105. padding: 0.2em;
  106. font-size: $font-size-small;
  107. }
  108. .contact-name {
  109. overflow: hidden;
  110. white-space: nowrap;
  111. text-overflow: ellipsis;
  112. padding: 0;
  113. margin: 0;
  114. max-width: 80%;
  115. float: none;
  116. height: $roster-item-height;
  117. &.unread-msgs {
  118. max-width: 60%;
  119. }
  120. }
  121. .avatar {
  122. float: left;
  123. display: inline-block;
  124. height: $roster-item-height;
  125. }
  126. }
  127. &.current-xmpp-contact span {
  128. font-size: $font-size;
  129. float: left;
  130. margin-right: 0.5em;
  131. }
  132. &.odd {
  133. background-color: #DCEAC5;
  134. /* Make this difference */
  135. }
  136. a, span {
  137. display: inline-block;
  138. overflow: hidden;
  139. white-space: nowrap;
  140. text-overflow: ellipsis;
  141. }
  142. span {
  143. padding: 0;
  144. }
  145. a {
  146. &.decline-xmpp-request {
  147. margin-left: 5px;
  148. }
  149. &.remove-xmpp-contact {
  150. font-size: $font-size-tiny;
  151. float: right;
  152. margin: 0;
  153. padding: 0;
  154. width: 2em;
  155. &:before {
  156. font-size: $font-size;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. span {
  164. &.pending-contact-name {
  165. line-height: $line-height;
  166. width: 100%;
  167. }
  168. }
  169. }