propertyTab.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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. .gradient-step {
  182. display: grid;
  183. grid-template-rows: 100%;
  184. grid-template-columns: 30px 30px 40px auto 20px 5px;
  185. padding-top: 5px;
  186. padding-left: 5px;
  187. padding-bottom: 5px;
  188. .step {
  189. grid-row: 1;
  190. grid-column: 1;
  191. }
  192. .color {
  193. grid-row: 1;
  194. grid-column: 2;
  195. cursor: pointer;
  196. }
  197. .step-value {
  198. margin-left: 5px;
  199. grid-row: 1;
  200. grid-column: 3;
  201. text-align: right;
  202. margin-right: 5px;
  203. }
  204. .step-slider {
  205. grid-row: 1;
  206. grid-column: 4;
  207. display: grid;
  208. justify-content: stretch;
  209. align-content: center;
  210. margin-right: 5px;
  211. input {
  212. width: unset;
  213. }
  214. }
  215. .gradient-delete {
  216. grid-row: 1;
  217. grid-column: 5;
  218. display: grid;
  219. align-content: center;
  220. justify-content: center;
  221. }
  222. }
  223. .floatLine {
  224. padding-left: $line-padding-left;
  225. height: 30px;
  226. display: grid;
  227. grid-template-columns: 1fr 120px;
  228. .label {
  229. grid-column: 1;
  230. display: flex;
  231. align-items: center;
  232. }
  233. .value {
  234. grid-column: 2;
  235. display: flex;
  236. align-items: center;
  237. input {
  238. width: 110px;
  239. }
  240. }
  241. }
  242. .vector3Line {
  243. padding-left:$line-padding-left;
  244. display: grid;
  245. .firstLine {
  246. display: grid;
  247. grid-template-columns: 1fr auto 20px;
  248. height: 30px;
  249. .label {
  250. grid-column: 1;
  251. display: flex;
  252. align-items: center;
  253. }
  254. .vector {
  255. grid-column: 2;
  256. display: flex;
  257. align-items: center;
  258. text-align: right;
  259. opacity: 0.8;
  260. }
  261. .expand {
  262. grid-column: 3;
  263. display: grid;
  264. align-items: center;
  265. justify-items: center;
  266. cursor: pointer;
  267. }
  268. }
  269. .secondLine {
  270. display: grid;
  271. padding-right: 5px;
  272. border-left: 1px solid rgb(51, 122, 183);
  273. .no-right-margin {
  274. margin-right: 0;
  275. }
  276. .numeric {
  277. display: grid;
  278. grid-template-columns: 1fr auto;
  279. }
  280. .numeric-label {
  281. text-align: right;
  282. grid-column: 1;
  283. display: flex;
  284. align-items: center;
  285. justify-self: right;
  286. margin-right: 10px;
  287. }
  288. .numeric-value {
  289. width: 120px;
  290. grid-column: 2;
  291. display: flex;
  292. align-items: center;
  293. border: 1px solid rgb(51, 122, 183);
  294. }
  295. }
  296. }
  297. .buttonLine {
  298. height: 30px;
  299. display: grid;
  300. align-items: center;
  301. justify-items: stretch;
  302. padding-bottom: 5px;
  303. input[type="file"] {
  304. display: none;
  305. }
  306. .file-upload {
  307. background: #222222;
  308. border: 1px solid rgb(51, 122, 183);
  309. margin: 5px 10px;
  310. color:white;
  311. padding: 4px 5px;
  312. padding-top: 0px;
  313. opacity: 0.9;
  314. cursor: pointer;
  315. text-align: center;
  316. }
  317. .file-upload:hover {
  318. opacity: 1.0;
  319. }
  320. .file-upload:active {
  321. transform: scale(0.98);
  322. transform-origin: 0.5 0.5;
  323. }
  324. button {
  325. background: #222222;
  326. border: 1px solid rgb(51, 122, 183);
  327. margin: 5px 10px 5px 10px;
  328. color:white;
  329. padding: 4px 5px;
  330. opacity: 0.9;
  331. }
  332. button:hover {
  333. opacity: 1.0;
  334. }
  335. button:active {
  336. background: #282828;
  337. }
  338. button:focus {
  339. border: 1px solid rgb(51, 122, 183);
  340. outline: 0px;
  341. }
  342. }
  343. .checkBoxLine {
  344. padding-left: $line-padding-left;
  345. height: 30px;
  346. display: grid;
  347. grid-template-columns: 1fr auto;
  348. .label {
  349. grid-column: 1;
  350. display: flex;
  351. align-items: center;
  352. }
  353. .checkBox {
  354. grid-column: 2;
  355. display: flex;
  356. align-items: center;
  357. .lbl {
  358. position: relative;
  359. display: block;
  360. height: 14px;
  361. width: 34px;
  362. margin-right: 5px;
  363. background: #898989;
  364. border-radius: 100px;
  365. cursor: pointer;
  366. transition: all 0.3s ease;
  367. }
  368. .lbl:after {
  369. position: absolute;
  370. left: 3px;
  371. top: 2px;
  372. display: block;
  373. width: 10px;
  374. height: 10px;
  375. border-radius: 100px;
  376. background: #fff;
  377. box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
  378. content: '';
  379. transition: all 0.15s ease;
  380. }
  381. .lbl:active:after {
  382. transform: scale(1.15, 0.85);
  383. }
  384. .cbx:checked ~ label {
  385. background: rgb(51, 122, 183);
  386. }
  387. .cbx:checked ~ label:after {
  388. left: 20px;
  389. background: rgb(22, 73, 117);
  390. }
  391. .hidden {
  392. display: none;
  393. }
  394. }
  395. }
  396. .listLine {
  397. padding-left: $line-padding-left;
  398. height: 30px;
  399. display: grid;
  400. grid-template-columns: 1fr auto;
  401. .label {
  402. grid-column: 1;
  403. display: flex;
  404. align-items: center;
  405. }
  406. .options {
  407. grid-column: 2;
  408. display: flex;
  409. align-items: center;
  410. margin-right: 5px;
  411. select {
  412. width: 115px;
  413. }
  414. }
  415. }
  416. .color3Line {
  417. padding-left: $line-padding-left;
  418. display: grid;
  419. .firstLine {
  420. height: 30px;
  421. display: grid;
  422. grid-template-columns: 1fr auto 20px 20px;
  423. .label {
  424. grid-column: 1;
  425. display: flex;
  426. align-items: center;
  427. }
  428. .color3 {
  429. grid-column: 2;
  430. display: flex;
  431. align-items: center;
  432. input {
  433. margin-right: 5px;
  434. }
  435. }
  436. .copy {
  437. grid-column: 3;
  438. display: grid;
  439. align-items: center;
  440. justify-items: center;
  441. cursor: pointer;
  442. }
  443. .expand {
  444. grid-column: 4;
  445. display: grid;
  446. align-items: center;
  447. justify-items: center;
  448. cursor: pointer;
  449. }
  450. }
  451. .secondLine {
  452. display: grid;
  453. padding-right: 5px;
  454. border-left: 1px solid rgb(51, 122, 183);
  455. .numeric {
  456. display: grid;
  457. grid-template-columns: 1fr auto;
  458. }
  459. .numeric-label {
  460. text-align: right;
  461. grid-column: 1;
  462. display: flex;
  463. align-items: center;
  464. justify-self: right;
  465. margin-right: 10px;
  466. }
  467. .numeric-value {
  468. width: 120px;
  469. grid-column: 2;
  470. display: flex;
  471. align-items: center;
  472. border: 1px solid rgb(51, 122, 183);
  473. }
  474. }
  475. }
  476. .textLine {
  477. padding-left: $line-padding-left;
  478. height: 30px;
  479. display: grid;
  480. grid-template-columns: 1fr auto;
  481. .label {
  482. grid-column: 1;
  483. display: flex;
  484. align-items: center;
  485. }
  486. .link-value {
  487. grid-column: 2;
  488. white-space: nowrap;
  489. text-overflow: ellipsis;
  490. overflow: hidden;
  491. text-align: end;
  492. opacity: 0.8;
  493. margin:5px;
  494. margin-top: 6px;
  495. max-width: 140px;
  496. text-decoration: underline;
  497. cursor: pointer;
  498. }
  499. .value {
  500. grid-column: 2;
  501. white-space: nowrap;
  502. text-overflow: ellipsis;
  503. overflow: hidden;
  504. text-align: end;
  505. opacity: 0.8;
  506. margin:5px;
  507. margin-top: 6px;
  508. max-width: 200px;
  509. -webkit-user-select: text;
  510. -moz-user-select: text;
  511. -ms-user-select: text;
  512. user-select: text;
  513. &.check {
  514. color: green;
  515. }
  516. &.uncheck {
  517. color: red;
  518. }
  519. }
  520. }
  521. }