_roster.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. li {
  69. &.requesting-xmpp-contact {
  70. a {
  71. line-height: var(--line-height);
  72. }
  73. .req-contact-name {
  74. padding: 0 0.2em 0 0;
  75. }
  76. }
  77. .open-chat {
  78. margin: 0;
  79. padding: 0;
  80. &.unread-msgs {
  81. font-weight: bold;
  82. .contact-name {
  83. width: 70%;
  84. }
  85. }
  86. .msgs-indicator {
  87. color: white;
  88. background-color: var(--chat-head-color);
  89. opacity: 1;
  90. border-radius: 10%;
  91. padding: 0.2em;
  92. font-size: var(--font-size-small);
  93. }
  94. .contact-name {
  95. overflow: hidden;
  96. white-space: nowrap;
  97. text-overflow: ellipsis;
  98. padding: 0;
  99. margin: 0;
  100. max-width: 85%;
  101. float: none;
  102. height: 100%;
  103. &.unread-msgs {
  104. max-width: 60%;
  105. }
  106. }
  107. .avatar {
  108. float: left;
  109. display: inline-block;
  110. }
  111. }
  112. &.current-xmpp-contact span {
  113. font-size: var(--font-size);
  114. margin-right: 0.3em;
  115. vertical-align: middle;
  116. }
  117. &.odd {
  118. background-color: #DCEAC5;
  119. /* Make this difference */
  120. }
  121. a, span {
  122. display: inline-block;
  123. overflow: hidden;
  124. white-space: nowrap;
  125. text-overflow: ellipsis;
  126. }
  127. .decline-xmpp-request {
  128. margin-left: 5px;
  129. }
  130. &:hover {
  131. background-color: var(--controlbox-head-color-lighten-45-percent);
  132. }
  133. }
  134. }
  135. }
  136. span {
  137. &.pending-contact-name {
  138. line-height: var(--line-height);
  139. width: 100%;
  140. }
  141. }
  142. }