You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_toolbars.scss 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. bottom: calc((#{$newToolbarSize} * 2) * -1);
  26. left: 0;
  27. position: absolute;
  28. right: 0;
  29. transition: bottom .3s ease-in;
  30. width: 100%;
  31. &.visible {
  32. bottom: 0;
  33. .toolbox-background {
  34. bottom: 0px;
  35. }
  36. }
  37. &.no-buttons {
  38. display: none;
  39. }
  40. &.shift-right {
  41. margin-left: $sidebarWidth;
  42. width: calc(100% - #{$sidebarWidth});
  43. }
  44. .toolbox-background {
  45. background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  46. transition: bottom .3s ease-in;
  47. height: 160px;
  48. width: 100%;
  49. bottom: -160px;
  50. pointer-events: none;
  51. position: absolute;
  52. z-index: $toolbarBackgroundZ;
  53. }
  54. .toolbox-content {
  55. box-sizing: border-box;
  56. display: flex;
  57. justify-content: space-between;
  58. margin-left: auto;
  59. margin-right: auto;
  60. padding: 20px 16px;
  61. position: relative;
  62. width: 100%;
  63. z-index: $toolbarZ;
  64. .button-group-center,
  65. .button-group-left,
  66. .button-group-right {
  67. display: flex;
  68. width: 33%;
  69. }
  70. .button-group-center {
  71. justify-content: center;
  72. .toolbox-button {
  73. .toolbox-icon {
  74. background-color: #fff;
  75. border-radius: 50%;
  76. border: 1px solid #d1dbe8;
  77. margin: 0px 4px;
  78. width: 38px;
  79. height: 38px;
  80. &:hover {
  81. background-color: #daebfa;
  82. border: 1px solid #daebfa;
  83. }
  84. &.toggled {
  85. background: #2a3a4b;
  86. border: 1px solid #5e6d7a;
  87. svg {
  88. fill: #fff;
  89. }
  90. &:hover {
  91. background-color: #5e6d7a;
  92. }
  93. }
  94. &.disabled, .disabled & {
  95. cursor: initial;
  96. color: #fff;
  97. background-color: #a4b8d1;
  98. }
  99. svg {
  100. fill: #5e6d7a;
  101. }
  102. }
  103. &:nth-child(2) {
  104. .toolbox-icon {
  105. background-color: $hangupColor;
  106. border: 1px solid $hangupColor;
  107. width: 40px;
  108. height: 40px;
  109. &:hover {
  110. background-color: $hangupColor;
  111. }
  112. svg {
  113. fill: #fff;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. .button-group-right {
  120. justify-content: flex-end;
  121. }
  122. .overflow-menu {
  123. font-size: 1.2em;
  124. list-style-type: none;
  125. background-color: $overflowMenuBG;
  126. /**
  127. * Undo atlaskit padding by reducing margins.
  128. */
  129. margin: -16px -24px;
  130. padding: 4px 0;
  131. .overflow-menu-item {
  132. align-items: center;
  133. color: $overflowMenuItemColor;
  134. cursor: pointer;
  135. display: flex;
  136. font-size: 14px;
  137. height: 22px;
  138. padding: 5px 12px;
  139. div {
  140. display: flex;
  141. flex-direction: row;
  142. align-items: center;
  143. }
  144. &:hover {
  145. background-color: $overflowMenuItemHoverBG;
  146. color: $overflowMenuItemHoverColor;
  147. }
  148. &.unclickable {
  149. cursor: default;
  150. }
  151. &.unclickable:hover {
  152. background: inherit;
  153. }
  154. &.disabled {
  155. cursor: initial;
  156. color: #3b475c;
  157. }
  158. }
  159. .beta-tag {
  160. background: $overflowMenuItemColor;
  161. border-radius: 2px;
  162. color: $overflowMenuBG;
  163. font-size: 11px;
  164. font-weight: bold;
  165. margin-left: 8px;
  166. padding: 0 6px;
  167. }
  168. .overflow-menu-item-icon {
  169. margin-right: 10px;
  170. i {
  171. display: inline;
  172. font-size: 24px;
  173. }
  174. i:hover {
  175. background-color: initial;
  176. }
  177. img {
  178. max-width: 24px;
  179. max-height: 24px;
  180. }
  181. svg {
  182. fill: #B8C7E0 !important;
  183. }
  184. }
  185. .profile-text {
  186. max-width: 150px;
  187. text-overflow: ellipsis;
  188. overflow: hidden;
  189. white-space: nowrap;
  190. }
  191. }
  192. .toolbox-button {
  193. color: $toolbarButtonColor;
  194. cursor: pointer;
  195. display: inline-block;
  196. line-height: $newToolbarSize;
  197. margin: 0 8px;
  198. text-align: center;
  199. }
  200. .toolbar-button-with-badge {
  201. position: relative;
  202. .badge-round {
  203. bottom: -5px;
  204. font-size: 12px;
  205. line-height: 20px;
  206. min-width: 20px;
  207. pointer-events: none;
  208. position: absolute;
  209. right: -5px;
  210. }
  211. }
  212. .toolbox-button-wth-dialog {
  213. display: inline-block;
  214. }
  215. .toolbox-icon {
  216. display: flex;
  217. border-radius: 5px;
  218. flex-direction: column;
  219. font-size: 24px;
  220. height: $newToolbarSize;
  221. justify-content: center;
  222. width: $newToolbarSize;
  223. &:hover, &.toggled {
  224. background: $newToolbarButtonHoverColor;
  225. }
  226. &.disabled {
  227. cursor: initial !important;
  228. background-color: #a4b8d1 !important;
  229. svg {
  230. fill: #fff !important;
  231. }
  232. }
  233. }
  234. }
  235. }
  236. /**
  237. * START of fade in animation for main toolbar
  238. */
  239. .fadeIn {
  240. opacity: 1;
  241. @include transition(all .3s ease-in);
  242. }
  243. .fadeOut {
  244. opacity: 0;
  245. @include transition(all .3s ease-out);
  246. }