propertyTab.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. #propertyTab {
  2. $line-padding-left: 5px;
  3. color:white;
  4. background: #333333;
  5. #header {
  6. height: 30px;
  7. font-size: 16px;
  8. color: white;
  9. background: #222222;
  10. grid-row: 1;
  11. text-align: center;
  12. display: grid;
  13. grid-template-columns: 30px 1fr;
  14. -webkit-user-select: none;
  15. -moz-user-select: none;
  16. -ms-user-select: none;
  17. user-select: none;
  18. #logo {
  19. position: relative;
  20. grid-column: 1;
  21. width: 24px;
  22. height: 24px;
  23. left:0;
  24. display: flex;
  25. align-self: center;
  26. justify-self: center;
  27. }
  28. #title {
  29. grid-column: 2;
  30. display: grid;
  31. align-items: center;
  32. text-align: center;
  33. }
  34. }
  35. .range {
  36. -webkit-appearance: none;
  37. width: 120px;
  38. height: 6px;
  39. background: #d3d3d3;
  40. border-radius: 5px;
  41. outline: none;
  42. opacity: 0.7;
  43. -webkit-transition: .2s;
  44. transition: opacity .2s;
  45. }
  46. .range:hover {
  47. opacity: 1;
  48. }
  49. .range::-webkit-slider-thumb {
  50. -webkit-appearance: none;
  51. appearance: none;
  52. width: 14px;
  53. height: 14px;
  54. border-radius: 50%;
  55. background: rgb(51, 122, 183);
  56. cursor: pointer;
  57. }
  58. .range::-moz-range-thumb {
  59. width: 14px;
  60. height: 14px;
  61. border-radius: 50%;
  62. background: rgb(51, 122, 183);
  63. cursor: pointer;
  64. }
  65. input[type="color"] {
  66. -webkit-appearance: none;
  67. border: 1px solid rgba(255, 255, 255, 0.5);
  68. padding: 0;
  69. width: 30px;
  70. height: 20px;
  71. }
  72. input[type="color"]::-webkit-color-swatch-wrapper {
  73. padding: 0;
  74. }
  75. input[type="color"]::-webkit-color-swatch {
  76. border: none;
  77. }
  78. .sliderLine {
  79. padding-left: $line-padding-left;
  80. height: 30px;
  81. display: grid;
  82. grid-template-columns: 1fr auto;
  83. .label {
  84. grid-column: 1;
  85. display: flex;
  86. align-items: center;
  87. }
  88. .slider {
  89. grid-column: 2;
  90. margin-right: 5px;
  91. display: flex;
  92. align-items: center;
  93. }
  94. }
  95. .textInputLine {
  96. padding-left: $line-padding-left;
  97. height: 30px;
  98. display: grid;
  99. grid-template-columns: 1fr 120px;
  100. .label {
  101. grid-column: 1;
  102. display: flex;
  103. align-items: center;
  104. }
  105. .value {
  106. display: flex;
  107. align-items: center;
  108. grid-column: 2;
  109. input {
  110. width: calc(100% - 5px);
  111. }
  112. }
  113. }
  114. .textInputArea {
  115. padding-left: $line-padding-left;
  116. height: 100%;
  117. display: grid;
  118. grid-template-columns: 1fr 120px;
  119. .label {
  120. grid-column: 1;
  121. display: flex;
  122. align-items: center;
  123. }
  124. .value {
  125. display: flex;
  126. align-items: center;
  127. grid-column: 2;
  128. textarea {
  129. width: calc(150% - 5px);
  130. margin-left: -50%;
  131. height: 40px;
  132. }
  133. }
  134. }
  135. .paneContainer {
  136. margin-top: 3px;
  137. display:grid;
  138. grid-template-rows: 100%;
  139. grid-template-columns: 100%;
  140. .paneList {
  141. border-left: 3px solid transparent;
  142. }
  143. &:hover {
  144. .paneList {
  145. border-left: 3px solid rgba(51, 122, 183, 0.8);
  146. }
  147. .paneContainer-content {
  148. .header {
  149. .title {
  150. border-left: 3px solid rgb(51, 122, 183);
  151. }
  152. }
  153. }
  154. }
  155. .paneContainer-highlight-border {
  156. grid-row: 1;
  157. grid-column: 1;
  158. opacity: 1;
  159. border: 3px solid red;
  160. transition: opacity 250ms;
  161. pointer-events: none;
  162. &.transparent {
  163. opacity: 0;
  164. }
  165. }
  166. .paneContainer-content {
  167. grid-row: 1;
  168. grid-column: 1;
  169. .header {
  170. display: grid;
  171. grid-template-columns: 1fr auto;
  172. background: #555555;
  173. height: 30px;
  174. padding-right: 5px;
  175. cursor: pointer;
  176. .title {
  177. border-left: 3px solid transparent;
  178. padding-left: 5px;
  179. grid-column: 1;
  180. display: flex;
  181. align-items: center;
  182. }
  183. .collapse {
  184. grid-column: 2;
  185. display: flex;
  186. align-items: center;
  187. justify-items: center;
  188. transform-origin: center;
  189. &.closed {
  190. transform: rotate(180deg);
  191. }
  192. }
  193. }
  194. .paneList > div:not(:last-child) {
  195. border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  196. }
  197. .fragment > div:not(:last-child) {
  198. border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  199. }
  200. }
  201. }
  202. .color-picker {
  203. height: calc(100% - 8px);
  204. margin: 4px;
  205. width: calc(100% - 8px);
  206. .color-rect {
  207. height: calc(100% - 4px);
  208. border: 2px white solid;
  209. cursor: pointer;
  210. min-height: 18px;
  211. }
  212. .color-picker-cover {
  213. position: fixed;
  214. top: 0px;
  215. right: 0px;
  216. bottom: 0px;
  217. left: 0px;
  218. }
  219. .color-picker-float {
  220. z-index: 2;
  221. position: absolute;
  222. }
  223. }
  224. .gradient-step {
  225. display: grid;
  226. grid-template-rows: 100%;
  227. grid-template-columns: 20px 30px 40px auto 20px 30px;
  228. padding-top: 5px;
  229. padding-left: 5px;
  230. padding-bottom: 5px;
  231. .step {
  232. grid-row: 1;
  233. grid-column: 1;
  234. }
  235. .color {
  236. grid-row: 1;
  237. grid-column: 2;
  238. cursor: pointer;
  239. }
  240. .step-value {
  241. margin-left: 5px;
  242. grid-row: 1;
  243. grid-column: 3;
  244. text-align: right;
  245. margin-right: 5px;
  246. }
  247. .step-slider {
  248. grid-row: 1;
  249. grid-column: 4;
  250. display: grid;
  251. justify-content: stretch;
  252. align-content: center;
  253. margin-right: -5px;
  254. padding-left: 12px;
  255. input {
  256. width: 90%;
  257. }
  258. }
  259. .gradient-copy {
  260. grid-row: 1;
  261. grid-column: 5;
  262. display: grid;
  263. align-content: center;
  264. justify-content: center;
  265. .img {
  266. height: 20px;
  267. width: 20px;
  268. }
  269. .img:hover {
  270. cursor: pointer;
  271. }
  272. }
  273. .gradient-delete {
  274. grid-row: 1;
  275. grid-column: 6;
  276. display: grid;
  277. align-content: center;
  278. justify-content: center;
  279. .img {
  280. height: 20px;
  281. width: 20px;
  282. }
  283. .img:hover {
  284. cursor: pointer;
  285. }
  286. }
  287. }
  288. .floatLine {
  289. padding-left: $line-padding-left;
  290. height: 30px;
  291. display: grid;
  292. grid-template-columns: 1fr 120px;
  293. .label {
  294. grid-column: 1;
  295. display: flex;
  296. align-items: center;
  297. }
  298. .value {
  299. grid-column: 2;
  300. display: flex;
  301. align-items: center;
  302. input {
  303. width: 110px;
  304. }
  305. }
  306. .short {
  307. grid-column: 2;
  308. display: flex;
  309. align-items: center;
  310. input {
  311. width: 27px;
  312. }
  313. input::-webkit-outer-spin-button,
  314. input::-webkit-inner-spin-button {
  315. -webkit-appearance: none;
  316. margin: 0;
  317. }
  318. input[type=number] {
  319. -moz-appearance: textfield;
  320. }
  321. }
  322. }
  323. .vector3Line {
  324. padding-left:$line-padding-left;
  325. display: grid;
  326. .firstLine {
  327. display: grid;
  328. grid-template-columns: 1fr auto 20px;
  329. height: 30px;
  330. .label {
  331. grid-column: 1;
  332. display: flex;
  333. align-items: center;
  334. }
  335. .vector {
  336. grid-column: 2;
  337. display: flex;
  338. align-items: center;
  339. text-align: right;
  340. opacity: 0.8;
  341. }
  342. .expand {
  343. grid-column: 3;
  344. display: grid;
  345. align-items: center;
  346. justify-items: center;
  347. cursor: pointer;
  348. }
  349. }
  350. .secondLine {
  351. display: grid;
  352. padding-right: 5px;
  353. border-left: 1px solid rgb(51, 122, 183);
  354. .no-right-margin {
  355. margin-right: 0;
  356. }
  357. .numeric {
  358. display: grid;
  359. grid-template-columns: 1fr auto;
  360. }
  361. .numeric-label {
  362. text-align: right;
  363. grid-column: 1;
  364. display: flex;
  365. align-items: center;
  366. justify-self: right;
  367. margin-right: 10px;
  368. }
  369. .numeric-value {
  370. width: 120px;
  371. grid-column: 2;
  372. display: flex;
  373. align-items: center;
  374. border: 1px solid rgb(51, 122, 183);
  375. }
  376. }
  377. }
  378. .buttonLine {
  379. height: 30px;
  380. display: grid;
  381. align-items: center;
  382. justify-items: stretch;
  383. padding-bottom: 5px;
  384. input[type="file"] {
  385. display: none;
  386. }
  387. .file-upload {
  388. background: #222222;
  389. border: 1px solid rgb(51, 122, 183);
  390. margin: 5px 10px;
  391. color:white;
  392. padding: 4px 5px;
  393. padding-top: 0px;
  394. opacity: 0.9;
  395. cursor: pointer;
  396. text-align: center;
  397. }
  398. .file-upload:hover {
  399. opacity: 1.0;
  400. }
  401. .file-upload:active {
  402. transform: scale(0.98);
  403. transform-origin: 0.5 0.5;
  404. }
  405. button {
  406. background: #222222;
  407. border: 1px solid rgb(51, 122, 183);
  408. margin: 5px 10px 5px 10px;
  409. color:white;
  410. padding: 4px 5px;
  411. opacity: 0.9;
  412. }
  413. button:hover {
  414. opacity: 1.0;
  415. }
  416. button:active {
  417. background: #282828;
  418. }
  419. button:focus {
  420. border: 1px solid rgb(51, 122, 183);
  421. outline: 0px;
  422. }
  423. }
  424. .checkBoxLine {
  425. padding-left: $line-padding-left;
  426. height: 30px;
  427. display: grid;
  428. grid-template-columns: 1fr auto;
  429. .label {
  430. grid-column: 1;
  431. display: flex;
  432. align-items: center;
  433. }
  434. .checkBox {
  435. grid-column: 2;
  436. display: flex;
  437. align-items: center;
  438. .lbl {
  439. position: relative;
  440. display: block;
  441. height: 14px;
  442. width: 34px;
  443. margin-right: 5px;
  444. background: #898989;
  445. border-radius: 100px;
  446. cursor: pointer;
  447. transition: all 0.3s ease;
  448. }
  449. .lbl:after {
  450. position: absolute;
  451. left: 3px;
  452. top: 2px;
  453. display: block;
  454. width: 10px;
  455. height: 10px;
  456. border-radius: 100px;
  457. background: #fff;
  458. box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
  459. content: '';
  460. transition: all 0.15s ease;
  461. }
  462. .lbl:active:after {
  463. transform: scale(1.15, 0.85);
  464. }
  465. .cbx:checked ~ label {
  466. background: rgb(51, 122, 183);
  467. }
  468. .cbx:checked ~ label:after {
  469. left: 20px;
  470. background: rgb(22, 73, 117);
  471. }
  472. .cbx:checked ~ label.disabled {
  473. background: rgb(22, 73, 117);
  474. cursor: pointer;
  475. }
  476. .cbx:checked ~ label.disabled:after {
  477. left: 20px;
  478. background: rgb(85, 85, 85);
  479. cursor: pointer;
  480. }
  481. .cbx ~ label.disabled {
  482. background: rgb(85, 85, 85);
  483. cursor: pointer;
  484. }
  485. .hidden {
  486. display: none;
  487. }
  488. }
  489. }
  490. .listLine {
  491. padding-left: $line-padding-left;
  492. height: 30px;
  493. display: grid;
  494. grid-template-columns: 1fr auto;
  495. .label {
  496. grid-column: 1;
  497. display: flex;
  498. align-items: center;
  499. }
  500. .options {
  501. grid-column: 2;
  502. display: flex;
  503. align-items: center;
  504. margin-right: 5px;
  505. select {
  506. width: 115px;
  507. }
  508. }
  509. }
  510. .color3Line {
  511. padding-left: $line-padding-left;
  512. display: grid;
  513. .firstLine {
  514. height: 30px;
  515. display: grid;
  516. grid-template-columns: 1fr auto 20px 20px;
  517. .label {
  518. grid-column: 1;
  519. display: flex;
  520. align-items: center;
  521. }
  522. .color3 {
  523. grid-column: 2;
  524. width: 50px;
  525. display: flex;
  526. align-items: center;
  527. input {
  528. margin-right: 5px;
  529. }
  530. }
  531. .copy {
  532. grid-column: 3;
  533. display: grid;
  534. align-items: center;
  535. justify-items: center;
  536. cursor: pointer;
  537. img {
  538. height: 100%;
  539. width: 20px;
  540. }
  541. }
  542. .expand {
  543. grid-column: 4;
  544. display: grid;
  545. align-items: center;
  546. justify-items: center;
  547. cursor: pointer;
  548. img {
  549. height: 100%;
  550. width: 20px;
  551. }
  552. }
  553. }
  554. .secondLine {
  555. display: grid;
  556. padding-right: 5px;
  557. border-left: 1px solid rgb(51, 122, 183);
  558. .numeric {
  559. display: grid;
  560. grid-template-columns: 1fr auto;
  561. }
  562. .numeric-label {
  563. text-align: right;
  564. grid-column: 1;
  565. display: flex;
  566. align-items: center;
  567. justify-self: right;
  568. margin-right: 10px;
  569. }
  570. .numeric-value {
  571. width: 120px;
  572. grid-column: 2;
  573. display: flex;
  574. align-items: center;
  575. border: 1px solid rgb(51, 122, 183);
  576. }
  577. }
  578. }
  579. .textLine {
  580. padding-left: $line-padding-left;
  581. height: 30px;
  582. display: grid;
  583. grid-template-columns: 1fr auto;
  584. .label {
  585. grid-column: 1;
  586. display: flex;
  587. align-items: center;
  588. }
  589. .link-value {
  590. grid-column: 2;
  591. white-space: nowrap;
  592. text-overflow: ellipsis;
  593. overflow: hidden;
  594. text-align: end;
  595. opacity: 0.8;
  596. margin:5px;
  597. margin-top: 6px;
  598. max-width: 140px;
  599. text-decoration: underline;
  600. cursor: pointer;
  601. }
  602. .value {
  603. grid-column: 2;
  604. white-space: nowrap;
  605. text-overflow: ellipsis;
  606. overflow: hidden;
  607. text-align: end;
  608. opacity: 0.8;
  609. margin:5px;
  610. margin-top: 6px;
  611. max-width: 200px;
  612. -webkit-user-select: text;
  613. -moz-user-select: text;
  614. -ms-user-select: text;
  615. user-select: text;
  616. &.check {
  617. color: green;
  618. }
  619. &.uncheck {
  620. color: red;
  621. }
  622. }
  623. }
  624. }