2
0

_toolbar.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. #conversejs {
  2. .send-button {
  3. border-radius: 0;
  4. bottom: var(--send-button-bottom);
  5. color: var(--inverse-link-color);
  6. }
  7. .chatbox {
  8. .send-button {
  9. background-color: var(--chat-head-color);
  10. }
  11. }
  12. .chatroom {
  13. .send-button {
  14. background-color: var(--muc-toolbar-btn-color);
  15. }
  16. }
  17. .chat-toolbar {
  18. .toolbar-buttons {
  19. width: 100%;
  20. display: inline-block;
  21. .message-limit {
  22. padding: 0.5em;
  23. font-weight: bold;
  24. }
  25. }
  26. .unverified a,
  27. .unverified {
  28. color: #cf5300;
  29. }
  30. .private a,
  31. .private {
  32. color: #4b7003;
  33. }
  34. li {
  35. cursor: pointer;
  36. display: inline-block;
  37. list-style: none;
  38. padding: 0 0.5em;
  39. &:hover {
  40. cursor: pointer;
  41. }
  42. .toolbar-menu {
  43. background-color: #fff;
  44. bottom: 1.7rem;
  45. box-shadow: -1px -1px 2px 0 rgba(0, 0, 0, 0.4);
  46. height: auto;
  47. margin-bottom: 0;
  48. min-width: 21rem;
  49. position: absolute;
  50. right: 0;
  51. top: auto;
  52. z-index: $zindex-dropdown;
  53. &.otr-menu {
  54. left: -6em;
  55. min-width: 15rem;
  56. &.show {
  57. display: flex;
  58. flex-direction: column;
  59. }
  60. }
  61. a {
  62. color: var(--link-color);
  63. }
  64. }
  65. &.toggle-otr {
  66. ul {
  67. z-index: 99;
  68. li {
  69. &:hover {
  70. background-color: var(--highlight-color);
  71. }
  72. display: block;
  73. padding: 7px;
  74. a {
  75. display: block;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. converse-chat-toolbar {
  83. background-color: white;
  84. box-sizing: border-box;
  85. display: flex;
  86. justify-content: space-between;
  87. margin: 0;
  88. width: 100%;
  89. .fa, .fa:hover,
  90. .far, .far:hover,
  91. .fas, .fas:hover {
  92. color: var(--chat-head-color);
  93. font-size: var(--font-size-large);
  94. svg {
  95. fill: var(--chat-head-color);
  96. }
  97. }
  98. .unencrypted a,
  99. .unencrypted {
  100. color: var(--text-color);
  101. .toolbar-menu {
  102. a {
  103. color: var(--link-color);
  104. }
  105. }
  106. }
  107. button {
  108. margin-top: 0.4em;
  109. border: 1px transparent solid;
  110. background-color: transparent;
  111. &.send-button {
  112. padding-top: 0.2em;
  113. padding-bottom: 0.2em;
  114. margin: 0;
  115. margin-top: -1px;
  116. }
  117. }
  118. }
  119. .chatbox {
  120. converse-chat-toolbar {
  121. border-top: var(--chatbox-message-input-border-top);
  122. color: var(--chat-toolbar-btn-color);
  123. background-color: white;
  124. .fas, .fas:hover,
  125. .far, .far:hover,
  126. .fa, .fa:hover {
  127. color: var(--chat-toolbar-btn-color);
  128. }
  129. button {
  130. &:focus {
  131. outline-color: var(--chat-toolbar-btn-color) !important;
  132. }
  133. &:disabled .fa {
  134. color: var(--chat-toolbar-btn-disabled-color);
  135. &:hover {
  136. color: var(--chat-toolbar-btn-disabled-color);
  137. }
  138. svg, svg:hover {
  139. fill: var(--chat-toolbar-btn-disabled-color);
  140. }
  141. }
  142. }
  143. }
  144. }
  145. .chatroom {
  146. converse-chat-toolbar {
  147. border-top: var(--chatroom-message-input-border-top);
  148. color: var(--muc-toolbar-btn-color);
  149. .fas, .fas:hover,
  150. .far, .far:hover,
  151. .fa, .fa:hover {
  152. color: var(--muc-toolbar-btn-color);
  153. font-size: var(--font-size-large);
  154. svg {
  155. fill: var(--muc-toolbar-btn-color);
  156. }
  157. }
  158. button {
  159. &:focus {
  160. outline-color: var(--muc-toolbar-btn-color) !important;
  161. }
  162. &:disabled .fa {
  163. color: var(--muc-toolbar-btn-disabled-color);
  164. &:hover {
  165. color: var(--muc-toolbar-btn-disabled-color);
  166. }
  167. svg, svg:hover {
  168. fill: var(--muc-toolbar-btn-disabled-color);
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. #conversejs.converse-overlayed {
  176. .chat-toolbar {
  177. li {
  178. .toolbar-menu {
  179. min-width: 235px;
  180. }
  181. }
  182. }
  183. .chatroom {
  184. .chat-toolbar {
  185. li {
  186. .toolbar-menu {
  187. min-width: 280px;
  188. }
  189. }
  190. }
  191. }
  192. }