index.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  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.light {
  247. background-color: white;
  248. }
  249. .wrapper #jsEditor.dark {
  250. background-color: #1e1e1e;
  251. }
  252. .wrapper #canvasZone {
  253. height: 100%;
  254. }
  255. #renderCanvas {
  256. width: 100%;
  257. height: 100%;
  258. touch-action: none;
  259. display: block;
  260. font-size: 0;
  261. }
  262. .fpsLabel {
  263. display: none;
  264. position: absolute;
  265. top: 80px;
  266. right: 0;
  267. width: 60px;
  268. padding: 2px 8px 5px 0px;
  269. z-index: 4;
  270. background-color: #3f3461;
  271. color:white;
  272. font-size: 18px;
  273. text-align: right;
  274. cursor: default;
  275. pointer-events: none;
  276. user-select: none;
  277. }
  278. .fpsLabel.languageJS {
  279. background-color: #3f3461;
  280. }
  281. .fpsLabel.languageTS {
  282. background-color: #bb464b;
  283. }
  284. .navbar {
  285. height: 55px;
  286. line-height: 55px;
  287. width: 100%;
  288. font-weight: 400;
  289. -webkit-user-select: none;
  290. -moz-user-select: none;
  291. -ms-user-select: none;
  292. user-select: none;
  293. position: relative;
  294. z-index:5;
  295. }
  296. .navbar a {
  297. text-decoration: none;
  298. color: inherit;
  299. }
  300. .navbar .categoryTitle {
  301. display: inline-block;
  302. width: 410px;
  303. vertical-align: top;
  304. background-color: #201936;
  305. padding-right: 20px;
  306. }
  307. .navbar .logo {
  308. vertical-align: top;
  309. height: 55px;
  310. float: left;
  311. }
  312. .navbar .version {
  313. float: right;
  314. vertical-align: top;
  315. height: 55px;
  316. margin-right: 12px;
  317. font-size: 20px;
  318. color: #d5d2ca;
  319. }
  320. .navbar .versionSub {
  321. font-size: 20px;
  322. color: #fff;
  323. font-weight: bold;
  324. }
  325. .languageJS {
  326. background-color: #3f3461;
  327. }
  328. .languageTS {
  329. background-color: #bb464b;
  330. }
  331. .navbar .category {
  332. display: inline-block;
  333. vertical-align: top;
  334. height: 55px;
  335. color: white;
  336. }
  337. .navbar .category.right {
  338. position: absolute;
  339. right: 0;
  340. top: 0;
  341. }
  342. .navbar .category.right .buttonPG.selected {
  343. background-color: white;
  344. }
  345. .navbar .category.right.languageJS .examplesButton.selected img {
  346. filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
  347. }
  348. .navbar .category.right.languageTS .examplesButton.selected img {
  349. filter: invert(34%) sepia(21%) saturate(3832%) hue-rotate(324deg) brightness(88%) contrast(82%);
  350. }
  351. .navbar .category .buttonJStoTS {
  352. display: inline-block;
  353. vertical-align: top;
  354. width: 140px;
  355. height: 55px;
  356. border-top-left-radius: 14px;
  357. margin-left: -15px;
  358. padding-right: 4px;
  359. font-size: 18px;
  360. text-align: center;
  361. cursor: pointer;
  362. }
  363. .navbar .category .buttonJStoTS.floatLeft {
  364. float: left;
  365. }
  366. .button, .buttonPG {
  367. cursor: pointer;
  368. display: inline-block;
  369. width: 55px;
  370. height: 100%;
  371. vertical-align: top;
  372. margin-left: -3px;
  373. line-height: 100%;
  374. text-align: center;
  375. }
  376. .button img, .buttonPG img {
  377. height: 100%;
  378. width: 100%;
  379. }
  380. .buttonSpaceKiller {
  381. display: none;
  382. width: 0;
  383. margin-left: -20px;
  384. }
  385. .languageJS .buttonPG img {
  386. filter: invert(57%) sepia(80%) saturate(2031%) hue-rotate(215deg) brightness(101%) contrast(101%);
  387. }
  388. .languageTS .buttonPG img {
  389. filter: invert(64%) sepia(78%) saturate(940%) hue-rotate(323deg) brightness(105%) contrast(103%);
  390. }
  391. .buttonPG.run img {
  392. filter: invert(98%) sepia(0%) saturate(7500%) hue-rotate(207deg) brightness(104%) contrast(104%);
  393. }
  394. .buttonPG i {
  395. margin-left: 10px;
  396. font-size: 14px;
  397. vertical-align: middle;
  398. }
  399. .buttonPG:hover {
  400. cursor: pointer;
  401. background-color: white;
  402. }
  403. .buttonPG.languageJS:hover span {
  404. color: #3f3461;
  405. }
  406. .buttonPG.languageTS:hover span {
  407. color: #bb464b;
  408. }
  409. .languageJS .buttonPG:hover img {
  410. filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
  411. }
  412. .languageTS .buttonPG:hover img {
  413. filter: invert(34%) sepia(21%) saturate(3832%) hue-rotate(324deg) brightness(88%) contrast(82%);
  414. }
  415. .navbar .select {
  416. position: relative;
  417. }
  418. .navbar .select span {
  419. width: 100%;
  420. height: 55px;
  421. line-height: 55px;
  422. font-family: "acumin-pro-extra-condensed";
  423. font-size: 20px;
  424. }
  425. .navbar .select .subSelect {
  426. position: relative;
  427. }
  428. .navbar .select .toDisplay {
  429. font-family: "acumin-pro-extra-condensed";
  430. position: absolute;
  431. z-index: 10;
  432. right: 0;
  433. top: 55px;
  434. width: 190px;
  435. display: none;
  436. text-transform: uppercase;
  437. background-color: #201936;
  438. }
  439. .navbar .select .toDisplay.currentVersionDisplay {
  440. width: 100%;
  441. display: none;
  442. }
  443. .navbar .select .toDisplay.currentVersionDisplay .option {
  444. margin-left: -3px;
  445. }
  446. .navbar .select .toDisplay .option {
  447. font-size: 20px;
  448. height: 35px;
  449. line-height: 35px;
  450. padding: 1px 5px 1px 15px;
  451. text-align: left;
  452. }
  453. .navbar .select .toDisplay.currentVersionDisplay .option {
  454. text-transform: lowercase;
  455. }
  456. .navbar .select .toDisplay.languageJS {
  457. background-color: #3f3461;
  458. }
  459. .navbar .select .toDisplay.languageJS .option {
  460. background-color: #9379e6;
  461. }
  462. .navbar .select .toDisplay.languageJS .option:hover {
  463. background-color: #bfabff;
  464. }
  465. .navbar .select .toDisplay.languageTS {
  466. background-color: #bb464b;
  467. }
  468. .navbar .select .toDisplay.languageTS .option {
  469. background-color: #e0684b;
  470. }
  471. .navbar .select .toDisplay.languageTS .option:hover {
  472. background-color: #ff7656;
  473. }
  474. .navbar .select .subSelect .toDisplaySub {
  475. position: absolute;
  476. z-index: 10;
  477. left: 100%;
  478. top: 0;
  479. min-width: 100%;
  480. display: none;
  481. }
  482. .navbar .select .subSelect .toDisplaySub .option {
  483. background-color: white;
  484. }
  485. .navbar .select .subSelect .toDisplaySub.languageJS .option {
  486. color: white;
  487. background-color: #bfabff;
  488. }
  489. .navbar .select .subSelect .toDisplaySub.languageJS .option.selected {
  490. color: #9379e6;
  491. background-color: white;
  492. }
  493. .navbar .select .subSelect .toDisplaySub.languageJS .option:hover {
  494. color: white;
  495. background-color: #9379e6;
  496. }
  497. .navbar .select .subSelect .toDisplaySub.languageTS .option {
  498. color: white;
  499. background-color: #ff7656;
  500. }
  501. .navbar .select .subSelect .toDisplaySub.languageTS .option.selected {
  502. color: #e0684b;
  503. background-color: white;
  504. }
  505. .navbar .select .subSelect .toDisplaySub.languageTS .option:hover {
  506. color: white;
  507. background-color: #e0684b;
  508. }
  509. .navbar .select .subSelect .qrCodeImage div {
  510. width: 256px;
  511. height: 256px;
  512. padding: 2px;
  513. }
  514. .navbar .select .subSelect .qrCodeImage.languageJS div {
  515. background-color: #9379e6;
  516. }
  517. .navbar .select .subSelect .qrCodeImage.languageTS div {
  518. background-color: #e0684b;
  519. }
  520. .navbar .select .toDisplayBig.dark {
  521. background-color: #333;
  522. color:white;
  523. }
  524. .navbar .select .toDisplayBig {
  525. border: 1px solid #E0684B;
  526. border-radius: 5px;
  527. position: absolute;
  528. z-index: 10;
  529. top: 32px;
  530. width:550px;
  531. max-height:390px;
  532. overflow-y: auto;
  533. right:0;
  534. position:absolute;
  535. font-size:0.8em;
  536. display: none;
  537. }
  538. .navbar .select .toDisplayBig ul {
  539. column-count: 3;
  540. padding:0;
  541. margin:0;
  542. list-style: none;
  543. }
  544. .navbar .select .toDisplayBig ul li {
  545. padding:0 5px 0 5px;
  546. }
  547. .navbar .select .toDisplayBig ul li:hover {
  548. cursor: pointer;
  549. }
  550. .navbar .select .toDisplayBig ul li.light:hover {
  551. background-color: #d9d9d9;
  552. }
  553. .navbar .select .toDisplayBig ul li.dark:hover {
  554. background-color: #555;
  555. }
  556. .navbar .select .toDisplayBig a {
  557. text-decoration: none;
  558. }
  559. .navbar .select .toDisplayBig a.dark {
  560. color: white;
  561. }
  562. .navbar .select .toDisplayBig a.light {
  563. color: #E0684B;
  564. }
  565. .navbar .check:after {
  566. font-family: 'FontAwesome', sans-serif;
  567. content: "\00a0 \00a0 \00a0 \f14a";
  568. }
  569. .navbar .check.uncheck {
  570. background-color: #8290aa;
  571. }
  572. .navbar .check.uncheck:after {
  573. font-family: 'FontAwesome', sans-serif;
  574. content: "\00a0 \00a0 \00a0 \f096";
  575. }
  576. #errorZone {
  577. display:none;
  578. position: absolute;
  579. width: 50%;
  580. left: 25%;
  581. bottom: 45px;
  582. background-color: #C73228;
  583. padding:20px;
  584. border-radius: 5px;
  585. color:white;
  586. }
  587. #errorZone button {
  588. position:absolute;
  589. top : 3px;
  590. right: 10px;
  591. padding: 0;
  592. cursor: pointer;
  593. background: transparent;
  594. border: 0;
  595. -webkit-appearance: none;
  596. color: #000;
  597. text-shadow: 0 1px 0 #fff;
  598. opacity: .4;
  599. font-size: 1.8em;
  600. }
  601. /* Navbar bottom */
  602. .navbarBottom {
  603. position:relative;
  604. height:35px;
  605. width:100%;
  606. line-height:35px;
  607. }
  608. .navbarBottom #statusBar {
  609. line-height:35px;
  610. color: #E74C3C;
  611. font-size: 14px;
  612. padding-left:20px;
  613. }
  614. .navbarBottom.languageTS #statusBar {
  615. color: #3f3461;
  616. }
  617. .navbarBottom .links {
  618. position:absolute;
  619. right: 0;
  620. height:35px;
  621. line-height: 35px;
  622. padding-right:20px;
  623. }
  624. .navbarBottom .links .link {
  625. display: inline-block;
  626. line-height: 35px;
  627. font-size: 16px;
  628. }
  629. .navbarBottom .links .link:hover {
  630. background-color:white;
  631. color: #3f3461;
  632. }
  633. .navbarBottom .links .link a {
  634. text-decoration: none;
  635. line-height: 35px;
  636. padding: 5px 15px;
  637. font-size: 16px;
  638. color: white;
  639. }
  640. .navbarBottom.languageJS .links .link a:hover {
  641. background-color:white;
  642. color: #3f3461;
  643. }
  644. .navbarBottom.languageTS .links .link a:hover {
  645. background-color:white;
  646. color: #bb464b;
  647. }
  648. /* Save form & co */
  649. .save-layer {
  650. display: none;
  651. position: absolute;
  652. top: 0;
  653. left: 0;
  654. width: 100%;
  655. height: 100%;
  656. background-color: rgba(120, 120, 120, .5);
  657. text-align: center;
  658. }
  659. .save-layer .save-form {
  660. position: absolute;
  661. top: 80px;
  662. left: calc(50% - 205px);
  663. width: 410px;
  664. height: 370px;
  665. padding-top: 15px;
  666. -webkit-border-radius: 4px;
  667. -moz-border-radius: 4px;
  668. border-radius: 4px;
  669. color: white;
  670. font-size: 14px;
  671. }
  672. .save-layer .save-form img {
  673. display: none;
  674. }
  675. .save-layer .save-form .separator {
  676. width: 350px;
  677. border-bottom: 1px solid #999;
  678. margin: auto;
  679. margin-bottom: 10px;
  680. }
  681. .save-layer .save-form input,
  682. .save-layer .save-form textarea {
  683. display:block;
  684. width: 350px;
  685. margin:auto;
  686. margin-bottom: 20px;
  687. padding:5px;
  688. }
  689. .save-layer .save-form .save-form-buttons div {
  690. cursor: pointer;
  691. display: inline-block;
  692. width: 100px;
  693. }
  694. .save-layer .save-form .save-form-buttons div:hover {
  695. font-weight: bold;
  696. }
  697. /* Media queries */
  698. @media (min-width: 1270px) {
  699. .navBar1280 { display: block; }
  700. .navBar1024 { display: none; }
  701. .navBarMobile { display: none; }
  702. .navbar .select .toDisplayBig ul {
  703. column-count: 3;
  704. }
  705. }
  706. @media (max-width: 1270px) and (min-width: 1025px) {
  707. .navBar1280 { display: none; }
  708. .navBar1024 { display: block; }
  709. .navBarMobile { display: none; }
  710. .navbar .categoryTitle {
  711. width: 315px;
  712. }
  713. .navbar .select .toDisplayBig ul {
  714. column-count: 2;
  715. }
  716. .navbar .category .buttonJStoTS {
  717. width: 70px;
  718. }
  719. }