您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_toolbars.scss 6.1KB

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