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

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