Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

_toolbars.scss 7.5KB

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. /**
  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. display: inline-block;
  175. height: auto;
  176. width: $defaultFilmStripOnlyToolbarSize;
  177. .button {
  178. height: 37px;
  179. line-height: 37px !important;
  180. width: 37px;
  181. }
  182. .button:first-child {
  183. border-top-left-radius: 3px;
  184. border-top-right-radius: 3px;
  185. }
  186. .button:last-child {
  187. border-bottom-right-radius: 3px;
  188. border-bottom-left-radius: 3px;
  189. }
  190. }
  191. /**
  192. * Toolbar specific round badge.
  193. */
  194. .badge-round {
  195. bottom: 9px;
  196. position: absolute;
  197. right: 9px;
  198. }
  199. }
  200. .filmstrip-only {
  201. .toolbox,
  202. .toolbox-toolbars {
  203. align-items: center;
  204. display: flex;
  205. }
  206. }
  207. .subject {
  208. background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
  209. border-bottom-left-radius: 12px;
  210. border-bottom-right-radius: 12px;
  211. box-shadow: 0 0 2px #000000, 0 0 10px #000000;
  212. margin-left: 40%;
  213. margin-right: 40%;
  214. padding: 5px;
  215. position: relative;
  216. text-align: center;
  217. width: auto;
  218. z-index: $zindex3;
  219. &.subject_slide-in {
  220. top: 80px;
  221. @include transition(top .3s ease-in);
  222. }
  223. &.subject_slide-out {
  224. top: 0;
  225. @include transition(top .3s ease-out);
  226. }
  227. }
  228. a.button>#avatar {
  229. border-radius: 50%;
  230. padding-bottom: 10px;
  231. padding-top: 10px;
  232. width: 30px;
  233. }
  234. #feedbackButton {
  235. margin-top: auto;
  236. }
  237. /**
  238. * START of slide in animation for extended toolbar.
  239. */
  240. @include keyframes(slideInX) {
  241. 0% { transform: translateX(-100%); }
  242. 100% { transform: translateX(0%); }
  243. }
  244. .slideInX {
  245. @include animation('slideInX .5s forwards');
  246. }
  247. @include keyframes(slideOutX) {
  248. 0% { transform: translateX(0%); }
  249. 100% { transform: translateX(-100%); }
  250. }
  251. .slideOutX {
  252. @include animation('slideOutX .5s forwards');
  253. }
  254. @include keyframes(slideInExtX) {
  255. 0% { transform: translateX(-500%); }
  256. 100% { transform: translateX(0%); }
  257. }
  258. .slideInExtX {
  259. @include animation('slideInExtX .5s forwards');
  260. }
  261. @include keyframes(slideOutExtX) {
  262. 0% { transform: translateX(0%); }
  263. 100% { transform: translateX(-500%); }
  264. }
  265. .slideOutExtX {
  266. @include animation('slideOutExtX .5s forwards');
  267. }
  268. /**
  269. * END of slide out animation for extended toolbar.
  270. */
  271. /**
  272. * START of slide in / out animation for main toolbar.
  273. */
  274. @include keyframes(slideInY) {
  275. 100% { transform: translateY(0%); }
  276. }
  277. .slideInY {
  278. @include animation('slideInY .5s forwards');
  279. }
  280. @include keyframes(slideOutY) {
  281. 0% { transform: translateY(0%); }
  282. 100% { transform: translateY(-100%); }
  283. }
  284. .slideOutY {
  285. @include animation('slideOutY .5s forwards');
  286. }
  287. /**
  288. * END of slide in / out animation for main toolbar.
  289. */
  290. /**
  291. * START of slide in animation for extended toolbar panel.
  292. */
  293. @include keyframes(slideInExt) {
  294. from { width: 0px; }
  295. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  296. }
  297. .slideInExt {
  298. @include animation("slideInExt .5s forwards");
  299. }
  300. @include keyframes(slideOutExt) {
  301. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  302. to { width: 0px; }
  303. }
  304. .slideOutExt {
  305. @include animation("slideOutExt .5s forwards");
  306. }
  307. /**
  308. * START of fade in animation for main toolbar
  309. */
  310. .fadeIn {
  311. opacity: 1;
  312. @include transition(all .3s ease-in);
  313. }
  314. .fadeOut {
  315. opacity: 0;
  316. @include transition(all .3s ease-out);
  317. }