propertyTab.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  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 5px;
  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: unset;
  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. }
  244. }
  245. .floatLine {
  246. padding-left: $line-padding-left;
  247. height: 30px;
  248. display: grid;
  249. grid-template-columns: 1fr 120px;
  250. .label {
  251. grid-column: 1;
  252. display: flex;
  253. align-items: center;
  254. }
  255. .value {
  256. grid-column: 2;
  257. display: flex;
  258. align-items: center;
  259. input {
  260. width: 110px;
  261. }
  262. }
  263. }
  264. .vector3Line {
  265. padding-left:$line-padding-left;
  266. display: grid;
  267. .firstLine {
  268. display: grid;
  269. grid-template-columns: 1fr auto 20px;
  270. height: 30px;
  271. .label {
  272. grid-column: 1;
  273. display: flex;
  274. align-items: center;
  275. }
  276. .vector {
  277. grid-column: 2;
  278. display: flex;
  279. align-items: center;
  280. text-align: right;
  281. opacity: 0.8;
  282. }
  283. .expand {
  284. grid-column: 3;
  285. display: grid;
  286. align-items: center;
  287. justify-items: center;
  288. cursor: pointer;
  289. }
  290. }
  291. .secondLine {
  292. display: grid;
  293. padding-right: 5px;
  294. border-left: 1px solid rgb(51, 122, 183);
  295. .no-right-margin {
  296. margin-right: 0;
  297. }
  298. .numeric {
  299. display: grid;
  300. grid-template-columns: 1fr auto;
  301. }
  302. .numeric-label {
  303. text-align: right;
  304. grid-column: 1;
  305. display: flex;
  306. align-items: center;
  307. justify-self: right;
  308. margin-right: 10px;
  309. }
  310. .numeric-value {
  311. width: 120px;
  312. grid-column: 2;
  313. display: flex;
  314. align-items: center;
  315. border: 1px solid rgb(51, 122, 183);
  316. }
  317. }
  318. }
  319. .buttonLine {
  320. height: 30px;
  321. display: grid;
  322. align-items: center;
  323. justify-items: stretch;
  324. padding-bottom: 5px;
  325. input[type="file"] {
  326. display: none;
  327. }
  328. .file-upload {
  329. background: #222222;
  330. border: 1px solid rgb(51, 122, 183);
  331. margin: 5px 10px;
  332. color:white;
  333. padding: 4px 5px;
  334. padding-top: 0px;
  335. opacity: 0.9;
  336. cursor: pointer;
  337. text-align: center;
  338. }
  339. .file-upload:hover {
  340. opacity: 1.0;
  341. }
  342. .file-upload:active {
  343. transform: scale(0.98);
  344. transform-origin: 0.5 0.5;
  345. }
  346. button {
  347. background: #222222;
  348. border: 1px solid rgb(51, 122, 183);
  349. margin: 5px 10px 5px 10px;
  350. color:white;
  351. padding: 4px 5px;
  352. opacity: 0.9;
  353. }
  354. button:hover {
  355. opacity: 1.0;
  356. }
  357. button:active {
  358. background: #282828;
  359. }
  360. button:focus {
  361. border: 1px solid rgb(51, 122, 183);
  362. outline: 0px;
  363. }
  364. }
  365. .checkBoxLine {
  366. padding-left: $line-padding-left;
  367. height: 30px;
  368. display: grid;
  369. grid-template-columns: 1fr auto;
  370. .label {
  371. grid-column: 1;
  372. display: flex;
  373. align-items: center;
  374. }
  375. .checkBox {
  376. grid-column: 2;
  377. display: flex;
  378. align-items: center;
  379. .lbl {
  380. position: relative;
  381. display: block;
  382. height: 14px;
  383. width: 34px;
  384. margin-right: 5px;
  385. background: #898989;
  386. border-radius: 100px;
  387. cursor: pointer;
  388. transition: all 0.3s ease;
  389. }
  390. .lbl:after {
  391. position: absolute;
  392. left: 3px;
  393. top: 2px;
  394. display: block;
  395. width: 10px;
  396. height: 10px;
  397. border-radius: 100px;
  398. background: #fff;
  399. box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
  400. content: '';
  401. transition: all 0.15s ease;
  402. }
  403. .lbl:active:after {
  404. transform: scale(1.15, 0.85);
  405. }
  406. .cbx:checked ~ label {
  407. background: rgb(51, 122, 183);
  408. }
  409. .cbx:checked ~ label:after {
  410. left: 20px;
  411. background: rgb(22, 73, 117);
  412. }
  413. .cbx:checked ~ label.disabled {
  414. background: rgb(22, 73, 117);
  415. cursor: pointer;
  416. }
  417. .cbx:checked ~ label.disabled:after {
  418. left: 20px;
  419. background: rgb(85, 85, 85);
  420. cursor: pointer;
  421. }
  422. .cbx ~ label.disabled {
  423. background: rgb(85, 85, 85);
  424. cursor: pointer;
  425. }
  426. .hidden {
  427. display: none;
  428. }
  429. }
  430. }
  431. .listLine {
  432. padding-left: $line-padding-left;
  433. height: 30px;
  434. display: grid;
  435. grid-template-columns: 1fr auto;
  436. .label {
  437. grid-column: 1;
  438. display: flex;
  439. align-items: center;
  440. }
  441. .options {
  442. grid-column: 2;
  443. display: flex;
  444. align-items: center;
  445. margin-right: 5px;
  446. select {
  447. width: 115px;
  448. }
  449. }
  450. }
  451. .color3Line {
  452. padding-left: $line-padding-left;
  453. display: grid;
  454. .firstLine {
  455. height: 30px;
  456. display: grid;
  457. grid-template-columns: 1fr auto 20px 20px;
  458. .label {
  459. grid-column: 1;
  460. display: flex;
  461. align-items: center;
  462. }
  463. .color3 {
  464. grid-column: 2;
  465. width: 50px;
  466. display: flex;
  467. align-items: center;
  468. input {
  469. margin-right: 5px;
  470. }
  471. }
  472. .copy {
  473. grid-column: 3;
  474. display: grid;
  475. align-items: center;
  476. justify-items: center;
  477. cursor: pointer;
  478. img {
  479. height: 100%;
  480. }
  481. }
  482. .expand {
  483. grid-column: 4;
  484. display: grid;
  485. align-items: center;
  486. justify-items: center;
  487. cursor: pointer;
  488. }
  489. }
  490. .secondLine {
  491. display: grid;
  492. padding-right: 5px;
  493. border-left: 1px solid rgb(51, 122, 183);
  494. .numeric {
  495. display: grid;
  496. grid-template-columns: 1fr auto;
  497. }
  498. .numeric-label {
  499. text-align: right;
  500. grid-column: 1;
  501. display: flex;
  502. align-items: center;
  503. justify-self: right;
  504. margin-right: 10px;
  505. }
  506. .numeric-value {
  507. width: 120px;
  508. grid-column: 2;
  509. display: flex;
  510. align-items: center;
  511. border: 1px solid rgb(51, 122, 183);
  512. }
  513. }
  514. }
  515. .textLine {
  516. padding-left: $line-padding-left;
  517. height: 30px;
  518. display: grid;
  519. grid-template-columns: 1fr auto;
  520. .label {
  521. grid-column: 1;
  522. display: flex;
  523. align-items: center;
  524. }
  525. .link-value {
  526. grid-column: 2;
  527. white-space: nowrap;
  528. text-overflow: ellipsis;
  529. overflow: hidden;
  530. text-align: end;
  531. opacity: 0.8;
  532. margin:5px;
  533. margin-top: 6px;
  534. max-width: 140px;
  535. text-decoration: underline;
  536. cursor: pointer;
  537. }
  538. .value {
  539. grid-column: 2;
  540. white-space: nowrap;
  541. text-overflow: ellipsis;
  542. overflow: hidden;
  543. text-align: end;
  544. opacity: 0.8;
  545. margin:5px;
  546. margin-top: 6px;
  547. max-width: 200px;
  548. -webkit-user-select: text;
  549. -moz-user-select: text;
  550. -ms-user-select: text;
  551. user-select: text;
  552. &.check {
  553. color: green;
  554. }
  555. &.uncheck {
  556. color: red;
  557. }
  558. }
  559. }
  560. }