index.css 16 KB

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