_roster.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. #conversejs #converse-roster {
  2. text-align: left;
  3. width: 100%;
  4. position: relative;
  5. margin: 0;
  6. height: var(--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. min-width: 25px;
  31. text-align: center;
  32. }
  33. .roster-filter {
  34. width: 100%;
  35. margin: 0.2em;
  36. font-size: calc(var(--font-size) - 2px);
  37. }
  38. .state-type {
  39. font-size: calc(var(--font-size) - 2px);
  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: var(--text-color);
  52. font-weight: normal;
  53. text-shadow: 0 1px 0 var(--text-shadow-color);
  54. margin: 0.75em 0 0.75em 0;
  55. .group-toggle {
  56. font-family: var(--heading-font);
  57. display: block;
  58. width: 100%;
  59. padding-top: 0;
  60. padding-bottom: 0.3rem;
  61. }
  62. .group-toggle, .group-toggle .fa {
  63. color: var(--chat-head-color-dark) !important;
  64. &:hover {
  65. color: var(--chat-head-color-darker) !important;
  66. }
  67. }
  68. .current-xmpp-contact {
  69. margin: 0.25em 0;
  70. .chat-status {
  71. vertical-align: middle;
  72. font-size: 0.6em;
  73. margin-right: 0;
  74. margin-left: -0.7em;
  75. margin-bottom: -1.5em;
  76. border-radius: 50%;
  77. border: 2px solid var(--occupants-background-color);
  78. }
  79. .chat-status--offline {
  80. margin-right: 0.8em;
  81. }
  82. .chat-status--online {
  83. color: var(--chat-status-online);
  84. }
  85. .chat-status--busy {
  86. color: var(--chat-status-busy);
  87. }
  88. .chat-status--away {
  89. color: var(--chat-status-away);
  90. }
  91. .chat-status--offline {
  92. display: none;
  93. }
  94. .far.fa-circle,
  95. .fa-times-circle {
  96. color: var(--subdued-color);
  97. }
  98. }
  99. li {
  100. &.requesting-xmpp-contact {
  101. a {
  102. line-height: var(--line-height);
  103. }
  104. .req-contact-name {
  105. padding: 0 0.2em 0 0;
  106. }
  107. }
  108. .open-chat {
  109. margin: 0;
  110. padding: 0;
  111. &.unread-msgs {
  112. font-weight: bold;
  113. .contact-name {
  114. width: 70%;
  115. }
  116. }
  117. .msgs-indicator {
  118. color: white;
  119. background-color: var(--chat-head-color);
  120. opacity: 1;
  121. border-radius: 10%;
  122. padding: 0.2em;
  123. font-size: var(--font-size-small);
  124. }
  125. .contact-name {
  126. overflow: hidden;
  127. white-space: nowrap;
  128. text-overflow: ellipsis;
  129. padding: 0;
  130. margin: 0;
  131. max-width: 85%;
  132. float: none;
  133. height: 100%;
  134. &.unread-msgs {
  135. max-width: 60%;
  136. }
  137. &.contact-name--offline {
  138. margin-left: 0.7em;
  139. }
  140. }
  141. }
  142. &.odd {
  143. background-color: #DCEAC5;
  144. /* Make this difference */
  145. }
  146. a, span {
  147. overflow: hidden;
  148. white-space: nowrap;
  149. text-overflow: ellipsis;
  150. }
  151. .span {
  152. display: inline-block;
  153. }
  154. .decline-xmpp-request {
  155. margin-left: 5px;
  156. }
  157. &:hover {
  158. background-color: var(controlbox-pane-bg-hover-color);
  159. }
  160. }
  161. }
  162. }
  163. span {
  164. &.pending-contact-name {
  165. line-height: var(--line-height);
  166. width: 100%;
  167. }
  168. }
  169. }