您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_toolbars.scss 8.9KB

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