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

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