Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

_toolbars.scss 6.8KB

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