curveEditor.scss 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  1. #animation-curve-editor {
  2. font-family: acumin-pro-condensed;
  3. .last {
  4. margin-left: 3px;
  5. }
  6. .icon {
  7. width: 40px;
  8. height: 40px;
  9. &.medium {
  10. width: 30px;
  11. height: 30px;
  12. }
  13. &.small {
  14. width: 20px;
  15. height: 20px;
  16. }
  17. &.babylon-logo {
  18. background-image: url('./assets/babylonLogo.svg');
  19. background-repeat: no-repeat;
  20. background-color: transparent;
  21. background-size: contain;
  22. }
  23. &.close {
  24. background-image: url('./assets/closeWindowIcon.svg');
  25. background-repeat: no-repeat;
  26. background-color: transparent;
  27. background-size: contain;
  28. color: white;
  29. cursor: pointer;
  30. }
  31. &.auto-tangent {
  32. background-image: url('./assets/autoTangentIcon.svg');
  33. background-repeat: no-repeat;
  34. background-color: transparent;
  35. background-size: contain;
  36. color: white;
  37. cursor: pointer;
  38. }
  39. &.break-tangent {
  40. background-image: url('./assets/breakTangentIcon.svg');
  41. background-repeat: no-repeat;
  42. background-color: transparent;
  43. background-size: contain;
  44. color: white;
  45. cursor: pointer;
  46. }
  47. &.flat-tangent {
  48. background-image: url('./assets/flatTangentIcon.svg');
  49. background-repeat: no-repeat;
  50. background-color: transparent;
  51. background-size: contain;
  52. color: white;
  53. cursor: pointer;
  54. }
  55. &.frame {
  56. background-image: url('./assets/frameIcon.svg');
  57. background-repeat: no-repeat;
  58. background-color: transparent;
  59. background-size: contain;
  60. color: white;
  61. cursor: pointer;
  62. }
  63. &.linear-tangent {
  64. background-image: url('./assets/linearTangentIcon.svg');
  65. background-repeat: no-repeat;
  66. background-color: transparent;
  67. background-size: contain;
  68. color: white;
  69. cursor: pointer;
  70. }
  71. &.unify-tangent {
  72. background-image: url('./assets/unifyTangentIcon.svg');
  73. background-repeat: no-repeat;
  74. background-color: transparent;
  75. background-size: contain;
  76. color: white;
  77. cursor: pointer;
  78. }
  79. &.add-animation {
  80. background-image: url('./assets/addAnimationIcon.svg');
  81. background-repeat: no-repeat;
  82. background-color: transparent;
  83. background-size: contain;
  84. color: white;
  85. cursor: pointer;
  86. }
  87. &.animation-bullet {
  88. background-image: url('./assets/animationBulletIcon.svg');
  89. background-repeat: no-repeat;
  90. background-color: transparent;
  91. background-size: contain;
  92. color: white;
  93. }
  94. &.animation-delete {
  95. background-image: url('./assets/animationDeleteIcon.svg');
  96. background-repeat: no-repeat;
  97. background-color: transparent;
  98. background-size: contain;
  99. color: white;
  100. cursor: pointer;
  101. }
  102. &.animation-edit {
  103. background-image: url('./assets/editIcon.svg');
  104. background-repeat: no-repeat;
  105. background-color: transparent;
  106. background-size: contain;
  107. color: white;
  108. }
  109. &.animation-end {
  110. background-image: url('./assets/animationEndIcon.svg');
  111. background-repeat: no-repeat;
  112. background-color: transparent;
  113. background-size: contain;
  114. color: white;
  115. width: 20px;
  116. cursor: pointer;
  117. background-position: center;
  118. }
  119. &.animation-lastkey {
  120. background-image: url('./assets/animationLastKeyIcon.svg');
  121. background-repeat: no-repeat;
  122. background-color: transparent;
  123. background-size: contain;
  124. width: 20px;
  125. cursor: pointer;
  126. background-position: center;
  127. &:hover{
  128. background-image: url('./assets/animationLastKeyHoverIcon.svg');
  129. }
  130. }
  131. &.animation-nextkey {
  132. background-image: url('./assets/animationNextKeyIcon.svg');
  133. background-repeat: no-repeat;
  134. background-color: transparent;
  135. background-size: contain;
  136. width: 20px;
  137. cursor: pointer;
  138. background-position: center;
  139. &:hover{
  140. background-image: url('./assets/animationNextKeyHoverIcon.svg');
  141. }
  142. }
  143. &.animation-options {
  144. background-image: url('./assets/animationOptionsIcon.svg');
  145. background-repeat: no-repeat;
  146. background-color: transparent;
  147. background-size: contain;
  148. color: white;
  149. cursor: pointer;
  150. background-position: center;
  151. &:hover{
  152. background-color: #888888 !important;
  153. }
  154. }
  155. &.animation-playfwd {
  156. background-image: url('./assets/animationPlayFwdIcon.svg');
  157. background-repeat: no-repeat;
  158. background-color: transparent;
  159. background-size: contain;
  160. color: white;
  161. background-position: center;
  162. width: 20px;
  163. cursor: pointer;
  164. background-position: center;
  165. &:hover {
  166. background-image: url('./assets/animationPlayFwdHoverIcon.svg');
  167. }
  168. }
  169. &.animation-playrev {
  170. background-image: url('./assets/animationPlayRevIcon.svg');
  171. background-repeat: no-repeat;
  172. background-color: transparent;
  173. background-size: contain;
  174. color: white;
  175. background-position: center;
  176. width: 20px;
  177. cursor: pointer;
  178. background-position: center;
  179. &:hover {
  180. background-image: url('./assets/animationPlayRevHoverIcon.svg');
  181. }
  182. }
  183. &.animation-start {
  184. background-image: url('./assets/animationStartIcon.svg');
  185. background-repeat: no-repeat;
  186. background-color: transparent;
  187. background-size: contain;
  188. color: white;
  189. background-position: center;
  190. cursor: pointer;
  191. background-position: center;
  192. width: 20px;
  193. }
  194. &.animation-stop {
  195. background-image: url('./assets/animationStopIcon.svg');
  196. background-repeat: no-repeat;
  197. background-color: transparent;
  198. background-size: contain;
  199. color: white;
  200. background-position: center;
  201. cursor: pointer;
  202. background-position: center;
  203. width: 20px;
  204. }
  205. &.animation-triangle {
  206. background-image: url('./assets/animationTriangleIcon.svg');
  207. background-repeat: no-repeat;
  208. background-color: transparent;
  209. background-size: contain;
  210. color: white;
  211. }
  212. &.key-active {
  213. background-image: url('./assets/keyActiveIcon.svg');
  214. background-repeat: no-repeat;
  215. background-color: transparent;
  216. background-size: contain;
  217. color: white;
  218. }
  219. &.key-inactive {
  220. background-image: url('./assets/keyInactiveIcon.svg');
  221. background-repeat: no-repeat;
  222. background-color: transparent;
  223. background-size: contain;
  224. color: white;
  225. }
  226. &.key-selected {
  227. background-image: url('./assets/keySelectedIcon.svg');
  228. background-repeat: no-repeat;
  229. background-color: transparent;
  230. background-size: contain;
  231. color: white;
  232. }
  233. &.loop-active {
  234. background-image: url('./assets/loopActiveIcon.svg');
  235. background-repeat: no-repeat;
  236. background-color: transparent;
  237. background-size: contain;
  238. color: white;
  239. cursor: pointer;
  240. }
  241. &.loop-inactive {
  242. background-image: url('./assets/loopInactiveIcon.svg');
  243. background-repeat: no-repeat;
  244. background-color: transparent;
  245. background-size: contain;
  246. color: white;
  247. cursor: pointer;
  248. }
  249. &.move {
  250. background-image: url('./assets/moveIcon.svg');
  251. background-repeat: no-repeat;
  252. background-color: transparent;
  253. background-size: contain;
  254. color: white;
  255. }
  256. &.save {
  257. background-image: url('./assets/saveIcon.svg');
  258. background-repeat: no-repeat;
  259. background-color: transparent;
  260. background-size: contain;
  261. color: white;
  262. cursor: pointer;
  263. }
  264. &.load {
  265. background-image: url('./assets/loadIcon.svg');
  266. background-repeat: no-repeat;
  267. background-color: transparent;
  268. background-size: contain;
  269. color: white;
  270. cursor: pointer;
  271. }
  272. &.checked {
  273. background-image: url('./assets/checkboxCheckedIcon.svg');
  274. background-repeat: no-repeat;
  275. background-color: transparent;
  276. background-size: contain;
  277. color: white;
  278. }
  279. &.unchecked {
  280. background-image: url('./assets/checkboxDefaultIcon.svg');
  281. background-repeat: no-repeat;
  282. background-color: transparent;
  283. background-size: contain;
  284. color: white;
  285. }
  286. &.new-key {
  287. background-image: url('./assets/newKeyIcon.svg');
  288. background-repeat: no-repeat;
  289. background-color: transparent;
  290. background-size: contain;
  291. color: white;
  292. }
  293. &.scale {
  294. background-image: url('./assets/scaleIcon.svg');
  295. background-repeat: no-repeat;
  296. background-color: transparent;
  297. background-size: contain;
  298. color: white;
  299. }
  300. &.scrollbar-handle {
  301. background-image: url('./assets/scrollbarHandleIcon.svg');
  302. background-repeat: no-repeat;
  303. background-color: transparent;
  304. background-size: contain;
  305. color: white;
  306. }
  307. }
  308. .hidden {
  309. display: none;
  310. }
  311. .notification-area{
  312. position: absolute;
  313. width: auto;
  314. left: 0.53em;
  315. bottom: 60px;
  316. background-color: rgb(199, 50, 40);
  317. padding: 16px;
  318. border-radius: 5px;
  319. color: white;
  320. right: 2em;
  321. z-index: 1000;
  322. button{
  323. position: absolute;
  324. top: 3px;
  325. right: 10px;
  326. padding: 0;
  327. cursor: pointer;
  328. background: transparent;
  329. border: 0;
  330. -webkit-appearance: none;
  331. color: #000;
  332. text-shadow: 0 1px 0 #fff;
  333. opacity: .4;
  334. font-size: 1.8em;
  335. }
  336. }
  337. .header{
  338. display: flex;
  339. padding: 9px;
  340. background: #333333;
  341. color: white;
  342. height: 1.3em;
  343. justify-content: space-between;
  344. align-items: center;
  345. padding-left: 12px;
  346. padding-right: 12px;
  347. .title{ text-transform: uppercase; }
  348. .close {
  349. grid-column: 2;
  350. display: grid;
  351. align-items: center;
  352. justify-items: center;
  353. cursor: pointer;
  354. }
  355. }
  356. .actions-wrapper {
  357. display: flex;
  358. flex-direction: row;
  359. justify-content: flex-start;
  360. align-items: center;
  361. background: #333333;
  362. height: 40px;
  363. .close {
  364. position: absolute;
  365. right: 1px;
  366. }
  367. .title-container {
  368. display: flex;
  369. justify-content: stretch;
  370. align-items: center;
  371. color: white;
  372. width: 220px;
  373. .title {
  374. font-size: 15pt;
  375. }
  376. }
  377. .buttons-container{
  378. display: flex;
  379. }
  380. .action-input{
  381. display: flex;
  382. justify-content: center;
  383. flex-direction: row;
  384. align-items: center;
  385. margin-right: 8px;
  386. input {
  387. width: 75px;
  388. height: 24px;
  389. color: white;
  390. font-size: 12px;
  391. background: none;
  392. border: none;
  393. background-color: black;
  394. padding: 6px;
  395. }
  396. }
  397. }
  398. .content{
  399. display: flex;
  400. align-items: flex-start;
  401. justify-content: flex-start;
  402. flex-direction: column;
  403. height: 462px;
  404. .row {
  405. width: 1024px;
  406. height: 427px;
  407. display: flex;
  408. flex-flow: row;
  409. background-color: #333333;
  410. }
  411. .row-bottom {
  412. display: flex;
  413. align-items: stretch;
  414. justify-content: flex-start;
  415. flex-direction: row;
  416. width: 1024px;
  417. height: 45px;
  418. background-color: #333333;
  419. .timeline{
  420. width: 100vw;
  421. background: #333333;
  422. display: flex;
  423. align-items: center;
  424. justify-content: stretch;
  425. height: 2.5rem;
  426. .display-line {
  427. width: 75vw;
  428. height: 40px;
  429. overflow: hidden;
  430. margin-right: 0px;
  431. padding-left: 10px;
  432. padding-right: 10px;
  433. &::-webkit-scrollbar{
  434. height: 0.4em;
  435. }
  436. &::-webkit-scrollbar-track {
  437. box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  438. }
  439. &::-webkit-scrollbar-thumb {
  440. background-color: cornflowerblue;
  441. outline: 1px solid slategrey;
  442. }
  443. }
  444. .input-frame{
  445. width: 60px;
  446. margin-left: 10px;
  447. margin-right: 10px;
  448. input {
  449. text-align: center;
  450. width: 60px;
  451. border: none;
  452. background: #222222;
  453. color: white;
  454. height: 25px;
  455. font-size: 15px;
  456. font-family: acumin-pro-condensed;
  457. &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
  458. appearance: none;
  459. -webkit-appearance: none;
  460. margin: 0;
  461. }
  462. }
  463. }
  464. .timeline-scroll-handle{
  465. display: flex;
  466. flex-direction: row;
  467. height: 25px;
  468. margin: 10px;
  469. .scroll-handle {
  470. width: 703px;
  471. background-color: #222222;
  472. height: 25px;
  473. display: flex;
  474. align-items: center;
  475. .handle {
  476. display: flex;
  477. flex-direction: row;
  478. height: 20px;
  479. background-color: #666666;
  480. justify-content: space-between;
  481. .left-grabber, .right-grabber {
  482. display: flex;
  483. align-items: center;
  484. cursor: pointer;
  485. }
  486. .left-grabber {
  487. padding-left: 3px;
  488. }
  489. .right-grabber {
  490. padding-right: 3px;
  491. }
  492. .grabber{
  493. background-color: #333333;
  494. width:2px;
  495. height: 16px;
  496. margin-right:2px
  497. }
  498. .text{
  499. margin-left:10px;
  500. margin-right: 10px;
  501. font-size: 12px;
  502. font-family: acumin-pro-condensed;
  503. color: #222222;
  504. }
  505. }
  506. }
  507. }
  508. .timeline-wrapper {
  509. margin-top: -40px;
  510. margin-left: -2px;
  511. }
  512. .controls {
  513. display: flex;
  514. justify-content: center;
  515. align-items: center;
  516. padding-left: 46px;
  517. padding-right: 46px;
  518. margin-left: 10px;
  519. .stop-container{
  520. width: 40px;
  521. display: flex;
  522. flex-direction: row;
  523. justify-content: space-between;
  524. align-items: center;
  525. }
  526. .input-frame input {
  527. width: 3em;
  528. }
  529. }
  530. }
  531. }
  532. .animation-list{
  533. margin: 10px;
  534. margin-top: 0;
  535. margin-bottom: 0;
  536. background: #111111;
  537. color: white;
  538. width: 210px;
  539. .controls-header {
  540. display: flex;
  541. background-color: #252525;
  542. .input-fps{
  543. display: flex;
  544. align-items: center;
  545. width: 52px;
  546. padding-left: 4px;
  547. .numeric{
  548. input{
  549. width: 52px;
  550. font-size: 12px;
  551. height: 22px;
  552. background-color: black;
  553. border: none;
  554. color: white;
  555. text-align: center;
  556. &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
  557. appearance: none;
  558. -webkit-appearance: none;
  559. margin: 0;
  560. }
  561. font-family: acumin-pro-condensed;
  562. }
  563. }
  564. p {
  565. color: white;
  566. font-size: 12px;
  567. margin: 0px;
  568. position: relative;
  569. right: 17px;
  570. line-height: 20px;
  571. height: 20px;
  572. margin-top: -2px;
  573. }
  574. }
  575. }
  576. .new-animation{
  577. display: block;
  578. position: absolute;
  579. background-color: #111111;
  580. height: 367px;
  581. z-index: 10;
  582. .sub-header {
  583. display: flex;
  584. align-items: start;
  585. width: 250px;
  586. justify-content: space-between;
  587. .title {
  588. margin: 0px;
  589. font-size: 15pt;
  590. }
  591. }
  592. .sub-content{
  593. background-color: #111111;
  594. padding: 10px;
  595. display: inline-grid;
  596. grid-template-columns: 63px 127px;
  597. grid-template-rows: repeat(6, 30px);
  598. font-size: 12px;
  599. .confirm-buttons {
  600. grid-column-start: 2;
  601. .buttonLine {
  602. button {
  603. width: 60px;
  604. height: 20px;
  605. background-color: rgb(68, 68, 68);
  606. color: white;
  607. font-size: 12px;
  608. line-height: 11px;
  609. margin: 5px;
  610. font-size: 10px;
  611. font-family: acumin-pro-condensed;
  612. border: none;
  613. }
  614. }
  615. }
  616. }
  617. }
  618. .object-tree{
  619. background-color:#111111;
  620. ul {
  621. list-style:none;
  622. padding-left: 0px;
  623. padding: 0px;
  624. margin: 0px;
  625. li.property {
  626. &.sub {
  627. height: auto;
  628. }
  629. &:before {
  630. content: '';
  631. background: none;
  632. }
  633. height: 20px;
  634. display: flex;
  635. flex-wrap: wrap;
  636. font-size: 12px;
  637. p {
  638. display: inline;
  639. font-size: 12px;
  640. margin: 0px;
  641. flex: 8;
  642. cursor: pointer;
  643. }
  644. .spacer{
  645. width: 20px;
  646. height: 20px;
  647. }
  648. .animation-bullet {
  649. background-image: url('./assets/animationBulletIcon.svg');
  650. background-repeat: no-repeat;
  651. background-color: transparent;
  652. background-size: contain;
  653. color: #7a4ece;
  654. width: 10px;
  655. margin-left: 18px;
  656. margin-right: 2px;
  657. height: 20px;
  658. background-position-y: 5px;
  659. }
  660. .animation-arrow {
  661. width: 30px;
  662. background-image: url('./assets/animationTriangleIcon.svg');
  663. background-repeat: no-repeat;
  664. background-color: transparent;
  665. background-size: 10px;
  666. background-position-y: center;
  667. background-position-x: 18px;
  668. cursor: pointer;
  669. &.flip {
  670. transform: rotate(180deg);
  671. background-position: 2px 50%;
  672. }
  673. }
  674. &.active {
  675. background-color: #444444;
  676. }
  677. .handle-indicator{
  678. width: 30px;
  679. &.show {
  680. display: block;
  681. background-image: url('./assets/keySelectedIcon.svg');
  682. background-repeat: no-repeat;
  683. background-color: transparent;
  684. background-size: 10px;
  685. color: white;
  686. background-position-x: 9px;
  687. background-position-y: 5px;
  688. }
  689. &.hide {
  690. display: none;
  691. }
  692. }
  693. ul.sub-list {
  694. flex-grow: 1;
  695. flex-shrink: 1;
  696. flex-basis: 100%;
  697. .property{
  698. cursor: pointer;
  699. }
  700. }
  701. }
  702. }
  703. }
  704. .label-input{
  705. display: contents;
  706. label {
  707. text-align: right;
  708. }
  709. input {
  710. margin-left: 5px;
  711. height: 20px;
  712. background-color: #444444;
  713. border: none;
  714. color: white;
  715. padding-left: 3px;
  716. font-size: 10px;
  717. &:focus{
  718. border-radius: 0px;
  719. outline-style: auto;
  720. outline-color: lightgrey;
  721. }
  722. font-family: acumin-pro-condensed;
  723. }
  724. select {
  725. height: 20px;
  726. margin-left: 5px;
  727. font-size: 10px;
  728. background-color: #444444;
  729. border: none;
  730. color: white;
  731. &:focus{
  732. border-radius: 0px;
  733. outline-style: auto;
  734. outline-color: lightgrey;
  735. }
  736. font-family: acumin-pro-condensed;
  737. }
  738. }
  739. }
  740. .sample-chart{
  741. .linear {
  742. .draggable {
  743. cursor: move;
  744. }
  745. }
  746. }
  747. .graph-chart{
  748. overflow: hidden;
  749. scroll-behavior: smooth;
  750. background-color: rgb(17, 17, 17);
  751. height: 364px;
  752. width: 782px;
  753. .linear{
  754. overflow: visible;
  755. border: 0px solid white;
  756. height: 362px;
  757. width: 780px;
  758. outline: none;
  759. svg {
  760. overflow: visible;
  761. }
  762. &:focus {
  763. outline-color: transparent;
  764. }
  765. line {
  766. stroke: #555555;
  767. stroke-width: 0.2;
  768. }
  769. text {
  770. fill: #555555;
  771. font-family: 'acumin-pro-condensed';
  772. }
  773. .control-point {
  774. display: none;
  775. }
  776. .control-point.active {
  777. display: inline;
  778. stroke: #e9db1e;
  779. stroke-width: 0.2;
  780. }
  781. }
  782. .playhead-wrapper {
  783. position: relative;
  784. left: -13px;
  785. bottom: 366px;
  786. }
  787. .playhead-handle {
  788. position: relative;
  789. top: 340px;
  790. .playhead {
  791. width: 22px;
  792. background-color: transparent;
  793. color: #555555;
  794. text-align: center;
  795. font-size: 12px;
  796. position: absolute;
  797. top: 1px;
  798. }
  799. .playhead-circle {
  800. background-color: #ffffff;
  801. width: 22px;
  802. height: 22px;
  803. border-radius: 50%;
  804. position: absolute;
  805. top: 0;
  806. }
  807. }
  808. .playhead-line {
  809. width: 1px;
  810. height: 341px;
  811. background-color: #ffffff;
  812. position: absolute;
  813. margin-left: 9.5px;
  814. }
  815. }
  816. }
  817. .buttonLine {
  818. height: 30px;
  819. display: grid;
  820. align-items: center;
  821. justify-items: stretch;
  822. input[type="file"] {
  823. display: none;
  824. }
  825. .file-upload {
  826. background: #222222;
  827. border: 1px solid rgb(51, 122, 183);
  828. margin: 5px 10px 5px 10px;
  829. color:white;
  830. padding: 4px 5px;
  831. opacity: 0.9;
  832. cursor: pointer;
  833. text-align: center;
  834. }
  835. .file-upload:hover {
  836. opacity: 1.0;
  837. }
  838. .file-upload:active {
  839. transform: scale(0.98);
  840. transform-origin: 0.5 0.5;
  841. }
  842. button {
  843. background: #222222;
  844. border: 1px solid rgb(51, 122, 183);
  845. margin: 5px 10px 5px 10px;
  846. color:white;
  847. padding: 4px 5px;
  848. opacity: 0.9;
  849. cursor: pointer;
  850. }
  851. button:hover {
  852. opacity: 1.0;
  853. }
  854. button:active {
  855. background: #282828;
  856. }
  857. button:focus {
  858. border: 1px solid rgb(51, 122, 183);
  859. outline: 0px;
  860. }
  861. }
  862. }