actionTabs.scss 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. $line-padding-left: 2px;
  2. #inspector-host {
  3. position: absolute;
  4. right: 0px;
  5. top:0px;
  6. bottom: 0px;
  7. }
  8. #__resizable_base__ {
  9. display: none;
  10. }
  11. #actionTabs {
  12. background: #333333;
  13. height: 100%;
  14. margin: 0;
  15. padding: 0;
  16. display: grid;
  17. grid-template-rows: auto 1fr;
  18. font: 14px "Arial";
  19. overflow: hidden;
  20. .hoverIcon:hover {
  21. opacity: 0.8;
  22. }
  23. #header {
  24. height: 30px;
  25. font-size: 16px;
  26. color: white;
  27. background: #222222;
  28. grid-row: 1;
  29. text-align: center;
  30. display: grid;
  31. grid-template-columns: 30px 1fr 50px;
  32. -webkit-user-select: none;
  33. -moz-user-select: none;
  34. -ms-user-select: none;
  35. user-select: none;
  36. #logo {
  37. grid-column: 1;
  38. width: 24px;
  39. height: 24px;
  40. display: flex;
  41. align-self: center;
  42. justify-self: center;
  43. }
  44. #back {
  45. grid-column: 1;
  46. display: grid;
  47. align-self: center;
  48. justify-self: center;
  49. cursor: pointer;
  50. }
  51. #title {
  52. grid-column: 2;
  53. display: grid;
  54. align-items: center;
  55. text-align: center;
  56. }
  57. #commands {
  58. grid-column: 3;
  59. display: grid;
  60. align-items: center;
  61. grid-template-columns: 1fr 1fr;
  62. .expand {
  63. grid-column: 1;
  64. display: grid;
  65. align-items: center;
  66. justify-items: center;
  67. cursor: pointer;
  68. }
  69. .close {
  70. grid-column: 2;
  71. display: grid;
  72. align-items: center;
  73. justify-items: center;
  74. cursor: pointer;
  75. }
  76. }
  77. }
  78. .tabs {
  79. display: grid;
  80. grid-row: 2;
  81. grid-template-rows: 40px 1fr;
  82. font: 14px "Arial";
  83. overflow: hidden;
  84. .labels {
  85. grid-row: 1;
  86. display: flex;
  87. align-items: center;
  88. justify-items: center;
  89. border-bottom: 1px solid #ffffff;
  90. margin: 0;
  91. padding: 0;
  92. .label {
  93. font-size: 24px;
  94. color: white;
  95. width: 40px;
  96. display: flex;
  97. align-content: center;
  98. justify-content: center;
  99. border: 1px solid transparent;
  100. border-bottom: none;
  101. background: #333333;
  102. padding: 5px;
  103. height: 28px;
  104. cursor: pointer;
  105. &.active {
  106. border-color: #ffffff;
  107. border-bottom: 2px solid transparent;
  108. margin-bottom: -2px;
  109. }
  110. }
  111. }
  112. .panes {
  113. grid-row: 2;
  114. display: grid;
  115. grid-template-rows: 100%;
  116. overflow: hidden;
  117. .infoMessage {
  118. opacity: 0.5;
  119. color: white;
  120. margin: 15px 5px 0px 5px;
  121. }
  122. .pane {
  123. color: white;
  124. overflow-x: hidden;
  125. overflow-y: auto;
  126. height: 100%;
  127. -webkit-user-select: none;
  128. -moz-user-select: none;
  129. -ms-user-select: none;
  130. user-select: none;
  131. .underline {
  132. border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  133. }
  134. .textureLinkLine {
  135. display: grid;
  136. grid-template-columns: auto 1fr;
  137. .debug {
  138. grid-column: 1;
  139. margin-left: 5px;
  140. margin-right: 5px;
  141. display: block;
  142. align-items: center;
  143. justify-items: center;
  144. cursor: pointer;
  145. opacity: 0.5;
  146. &.selected {
  147. opacity: 1.0;
  148. }
  149. }
  150. .textLine {
  151. grid-column: 2;
  152. }
  153. .actionIcon {
  154. display : inline-block;
  155. margin-top : 6px;
  156. margin-right : 4px;
  157. }
  158. }
  159. .messageLine {
  160. text-align: center;
  161. font-size: 12px;
  162. font-style: italic;
  163. opacity: 0.6;
  164. }
  165. .iconMessageLine {
  166. padding-left: $line-padding-left;
  167. height: 30px;
  168. display: grid;
  169. grid-template-columns: 30px 1fr;
  170. .icon {
  171. grid-column: 1;
  172. display: grid;
  173. align-items: center;
  174. justify-items: center;
  175. }
  176. .value {
  177. grid-column: 2;
  178. display: flex;
  179. align-items: center;
  180. }
  181. }
  182. .linkButtonLine {
  183. padding-left: $line-padding-left;
  184. height: 30px;
  185. display: grid;
  186. grid-template-columns: 1fr auto;
  187. .link {
  188. grid-column: 1;
  189. display: flex;
  190. align-items: center;
  191. text-decoration: underline;
  192. cursor: pointer;
  193. }
  194. .link-button {
  195. grid-column: 2;
  196. button {
  197. background: #222222;
  198. border: 1px solid rgb(51, 122, 183);
  199. margin: 5px 10px 5px 10px;
  200. color:white;
  201. padding: 4px 5px;
  202. opacity: 0.9;
  203. cursor: pointer;
  204. }
  205. button:hover {
  206. opacity: 1.0;
  207. }
  208. button:active {
  209. background: #282828;
  210. }
  211. button:focus {
  212. border: 1px solid rgb(51, 122, 183);
  213. outline: 0px;
  214. }
  215. }
  216. }
  217. .textLine {
  218. padding-left: $line-padding-left;
  219. height: 30px;
  220. display: grid;
  221. grid-template-columns: 1fr auto;
  222. .label {
  223. grid-column: 1;
  224. display: flex;
  225. align-items: center;
  226. }
  227. .link-value {
  228. grid-column: 2;
  229. white-space: nowrap;
  230. text-overflow: ellipsis;
  231. overflow: hidden;
  232. text-align: end;
  233. opacity: 0.8;
  234. margin:5px;
  235. margin-top: 6px;
  236. max-width: 140px;
  237. text-decoration: underline;
  238. cursor: pointer;
  239. }
  240. .value {
  241. grid-column: 2;
  242. white-space: nowrap;
  243. text-overflow: ellipsis;
  244. overflow: hidden;
  245. text-align: end;
  246. opacity: 0.8;
  247. margin:5px;
  248. margin-top: 6px;
  249. max-width: 200px;
  250. -webkit-user-select: text;
  251. -moz-user-select: text;
  252. -ms-user-select: text;
  253. user-select: text;
  254. &.check {
  255. color: green;
  256. }
  257. &.uncheck {
  258. color: red;
  259. }
  260. }
  261. }
  262. .gradient-container {
  263. margin-top: 3px;
  264. .gradient-label {
  265. height: 30px;
  266. display: grid;
  267. align-content: center;
  268. }
  269. .gradient-step {
  270. display: grid;
  271. grid-template-rows: 100%;
  272. grid-template-columns: 25px 50px 55px 40px auto 20px 5px;
  273. padding-top: 5px;
  274. padding-left: 5px;
  275. padding-bottom: 5px;
  276. align-items: center;
  277. border-left: orange 3px solid;
  278. .step {
  279. grid-row: 1;
  280. grid-column: 1;
  281. }
  282. .factor1 {
  283. grid-row: 1;
  284. grid-column: 2;
  285. cursor: pointer;
  286. }
  287. .factor2 {
  288. padding-left: 5px;
  289. grid-row: 1;
  290. grid-column: 3;
  291. cursor: pointer;
  292. .grayed {
  293. background: gray;
  294. border-color: gray;
  295. }
  296. }
  297. .numeric-input {
  298. width: calc(100% - 5px);
  299. }
  300. .step-value {
  301. margin-left: 5px;
  302. grid-row: 1;
  303. grid-column: 4;
  304. text-align: right;
  305. margin-right: 5px;
  306. }
  307. .step-slider {
  308. grid-row: 1;
  309. grid-column: 5;
  310. display: grid;
  311. justify-content: stretch;
  312. align-content: center;
  313. margin-right: 5px;
  314. input {
  315. width: 100%;
  316. }
  317. }
  318. .gradient-delete {
  319. grid-row: 1;
  320. grid-column: 6;
  321. display: grid;
  322. align-content: center;
  323. justify-content: center;
  324. }
  325. }
  326. }
  327. .textInputLine {
  328. padding-left: $line-padding-left;
  329. height: 30px;
  330. display: grid;
  331. grid-template-columns: 1fr 120px;
  332. .label {
  333. grid-column: 1;
  334. display: flex;
  335. align-items: center;
  336. }
  337. .value {
  338. display: flex;
  339. align-items: center;
  340. grid-column: 2;
  341. input {
  342. width: 110px;
  343. }
  344. }
  345. }
  346. .buttonLine {
  347. height: 30px;
  348. display: grid;
  349. align-items: center;
  350. justify-items: stretch;
  351. input[type="file"] {
  352. display: none;
  353. }
  354. .file-upload {
  355. background: #222222;
  356. border: 1px solid rgb(51, 122, 183);
  357. margin: 5px 10px 5px 10px;
  358. color:white;
  359. padding: 4px 5px;
  360. opacity: 0.9;
  361. cursor: pointer;
  362. text-align: center;
  363. }
  364. .file-upload:hover {
  365. opacity: 1.0;
  366. }
  367. .file-upload:active {
  368. transform: scale(0.98);
  369. transform-origin: 0.5 0.5;
  370. }
  371. button {
  372. background: #222222;
  373. border: 1px solid rgb(51, 122, 183);
  374. margin: 5px 10px 5px 10px;
  375. color:white;
  376. padding: 4px 5px;
  377. opacity: 0.9;
  378. cursor: pointer;
  379. }
  380. button:hover {
  381. opacity: 1.0;
  382. }
  383. button:active {
  384. background: #282828;
  385. }
  386. button:focus {
  387. border: 1px solid rgb(51, 122, 183);
  388. outline: 0px;
  389. }
  390. }
  391. .radioLine {
  392. padding-left: $line-padding-left;
  393. height: 30px;
  394. display: grid;
  395. grid-template-columns: 1fr 24px;
  396. .label {
  397. grid-column: 1;
  398. display: flex;
  399. align-items: center;
  400. }
  401. .radioContainer {
  402. display: flex;
  403. align-items: center;
  404. .radio {
  405. grid-column: 2;
  406. display: none;
  407. &:checked + label:before {
  408. border-color: rgb(51, 122, 183);
  409. }
  410. &:checked + label:after {
  411. transform: scale(1);
  412. }
  413. }
  414. .labelForRadio {
  415. display: inline-block;
  416. height: 14px;
  417. position: relative;
  418. padding: 0 24px;
  419. margin-bottom: 0;
  420. cursor: pointer;
  421. vertical-align: bottom;
  422. &:before, &:after {
  423. position: absolute;
  424. content: '';
  425. border-radius: 50%;
  426. transition: all .3s ease;
  427. transition-property: transform, border-color;
  428. }
  429. &:before {
  430. left: 0px;
  431. top: 0;
  432. width: 16px;
  433. height: 16px;
  434. border: 2px solid white;
  435. }
  436. &:after {
  437. top: 6px;
  438. left: 6px;
  439. width: 8px;
  440. height: 8px;
  441. transform: scale(0);
  442. background:rgb(51, 122, 183);
  443. }
  444. }
  445. }
  446. }
  447. .vector3Line {
  448. padding-left:$line-padding-left;
  449. display: grid;
  450. .firstLine {
  451. display: grid;
  452. grid-template-columns: 1fr auto 20px;
  453. height: 30px;
  454. .label {
  455. grid-column: 1;
  456. display: flex;
  457. align-items: center;
  458. }
  459. .vector {
  460. grid-column: 2;
  461. display: flex;
  462. align-items: center;
  463. text-align: right;
  464. opacity: 0.8;
  465. }
  466. .expand {
  467. grid-column: 3;
  468. display: grid;
  469. align-items: center;
  470. justify-items: center;
  471. cursor: pointer;
  472. }
  473. }
  474. .secondLine {
  475. display: grid;
  476. padding-right: 5px;
  477. border-left: 1px solid rgb(51, 122, 183);
  478. .numeric {
  479. display: grid;
  480. grid-template-columns: 1fr auto;
  481. }
  482. .numeric-label {
  483. text-align: right;
  484. grid-column: 1;
  485. display: flex;
  486. align-items: center;
  487. justify-self: right;
  488. margin-right: 10px;
  489. }
  490. .numeric-value {
  491. width: 120px;
  492. grid-column: 2;
  493. display: flex;
  494. align-items: center;
  495. border: 1px solid rgb(51, 122, 183);
  496. }
  497. }
  498. }
  499. .checkBoxLine {
  500. padding-left: $line-padding-left;
  501. height: 30px;
  502. display: grid;
  503. grid-template-columns: 1fr auto;
  504. .label {
  505. grid-column: 1;
  506. display: flex;
  507. align-items: center;
  508. }
  509. .checkBox {
  510. grid-column: 2;
  511. display: flex;
  512. align-items: center;
  513. .lbl {
  514. position: relative;
  515. display: block;
  516. height: 14px;
  517. width: 34px;
  518. margin-right: 5px;
  519. background: #898989;
  520. border-radius: 100px;
  521. cursor: pointer;
  522. transition: all 0.3s ease;
  523. }
  524. .lbl:after {
  525. position: absolute;
  526. left: 3px;
  527. top: 2px;
  528. display: block;
  529. width: 10px;
  530. height: 10px;
  531. border-radius: 100px;
  532. background: #fff;
  533. box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
  534. content: '';
  535. transition: all 0.15s ease;
  536. }
  537. .lbl:active:after {
  538. transform: scale(1.15, 0.85);
  539. }
  540. .cbx:checked ~ label {
  541. background: rgb(51, 122, 183);
  542. }
  543. .cbx:checked ~ label:after {
  544. left: 20px;
  545. background: rgb(22, 73, 117);
  546. }
  547. .hidden {
  548. display: none;
  549. }
  550. }
  551. }
  552. .textureLine {
  553. display: grid;
  554. grid-template-rows: 30px auto;
  555. .control {
  556. margin-top: 2px;
  557. grid-row: 1;
  558. display: grid;
  559. grid-template-columns: 1fr 40px 40px 40px 40px 40px 1fr;
  560. .red {
  561. grid-column: 2;
  562. }
  563. .green {
  564. grid-column: 3;
  565. }
  566. .blue {
  567. grid-column: 4;
  568. }
  569. .alpha {
  570. grid-column: 5;
  571. }
  572. .all {
  573. grid-column: 6;
  574. }
  575. }
  576. .control3D {
  577. margin-top: 2px;
  578. grid-row: 1;
  579. display: grid;
  580. grid-template-columns: 1fr 40px 40px 40px 40px 40px 40px 1fr;
  581. .px {
  582. grid-column: 2;
  583. }
  584. .nx {
  585. grid-column: 3;
  586. }
  587. .py {
  588. grid-column: 4;
  589. }
  590. .ny {
  591. grid-column: 5;
  592. }
  593. .pz {
  594. grid-column: 6;
  595. }
  596. .nz {
  597. grid-column: 7;
  598. }
  599. }
  600. .command {
  601. border: 1px solid transparent;
  602. background:transparent;
  603. color: white;
  604. }
  605. .selected {
  606. border: 1px solid rgb(51, 122, 183);
  607. }
  608. .preview {
  609. grid-row: 2;
  610. display: grid;
  611. align-self: center;
  612. justify-self: center;
  613. height: 256px;
  614. width: 256px;
  615. margin-top: 5px;
  616. margin-bottom: 5px;
  617. border: 2px solid rgba(255, 255, 255, 0.4);
  618. }
  619. }
  620. .gltf-extension-property {
  621. margin-left: 30px;
  622. border-left: 1px solid rgb(51, 122, 183);
  623. }
  624. .floatLine {
  625. padding-left: $line-padding-left;
  626. height: 30px;
  627. display: grid;
  628. grid-template-columns: 1fr 120px;
  629. .label {
  630. grid-column: 1;
  631. display: flex;
  632. align-items: center;
  633. }
  634. .value {
  635. grid-column: 2;
  636. display: flex;
  637. align-items: center;
  638. input {
  639. width: 110px;
  640. }
  641. }
  642. }
  643. .sliderLine {
  644. padding-left: 2px;
  645. height: 30px;
  646. display: grid;
  647. grid-template-columns: 1fr auto;
  648. .label {
  649. grid-column: 1;
  650. display: flex;
  651. align-items: center;
  652. }
  653. .slider {
  654. grid-column: 2;
  655. margin-right: 5px;
  656. display: flex;
  657. align-items: center;
  658. .range {
  659. -webkit-appearance: none;
  660. width: 120px;
  661. height: 6px;
  662. background: #d3d3d3;
  663. border-radius: 5px;
  664. outline: none;
  665. opacity: 0.7;
  666. -webkit-transition: .2s;
  667. transition: opacity .2s;
  668. }
  669. .range:hover {
  670. opacity: 1;
  671. }
  672. .range::-webkit-slider-thumb {
  673. -webkit-appearance: none;
  674. appearance: none;
  675. width: 14px;
  676. height: 14px;
  677. border-radius: 50%;
  678. background: rgb(51, 122, 183);
  679. cursor: pointer;
  680. }
  681. .range::-moz-range-thumb {
  682. width: 14px;
  683. height: 14px;
  684. border-radius: 50%;
  685. background: rgb(51, 122, 183);
  686. cursor: pointer;
  687. }
  688. }
  689. }
  690. .color3Line {
  691. padding-left: $line-padding-left;
  692. display: grid;
  693. .firstLine {
  694. height: 30px;
  695. display: grid;
  696. grid-template-columns: 1fr auto 20px 20px;
  697. .label {
  698. grid-column: 1;
  699. display: flex;
  700. align-items: center;
  701. }
  702. .color3 {
  703. grid-column: 2;
  704. display: flex;
  705. align-items: center;
  706. input[type="color"] {
  707. -webkit-appearance: none;
  708. border: 1px solid rgba(255, 255, 255, 0.5);
  709. padding: 0;
  710. width: 30px;
  711. height: 20px;
  712. }
  713. input[type="color"]::-webkit-color-swatch-wrapper {
  714. padding: 0;
  715. }
  716. input[type="color"]::-webkit-color-swatch {
  717. border: none;
  718. }
  719. input {
  720. margin-right: 5px;
  721. }
  722. }
  723. .copy {
  724. grid-column: 3;
  725. display: grid;
  726. align-items: center;
  727. justify-items: center;
  728. cursor: pointer;
  729. img {
  730. height: 100%;
  731. }
  732. }
  733. .expand {
  734. grid-column: 4;
  735. display: grid;
  736. align-items: center;
  737. justify-items: center;
  738. cursor: pointer;
  739. }
  740. }
  741. .secondLine {
  742. display: grid;
  743. padding-right: 5px;
  744. border-left: 1px solid rgb(51, 122, 183);
  745. .numeric {
  746. display: grid;
  747. grid-template-columns: 1fr auto;
  748. }
  749. .numeric-label {
  750. text-align: right;
  751. grid-column: 1;
  752. display: flex;
  753. align-items: center;
  754. justify-self: right;
  755. margin-right: 10px;
  756. }
  757. .numeric-value {
  758. width: 120px;
  759. grid-column: 2;
  760. display: flex;
  761. align-items: center;
  762. border: 1px solid rgb(51, 122, 183);
  763. }
  764. }
  765. }
  766. .listLine {
  767. padding-left: $line-padding-left;
  768. height: 30px;
  769. display: grid;
  770. grid-template-columns: 1fr auto;
  771. .label {
  772. grid-column: 1;
  773. display: flex;
  774. align-items: center;
  775. }
  776. .options {
  777. grid-column: 2;
  778. display: flex;
  779. align-items: center;
  780. margin-right: 5px;
  781. select {
  782. width: 115px;
  783. }
  784. }
  785. }
  786. .paneContainer {
  787. margin-top: 3px;
  788. display:grid;
  789. grid-template-rows: 100%;
  790. grid-template-columns: 100%;
  791. .paneList {
  792. border-left: 3px solid transparent;
  793. }
  794. &:hover {
  795. .paneList {
  796. border-left: 3px solid rgba(51, 122, 183, 0.8);
  797. }
  798. .paneContainer-content {
  799. .header {
  800. .title {
  801. border-left: 3px solid rgb(51, 122, 183);
  802. }
  803. }
  804. }
  805. }
  806. .paneContainer-highlight-border {
  807. grid-row: 1;
  808. grid-column: 1;
  809. opacity: 1;
  810. border: 3px solid red;
  811. transition: opacity 250ms;
  812. pointer-events: none;
  813. &.transparent {
  814. opacity: 0;
  815. }
  816. }
  817. .paneContainer-content {
  818. grid-row: 1;
  819. grid-column: 1;
  820. .header {
  821. display: grid;
  822. grid-template-columns: 1fr auto;
  823. background: #555555;
  824. height: 30px;
  825. padding-right: 5px;
  826. cursor: pointer;
  827. .title {
  828. border-left: 3px solid transparent;
  829. padding-left: 5px;
  830. grid-column: 1;
  831. display: flex;
  832. align-items: center;
  833. }
  834. .collapse {
  835. grid-column: 2;
  836. display: flex;
  837. align-items: center;
  838. justify-items: center;
  839. transform-origin: center;
  840. &.closed {
  841. transform: rotate(180deg);
  842. }
  843. }
  844. }
  845. .paneList > div:not(:last-child) {
  846. border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  847. }
  848. .fragment > div:not(:last-child) {
  849. border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  850. }
  851. }
  852. }
  853. }
  854. }
  855. }
  856. }