_roster.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. #conversejs #converse-roster {
  2. text-align: left;
  3. width: 100%;
  4. position: relative;
  5. margin: 0;
  6. height: $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. }
  31. .roster-filter {
  32. width: 100%;
  33. margin: 0.2em;
  34. font-size: calc(#{$font-size} - 2px);
  35. }
  36. .state-type {
  37. font-size: calc(#{$font-size} - 2px);
  38. width: 100%;
  39. }
  40. }
  41. .roster-contacts {
  42. padding: 0;
  43. margin: 0 0 0.2em 0;
  44. height: 100%;
  45. overflow-x: hidden;
  46. overflow-y: auto;
  47. .roster-group {
  48. border: none;
  49. color: $text-color;
  50. font-weight: normal;
  51. text-shadow: 0 1px 0 $text-shadow-color;
  52. margin: 0.75em 0 0.75em 0;
  53. .group-toggle {
  54. &:hover {
  55. color: $dark-gray-color;
  56. }
  57. font-family: $heading-font;
  58. color: $text-color;
  59. display: block;
  60. width: 100%;
  61. padding-top: 0;
  62. padding-bottom: 0.3rem;
  63. }
  64. li {
  65. &.requesting-xmpp-contact {
  66. a {
  67. line-height: $line-height;
  68. &.far, &.fas, &.fa {
  69. width: 1.5em;
  70. }
  71. }
  72. .req-contact-name {
  73. padding: 0 0.2em 0 0;
  74. }
  75. }
  76. .open-chat {
  77. margin: 0;
  78. padding: 0;
  79. &.unread-msgs {
  80. font-weight: bold;
  81. .contact-name {
  82. width: 70%;
  83. }
  84. }
  85. .msgs-indicator {
  86. color: white;
  87. background-color: $chat-head-color;
  88. opacity: 1;
  89. border-radius: 10%;
  90. padding: 0.2em;
  91. font-size: $font-size-small;
  92. }
  93. .contact-name {
  94. overflow: hidden;
  95. white-space: nowrap;
  96. text-overflow: ellipsis;
  97. padding: 0;
  98. margin: 0;
  99. max-width: 90%;
  100. float: none;
  101. height: 100%;
  102. &.unread-msgs {
  103. max-width: 60%;
  104. }
  105. }
  106. .avatar {
  107. float: left;
  108. display: inline-block;
  109. }
  110. }
  111. &.current-xmpp-contact span {
  112. font-size: $font-size;
  113. float: left;
  114. margin-right: 0.5em;
  115. }
  116. &.odd {
  117. background-color: #DCEAC5;
  118. /* Make this difference */
  119. }
  120. a, span {
  121. display: inline-block;
  122. overflow: hidden;
  123. white-space: nowrap;
  124. text-overflow: ellipsis;
  125. }
  126. .decline-xmpp-request {
  127. margin-left: 5px;
  128. }
  129. &:hover {
  130. background-color: lighten($controlbox-head-color, 45%);
  131. .remove-xmpp-contact {
  132. display: inline-block;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. span {
  139. &.pending-contact-name {
  140. line-height: $line-height;
  141. width: 100%;
  142. }
  143. }
  144. }