You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_toolbars.scss 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. /**
  2. * Round badge.
  3. */
  4. .badge-round {
  5. background-color: $toolbarBadgeBackground;
  6. border-radius: 50%;
  7. box-sizing: border-box;
  8. color: $toolbarBadgeColor;
  9. // Do not inherit the font-family from the toolbar button, because it's an
  10. // icon style.
  11. font-family: $baseFontFamily;
  12. font-size: 9px;
  13. font-weight: 700;
  14. line-height: 13px;
  15. min-width: 13px;
  16. overflow: hidden;
  17. text-align: center;
  18. text-overflow: ellipsis;
  19. vertical-align: middle;
  20. }
  21. .use-new-toolbox {
  22. .cxGWJB{
  23. bottom: calc(#{$newToolbarSizeWithPadding});
  24. }
  25. .gXSEsl:nth-child(n+2) {
  26. transform: translateX(0) translateY(100%) translateY(16px);
  27. -ms-transform: translateX(0) translateY(100%) translateY(16px);
  28. -webkit-transform: translateX(0) translateY(100%) translateY(16px);
  29. }
  30. }
  31. /**
  32. * TODO: when the old filmstrip has been removed, remove the "new-" prefix.
  33. */
  34. .new-toolbox {
  35. background-color: $newToolbarBackgroundColor;
  36. bottom: calc((#{$newToolbarSize} * 2) * -1);
  37. box-sizing: border-box;
  38. display: flex;
  39. justify-content: space-between;
  40. padding: 16px 8px;
  41. position: absolute;
  42. transition: bottom .3s ease-in;
  43. width: 100%;
  44. z-index: $toolbarZ;
  45. &.visible {
  46. bottom: 0;
  47. }
  48. &.no-buttons {
  49. display: none;
  50. }
  51. .button-group-center,
  52. .button-group-left,
  53. .button-group-right {
  54. display: flex;
  55. width: 33%;
  56. }
  57. .button-group-center {
  58. justify-content: center;
  59. }
  60. .button-group-right {
  61. justify-content: flex-end;
  62. }
  63. /**
  64. * Overwrite font-awesome styling to match jitsi-icon styling.
  65. */
  66. .fa {
  67. height: 24px;
  68. margin-left: 2px;
  69. width: 24px;
  70. }
  71. i {
  72. border-radius: 5px;
  73. cursor: pointer;
  74. display: block;
  75. font-size: inherit;
  76. height: 100%;
  77. line-height: inherit;
  78. width: 100%;
  79. }
  80. i:hover {
  81. background-color: $newToolbarButtonHoverColor;
  82. }
  83. i.toggled {
  84. background: $newToolbarButtonToggleColor;
  85. }
  86. i.toggled:hover {
  87. background-color: $newToolbarButtonHoverColor;
  88. }
  89. i.disabled {
  90. cursor: initial
  91. }
  92. i.disabled:hover {
  93. background-color: initial;
  94. }
  95. .icon-hangup {
  96. color: $hangupColor;
  97. }
  98. .overflow-menu {
  99. font-size: 1.2em;
  100. list-style-type: none;
  101. /**
  102. * Undo atlaskit padding by reducing margins.
  103. */
  104. margin: -15px -24px;
  105. padding: 4px 0;
  106. .overflow-menu-item {
  107. align-items: center;
  108. color: #B8C7E0;
  109. cursor: pointer;
  110. display: flex;
  111. font-size: 14px;
  112. height: 22px;
  113. padding: 5px 12px;
  114. &:hover {
  115. background: #313D52;
  116. }
  117. &.unclickable {
  118. cursor: default;
  119. }
  120. &.unclickable:hover {
  121. background: inherit;
  122. }
  123. }
  124. .overflow-menu-item-icon {
  125. margin-right: 10px;
  126. i {
  127. display: inline;
  128. font-size: 24px;
  129. }
  130. i:hover {
  131. background-color: initial;
  132. }
  133. img {
  134. max-width: 24px;
  135. max-height: 24px;
  136. }
  137. }
  138. .profile-text {
  139. max-width: 150px;
  140. text-overflow: ellipsis;
  141. overflow: hidden;
  142. white-space: nowrap;
  143. }
  144. }
  145. .toolbox-button {
  146. color: $toolbarButtonColor;
  147. cursor: pointer;
  148. display: inline-block;
  149. line-height: $newToolbarSize;
  150. margin: 0 4px;
  151. text-align: center;
  152. }
  153. .toolbar-button-with-badge {
  154. position: relative;
  155. .badge-round {
  156. bottom: -5px;
  157. font-size: 12px;
  158. line-height: 20px;
  159. min-width: 20px;
  160. pointer-events: none;
  161. position: absolute;
  162. right: -5px;
  163. }
  164. }
  165. .toolbox-button-wth-dialog {
  166. display: inline-block;
  167. }
  168. .toolbox-icon {
  169. height: $newToolbarSize;
  170. font-size: 24px;
  171. width: $newToolbarSize;
  172. }
  173. }
  174. .always-on-top-toolbox,
  175. .filmstrip-toolbox {
  176. background-color: $newToolbarBackgroundColor;
  177. box-sizing: border-box;
  178. display: flex;
  179. flex-direction: column;
  180. z-index: $toolbarZ;
  181. i {
  182. cursor: pointer;
  183. display: block;
  184. }
  185. i:hover {
  186. background-color: $newToolbarButtonHoverColor;
  187. }
  188. i.toggled {
  189. background: $newToolbarButtonToggleColor;
  190. }
  191. i.toggled:hover:not(.disabled) {
  192. background-color: $newToolbarButtonHoverColor;
  193. }
  194. .icon-hangup {
  195. color: $hangupColor;
  196. }
  197. .toolbox-button {
  198. color: $toolbarButtonColor;
  199. cursor: pointer;
  200. text-align: center;
  201. }
  202. border-radius: 3px;
  203. }
  204. .always-on-top-toolbox {
  205. flex-direction: row;
  206. left: 50%;
  207. position: absolute;
  208. top: 10px;
  209. transform: translateX(-50%);
  210. z-index: $toolbarZ;
  211. i {
  212. font-size: $alwaysOnTopToolbarFontSize;
  213. height: $alwaysOnTopToolbarSize;
  214. line-height: $alwaysOnTopToolbarSize;
  215. width: $alwaysOnTopToolbarSize;
  216. }
  217. .disabled {
  218. cursor: initial;
  219. }
  220. .toolbox-button:first-child i {
  221. border-top-left-radius: 3px;
  222. border-bottom-left-radius: 3px;
  223. }
  224. .toolbox-button:last-child i {
  225. border-top-right-radius: 3px;
  226. border-bottom-right-radius: 3px;
  227. }
  228. }
  229. .filmstrip-toolbox {
  230. i {
  231. font-size: 1.9em;
  232. height: 37px;
  233. line-height: 37px;
  234. width: 37px;
  235. }
  236. .toolbox-button:first-child i {
  237. border-top-left-radius: 3px;
  238. border-top-right-radius: 3px;
  239. }
  240. .toolbox-button:last-child i {
  241. border-bottom-left-radius: 3px;
  242. border-bottom-right-radius: 3px;
  243. }
  244. }
  245. /**
  246. * START of slide in animation for extended toolbar panel.
  247. */
  248. @include keyframes(slideInExt) {
  249. from { width: 0px; }
  250. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  251. }
  252. .slideInExt {
  253. @include animation("slideInExt .5s forwards");
  254. }
  255. @include keyframes(slideOutExt) {
  256. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  257. to { width: 0px; }
  258. }
  259. .slideOutExt {
  260. @include animation("slideOutExt .5s forwards");
  261. }
  262. /**
  263. * START of fade in animation for main toolbar
  264. */
  265. .fadeIn {
  266. opacity: 1;
  267. @include transition(all .3s ease-in);
  268. }
  269. .fadeOut {
  270. opacity: 0;
  271. @include transition(all .3s ease-out);
  272. }