2
0

_roster.scss 4.6 KB

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