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

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