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

_toolbars.scss 6.2KB

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