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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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. .toolbar-container {
  22. display: block;
  23. left:0;
  24. min-height: 100px;
  25. opacity: 0;
  26. pointer-events: none;
  27. position: absolute;
  28. right:0;
  29. text-align: center;
  30. top:0;
  31. z-index: $toolbarZ;
  32. }
  33. /**
  34. * Common toolbar styles.
  35. */
  36. .toolbar {
  37. height: 100%;
  38. pointer-events: auto;
  39. position: relative;
  40. z-index: $toolbarZ;
  41. /**
  42. * Ensure nested elements that don't have a button class, maybe because they
  43. * are wrapped in a React Element, still display in a line.
  44. */
  45. > div {
  46. display: inline-block;
  47. }
  48. /**
  49. * Always on top overrides.
  50. */
  51. &.always-on-top {
  52. /**
  53. * Toolbar button styles for always on top.
  54. */
  55. .button {
  56. font-size: $alwaysOnTopToolbarFontSize;
  57. height: $alwaysOnTopToolbarSize;
  58. line-height: $alwaysOnTopToolbarSize;
  59. width: $alwaysOnTopToolbarSize;
  60. &_hangup, &_hangup:hover {
  61. font-size: $alwaysOnTopToolbarFontSize;
  62. }
  63. }
  64. }
  65. /**
  66. * Toolbar button styles.
  67. */
  68. .button {
  69. color: $toolbarButtonColor;
  70. cursor: pointer;
  71. z-index: $zindex1;
  72. display: inline-block;
  73. font-size: $toolbarFontSize;
  74. height: $defaultToolbarSize;
  75. line-height: $defaultToolbarSize;
  76. position: relative;
  77. text-align: center;
  78. top:0px;
  79. vertical-align: middle;
  80. width: $defaultToolbarSize;
  81. &[disabled] {
  82. opacity: 0.5;
  83. }
  84. &:hover, &:active {
  85. color: $toolbarButtonColor;
  86. cursor: pointer;
  87. text-decoration: none;
  88. }
  89. &_hangup, &_hangup:hover {
  90. color: $hangupColor;
  91. font-size: $hangupFontSize;
  92. }
  93. &:not(.toggled) {
  94. &:hover, &:active {
  95. // sum opacity with background layer should give us 0.8
  96. background: $toolbarSelectBackground;
  97. }
  98. }
  99. &.toggled {
  100. background: $toolbarToggleBackground;
  101. &.icon-camera {
  102. @extend .icon-camera-disabled;
  103. }
  104. &.icon-full-screen {
  105. @extend .icon-exit-full-screen;
  106. }
  107. &.icon-microphone {
  108. @extend .icon-mic-disabled;
  109. }
  110. }
  111. &.unclickable {
  112. cursor: default;
  113. &:hover, &:active, &.selected {
  114. background: none;
  115. cursor: default;
  116. }
  117. }
  118. }
  119. /**
  120. * Primary toolbar styles.
  121. */
  122. &_primary {
  123. background-color: $toolbarBackground;
  124. position: absolute;
  125. left: 50%;
  126. top: 30px;
  127. display: inline-block;
  128. width: auto;
  129. height: $defaultToolbarSize;
  130. border-radius: 3px;
  131. opacity: 0;
  132. &.always-on-top {
  133. height: $alwaysOnTopToolbarSize;
  134. top: 10px;
  135. }
  136. @include transform(translateX(-50%));
  137. > div:first-child .button {
  138. border-bottom-left-radius: 3px;
  139. border-top-left-radius: 3px;
  140. }
  141. > div:last-child .button {
  142. border-bottom-right-radius: 3px;
  143. border-top-right-radius: 3px;
  144. }
  145. }
  146. &_primary a.button:last-child::after {
  147. content: none;
  148. }
  149. /**
  150. * Secondary toolbar styles.
  151. */
  152. &_secondary {
  153. background-color: $secondaryToolbarBg;
  154. position: absolute;
  155. align-items: center;
  156. box-sizing: border-box;
  157. display: -moz-box;
  158. display: -ms-flexbox;
  159. display: -webkit-box;
  160. display: -webkit-flex;
  161. display: flex;
  162. flex-direction: column;
  163. flex-wrap: nowrap;
  164. height: 100%;
  165. justify-content: flex-start;
  166. left: 0;
  167. padding-top: 24px;
  168. pointer-events: none;
  169. top: 0;
  170. transform: translateX(-100%);
  171. width: $defaultToolbarSize;
  172. -webkit-transform: translateX(-100%);
  173. .button {
  174. font-size: $secToolbarFontSize;
  175. height: $secToolbarLineHeight;
  176. line-height: $secToolbarLineHeight;
  177. }
  178. > * {
  179. pointer-events: auto
  180. }
  181. .button.toggled:not(.icon-raised-hand):not(.button-active) {
  182. background: $secondaryToolbarBg;
  183. cursor: pointer;
  184. text-decoration: none;
  185. &.unclickable {
  186. cursor: default;
  187. &:hover, &:active, &.selected {
  188. background: none;
  189. cursor: default;
  190. }
  191. }
  192. }
  193. }
  194. /**
  195. * Styles the toolbar in filmstrip-only mode.
  196. */
  197. &_filmstrip-only {
  198. background-color: $toolbarBackground;
  199. border-radius: 3px;
  200. display: inline-block;
  201. height: auto;
  202. width: $defaultFilmStripOnlyToolbarSize;
  203. .button {
  204. height: 37px;
  205. line-height: 37px !important;
  206. width: 37px;
  207. }
  208. .button-popover-message {
  209. width: 100px;
  210. }
  211. .toolbar-button-wrapper:first-child .button {
  212. border-top-left-radius: 3px;
  213. border-top-right-radius: 3px;
  214. }
  215. .toolbar-button-wrapper:last-child .button {
  216. border-bottom-right-radius: 3px;
  217. border-bottom-left-radius: 3px;
  218. }
  219. }
  220. /**
  221. * Toolbar specific round badge.
  222. */
  223. .badge-round {
  224. bottom: 9px;
  225. position: absolute;
  226. right: 9px;
  227. }
  228. }
  229. .filmstrip-only {
  230. .toolbox,
  231. .toolbox-toolbars {
  232. align-items: center;
  233. display: flex;
  234. }
  235. }
  236. .subject {
  237. background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
  238. border-bottom-left-radius: 12px;
  239. border-bottom-right-radius: 12px;
  240. box-shadow: 0 0 2px #000000, 0 0 10px #000000;
  241. margin-left: 40%;
  242. margin-right: 40%;
  243. padding: 5px;
  244. position: relative;
  245. text-align: center;
  246. width: auto;
  247. z-index: $zindex3;
  248. &.subject_slide-in {
  249. top: 80px;
  250. @include transition(top .3s ease-in);
  251. }
  252. &.subject_slide-out {
  253. top: 0;
  254. @include transition(top .3s ease-out);
  255. }
  256. }
  257. #toolbar_button_profile {
  258. height: $toolbarAvatarSize + 2*$toolbarAvatarPadding;
  259. }
  260. a.button>#avatar {
  261. border-radius: 50%;
  262. padding-bottom: $toolbarAvatarPadding;
  263. padding-top: $toolbarAvatarPadding;
  264. width: $toolbarAvatarSize;
  265. }
  266. #feedbackButton {
  267. margin-top: auto;
  268. }
  269. /**
  270. * START of slide in animation for extended toolbar.
  271. */
  272. @include keyframes(slideInX) {
  273. 0% { transform: translateX(-100%); }
  274. 100% { transform: translateX(0%); }
  275. }
  276. .slideInX {
  277. @include animation('slideInX .5s forwards');
  278. }
  279. @include keyframes(slideOutX) {
  280. 0% { transform: translateX(0%); }
  281. 100% { transform: translateX(-100%); }
  282. }
  283. .slideOutX {
  284. @include animation('slideOutX .5s forwards');
  285. }
  286. @include keyframes(slideInExtX) {
  287. 0% { transform: translateX(-500%); }
  288. 100% { transform: translateX(0%); }
  289. }
  290. .slideInExtX {
  291. @include animation('slideInExtX .5s forwards');
  292. }
  293. @include keyframes(slideOutExtX) {
  294. 0% { transform: translateX(0%); }
  295. 100% { transform: translateX(-500%); }
  296. }
  297. .slideOutExtX {
  298. @include animation('slideOutExtX .5s forwards');
  299. }
  300. /**
  301. * END of slide out animation for extended toolbar.
  302. */
  303. /**
  304. * START of slide in / out animation for main toolbar.
  305. */
  306. @include keyframes(slideInY) {
  307. 100% { transform: translateY(0%); }
  308. }
  309. .slideInY {
  310. @include animation('slideInY .5s forwards');
  311. }
  312. @include keyframes(slideOutY) {
  313. 0% { transform: translateY(0%); }
  314. 100% { transform: translateY(-100%); }
  315. }
  316. .slideOutY {
  317. @include animation('slideOutY .5s forwards');
  318. }
  319. /**
  320. * END of slide in / out animation for main toolbar.
  321. */
  322. /**
  323. * START of slide in animation for extended toolbar panel.
  324. */
  325. @include keyframes(slideInExt) {
  326. from { width: 0px; }
  327. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  328. }
  329. .slideInExt {
  330. @include animation("slideInExt .5s forwards");
  331. }
  332. @include keyframes(slideOutExt) {
  333. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  334. to { width: 0px; }
  335. }
  336. .slideOutExt {
  337. @include animation("slideOutExt .5s forwards");
  338. }
  339. /**
  340. * START of fade in animation for main toolbar
  341. */
  342. .fadeIn {
  343. opacity: 1;
  344. @include transition(all .3s ease-in);
  345. }
  346. .fadeOut {
  347. opacity: 0;
  348. @include transition(all .3s ease-out);
  349. }