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

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