propertyTab.scss 17 KB

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