index.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  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 .button.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 {
  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 {
  380. height: 100%;
  381. width: 100%;
  382. }
  383. .buttonSpaceKiller {
  384. display: none;
  385. width: 0;
  386. margin-left: -20px;
  387. }
  388. .languageJS .button img {
  389. filter: invert(57%) sepia(80%) saturate(2031%) hue-rotate(215deg) brightness(101%) contrast(101%);
  390. }
  391. .languageTS .button img {
  392. filter: invert(64%) sepia(78%) saturate(940%) hue-rotate(323deg) brightness(105%) contrast(103%);
  393. }
  394. .button.run img {
  395. filter: invert(98%) sepia(0%) saturate(7500%) hue-rotate(207deg) brightness(104%) contrast(104%);
  396. }
  397. .button i {
  398. margin-left: 10px;
  399. font-size: 14px;
  400. vertical-align: middle;
  401. }
  402. .button:hover {
  403. cursor: pointer;
  404. background-color: white;
  405. }
  406. .button:hover span {
  407. color: #3f3461;
  408. }
  409. .languageJS .button:hover img {
  410. filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
  411. }
  412. .languageTS .button: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. background-color: #201936;
  608. }
  609. .navbarBottom #statusBar {
  610. line-height:35px;
  611. color: #E74C3C;
  612. font-size: 14px;
  613. padding-left:20px;
  614. }
  615. .navbarBottom .links {
  616. position:absolute;
  617. right: 0;
  618. height:35px;
  619. line-height: 35px;
  620. padding-right:20px;
  621. }
  622. .navbarBottom .links .link {
  623. display: inline-block;
  624. line-height: 35px;
  625. font-size: 16px;
  626. color: white;
  627. }
  628. .navbarBottom .links .link:hover {
  629. background-color:#3F3461;
  630. }
  631. .navbarBottom .links .link a {
  632. text-decoration: none;
  633. line-height: 35px;
  634. padding: 6px 15px;
  635. font-size: 16px;
  636. color: white;
  637. }
  638. /* Save form & co */
  639. .save-layer {
  640. display: none;
  641. position: absolute;
  642. top: 0;
  643. left: 0;
  644. width: 100%;
  645. height: 100%;
  646. background-color: rgba(120, 120, 120, .5);
  647. text-align: center;
  648. }
  649. .save-layer .save-form {
  650. position: absolute;
  651. top: 80px;
  652. left: calc(50% - 205px);
  653. width: 410px;
  654. height: 370px;
  655. padding-top: 15px;
  656. -webkit-border-radius: 4px;
  657. -moz-border-radius: 4px;
  658. border-radius: 4px;
  659. color: white;
  660. font-size: 14px;
  661. }
  662. .save-layer .save-form img {
  663. display: none;
  664. }
  665. .save-layer .save-form .separator {
  666. width: 350px;
  667. border-bottom: 1px solid #999;
  668. margin: auto;
  669. margin-bottom: 10px;
  670. }
  671. .save-layer .save-form input,
  672. .save-layer .save-form textarea {
  673. display:block;
  674. width: 350px;
  675. margin:auto;
  676. margin-bottom: 20px;
  677. padding:5px;
  678. }
  679. .save-layer .save-form .save-form-buttons div {
  680. cursor: pointer;
  681. display: inline-block;
  682. width: 100px;
  683. }
  684. .save-layer .save-form .save-form-buttons div:hover {
  685. font-weight: bold;
  686. }
  687. /* Media queries */
  688. @media (min-width: 1270px) {
  689. .navBar1280 { display: block; }
  690. .navBar1024 { display: none; }
  691. .navBarMobile { display: none; }
  692. .navbar .select .toDisplayBig ul {
  693. column-count: 3;
  694. }
  695. }
  696. @media (max-width: 1270px) and (min-width: 1025px) {
  697. .navBar1280 { display: none; }
  698. .navBar1024 { display: block; }
  699. .navBarMobile { display: none; }
  700. .navbar .categoryTitle {
  701. width: 315px;
  702. }
  703. .navbar .select .toDisplayBig ul {
  704. column-count: 2;
  705. }
  706. .navbar .category .buttonJStoTS {
  707. width: 70px;
  708. }
  709. }