Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

_toolbars.scss 8.0KB

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