Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

_toolbars.scss 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. .toolbar {
  2. background-color: $toolbarBackground;
  3. position: relative;
  4. z-index: $toolbarZ;
  5. height: 100%;
  6. pointer-events: auto;
  7. /**
  8. * Splitter button in the toolbar.
  9. */
  10. &__splitter {
  11. display: inline-block;
  12. vertical-align: middle;
  13. width: 1px;
  14. height: 50%;
  15. margin: 0 $splitterToolbarButtonMargin;
  16. background: $splitterColor;
  17. }
  18. }
  19. #mainToolbarContainer{
  20. display: block;
  21. position: absolute;
  22. text-align: center;
  23. top:0;
  24. left:0;
  25. right:0;
  26. z-index: $toolbarZ;
  27. pointer-events: none;
  28. min-height: 100px;
  29. opacity: 0;
  30. }
  31. #subject {
  32. position: relative;
  33. z-index: 3;
  34. width: auto;
  35. padding: 5px;
  36. margin-left: 40%;
  37. margin-right: 40%;
  38. text-align: center;
  39. background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
  40. box-shadow: 0 0 2px #000000, 0 0 10px #000000;
  41. border-bottom-left-radius: 12px;
  42. border-bottom-right-radius: 12px;
  43. }
  44. #mainToolbar {
  45. height: $defaultToolbarSize;
  46. display: inline-block;
  47. position: relative;
  48. top: 30px;
  49. margin-left: auto;
  50. margin-right: auto;
  51. width: auto;
  52. border-radius: 3px;
  53. .button:first-child {
  54. border-bottom-left-radius: 3px;
  55. border-top-left-radius: 3px;
  56. }
  57. .button:last-child {
  58. border-bottom-right-radius: 3px;
  59. border-top-right-radius: 3px;
  60. }
  61. }
  62. #extendedToolbar {
  63. display: -moz-box;
  64. display: -ms-flexbox;
  65. display: -webkit-box;
  66. display: -webkit-flex;
  67. display: flex;
  68. width: $defaultToolbarSize;
  69. height: 100%;
  70. top: 0;
  71. left: 0;
  72. padding-top: 10px;
  73. box-sizing: border-box;
  74. flex-direction: column;
  75. flex-wrap: nowrap;
  76. justify-content: flex-start;
  77. align-items: center;
  78. transform: translateX(-100%);
  79. -webkit-transform: translateX(-100%);
  80. }
  81. #toolbar_button_hangup {
  82. color: #BF2117;
  83. font-size: $hangupFontSize !important;
  84. }
  85. #toolbar_button_etherpad {
  86. display: none;
  87. }
  88. #mainToolbar a.button:last-child::after {
  89. content: none;
  90. }
  91. .button {
  92. display: inline-block;
  93. position: relative;
  94. color: #FFFFFF;
  95. top:0px;
  96. width: 50px;
  97. height: 50px;
  98. cursor: pointer;
  99. text-align: center;
  100. z-index: 1;
  101. font-size: $toolbarFontSize !important;
  102. line-height: 50px !important;
  103. vertical-align: middle;
  104. }
  105. .button[disabled] {
  106. opacity: 0.5;
  107. }
  108. .button.unclickable {
  109. cursor: default;
  110. }
  111. .button.toggled {
  112. background: $toolbarToggleBackground !important;
  113. }
  114. a.button.unclickable:hover,
  115. a.button.unclickable:active,
  116. a.button.unclickable.selected{
  117. cursor: default;
  118. background: none;
  119. }
  120. a.button:hover,
  121. a.button:active,
  122. a.button.selected {
  123. cursor: pointer;
  124. text-decoration: none;
  125. // sum opacity with background layer should give us 0.8
  126. background: $toolbarSelectBackground;
  127. }
  128. a.button>#avatar {
  129. width: 30px;
  130. border-radius: 50%;
  131. padding-top: 10px;
  132. padding-bottom: 10px;
  133. }
  134. #feedbackButton {
  135. margin-top: auto;
  136. }
  137. /**
  138. * Round badge.
  139. */
  140. .badge-round {
  141. background-color: $toolbarBadgeBackground;
  142. color: $toolbarBadgeColor;
  143. font-size: 9px;
  144. line-height: 13px;
  145. font-weight: 700;
  146. text-align: center;
  147. border-radius: 50%;
  148. min-width: 13px;
  149. overflow: hidden;
  150. text-overflow: ellipsis;
  151. box-sizing: border-box;
  152. vertical-align: middle;
  153. // Do not inherit the font-family from the toolbar button, because it's an
  154. // icon style.
  155. font-family: $baseFontFamily;
  156. }
  157. /**
  158. * Toolbar specific round badge.
  159. */
  160. .toolbar .badge-round {
  161. position: absolute;
  162. right: 9px;
  163. bottom: 9px;
  164. }
  165. /**
  166. * START of slide in animation for extended toolbar.
  167. */
  168. @include keyframes(slideInX) {
  169. 0% { transform: translateX(-100%); }
  170. 100% { transform: translateX(0%); }
  171. }
  172. .slideInX {
  173. @include animation('slideInX .5s forwards');
  174. }
  175. @include keyframes(slideOutX) {
  176. 0% { transform: translateX(0%); }
  177. 100% { transform: translateX(-100%); }
  178. }
  179. .slideOutX {
  180. @include animation('slideOutX .5s forwards');
  181. }
  182. @include keyframes(slideInExtX) {
  183. 0% { transform: translateX(-500%); }
  184. 100% { transform: translateX(0%); }
  185. }
  186. .slideInExtX {
  187. @include animation('slideInExtX .5s forwards');
  188. }
  189. @include keyframes(slideOutExtX) {
  190. 0% { transform: translateX(0%); }
  191. 100% { transform: translateX(-500%); }
  192. }
  193. .slideOutExtX {
  194. @include animation('slideOutExtX .5s forwards');
  195. }
  196. /**
  197. * END of slide out animation for extended toolbar.
  198. */
  199. /**
  200. * START of slide in / out animation for main toolbar.
  201. */
  202. @include keyframes(slideInY) {
  203. 100% { transform: translateY(0%); }
  204. }
  205. .slideInY {
  206. @include animation('slideInY .5s forwards');
  207. }
  208. @include keyframes(slideOutY) {
  209. 0% { transform: translateY(0%); }
  210. 100% { transform: translateY(-100%); }
  211. }
  212. .slideOutY {
  213. @include animation('slideOutY .5s forwards');
  214. }
  215. /**
  216. * END of slide in / out animation for main toolbar.
  217. */
  218. /**
  219. * START of slide in animation for extended toolbar panel.
  220. */
  221. @include keyframes(slideInExt) {
  222. from { width: 0px; }
  223. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  224. }
  225. .slideInExt {
  226. @include animation("slideInExt .5s forwards");
  227. }
  228. @include keyframes(slideOutExt) {
  229. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  230. to { width: 0px; }
  231. }
  232. .slideOutExt {
  233. @include animation("slideOutExt .5s forwards");
  234. }
  235. /**
  236. * START of fade in animation for main toolbar
  237. */
  238. .fadeIn {
  239. @include animation('fadeIn .3s linear .2s forwards');
  240. }
  241. .fadeOut {
  242. @include animation('fadeOut .5s linear forwards');
  243. }