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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. }
  68. }
  69. }
  70. .toolbox-button {
  71. color: $toolbarButtonColor;
  72. cursor: pointer;
  73. display: inline-block;
  74. line-height: $newToolbarSize;
  75. text-align: center;
  76. }
  77. .toolbar-button-with-badge {
  78. display: inline-block;
  79. position: relative;
  80. .badge-round {
  81. bottom: -5px;
  82. font-size: 12px;
  83. line-height: 20px;
  84. min-width: 20px;
  85. pointer-events: none;
  86. position: absolute;
  87. right: -5px;
  88. }
  89. }
  90. .toolbox-content-items {
  91. background: #131519;
  92. box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
  93. border-radius: 6px;
  94. margin: 0 auto;
  95. padding: 6px;
  96. text-align: center;
  97. >div {
  98. margin-left: 8px;
  99. &:first-child {
  100. margin-left: 0;
  101. }
  102. }
  103. }
  104. .overflow-menu {
  105. font-size: 14px;
  106. list-style-type: none;
  107. padding: 8px 0;
  108. background-color: $menuBG;
  109. .profile-text {
  110. max-width: 150px;
  111. text-overflow: ellipsis;
  112. overflow: hidden;
  113. white-space: nowrap;
  114. }
  115. }
  116. .overflow-menu-item {
  117. align-items: center;
  118. color: $overflowMenuItemColor;
  119. cursor: pointer;
  120. display: flex;
  121. font-size: 14px;
  122. font-weight: 400;
  123. height: 40px;
  124. line-height: 24px;
  125. padding: 8px 16px;
  126. box-sizing: border-box;
  127. @media (hover: hover) and (pointer: fine) {
  128. &:hover {
  129. background: $overflowMenuItemBackground;
  130. }
  131. }
  132. div {
  133. display: flex;
  134. flex-direction: row;
  135. align-items: center;
  136. }
  137. &.unclickable {
  138. cursor: default;
  139. }
  140. &.disabled {
  141. cursor: initial;
  142. color: #929292;
  143. svg {
  144. fill: #929292;
  145. }
  146. }
  147. @media (hover: hover) and (pointer: fine) {
  148. &.unclickable:hover {
  149. background: inherit;
  150. }
  151. }
  152. }
  153. .beta-tag {
  154. background: #36383C;
  155. border-radius: 3px;
  156. color: #fff;
  157. font-size: 12px;
  158. margin-left: 8px;
  159. padding: 0 4px;
  160. text-transform: uppercase;
  161. }
  162. .overflow-menu-item-icon {
  163. margin-right: 16px;
  164. i {
  165. display: inline;
  166. font-size: 24px;
  167. }
  168. @media (hover: hover) and (pointer: fine) {
  169. i:hover {
  170. background-color: initial;
  171. }
  172. }
  173. img {
  174. max-width: 24px;
  175. max-height: 24px;
  176. }
  177. svg {
  178. fill: #fff;
  179. height: 20px;
  180. width: 20px;
  181. }
  182. }
  183. .overflow-menu-hr {
  184. border-top: 1px solid #4C4D50;
  185. border-bottom: 0;
  186. margin: 8px 0;
  187. }
  188. .toolbox-icon {
  189. display: flex;
  190. border-radius: 3px;
  191. flex-direction: column;
  192. font-size: 24px;
  193. height: $newToolbarSize;
  194. justify-content: center;
  195. width: $newToolbarSize;
  196. @media (hover: hover) and (pointer: fine) {
  197. &:hover {
  198. background: $newToolbarButtonHoverColor;
  199. }
  200. }
  201. &.toggled {
  202. background: $newToolbarButtonToggleColor;
  203. }
  204. &.disabled {
  205. cursor: initial !important;
  206. background-color: #36383c !important;
  207. svg {
  208. fill: #929292 !important;
  209. }
  210. }
  211. }
  212. .hangup-button {
  213. background-color: $hangupColor;
  214. @media (hover: hover) and (pointer: fine) {
  215. &:hover {
  216. background-color: $hangupHoverColor;
  217. }
  218. }
  219. svg {
  220. fill: #fff;
  221. }
  222. }
  223. /**
  224. * START of fade in animation for main toolbar
  225. */
  226. .fadeIn {
  227. opacity: 1;
  228. @include transition(all .3s ease-in);
  229. }
  230. .fadeOut {
  231. opacity: 0;
  232. @include transition(all .3s ease-out);
  233. }
  234. /**
  235. * Audio and video buttons do not have toggled state.
  236. */
  237. .audio-preview,
  238. .video-preview {
  239. .toolbox-icon.toggled {
  240. background: none;
  241. &:hover {
  242. background: $newToolbarButtonHoverColor;
  243. }
  244. }
  245. }