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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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. color: $modalTextColor;
  38. height: 100%;
  39. pointer-events: auto;
  40. position: relative;
  41. z-index: $toolbarZ;
  42. /**
  43. * Ensure nested elements that don't have a button class, maybe because they
  44. * are wrapped in a React Element, still display in a line.
  45. */
  46. > div {
  47. display: inline-block;
  48. }
  49. /**
  50. * Always on top overrides.
  51. */
  52. &.always-on-top {
  53. /**
  54. * Toolbar button styles for always on top.
  55. */
  56. > .button {
  57. font-size: $alwaysOnTopToolbarFontSize;
  58. height: $alwaysOnTopToolbarSize;
  59. line-height: $alwaysOnTopToolbarSize;
  60. width: $alwaysOnTopToolbarSize;
  61. }
  62. }
  63. /**
  64. * Toolbar button styles.
  65. */
  66. .button {
  67. color: $toolbarButtonColor;
  68. cursor: pointer;
  69. z-index: $zindex1;
  70. display: inline-block;
  71. font-size: $toolbarFontSize;
  72. height: $defaultToolbarSize;
  73. line-height: $defaultToolbarSize;
  74. position: relative;
  75. text-align: center;
  76. top:0px;
  77. vertical-align: middle;
  78. width: $defaultToolbarSize;
  79. &_hangup {
  80. color: $hangupColor;
  81. font-size: $hangupFontSize;
  82. }
  83. &[disabled] {
  84. opacity: 0.5;
  85. }
  86. &:hover, &:active {
  87. cursor: pointer;
  88. text-decoration: none;
  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:first-child {
  202. border-top-left-radius: 3px;
  203. border-top-right-radius: 3px;
  204. }
  205. .button:last-child {
  206. border-bottom-right-radius: 3px;
  207. border-bottom-left-radius: 3px;
  208. }
  209. }
  210. /**
  211. * Toolbar specific round badge.
  212. */
  213. .badge-round {
  214. bottom: 9px;
  215. position: absolute;
  216. right: 9px;
  217. }
  218. }
  219. .filmstrip-only {
  220. .toolbox,
  221. .toolbox-toolbars {
  222. align-items: center;
  223. display: flex;
  224. }
  225. }
  226. .subject {
  227. background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
  228. border-bottom-left-radius: 12px;
  229. border-bottom-right-radius: 12px;
  230. box-shadow: 0 0 2px #000000, 0 0 10px #000000;
  231. margin-left: 40%;
  232. margin-right: 40%;
  233. padding: 5px;
  234. position: relative;
  235. text-align: center;
  236. width: auto;
  237. z-index: $zindex3;
  238. &.subject_slide-in {
  239. top: 80px;
  240. @include transition(top .3s ease-in);
  241. }
  242. &.subject_slide-out {
  243. top: 0;
  244. @include transition(top .3s ease-out);
  245. }
  246. }
  247. #toolbar_button_profile {
  248. height: $toolbarAvatarSize + 2*$toolbarAvatarPadding;
  249. }
  250. a.button>#avatar {
  251. border-radius: 50%;
  252. padding-bottom: $toolbarAvatarPadding;
  253. padding-top: $toolbarAvatarPadding;
  254. width: $toolbarAvatarSize;
  255. }
  256. #feedbackButton {
  257. margin-top: auto;
  258. }
  259. /**
  260. * START of slide in animation for extended toolbar.
  261. */
  262. @include keyframes(slideInX) {
  263. 0% { transform: translateX(-100%); }
  264. 100% { transform: translateX(0%); }
  265. }
  266. .slideInX {
  267. @include animation('slideInX .5s forwards');
  268. }
  269. @include keyframes(slideOutX) {
  270. 0% { transform: translateX(0%); }
  271. 100% { transform: translateX(-100%); }
  272. }
  273. .slideOutX {
  274. @include animation('slideOutX .5s forwards');
  275. }
  276. @include keyframes(slideInExtX) {
  277. 0% { transform: translateX(-500%); }
  278. 100% { transform: translateX(0%); }
  279. }
  280. .slideInExtX {
  281. @include animation('slideInExtX .5s forwards');
  282. }
  283. @include keyframes(slideOutExtX) {
  284. 0% { transform: translateX(0%); }
  285. 100% { transform: translateX(-500%); }
  286. }
  287. .slideOutExtX {
  288. @include animation('slideOutExtX .5s forwards');
  289. }
  290. /**
  291. * END of slide out animation for extended toolbar.
  292. */
  293. /**
  294. * START of slide in / out animation for main toolbar.
  295. */
  296. @include keyframes(slideInY) {
  297. 100% { transform: translateY(0%); }
  298. }
  299. .slideInY {
  300. @include animation('slideInY .5s forwards');
  301. }
  302. @include keyframes(slideOutY) {
  303. 0% { transform: translateY(0%); }
  304. 100% { transform: translateY(-100%); }
  305. }
  306. .slideOutY {
  307. @include animation('slideOutY .5s forwards');
  308. }
  309. /**
  310. * END of slide in / out animation for main toolbar.
  311. */
  312. /**
  313. * START of slide in animation for extended toolbar panel.
  314. */
  315. @include keyframes(slideInExt) {
  316. from { width: 0px; }
  317. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  318. }
  319. .slideInExt {
  320. @include animation("slideInExt .5s forwards");
  321. }
  322. @include keyframes(slideOutExt) {
  323. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  324. to { width: 0px; }
  325. }
  326. .slideOutExt {
  327. @include animation("slideOutExt .5s forwards");
  328. }
  329. /**
  330. * START of fade in animation for main toolbar
  331. */
  332. .fadeIn {
  333. opacity: 1;
  334. @include transition(all .3s ease-in);
  335. }
  336. .fadeOut {
  337. opacity: 0;
  338. @include transition(all .3s ease-out);
  339. }