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

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