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 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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. /**
  22. * TODO: when the old filmstrip has been removed, remove the "new-" prefix.
  23. */
  24. .new-toolbox {
  25. bottom: calc((#{$newToolbarSize} * 2) * -1);
  26. left: 0;
  27. position: absolute;
  28. right: 0;
  29. transition: bottom .3s ease-in;
  30. width: 100%;
  31. &.visible {
  32. bottom: 0;
  33. }
  34. &.no-buttons {
  35. display: none;
  36. }
  37. @media (min-width: 581px) {
  38. &.shift-right {
  39. margin-left: $sidebarWidth;
  40. width: calc(100% - #{$sidebarWidth});
  41. }
  42. }
  43. }
  44. .toolbox-content {
  45. align-items: center;
  46. box-sizing: border-box;
  47. display: flex;
  48. margin-bottom: 16px;
  49. position: relative;
  50. z-index: $toolbarZ;
  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. .toolbox-button-wth-dialog {
  64. display: inline-block;
  65. &> div {
  66. padding: 0;
  67. background: $menuBG;
  68. }
  69. }
  70. }
  71. .toolbox-button {
  72. color: $toolbarButtonColor;
  73. cursor: pointer;
  74. display: inline-block;
  75. line-height: $newToolbarSize;
  76. text-align: center;
  77. }
  78. .toolbar-button-with-badge {
  79. display: inline-block;
  80. position: relative;
  81. .badge-round {
  82. bottom: -5px;
  83. font-size: 12px;
  84. line-height: 20px;
  85. min-width: 20px;
  86. pointer-events: none;
  87. position: absolute;
  88. right: -5px;
  89. }
  90. }
  91. .toolbox-content-items {
  92. background: $newToolbarBackgroundColor;
  93. box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
  94. border-radius: 6px;
  95. margin: 0 auto;
  96. padding: 6px;
  97. text-align: center;
  98. >div {
  99. margin-left: 8px;
  100. &:first-child {
  101. margin-left: 0;
  102. }
  103. }
  104. }
  105. .overflow-menu {
  106. font-size: 14px;
  107. list-style-type: none;
  108. padding: 8px 0;
  109. background-color: $menuBG;
  110. .profile-text {
  111. max-width: 150px;
  112. text-overflow: ellipsis;
  113. overflow: hidden;
  114. white-space: nowrap;
  115. }
  116. }
  117. .overflow-menu-item {
  118. align-items: center;
  119. color: $overflowMenuItemColor;
  120. cursor: pointer;
  121. display: flex;
  122. font-size: 14px;
  123. font-weight: 400;
  124. height: 40px;
  125. line-height: 24px;
  126. padding: 8px 16px;
  127. box-sizing: border-box;
  128. @media (hover: hover) and (pointer: fine) {
  129. &:hover {
  130. background: $overflowMenuItemBackground;
  131. }
  132. }
  133. div {
  134. display: flex;
  135. flex-direction: row;
  136. align-items: center;
  137. }
  138. &.unclickable {
  139. cursor: default;
  140. }
  141. &.disabled {
  142. cursor: initial;
  143. color: #929292;
  144. svg {
  145. fill: #929292;
  146. }
  147. }
  148. @media (hover: hover) and (pointer: fine) {
  149. &.unclickable:hover {
  150. background: inherit;
  151. }
  152. }
  153. }
  154. .beta-tag {
  155. background: #36383C;
  156. border-radius: 3px;
  157. color: #fff;
  158. font-size: 12px;
  159. margin-left: 8px;
  160. padding: 0 4px;
  161. text-transform: uppercase;
  162. }
  163. .overflow-menu-item-icon {
  164. margin-right: 16px;
  165. i {
  166. display: inline;
  167. font-size: 24px;
  168. }
  169. @media (hover: hover) and (pointer: fine) {
  170. i:hover {
  171. background-color: initial;
  172. }
  173. }
  174. img {
  175. max-width: 24px;
  176. max-height: 24px;
  177. }
  178. svg {
  179. fill: #fff;
  180. height: 20px;
  181. width: 20px;
  182. }
  183. }
  184. .overflow-menu-hr {
  185. border-top: 1px solid #4C4D50;
  186. border-bottom: 0;
  187. margin: 8px 0;
  188. }
  189. .toolbox-icon {
  190. display: flex;
  191. border-radius: 3px;
  192. flex-direction: column;
  193. font-size: 24px;
  194. height: $newToolbarSize;
  195. justify-content: center;
  196. width: $newToolbarSize;
  197. @media (hover: hover) and (pointer: fine) {
  198. &:hover {
  199. background: $newToolbarButtonHoverColor;
  200. }
  201. }
  202. @media (max-width: 320px) {
  203. height: 36px;
  204. width: 36px;
  205. }
  206. &.toggled {
  207. background: $newToolbarButtonToggleColor;
  208. }
  209. &.disabled {
  210. cursor: initial !important;
  211. background-color: #36383c !important;
  212. svg {
  213. fill: #929292 !important;
  214. }
  215. }
  216. }
  217. .hangup-button {
  218. background-color: $hangupColor;
  219. @media (hover: hover) and (pointer: fine) {
  220. &:hover {
  221. background-color: $hangupHoverColor;
  222. }
  223. }
  224. svg {
  225. fill: #fff;
  226. }
  227. }
  228. /**
  229. * START of fade in animation for main toolbar
  230. */
  231. .fadeIn {
  232. opacity: 1;
  233. @include transition(all .3s ease-in);
  234. }
  235. .fadeOut {
  236. opacity: 0;
  237. @include transition(all .3s ease-out);
  238. }
  239. /**
  240. * Audio and video buttons do not have toggled state.
  241. */
  242. .audio-preview,
  243. .video-preview {
  244. .toolbox-icon.toggled {
  245. background: none;
  246. &:hover {
  247. background: $newToolbarButtonHoverColor;
  248. }
  249. }
  250. }
  251. /**
  252. * On small mobile devices make the toolbar full width.
  253. */
  254. .toolbox-content-mobile {
  255. @media (max-width: 500px) {
  256. margin-bottom: 0;
  257. .toolbox-content-items {
  258. border-radius: 0;
  259. display: flex;
  260. justify-content: space-evenly;
  261. padding: 6px 0;
  262. width: 100%;
  263. }
  264. }
  265. }