index.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. @import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css");
  2. html,
  3. body {
  4. width: 100%;
  5. height: 100%;
  6. margin: 0;
  7. padding: 0;
  8. overflow: hidden;
  9. font-family: "acumin-pro-condensed";
  10. }
  11. #waitDiv {
  12. position: absolute;
  13. width: 100%;
  14. height: 100%;
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. background: rgba(1,1,1,.8);
  19. opacity: 1;
  20. top:0px;
  21. left:0px;
  22. z-index: 10;
  23. flex-direction: column;
  24. }
  25. #logo-part {
  26. width: 20vw;
  27. display: grid;
  28. grid-template-rows: 100%;
  29. grid-template-columns: 100%;
  30. align-items: center;
  31. }
  32. #waitTitle {
  33. text-align: center;
  34. font-size: 38px;
  35. color: #BB464B;
  36. }
  37. #waitLogo {
  38. grid-column: 1;
  39. grid-row: 1;
  40. margin: auto;
  41. width: 40%;
  42. height: 40%;
  43. }
  44. #waitSpinner {
  45. grid-column: 1;
  46. grid-row: 1;
  47. -webkit-animation: spin1 0.5s infinite linear;
  48. -moz-animation: spin1 0.5s infinite linear;
  49. -o-animation: spin1 0.5s infinite linear;
  50. -ms-animation: spin1 0.5s infinite linear;
  51. animation: spin1 0.5s infinite linear;
  52. -webkit-transform-origin: 50% 50%;
  53. -moz-transform-origin: 50% 50%;
  54. -o-transform-origin: 50% 50%;
  55. transform-origin: 50% 50%;
  56. }
  57. @-webkit-keyframes spin1 {
  58. 0% { -webkit-transform: rotate(0deg);}
  59. 100% { -webkit-transform: rotate(360deg);}
  60. }
  61. @-moz-keyframes spin1 {
  62. 0% { -moz-transform: rotate(0deg);}
  63. 100% { -moz-transform: rotate(360deg);}
  64. }
  65. @-o-keyframes spin1 {
  66. 0% { -o-transform: rotate(0deg);}
  67. 100% { -o-transform: rotate(360deg);}
  68. }
  69. @-ms-keyframes spin1 {
  70. 0% { -ms-transform: rotate(0deg);}
  71. 100% { -ms-transform: rotate(360deg);}
  72. }
  73. @keyframes spin1 {
  74. 0% { transform: rotate(0deg);}
  75. 100% { transform: rotate(360deg);}
  76. }
  77. #embed-host {
  78. z-index: 10;
  79. }
  80. .wrapper {
  81. height: calc(100% - 55px - 35px); /* navbar top and bottom*/
  82. width: calc(100%);
  83. display: -ms-flexbox;
  84. display: flex;
  85. -ms-flex-direction: row;
  86. flex-direction: row;
  87. }
  88. .wrapper .gutter {
  89. background-color: #f7f7f7;
  90. background-repeat: no-repeat;
  91. background-position: 50%;
  92. }
  93. .wrapper .gutter.light {
  94. background-color: #f7f7f7;
  95. }
  96. .wrapper .gutter.dark {
  97. background-color: #333;
  98. }
  99. .wrapper .gutter:hover {
  100. cursor: ew-resize;
  101. }
  102. .wrapper .gutter.gutter-vertical {
  103. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=");
  104. }
  105. .wrapper .gutter.gutter-horizontal {
  106. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
  107. }
  108. .pbt-fade {
  109. opacity:0.5
  110. }
  111. .pbt-darken {
  112. opacity:1
  113. }
  114. .pbt-back-highlight {
  115. background-color:#CDC8F9;
  116. }
  117. .pbt-margin-decor-on {
  118. background-color: #364249;
  119. width:5px;
  120. }
  121. .pbt-back-highlight-dark {
  122. background-color:#364249;
  123. }
  124. .pbt-margin-decor-on-dark {
  125. background-color: #CDC8F9;
  126. width:5px;
  127. }
  128. #exampleList {
  129. z-index: 10;
  130. display: none;
  131. position: absolute;
  132. top: 55px;
  133. right: 0;
  134. width: 400px;
  135. height: calc(100% - 90px); /* 55px + 35px */
  136. overflow-y: auto;
  137. background-color: white;
  138. }
  139. #exampleList #exampleBanner {
  140. text-align: center;
  141. padding: 1px 0;
  142. }
  143. #exampleList #exampleBanner.languageJS {
  144. background-color: #201936;
  145. }
  146. #exampleList #exampleBanner.languageTS {
  147. background-color: #bb464b;
  148. }
  149. #exampleList #exampleBanner h1 {
  150. width: 100%;
  151. text-align: center;
  152. font-weight: normal;
  153. color: white;
  154. font-size: 25px;
  155. line-height: 32px;
  156. }
  157. #exampleList #exampleBanner h1 img {
  158. display: none;
  159. float: right;
  160. width: 36px;
  161. margin-right: 10px;
  162. margin-left: -45px;
  163. filter: invert(98%) sepia(0%) saturate(7500%) hue-rotate(207deg) brightness(104%) contrast(104%);
  164. }
  165. #exampleList .horizontalSeparator {
  166. width: 80%;
  167. height: 0;
  168. display: block;
  169. margin: 0 auto 20px auto;
  170. }
  171. #exampleList #filterBar {
  172. width: 80%;
  173. margin-left: 10%;
  174. }
  175. #exampleList #filterBarClear {
  176. display: none;
  177. height: 10px;
  178. margin-left: -19px;
  179. cursor: pointer;
  180. }
  181. #exampleList #noResultsContainer p {
  182. width: 100%;
  183. text-align: center;
  184. font-weight: 300;
  185. }
  186. #exampleList .categoryContainer p {
  187. margin-left: 5px;
  188. font-size: 20px;
  189. font-weight: 200;
  190. word-wrap: break-word;
  191. }
  192. #exampleList .categoryContainer .itemLine {
  193. cursor: pointer;
  194. background-color: #ebebeb;
  195. height: 120px;
  196. overflow: hidden;
  197. clear: both;
  198. margin: 5px;
  199. margin-bottom: 10px;
  200. }
  201. #exampleList .categoryContainer .itemLine img {
  202. display: inline-block;
  203. max-height: 100%;
  204. max-width: 120px;
  205. border: 0;
  206. }
  207. #exampleList .categoryContainer .itemLine .itemContent {
  208. display: inline-block;
  209. width: calc(100% - 125px);
  210. height: 100%;
  211. vertical-align: top;
  212. padding: 5px;
  213. box-sizing: border-box;
  214. }
  215. #exampleList .categoryContainer .itemLine .itemContent .itemContentLink {
  216. height: 100%;
  217. }
  218. #exampleList .categoryContainer .itemLine .itemContent .itemContentLink h3 {
  219. margin: 0;
  220. font-size: 18px;
  221. margin-bottom: 5px;
  222. text-decoration: none;
  223. }
  224. #exampleList .categoryContainer .itemLine .itemContent .itemContentLink p {
  225. margin: 0;
  226. font-size: 15px;
  227. margin-bottom: 3px;
  228. }
  229. #exampleList .categoryContainer .itemLine .itemContent .itemLineDocLink {
  230. position: relative;
  231. bottom: 20px;
  232. font-size: 15px;
  233. text-decoration: underline;
  234. color: #BB464B;
  235. }
  236. #exampleList .categoryContainer .itemLine .itemContent .itemLinePGLink {
  237. display: none;
  238. position: relative;
  239. float: right;
  240. bottom: 20px;
  241. text-align: right;
  242. font-size: 15px;
  243. text-decoration: underline;
  244. color: #BB464B;
  245. }
  246. .wrapper #jsEditor {
  247. padding-top: 5px;
  248. }
  249. .wrapper #jsEditor.light {
  250. background-color: white;
  251. }
  252. .wrapper #jsEditor.dark {
  253. background-color: #1e1e1e;
  254. }
  255. .wrapper #canvasZone {
  256. height: 100%;
  257. }
  258. #renderCanvas {
  259. width: 100%;
  260. height: 100%;
  261. touch-action: none;
  262. display: block;
  263. font-size: 0;
  264. }
  265. .fpsLabel {
  266. display: none;
  267. position: absolute;
  268. top: 80px;
  269. right: 0;
  270. width: 60px;
  271. padding: 2px 8px 5px 0px;
  272. z-index: 4;
  273. background-color: #3f3461;
  274. color:white;
  275. font-size: 18px;
  276. text-align: right;
  277. cursor: default;
  278. pointer-events: none;
  279. user-select: none;
  280. }
  281. .fpsLabel.languageJS {
  282. background-color: #3f3461;
  283. }
  284. .fpsLabel.languageTS {
  285. background-color: #bb464b;
  286. }
  287. .navbar {
  288. height: 55px;
  289. line-height: 55px;
  290. width: 100%;
  291. font-weight: 400;
  292. -webkit-user-select: none;
  293. -moz-user-select: none;
  294. -ms-user-select: none;
  295. user-select: none;
  296. position: relative;
  297. z-index:5;
  298. }
  299. .navbar a {
  300. text-decoration: none;
  301. color: inherit;
  302. }
  303. .navbar .categoryTitle {
  304. display: inline-block;
  305. width: 410px;
  306. vertical-align: top;
  307. background-color: #201936;
  308. padding-right: 20px;
  309. }
  310. .navbar .logo {
  311. vertical-align: top;
  312. height: 55px;
  313. float: left;
  314. }
  315. .navbar .version {
  316. float: right;
  317. vertical-align: top;
  318. height: 55px;
  319. margin-right: 20px;
  320. font-size: 20px;
  321. color: #d5d2ca;
  322. }
  323. .navbar .versionSub {
  324. font-size: 20px;
  325. color: #fff;
  326. font-weight: bold;
  327. }
  328. .languageJS {
  329. background-color: #3f3461;
  330. }
  331. .languageTS {
  332. background-color: #bb464b;
  333. }
  334. .navbar .category {
  335. display: inline-block;
  336. vertical-align: top;
  337. height: 55px;
  338. color: white;
  339. }
  340. .navbar .category.right {
  341. position: absolute;
  342. right: 0;
  343. top: 0;
  344. }
  345. .navbar .category.right .buttonPG.selected {
  346. background-color: white;
  347. }
  348. .navbar .category.right.languageJS .examplesButton.selected img {
  349. filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
  350. }
  351. .navbar .category.right.languageTS .examplesButton.selected img {
  352. filter: invert(34%) sepia(21%) saturate(3832%) hue-rotate(324deg) brightness(88%) contrast(82%);
  353. }
  354. .navbar .category .buttonJStoTS {
  355. display: inline-block;
  356. vertical-align: top;
  357. width: 140px;
  358. height: 55px;
  359. border-top-left-radius: 14px;
  360. margin-left: -15px;
  361. padding-right: 4px;
  362. font-size: 18px;
  363. text-align: center;
  364. cursor: pointer;
  365. }
  366. .navbar .category .buttonJStoTS.floatLeft {
  367. float: left;
  368. }
  369. .button, .buttonPG {
  370. cursor: pointer;
  371. display: inline-block;
  372. width: 55px;
  373. height: 100%;
  374. vertical-align: top;
  375. margin-left: -3px;
  376. line-height: 100%;
  377. text-align: center;
  378. }
  379. .button img, .buttonPG img {
  380. height: 100%;
  381. width: 100%;
  382. }
  383. .buttonSpaceKiller {
  384. display: none;
  385. width: 0;
  386. margin-left: -20px;
  387. }
  388. .languageJS .buttonPG img {
  389. filter: invert(57%) sepia(80%) saturate(2031%) hue-rotate(215deg) brightness(101%) contrast(101%);
  390. }
  391. .languageTS .buttonPG img {
  392. filter: invert(64%) sepia(78%) saturate(940%) hue-rotate(323deg) brightness(105%) contrast(103%);
  393. }
  394. .buttonPG.run img {
  395. filter: invert(98%) sepia(0%) saturate(7500%) hue-rotate(207deg) brightness(104%) contrast(104%);
  396. }
  397. .buttonPG i {
  398. margin-left: 10px;
  399. font-size: 14px;
  400. vertical-align: middle;
  401. }
  402. .buttonPG:hover {
  403. cursor: pointer;
  404. background-color: white;
  405. }
  406. .buttonPG.languageJS:hover span {
  407. color: #3f3461;
  408. }
  409. .buttonPG.languageTS:hover span {
  410. color: #bb464b;
  411. }
  412. .languageJS .buttonPG:hover img {
  413. filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
  414. }
  415. .languageTS .buttonPG:hover img {
  416. filter: invert(34%) sepia(21%) saturate(3832%) hue-rotate(324deg) brightness(88%) contrast(82%);
  417. }
  418. .navbar .select {
  419. position: relative;
  420. }
  421. .navbar .select span {
  422. width: 100%;
  423. height: 55px;
  424. line-height: 55px;
  425. font-family: "acumin-pro-extra-condensed";
  426. font-size: 20px;
  427. }
  428. .navbar .select .subSelect {
  429. position: relative;
  430. }
  431. .navbar .select .toDisplay {
  432. font-family: "acumin-pro-extra-condensed";
  433. position: absolute;
  434. z-index: 10;
  435. right: 0;
  436. top: 55px;
  437. width: 190px;
  438. display: none;
  439. text-transform: uppercase;
  440. background-color: #201936;
  441. }
  442. .navbar .select .toDisplay.currentVersionDisplay {
  443. width: 100%;
  444. display: none;
  445. }
  446. .navbar .select .toDisplay.currentVersionDisplay .option {
  447. margin-left: -3px;
  448. }
  449. .navbar .select .toDisplay .option {
  450. font-size: 20px;
  451. height: 35px;
  452. line-height: 35px;
  453. padding: 1px 5px 1px 15px;
  454. text-align: left;
  455. }
  456. .navbar .select .toDisplay.currentVersionDisplay .option {
  457. text-transform: lowercase;
  458. }
  459. .navbar .select .toDisplay.languageJS {
  460. background-color: #3f3461;
  461. }
  462. .navbar .select .toDisplay.languageJS .option {
  463. background-color: #9379e6;
  464. }
  465. .navbar .select .toDisplay.languageJS .option:hover {
  466. background-color: #bfabff;
  467. }
  468. .navbar .select .toDisplay.languageTS {
  469. background-color: #bb464b;
  470. }
  471. .navbar .select .toDisplay.languageTS .option {
  472. background-color: #e0684b;
  473. }
  474. .navbar .select .toDisplay.languageTS .option:hover {
  475. background-color: #ff7656;
  476. }
  477. .navbar .select .subSelect .toDisplaySub {
  478. position: absolute;
  479. z-index: 10;
  480. left: 100%;
  481. top: 0;
  482. min-width: 100%;
  483. display: none;
  484. }
  485. .navbar .select .subSelect .toDisplaySub .option {
  486. background-color: white;
  487. }
  488. .navbar .select .subSelect .toDisplaySub.languageJS .option {
  489. color: white;
  490. background-color: #bfabff;
  491. }
  492. .navbar .select .subSelect .toDisplaySub.languageJS .option.selected {
  493. color: #9379e6;
  494. background-color: white;
  495. }
  496. .navbar .select .subSelect .toDisplaySub.languageJS .option:hover {
  497. color: white;
  498. background-color: #9379e6;
  499. }
  500. .navbar .select .subSelect .toDisplaySub.languageTS .option {
  501. color: white;
  502. background-color: #ff7656;
  503. }
  504. .navbar .select .subSelect .toDisplaySub.languageTS .option.selected {
  505. color: #e0684b;
  506. background-color: white;
  507. }
  508. .navbar .select .subSelect .toDisplaySub.languageTS .option:hover {
  509. color: white;
  510. background-color: #e0684b;
  511. }
  512. .navbar .select .subSelect .qrCodeImage div {
  513. width: 256px;
  514. height: 256px;
  515. padding: 2px;
  516. }
  517. .navbar .select .subSelect .qrCodeImage.languageJS div {
  518. background-color: #9379e6;
  519. }
  520. .navbar .select .subSelect .qrCodeImage.languageTS div {
  521. background-color: #e0684b;
  522. }
  523. .navbar .select .toDisplayBig.dark {
  524. background-color: #333;
  525. color:white;
  526. }
  527. .navbar .select .toDisplayBig {
  528. border: 1px solid #E0684B;
  529. border-radius: 5px;
  530. position: absolute;
  531. z-index: 10;
  532. top: 32px;
  533. width:550px;
  534. max-height:390px;
  535. overflow-y: auto;
  536. right:0;
  537. position:absolute;
  538. font-size:0.8em;
  539. display: none;
  540. }
  541. .navbar .select .toDisplayBig ul {
  542. column-count: 3;
  543. padding:0;
  544. margin:0;
  545. list-style: none;
  546. }
  547. .navbar .select .toDisplayBig ul li {
  548. padding:0 5px 0 5px;
  549. }
  550. .navbar .select .toDisplayBig ul li:hover {
  551. cursor: pointer;
  552. }
  553. .navbar .select .toDisplayBig ul li.light:hover {
  554. background-color: #d9d9d9;
  555. }
  556. .navbar .select .toDisplayBig ul li.dark:hover {
  557. background-color: #555;
  558. }
  559. .navbar .select .toDisplayBig a {
  560. text-decoration: none;
  561. }
  562. .navbar .select .toDisplayBig a.dark {
  563. color: white;
  564. }
  565. .navbar .select .toDisplayBig a.light {
  566. color: #E0684B;
  567. }
  568. .navbar .check:after {
  569. font-family: 'FontAwesome', sans-serif;
  570. content: "\00a0 \00a0 \00a0 \f14a";
  571. }
  572. .navbar .check.uncheck {
  573. background-color: #8290aa;
  574. }
  575. .navbar .check.uncheck:after {
  576. font-family: 'FontAwesome', sans-serif;
  577. content: "\00a0 \00a0 \00a0 \f096";
  578. }
  579. #errorZone {
  580. display:none;
  581. position: absolute;
  582. width: 50%;
  583. left: 25%;
  584. bottom: 45px;
  585. background-color: #C73228;
  586. padding:20px;
  587. border-radius: 5px;
  588. color:white;
  589. }
  590. #errorZone button {
  591. position:absolute;
  592. top : 3px;
  593. right: 10px;
  594. padding: 0;
  595. cursor: pointer;
  596. background: transparent;
  597. border: 0;
  598. -webkit-appearance: none;
  599. color: #000;
  600. text-shadow: 0 1px 0 #fff;
  601. opacity: .4;
  602. font-size: 1.8em;
  603. }
  604. /* Navbar bottom */
  605. .navbarBottom {
  606. position:relative;
  607. height:35px;
  608. width:100%;
  609. line-height:35px;
  610. }
  611. .navbarBottom #statusBar {
  612. line-height:35px;
  613. color: #E74C3C;
  614. font-size: 14px;
  615. padding-left:20px;
  616. }
  617. .navbarBottom.languageTS #statusBar {
  618. color: #3f3461;
  619. }
  620. .navbarBottom .links {
  621. position:absolute;
  622. right: 0;
  623. height:35px;
  624. line-height: 35px;
  625. padding-right:20px;
  626. }
  627. .navbarBottom .links .link {
  628. display: inline-block;
  629. line-height: 35px;
  630. font-size: 16px;
  631. }
  632. .navbarBottom .links .link:hover {
  633. background-color:white;
  634. color: #3f3461;
  635. }
  636. .navbarBottom .links .link a {
  637. text-decoration: none;
  638. line-height: 35px;
  639. padding: 6px 15px;
  640. font-size: 16px;
  641. color: white;
  642. }
  643. .navbarBottom.languageJS .links .link a:hover {
  644. background-color:white;
  645. color: #3f3461;
  646. }
  647. .navbarBottom.languageTS .links .link a:hover {
  648. background-color:white;
  649. color: #bb464b;
  650. }
  651. /* Save form & co */
  652. .save-layer {
  653. display: none;
  654. position: absolute;
  655. top: 0;
  656. left: 0;
  657. width: 100%;
  658. height: 100%;
  659. background-color: rgba(120, 120, 120, .5);
  660. text-align: center;
  661. }
  662. .save-layer .save-form {
  663. position: absolute;
  664. top: 80px;
  665. left: calc(50% - 205px);
  666. width: 410px;
  667. height: 370px;
  668. padding-top: 15px;
  669. -webkit-border-radius: 4px;
  670. -moz-border-radius: 4px;
  671. border-radius: 4px;
  672. color: white;
  673. font-size: 14px;
  674. }
  675. .save-layer .save-form img {
  676. display: none;
  677. }
  678. .save-layer .save-form .separator {
  679. width: 350px;
  680. border-bottom: 1px solid #999;
  681. margin: auto;
  682. margin-bottom: 10px;
  683. }
  684. .save-layer .save-form input,
  685. .save-layer .save-form textarea {
  686. display:block;
  687. width: 350px;
  688. margin:auto;
  689. margin-bottom: 20px;
  690. padding:5px;
  691. }
  692. .save-layer .save-form .save-form-buttons div {
  693. cursor: pointer;
  694. display: inline-block;
  695. width: 100px;
  696. }
  697. .save-layer .save-form .save-form-buttons div:hover {
  698. font-weight: bold;
  699. }
  700. /* Media queries */
  701. @media (min-width: 1270px) {
  702. .navBar1280 { display: block; }
  703. .navBar1024 { display: none; }
  704. .navBarMobile { display: none; }
  705. .navbar .select .toDisplayBig ul {
  706. column-count: 3;
  707. }
  708. }
  709. @media (max-width: 1270px) and (min-width: 1025px) {
  710. .navBar1280 { display: none; }
  711. .navBar1024 { display: block; }
  712. .navBarMobile { display: none; }
  713. .navbar .categoryTitle {
  714. width: 315px;
  715. }
  716. .navbar .select .toDisplayBig ul {
  717. column-count: 2;
  718. }
  719. .navbar .category .buttonJStoTS {
  720. width: 70px;
  721. }
  722. }