選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

_toolbars.scss 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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. .use-new-toolbox {
  22. .cxGWJB{
  23. bottom: calc(#{$newToolbarSizeWithPadding});
  24. }
  25. .gXSEsl:nth-child(n+2) {
  26. transform: translateX(0) translateY(100%) translateY(16px);
  27. -ms-transform: translateX(0) translateY(100%) translateY(16px);
  28. -webkit-transform: translateX(0) translateY(100%) translateY(16px);
  29. }
  30. }
  31. /**
  32. * TODO: when the old filmstrip has been removed, remove the "new-" prefix.
  33. */
  34. .new-toolbox {
  35. background-color: $newToolbarBackgroundColor;
  36. bottom: calc((#{$newToolbarSize} * 2) * -1);
  37. box-sizing: border-box;
  38. display: flex;
  39. justify-content: space-between;
  40. padding: 16px 8px;
  41. position: absolute;
  42. transition: bottom .3s ease-in;
  43. width: 100%;
  44. z-index: $toolbarZ;
  45. &.visible {
  46. bottom: 0;
  47. }
  48. &.no-buttons {
  49. display: none;
  50. }
  51. .button-group-center,
  52. .button-group-left,
  53. .button-group-right {
  54. display: flex;
  55. width: 33%;
  56. }
  57. .button-group-center {
  58. justify-content: center;
  59. }
  60. .button-group-right {
  61. justify-content: flex-end;
  62. }
  63. /**
  64. * Overwrite font-awesome styling to match jitsi-icon styling.
  65. */
  66. .fa {
  67. font-size: 1.22em;
  68. }
  69. i {
  70. border-radius: 5px;
  71. cursor: pointer;
  72. display: block;
  73. font-size: inherit;
  74. height: 100%;
  75. line-height: inherit;
  76. width: 100%;
  77. }
  78. i:hover {
  79. background-color: $newToolbarButtonHoverColor;
  80. }
  81. i.toggled {
  82. background: $newToolbarButtonToggleColor;
  83. }
  84. i.toggled:hover {
  85. background-color: $newToolbarButtonHoverColor;
  86. }
  87. i.disabled {
  88. cursor: initial
  89. }
  90. i.disabled:hover {
  91. background-color: initial;
  92. }
  93. .icon-hangup {
  94. color: $hangupColor;
  95. }
  96. .overflow-menu {
  97. font-size: 1.2em;
  98. list-style-type: none;
  99. /**
  100. * Undo atlaskit padding by reducing margins.
  101. */
  102. margin: -15px -24px;
  103. padding: 4px 0;
  104. .overflow-menu-item {
  105. align-items: center;
  106. color: #B8C7E0;
  107. cursor: pointer;
  108. display: flex;
  109. font-size: 14px;
  110. height: 22px;
  111. padding: 5px 12px;
  112. &:hover {
  113. background: #313D52;
  114. }
  115. &.unclickable {
  116. cursor: default;
  117. }
  118. &.unclickable:hover {
  119. background: inherit;
  120. }
  121. }
  122. .overflow-menu-item-icon {
  123. margin-right: 10px;
  124. i {
  125. display: inline;
  126. font-size: 24px;
  127. }
  128. i:hover {
  129. background-color: initial;
  130. }
  131. img {
  132. max-width: 24px;
  133. max-height: 24px;
  134. }
  135. }
  136. .profile-text {
  137. max-width: 150px;
  138. text-overflow: ellipsis;
  139. overflow: hidden;
  140. white-space: nowrap;
  141. }
  142. }
  143. .toolbox-button {
  144. color: $toolbarButtonColor;
  145. cursor: pointer;
  146. display: inline-block;
  147. line-height: $newToolbarSize;
  148. margin: 0 4px;
  149. text-align: center;
  150. }
  151. .toolbar-button-with-badge {
  152. position: relative;
  153. .badge-round {
  154. bottom: 9px;
  155. font-size: 12px;
  156. line-height: 20px;
  157. min-width: 20px;
  158. position: absolute;
  159. right: 9px;
  160. }
  161. }
  162. .toolbox-button-wth-dialog {
  163. display: inline-block;
  164. }
  165. .toolbox-icon {
  166. height: $newToolbarSize;
  167. font-size: 24px;
  168. width: $newToolbarSize;
  169. }
  170. }
  171. .always-on-top-toolbox,
  172. .filmstrip-toolbox {
  173. background-color: $newToolbarBackgroundColor;
  174. box-sizing: border-box;
  175. display: flex;
  176. flex-direction: column;
  177. z-index: $toolbarZ;
  178. i {
  179. cursor: pointer;
  180. display: block;
  181. }
  182. i:hover {
  183. background-color: $newToolbarButtonHoverColor;
  184. }
  185. i.toggled {
  186. background: $newToolbarButtonToggleColor;
  187. }
  188. i.toggled:hover:not(.disabled) {
  189. background-color: $newToolbarButtonHoverColor;
  190. }
  191. .icon-hangup {
  192. color: $hangupColor;
  193. }
  194. .toolbox-button {
  195. color: $toolbarButtonColor;
  196. cursor: pointer;
  197. text-align: center;
  198. }
  199. border-radius: 3px;
  200. }
  201. .always-on-top-toolbox {
  202. flex-direction: row;
  203. left: 50%;
  204. position: absolute;
  205. top: 10px;
  206. transform: translateX(-50%);
  207. z-index: $toolbarZ;
  208. i {
  209. font-size: $alwaysOnTopToolbarFontSize;
  210. height: $alwaysOnTopToolbarSize;
  211. line-height: $alwaysOnTopToolbarSize;
  212. width: $alwaysOnTopToolbarSize;
  213. }
  214. .disabled {
  215. cursor: initial;
  216. }
  217. .toolbox-button:first-child i {
  218. border-top-left-radius: 3px;
  219. border-bottom-left-radius: 3px;
  220. }
  221. .toolbox-button:last-child i {
  222. border-top-right-radius: 3px;
  223. border-bottom-right-radius: 3px;
  224. }
  225. }
  226. .filmstrip-toolbox {
  227. i {
  228. font-size: 1.9em;
  229. height: 37px;
  230. line-height: 37px;
  231. width: 37px;
  232. }
  233. .toolbox-button:first-child i {
  234. border-top-left-radius: 3px;
  235. border-top-right-radius: 3px;
  236. }
  237. .toolbox-button:last-child i {
  238. border-bottom-left-radius: 3px;
  239. border-bottom-right-radius: 3px;
  240. }
  241. }
  242. /**
  243. * START of slide in animation for extended toolbar panel.
  244. */
  245. @include keyframes(slideInExt) {
  246. from { width: 0px; }
  247. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  248. }
  249. .slideInExt {
  250. @include animation("slideInExt .5s forwards");
  251. }
  252. @include keyframes(slideOutExt) {
  253. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  254. to { width: 0px; }
  255. }
  256. .slideOutExt {
  257. @include animation("slideOutExt .5s forwards");
  258. }
  259. /**
  260. * START of fade in animation for main toolbar
  261. */
  262. .fadeIn {
  263. opacity: 1;
  264. @include transition(all .3s ease-in);
  265. }
  266. .fadeOut {
  267. opacity: 0;
  268. @include transition(all .3s ease-out);
  269. }