Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

_toolbars.scss 6.3KB

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