您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_toolbars.scss 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. * Toolbar button styles.
  23. */
  24. .button {
  25. color: #FFFFFF;
  26. cursor: pointer;
  27. z-index: $zindex1;
  28. display: inline-block;
  29. font-size: $toolbarFontSize !important;
  30. height: 50px;
  31. line-height: 50px !important;
  32. position: relative;
  33. text-align: center;
  34. top:0px;
  35. vertical-align: middle;
  36. width: 50px;
  37. &_hangup {
  38. color: $hangupColor;
  39. font-size: $hangupFontSize !important;
  40. }
  41. &[disabled] {
  42. opacity: 0.5;
  43. }
  44. &:hover, &:active {
  45. cursor: pointer;
  46. text-decoration: none;
  47. }
  48. &:not(.toggled) {
  49. &:hover, &:active {
  50. // sum opacity with background layer should give us 0.8
  51. background: $toolbarSelectBackground;
  52. }
  53. }
  54. &.toggled {
  55. background: $toolbarToggleBackground;
  56. &.icon-camera {
  57. @extend .icon-camera-disabled;
  58. }
  59. &.icon-full-screen {
  60. @extend .icon-exit-full-screen;
  61. }
  62. &.icon-microphone {
  63. @extend .icon-mic-disabled;
  64. }
  65. }
  66. &.unclickable {
  67. cursor: default;
  68. &:hover, &:active, &.selected {
  69. background: none;
  70. cursor: default;
  71. }
  72. }
  73. }
  74. .toolbar-container {
  75. display: block;
  76. left:0;
  77. min-height: 100px;
  78. opacity: 0;
  79. pointer-events: none;
  80. position: absolute;
  81. right:0;
  82. text-align: center;
  83. top:0;
  84. z-index: $toolbarZ;
  85. }
  86. /**
  87. * Common toolbar styles.
  88. */
  89. .toolbar {
  90. background-color: $toolbarBackground;
  91. height: 100%;
  92. pointer-events: auto;
  93. position: relative;
  94. z-index: $toolbarZ;
  95. /**
  96. * Splitter button in the toolbar.
  97. */
  98. &__splitter {
  99. background: $splitterColor;
  100. display: inline-block;
  101. height: 50%;
  102. margin: 0 $splitterToolbarButtonMargin;
  103. vertical-align: middle;
  104. width: 1px;
  105. }
  106. /**
  107. * Primary toolbar styles.
  108. */
  109. &_primary {
  110. position: absolute;
  111. left: 50%;
  112. top: 30px;
  113. display: inline-block;
  114. width: auto;
  115. height: $defaultToolbarSize;
  116. border-radius: 3px;
  117. opacity: 0;
  118. @include transform(translateX(-50%));
  119. .button:first-child {
  120. border-bottom-left-radius: 3px;
  121. border-top-left-radius: 3px;
  122. }
  123. .button:last-child {
  124. border-bottom-right-radius: 3px;
  125. border-top-right-radius: 3px;
  126. }
  127. }
  128. &_primary a.button:last-child::after {
  129. content: none;
  130. }
  131. /**
  132. * Secondary toolbar styles.
  133. */
  134. &_secondary {
  135. position: absolute;
  136. align-items: center;
  137. box-sizing: border-box;
  138. display: -moz-box;
  139. display: -ms-flexbox;
  140. display: -webkit-box;
  141. display: -webkit-flex;
  142. display: flex;
  143. flex-direction: column;
  144. flex-wrap: nowrap;
  145. height: 100%;
  146. justify-content: flex-start;
  147. left: 0;
  148. padding-top: 10px;
  149. top: 0;
  150. transform: translateX(-100%);
  151. width: $defaultToolbarSize;
  152. -webkit-transform: translateX(-100%);
  153. .button.toggled:not(.icon-raised-hand) {
  154. background: $toolbarSelectBackground;
  155. cursor: pointer;
  156. text-decoration: none;
  157. &.unclickable {
  158. cursor: default;
  159. &:hover, &:active, &.selected {
  160. background: none;
  161. cursor: default;
  162. }
  163. }
  164. }
  165. }
  166. /**
  167. * Toolbar specific round badge.
  168. */
  169. .badge-round {
  170. bottom: 9px;
  171. position: absolute;
  172. right: 9px;
  173. }
  174. }
  175. .subject {
  176. background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
  177. border-bottom-left-radius: 12px;
  178. border-bottom-right-radius: 12px;
  179. box-shadow: 0 0 2px #000000, 0 0 10px #000000;
  180. margin-left: 40%;
  181. margin-right: 40%;
  182. padding: 5px;
  183. position: relative;
  184. text-align: center;
  185. width: auto;
  186. z-index: $zindex3;
  187. &.subject_slide-in {
  188. top: 80px;
  189. @include transition(top .3s ease-in);
  190. }
  191. &.subject_slide-out {
  192. top: 0;
  193. @include transition(top .3s ease-out);
  194. }
  195. }
  196. a.button>#avatar {
  197. border-radius: 50%;
  198. padding-bottom: 10px;
  199. padding-top: 10px;
  200. width: 30px;
  201. }
  202. #feedbackButton {
  203. margin-top: auto;
  204. }
  205. /**
  206. * START of slide in animation for extended toolbar.
  207. */
  208. @include keyframes(slideInX) {
  209. 0% { transform: translateX(-100%); }
  210. 100% { transform: translateX(0%); }
  211. }
  212. .slideInX {
  213. @include animation('slideInX .5s forwards');
  214. }
  215. @include keyframes(slideOutX) {
  216. 0% { transform: translateX(0%); }
  217. 100% { transform: translateX(-100%); }
  218. }
  219. .slideOutX {
  220. @include animation('slideOutX .5s forwards');
  221. }
  222. @include keyframes(slideInExtX) {
  223. 0% { transform: translateX(-500%); }
  224. 100% { transform: translateX(0%); }
  225. }
  226. .slideInExtX {
  227. @include animation('slideInExtX .5s forwards');
  228. }
  229. @include keyframes(slideOutExtX) {
  230. 0% { transform: translateX(0%); }
  231. 100% { transform: translateX(-500%); }
  232. }
  233. .slideOutExtX {
  234. @include animation('slideOutExtX .5s forwards');
  235. }
  236. /**
  237. * END of slide out animation for extended toolbar.
  238. */
  239. /**
  240. * START of slide in / out animation for main toolbar.
  241. */
  242. @include keyframes(slideInY) {
  243. 100% { transform: translateY(0%); }
  244. }
  245. .slideInY {
  246. @include animation('slideInY .5s forwards');
  247. }
  248. @include keyframes(slideOutY) {
  249. 0% { transform: translateY(0%); }
  250. 100% { transform: translateY(-100%); }
  251. }
  252. .slideOutY {
  253. @include animation('slideOutY .5s forwards');
  254. }
  255. /**
  256. * END of slide in / out animation for main toolbar.
  257. */
  258. /**
  259. * START of slide in animation for extended toolbar panel.
  260. */
  261. @include keyframes(slideInExt) {
  262. from { width: 0px; }
  263. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  264. }
  265. .slideInExt {
  266. @include animation("slideInExt .5s forwards");
  267. }
  268. @include keyframes(slideOutExt) {
  269. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  270. to { width: 0px; }
  271. }
  272. .slideOutExt {
  273. @include animation("slideOutExt .5s forwards");
  274. }
  275. /**
  276. * START of fade in animation for main toolbar
  277. */
  278. .fadeIn {
  279. opacity: 1;
  280. @include transition(all .3s ease-in);
  281. }
  282. .fadeOut {
  283. opacity: 0;
  284. @include transition(all .3s ease-out);
  285. }