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

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