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 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. @media (hover: hover) and (pointer: fine) {
  83. &:hover {
  84. background-color: #daebfa;
  85. border: 1px solid #daebfa;
  86. }
  87. }
  88. &.toggled {
  89. background: #2a3a4b;
  90. border: 1px solid #5e6d7a;
  91. svg {
  92. fill: #fff;
  93. }
  94. @media (hover: hover) and (pointer: fine) {
  95. &:hover {
  96. background-color: #5e6d7a;
  97. }
  98. }
  99. }
  100. &.disabled, .disabled & {
  101. cursor: initial;
  102. color: #fff;
  103. background-color: #a4b8d1;
  104. }
  105. svg {
  106. fill: #5e6d7a;
  107. }
  108. }
  109. &:nth-child(2) {
  110. .toolbox-icon {
  111. background-color: $hangupColor;
  112. border: 1px solid $hangupColor;
  113. width: 40px;
  114. height: 40px;
  115. @media (hover: hover) and (pointer: fine) {
  116. &:hover {
  117. background-color: $hangupColor;
  118. }
  119. }
  120. svg {
  121. fill: #fff;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. .button-group-right {
  128. justify-content: flex-end;
  129. }
  130. .overflow-menu {
  131. font-size: 1.2em;
  132. list-style-type: none;
  133. background-color: $overflowMenuBG;
  134. /**
  135. * Undo atlaskit padding by reducing margins.
  136. */
  137. margin: -16px -24px;
  138. padding: 4px 0;
  139. .overflow-menu-item {
  140. align-items: center;
  141. color: $overflowMenuItemColor;
  142. cursor: pointer;
  143. display: flex;
  144. font-size: 14px;
  145. height: 40px;
  146. padding: 5px 12px;
  147. box-sizing: border-box;
  148. div {
  149. display: flex;
  150. flex-direction: row;
  151. align-items: center;
  152. }
  153. @media (hover: hover) and (pointer: fine) {
  154. &:hover {
  155. background-color: $overflowMenuItemHoverBG;
  156. color: $overflowMenuItemHoverColor;
  157. }
  158. }
  159. &.unclickable {
  160. cursor: default;
  161. }
  162. @media (hover: hover) and (pointer: fine) {
  163. &.unclickable:hover {
  164. background: inherit;
  165. }
  166. }
  167. &.disabled {
  168. cursor: initial;
  169. color: #3b475c;
  170. }
  171. }
  172. .beta-tag {
  173. background: $overflowMenuItemColor;
  174. border-radius: 2px;
  175. color: $overflowMenuBG;
  176. font-size: 11px;
  177. font-weight: bold;
  178. margin-left: 8px;
  179. padding: 0 6px;
  180. }
  181. .overflow-menu-item-icon {
  182. margin-right: 16px;
  183. i {
  184. display: inline;
  185. font-size: 24px;
  186. }
  187. @media (hover: hover) and (pointer: fine) {
  188. i:hover {
  189. background-color: initial;
  190. }
  191. }
  192. img {
  193. max-width: 24px;
  194. max-height: 24px;
  195. }
  196. svg {
  197. fill: #B8C7E0 !important;
  198. height: 20px;
  199. width: 20px;
  200. }
  201. }
  202. .profile-text {
  203. max-width: 150px;
  204. text-overflow: ellipsis;
  205. overflow: hidden;
  206. white-space: nowrap;
  207. }
  208. }
  209. .toolbox-button {
  210. color: $toolbarButtonColor;
  211. cursor: pointer;
  212. display: inline-block;
  213. line-height: $newToolbarSize;
  214. margin: 0 8px;
  215. text-align: center;
  216. }
  217. .toolbar-button-with-badge {
  218. position: relative;
  219. .badge-round {
  220. bottom: -5px;
  221. font-size: 12px;
  222. line-height: 20px;
  223. min-width: 20px;
  224. pointer-events: none;
  225. position: absolute;
  226. right: -5px;
  227. }
  228. }
  229. .toolbox-button-wth-dialog {
  230. display: inline-block;
  231. }
  232. .toolbox-icon {
  233. display: flex;
  234. border-radius: 5px;
  235. flex-direction: column;
  236. font-size: 24px;
  237. height: $newToolbarSize;
  238. justify-content: center;
  239. width: $newToolbarSize;
  240. @media (hover: hover) and (pointer: fine) {
  241. &:hover {
  242. background: $newToolbarButtonHoverColor;
  243. }
  244. }
  245. &.toggled {
  246. background: $newToolbarButtonHoverColor;
  247. }
  248. &.disabled {
  249. cursor: initial !important;
  250. background-color: #a4b8d1 !important;
  251. svg {
  252. fill: #fff !important;
  253. }
  254. }
  255. }
  256. }
  257. }
  258. /**
  259. * START of fade in animation for main toolbar
  260. */
  261. .fadeIn {
  262. opacity: 1;
  263. @include transition(all .3s ease-in);
  264. }
  265. .fadeOut {
  266. opacity: 0;
  267. @include transition(all .3s ease-out);
  268. }