ardublockly.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215
  1. /**
  2. * @license Licensed under the Apache License, Version 2.0 (the "License"):
  3. * http://www.apache.org/licenses/LICENSE-2.0
  4. *
  5. * @fileoverview CSS file for the Ardublockly application.
  6. *
  7. * There are a lot of '!important' tags in this file as a lot of the rules set
  8. * here go against the css rules from the Materialize framework.
  9. */
  10. /******************/
  11. /* Font sources */
  12. /******************/
  13. @font-face {
  14. font-family: "GT Walsheim Pro Trial";
  15. src: url("font/gt/GT-Walsheim-Pro-Trial-Regular.otf") format("opentype");
  16. }
  17. @font-face {
  18. font-family: "GT Walsheim Pro Trial Bold";
  19. src: url("font/gt/GT-Walsheim-Pro-Trial-Bold.otf") format("opentype");
  20. }
  21. /**********/
  22. /* HTML */
  23. /**********/
  24. html, body {
  25. height: 100% !important;
  26. padding: 0;
  27. margin: 0;
  28. }
  29. body {
  30. background-color: #fff;
  31. -moz-user-select: -moz-none;
  32. -khtml-user-select: none;
  33. -webkit-user-select: none;
  34. -ms-user-select: none;
  35. user-select: none;
  36. }
  37. /*********************/
  38. /* Arduino Colours */
  39. /*********************/
  40. .arduino_teal {
  41. background-color: #2c4fcd;
  42. }
  43. .arduino_teal_dark {
  44. background-color: #2c4fcd;
  45. /* background-color: #00878F; from community logo */
  46. }
  47. .arduino_teal_light {
  48. background-color: #2c4fcd;
  49. }
  50. .arduino_orange {
  51. background-color: #E47128;
  52. }
  53. .arduino_yellow {
  54. /* background-color: rgba(255, 204, 51, 1); */
  55. background-color: #f7c11e;
  56. /* background-color: #E5AD24; from community logo */
  57. }
  58. .arduino_brown {
  59. background-color: #8C7965;
  60. }
  61. .arduino_red {
  62. background-color: #e03021;
  63. }
  64. /********************/
  65. /* Navigation bar */
  66. /********************/
  67. .nav-fixed {
  68. border-radius: 0;
  69. position: inherit;
  70. margin-bottom: 30px;
  71. z-index: 997 !important;
  72. }
  73. @media only screen and (min-width: 993px) {
  74. body {
  75. padding-top: 64px;
  76. }
  77. .nav-fixed {
  78. position: fixed;
  79. right: 0;
  80. left: 0;
  81. top: 0;
  82. margin-bottom: 0px;
  83. z-index: 997;
  84. }
  85. }
  86. div.side-nav {
  87. background-color: #eeeeee;
  88. border-radius: 0px 0px 25px 0px;
  89. border-left: 4px solid #ffffff;
  90. border-bottom: 4px solid #dddddd;
  91. border-right: 4px solid #dddddd;
  92. border-bottom: 4px solid #dddddd;
  93. line-height: 25px;
  94. }
  95. /* Side nav Logo */
  96. ul.side-nav li.logo {
  97. text-align: center;
  98. margin: 0px !important;
  99. padding: 0px 0px !important;
  100. border: none !important;
  101. height: 145px;
  102. background-color: transparent;
  103. }
  104. ul.side-nav li.logo:hover {
  105. background-color: transparent;
  106. }
  107. ul.side-nav li.side-menu-end {
  108. background-color: #eeeeee;
  109. border-radius: 0px 0px 25px 0px;
  110. border-left: 4px solid #ffffff;
  111. border-bottom: 4px solid #dddddd;
  112. border-right: 4px solid #dddddd;
  113. border-bottom: 4px solid #dddddd;
  114. line-height: 25px;
  115. }
  116. /************************************/
  117. /* Blocks, Arduino, and XML areas */
  118. /************************************/
  119. .content {
  120. margin: 0;
  121. padding: 0;
  122. width: 100%;
  123. background-color: #ffffff;
  124. }
  125. .height_transition {
  126. transition: height 0.2s ease-out;
  127. -ms-transition: height 0.2s ease-out;
  128. -moz-transition: height 0.2s ease-out;
  129. -webkit-transition: height 0.2s ease-out;
  130. }
  131. #blocks_panel {
  132. padding: 0px;
  133. position: relative !important;
  134. min-height: 480px;
  135. }
  136. .blocks_panel_large {
  137. height: -moz-calc(100vh - 111px);
  138. /* Firefox */
  139. height: -webkit-calc(100vh - 111px);
  140. /* WebKit */
  141. height: -o-calc(100vh - 111px);
  142. /* Opera */
  143. height: calc(100vh - 111px);
  144. /* Standard */
  145. }
  146. .blocks_panel_small {
  147. height: -moz-calc(100vh - 350px);
  148. /* Firefox */
  149. height: -webkit-calc(100vh - 350px);
  150. /* WebKit */
  151. height: -o-calc(100vh - 350px);
  152. /* Opera */
  153. height: calc(100vh - 350px);
  154. /* Standard */
  155. }
  156. #content_blocks {
  157. margin: 0;
  158. padding: 0;
  159. min-height: 480px;
  160. height: -moz-calc(100vh - 111px);
  161. /* Firefox */
  162. height: -webkit-calc(100vh - 111px);
  163. /* WebKit */
  164. height: -o-calc(100vh - 111px);
  165. /* Opera */
  166. height: calc(100vh - 111px);
  167. /* Standard */
  168. }
  169. #content_xml {
  170. resize: none;
  171. outline: none;
  172. border: none;
  173. padding: 0px 0px;
  174. font-family: monospace;
  175. font-size: smaller;
  176. overflow: hidden;
  177. font-style: 0.2em !important;
  178. min-height: 384px;
  179. overflow: auto;
  180. }
  181. .content_xml_large {
  182. height: -moz-calc(100vh - 286px);
  183. /* Firefox */
  184. height: -webkit-calc(100vh - 286px);
  185. /* WebKit */
  186. height: -o-calc(100vh - 286px);
  187. /* Opera */
  188. height: calc(100vh - 286px);
  189. /* Standard */
  190. }
  191. .content_xml_small {
  192. height: -moz-calc(100vh - 446px);
  193. /* Firefox */
  194. height: -webkit-calc(100vh - 446px);
  195. /* WebKit */
  196. height: -o-calc(100vh - 446px);
  197. /* Opera */
  198. height: calc(100vh - 446px);
  199. /* Standard */
  200. }
  201. /* The materialize framework changes height of the div to show or hide */
  202. /* the collapsible elements. */
  203. #content_arduino {
  204. resize: none;
  205. outline: none;
  206. border: none;
  207. padding: 8px 8px;
  208. font-size: 0.9rem;
  209. font-family: monospace;
  210. overflow: auto;
  211. -moz-user-select: text;
  212. -khtml-user-select: text;
  213. -webkit-user-select: text;
  214. -ms-user-select: text;
  215. user-select: text;
  216. }
  217. .content_arduino_large {
  218. height: -moz-calc(100vh - 280px);
  219. /* Firefox */
  220. height: -webkit-calc(100vh - 280px);
  221. /* WebKit */
  222. height: -o-calc(100vh - 280px);
  223. /* Opera */
  224. height: calc(100vh - 280px);
  225. /* Standard */
  226. }
  227. .content_arduino_small {
  228. height: -moz-calc(100vh - 443px);
  229. /* Firefox */
  230. height: -webkit-calc(100vh - 443px);
  231. /* WebKit */
  232. height: -o-calc(100vh - 443px);
  233. /* Opera */
  234. height: calc(100vh - 443px);
  235. /* Standard */
  236. }
  237. /* serial monitor card form */
  238. div.card-serialMonitor {
  239. height: 100%;
  240. width: auto;
  241. top: 0;
  242. right: 0;
  243. transition: 0.5s;
  244. padding-top: 0px;
  245. }
  246. .content_arduino_SMonitor {
  247. resize: none;
  248. outline: none;
  249. border: none;
  250. padding: 0px 0px;
  251. font-size: 0.9rem;
  252. font-family: Nunito, sans-serif;
  253. overflow: auto;
  254. -moz-user-select: text;
  255. -khtml-user-select: text;
  256. -webkit-user-select: text;
  257. -ms-user-select: text;
  258. user-select: text;
  259. }
  260. content_arduino_SMonitor textarea {
  261. height: -moz-calc(100vh - 595px);
  262. /* Firefox */
  263. height: -webkit-calc(100vh - 595px);
  264. /* WebKit */
  265. height: -o-calc(100vh - 595px);
  266. /* Opera */
  267. height: calc(100vh - 595px);
  268. }
  269. /************************/
  270. /* Modals and content */
  271. /************************/
  272. /* Large modal section blocks */
  273. .modal_section {
  274. margin: 24px 0px;
  275. width: 100%;
  276. }
  277. /* Blocks tick label as a title */
  278. .modal_label_title {
  279. font-size: 1.6rem !important;
  280. color: black;
  281. }
  282. /* Blocks modal divider */
  283. #blocks_menu_body .divider {
  284. margin-top: 4px;
  285. margin-bottom: 8px;
  286. }
  287. /* Footer buttons padding */
  288. .modal_right_button {
  289. margin: 0px 0px 0px 48px !important;
  290. }
  291. /* Small modal responsive design */
  292. .modal_small {
  293. height: auto !important;
  294. min-height: 200px;
  295. }
  296. .modal_small .modal-content {
  297. margin-top: 0;
  298. padding-top: 12px;
  299. margin-bottom: 0;
  300. padding-bottom: 0;
  301. }
  302. .modal_small input {
  303. width: 100%;
  304. }
  305. .modal_small form {
  306. height: auto !important;
  307. min-height: 150px;
  308. }
  309. @media only screen and (min-width: 0) {
  310. .modal_small {
  311. max-width: 75% !important;
  312. width: 75% !important;
  313. }
  314. }
  315. @media only screen and (min-width: 601px) {
  316. .modal_small {
  317. max-width: 55% !important;
  318. width: 55% !important;
  319. }
  320. }
  321. @media only screen and (min-width: 993px) {
  322. .modal_small {
  323. max-width: 35% !important;
  324. width: 35% !important;
  325. }
  326. }
  327. /*******************************/
  328. /* Modals for Serial Monitor */
  329. /*******************************/
  330. .modal_serialMonitor {
  331. height: auto !important;
  332. min-height: 200px;
  333. width: 500px;
  334. position: fixed;
  335. z-index: 1002;
  336. overflow: hidden;
  337. margin: 10px, 0, 10px, 0;
  338. }
  339. .modal_serialMonitor .modal-content {
  340. margin-top: 0;
  341. padding-top: 2px;
  342. margin-right: 0;
  343. padding-bottom: 1px;
  344. margin-bottom: 0;
  345. padding-bottom: 2px;
  346. margin-left: 0;
  347. padding-left: 1px;
  348. }
  349. .modal_serialMonitor .row {
  350. margin-top: 0;
  351. padding-top: 0;
  352. margin-right: 0;
  353. padding-bottom: 1px;
  354. margin-bottom: 0;
  355. padding-bottom: 0;
  356. margin-left: 0;
  357. padding-left: 1px;
  358. }
  359. .modal_serialMonitor input {
  360. width: 90%;
  361. }
  362. .modal_serialMonitor form {
  363. height: auto !important;
  364. min-height: 150px;
  365. }
  366. .modal_serialMonitor .btn, .btn-large, .btn-flat {
  367. border: none;
  368. border-radius: 1px;
  369. display: inline-block;
  370. height: 36px;
  371. line-height: 36px;
  372. padding: 0 1rem;
  373. text-transform: uppercase;
  374. vertical-align: middle;
  375. -webkit-tap-highlight-color: transparent;
  376. }
  377. /*******************************/
  378. /* Sidebar for Serial Monitor */
  379. /*******************************/
  380. .side-nav-serialMonitor .btn-title {
  381. border: none;
  382. border-radius: 0.2px;
  383. display: inline-block;
  384. background-color: #ffffff;
  385. height: 36px;
  386. line-height: 36px;
  387. padding: 0 1rem;
  388. text-transform: uppercase;
  389. vertical-align: middle;
  390. -webkit-tap-highlight-color: transparent;
  391. }
  392. .side-nav-serialMonitor .btn, .btn-flat {
  393. border: none;
  394. border-radius: 0.2px;
  395. display: inline-block;
  396. height: 36px;
  397. line-height: 36px;
  398. padding: 0 1rem;
  399. vertical-align: middle;
  400. -webkit-tap-highlight-color: transparent;
  401. }
  402. .side-nav-serialMonitor .row {
  403. margin-top: 0;
  404. padding-top: 0;
  405. margin-right: 0;
  406. padding-bottom: 1px;
  407. margin-bottom: 3px;
  408. padding-bottom: 0;
  409. margin-left: 0;
  410. padding-left: 2px;
  411. }
  412. .side-nav-serialMonitor [type="checkbox"].filled-in:checked+label:after {
  413. top: 0;
  414. width: 20px;
  415. height: 20px;
  416. border: 2px solid #64B5F6;
  417. background-color: #64B5F6;
  418. z-index: 0;
  419. }
  420. /*******************************/
  421. /* Card for sidebar icon */
  422. /*******************************/
  423. .card-icon-area {
  424. /* border-top: 1px solid #ddd; */
  425. border-right: 1px solid #ddd;
  426. border-left: 6px solid #3258cd;
  427. /* border-bottom: 1px solid #ddd; */
  428. background-color: #fff;
  429. margin: 0;
  430. width: 45px;
  431. height: auto !important;
  432. z-index: 995;
  433. overflow: hidden;
  434. }
  435. .card-icon {
  436. margin: 0;
  437. width: 40px;
  438. height: 40px;
  439. border-bottom: 1px solid #ddd;
  440. z-index: 9999;
  441. }
  442. /*******************************/
  443. /* Card for Serial Monitor */
  444. /*******************************/
  445. .card-serialMonitor .btn-title {
  446. border: none;
  447. border-radius: 0.2px;
  448. display: inline-block;
  449. background-color: #ffffff;
  450. height: 36px;
  451. line-height: 36px;
  452. padding: 0 1rem;
  453. vertical-align: middle;
  454. -webkit-tap-highlight-color: transparent;
  455. }
  456. .card-serialMonitor .btn, .btn-flat {
  457. border: none;
  458. border-radius: 2px;
  459. display: inline-block;
  460. height: 35px;
  461. line-height: 32px;
  462. padding: 0.25rem 0.5rem;
  463. vertical-align: middle;
  464. -webkit-tap-highlight-color: transparent;
  465. }
  466. .card-serialMonitor .input-field {
  467. position: relative;
  468. margin-top: 0;
  469. }
  470. .card-serialMonitor .code-header {
  471. height: 45px;
  472. padding: 0px 6px;
  473. border-bottom: 1px solid #ddd;
  474. }
  475. .card-serialMonitor .code-header {
  476. color: #000200;
  477. }
  478. .card-serialMonitor .code-header .code-header-logo {
  479. width: 3rem;
  480. font-size: 1.6rem;
  481. line-height: 2.5rem;
  482. font-weight: bold;
  483. display: block;
  484. float: left;
  485. text-align: center;
  486. margin-right: 1rem;
  487. }
  488. .card-serialMonitor [type="checkbox"].filled-in:checked+label:after {
  489. top: 0;
  490. width: 20px;
  491. height: 20px;
  492. border: 2px solid #64B5F6;
  493. background-color: #64B5F6;
  494. }
  495. /*****************/
  496. /* Sketch name */
  497. /*****************/
  498. .sketch_name_wrapper {
  499. display: inline-block;
  500. padding-left: 30px;
  501. }
  502. .sketch_name_icon {
  503. display: inline !important;
  504. font-size: 1.2rem !important;
  505. padding-top: 3px;
  506. margin-left: -5px;
  507. }
  508. .sketch_name {
  509. width: auto !important;
  510. max-width: 400px;
  511. line-height: 64px;
  512. height: 2rem !important;
  513. font-size: 1.2rem !important;
  514. border-bottom: 0px solid #EEE !important;
  515. font-style: italic;
  516. }
  517. .sketch_name:focus {
  518. border-bottom: 1px solid #EEE !important;
  519. }
  520. @media only screen and (min-width: 0px) and (max-width: 600px) {
  521. .sketch_name {
  522. max-width: 200px;
  523. }
  524. /* Remove the "Ardublockly title only leaving the sketch name */
  525. .app_title {
  526. display: none;
  527. }
  528. }
  529. @media only screen and (min-width: 600px) {
  530. .sketch_name {
  531. max-width: 275px;
  532. }
  533. }
  534. @media only screen and (min-width: 993px) {
  535. .sketch_name {
  536. max-width: 350px;
  537. }
  538. }
  539. /************/
  540. /* Others */
  541. /************/
  542. /* Edit logo for code and xml collapsibles */
  543. .collapsible_logo {
  544. width: 3rem;
  545. font-size: 1.6rem;
  546. line-height: 3rem;
  547. font-weight: bold;
  548. display: block;
  549. float: left;
  550. text-align: center;
  551. margin-right: 1rem;
  552. }
  553. /* Colours for the new and deleted code highlighting */
  554. .code_highlight_new {
  555. background-color: rgba(255, 204, 51, 0.5);
  556. /* Arduino yellow 50% */
  557. }
  558. .code_highlight_deleted {
  559. background-color: #FDBEBE;
  560. }
  561. /*****************************/
  562. /* Overwriting Blockly CSS */
  563. /*****************************/
  564. /* Blockly text for the following components: */
  565. .blocklyTreeLabel,
  566. /* Toolbox */
  567. .blocklyText,
  568. /* Block */
  569. .goog-menuitem-content {
  570. /* Drop down menu */
  571. font-family: "Nunito", sans-serif!important;
  572. }
  573. /* Entire Blockly area, Toolbox dranw on top */
  574. .blocklySvg {
  575. border-width: 0 !important;
  576. }
  577. /* Toolbox */
  578. .blocklyToolboxDiv {
  579. border-color: #fcfcfc !important;
  580. border-width: 0px 1px 0px 0px !important;
  581. -webkit-border-radius: 0px 4px 4px 0px !important;
  582. -moz-border-radius: 4px 4px 0px 0px !important;
  583. border-radius: 0px 4px 4px 0px !important;
  584. border: none !important;
  585. margin: 0px !important;
  586. padding: 0px 0px 0px 0px !important;
  587. background: rgba(236, 241, 247, 0.8) !important;
  588. /* background: rgba(47, 105, 202, .05) !important; */
  589. -webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05), 0 2px 10px 0 rgba(0, 0, 0, 0.05);
  590. -moz-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05), 0 2px 10px 0 rgba(0, 0, 0, 0.05);
  591. box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05), 0 2px 10px 0 rgba(0, 0, 0, 0.05);
  592. overflow: hidden !important;
  593. }
  594. .blocklyTreeRoot {
  595. background: none !important;
  596. border: none !important;
  597. /*margin: 36px 0px 0px 0px !important;*/
  598. margin: 0px 0px 0px 0px !important;
  599. padding: 0px 1px !important;
  600. height: 100%;
  601. /* Standard */
  602. overflow-x: hidden;
  603. overflow-y: auto;
  604. }
  605. .blocklyTreeRow {
  606. background: none !important;
  607. border: none !important;
  608. margin: 0px 0px !important;
  609. padding: 0px 16px 0px 0px !important;
  610. box-sizing: content-box !important;
  611. padding-left: 0px !important;
  612. }
  613. .blocklyTreeSelected {
  614. background-color: rgba(208, 240, 255, 0.75) !important;
  615. /* arduino orange */
  616. border: 5px #000 solid;
  617. }
  618. .blocklyTreeRow:not(.blocklyTreeSelected):hover, .blocklyTreeRowHover {
  619. background-color: rgba(208, 240, 255, 0.75) !important;
  620. /* arduino yellow */
  621. }
  622. .blocklyTreeSeparator {
  623. padding: 0px !important;
  624. margin: 0px !important;
  625. }
  626. /* Toolbox second column with blocks*/
  627. .blocklyFlyoutBackground {
  628. fill: #d0f0ffbf !important;
  629. fill-opacity: 0.9 !important;
  630. -webkit-border-radius: 0px 4px 4px 0px !important;
  631. -moz-border-radius: 0px 4px 4px 0px !important;
  632. border-radius: 0px 4px 4px 0px !important;
  633. }
  634. /* Blockly scrollbars */
  635. .blocklyScrollbarKnob {
  636. fill: #a1b2f0 !important;
  637. fill-opacity: 0.7 !important;
  638. }
  639. .blocklyScrollbarBackground {
  640. stroke-width: 0px !important;
  641. fill: none !important;
  642. }
  643. /*********************************/
  644. /* Overwriting Materialize CSS */
  645. /*********************************/
  646. /* Modify container to have a larger width in all resolutions */
  647. .container {
  648. width: 90%;
  649. max-width: initial !important;
  650. /*padding-left: 1.5rem;
  651. padding-right: 1.5rem;*/
  652. z-index: 997;
  653. }
  654. .navcontainer {
  655. width: 90%;
  656. max-width: initial !important;
  657. padding-left: 1.5rem;
  658. padding-right: 1.5rem;
  659. z-index: 997;
  660. }
  661. @media only screen and (min-width: 601px) {
  662. .container {
  663. width: 95%;
  664. }
  665. }
  666. @media only screen and (min-width: 993px) {
  667. .container {
  668. width: 100%;
  669. }
  670. }
  671. @media only screen and (min-width: 1380px) {
  672. .container {
  673. width: 100%;
  674. }
  675. }
  676. /* Maximize horizontal space for mobile */
  677. @media only screen and (min-width: 0px) and (max-width: 600px) {
  678. body {
  679. padding-top: 0px;
  680. }
  681. /* Expand to all visible horizontal space */
  682. .container {
  683. width: 100% !important;
  684. padding: 0 !important;
  685. margin: 0 !important;
  686. }
  687. nav {
  688. margin: 0 !important;
  689. padding: 0px 12px !important;
  690. }
  691. /* remove space between cards and navigation bar */
  692. .col {
  693. margin-top: -8px;
  694. }
  695. }
  696. /* Increase the text size of the side menu */
  697. div.side-nav {
  698. padding: 0px !important;
  699. line-height: 100px !important;
  700. }
  701. ul.side-nav {
  702. padding: 0px !important;
  703. line-height: 64px !important;
  704. }
  705. ul.side-nav i {
  706. font-size: 1.8rem !important;
  707. }
  708. ul.side-nav .collapsible {
  709. margin: 0 !important;
  710. }
  711. /* Set the background effect in the side menu */
  712. ul.side-nav {
  713. background-color: transparent;
  714. box-shadow: none !important;
  715. }
  716. ul.side-nav li {
  717. background-color: #eeeeee;
  718. }
  719. ul.side-nav li {
  720. background-color: #eeeeee;
  721. box-sizing: border-box;
  722. -moz-box-sizing: border-box;
  723. -webkit-box-sizing: border-box;
  724. border-right: 2px solid #dddddd;
  725. border-left: 2px solid #ffffff;
  726. }
  727. ul.side-nav li ul li ul {
  728. cursor: pointer;
  729. border: none !important;
  730. }
  731. ul.side-nav li ul li ul li {
  732. border: none !important;
  733. }
  734. /* Add extra margin to the side menu button*/
  735. .button-collapse {
  736. margin-right: 16px;
  737. }
  738. /* Increase the size of Materialize Modal in small resolutions */
  739. @media only screen and (max-width: 600px) {
  740. .modal {
  741. width: 80% !important;
  742. max-width: 80% !important;
  743. }
  744. }
  745. /* Why the hell does button large has a predefined background colour !! */
  746. .btn-large:hover {
  747. background-color: inherit;
  748. }
  749. /* Circle clipper (loading animation) thickness */
  750. .circle-clipper .circle {
  751. border-width: 4px;
  752. }
  753. /* Materialize messes with these, so reset them here */
  754. .blocklyHtmlInput {
  755. border: none !important;
  756. border-radius: 4px !important;
  757. font-family: sans-serif !important;
  758. height: 100% !important;
  759. margin: 0 !important;
  760. outline: none !important;
  761. padding: 0 1px !important;
  762. width: 100% !important;
  763. background-color: white !important;
  764. }
  765. /*set switch button color*/
  766. .switch {
  767. margin-right: 10px;
  768. }
  769. .switch label .lever:after {
  770. background-color: #4d8bed;
  771. }
  772. .switch label .lever {
  773. background-color: #D7D7D7;
  774. }
  775. .switch label input[type=checkbox]:checked+.lever {
  776. background-color: #26a69a;
  777. }
  778. .switch label input[type=checkbox]:checked+.lever:after {
  779. background-color: #26a69a;
  780. }
  781. /* add indicator to toolbox items */
  782. #\:1 {
  783. border-left: 10px solid #4c97ff;
  784. border-bottom: 1px solid #eaeaea;
  785. }
  786. /* list */
  787. #\:3 {
  788. border-left: 10px solid #9d64fd;
  789. border-bottom: 1px solid #eaeaea;
  790. }
  791. /* loops */
  792. #\:5 {
  793. border-left: 10px solid #5472ea;
  794. border-bottom: 1px solid #eaeaea;
  795. }
  796. /* math */
  797. #\:7 {
  798. border-left: 10px solid #ffab2f;
  799. border-bottom: 1px solid #eaeaea;
  800. }
  801. /* variables */
  802. #\:9 {
  803. border-left: 10px solid #33cc99;
  804. border-bottom: 1px solid #eaeaea;
  805. }
  806. /* text */
  807. #\:b {
  808. border-left: 10px solid #40bfe4;
  809. border-bottom: 1px solid #eaeaea;
  810. }
  811. /* lists */
  812. #\:d {
  813. border-left: 10px solid #ff6381;
  814. border-bottom: 1px solid #eaeaea;
  815. }
  816. /* functions */
  817. #\:f {
  818. border-left: 10px solid #ff8b2c;
  819. border-bottom: 1px solid #eaeaea;
  820. }
  821. /* i/o */
  822. #\:h {
  823. border-left: 10px solid #ffd62c;
  824. border-bottom: 1px solid #eaeaea;
  825. }
  826. /* time */
  827. #\:j {
  828. border-left: 10px solid #27c04f;
  829. border-bottom: 1px solid #eaeaea;
  830. }
  831. /* communication */
  832. #\:l {
  833. padding-top: 0px;
  834. border-left: #50ec7a
  835. }
  836. /*newly added*/
  837. /*
  838. .blocklyTreeSelected {
  839. background-color: #2c4fce !important;
  840. }*/
  841. #\:l>.blocklyTreeRow {
  842. background-color: #4d8bed !important;
  843. color: #ffffff;
  844. }
  845. /* add indicator to wifi_toolbox items */
  846. /* logic */
  847. #\:2a {
  848. border-left: 10px solid #4c97ff;
  849. border-bottom: 1px solid #eaeaea;
  850. }
  851. /* loops */
  852. #\:2c {
  853. border-left: 10px solid #9d64fd;
  854. border-bottom: 1px solid #eaeaea;
  855. }
  856. /* math */
  857. #\:2e {
  858. border-left: 10px solid #5472ea;
  859. border-bottom: 1px solid #eaeaea;
  860. }
  861. /* variables */
  862. #\:2g {
  863. border-left: 10px solid #ffab2f;
  864. border-bottom: 1px solid #eaeaea;
  865. }
  866. /* text */
  867. #\:2i {
  868. border-left: 10px solid #33cc99;
  869. border-bottom: 1px solid #eaeaea;
  870. }
  871. /* lists */
  872. #\:2k {
  873. border-left: 10px solid #40bfe4;
  874. border-bottom: 1px solid #eaeaea;
  875. }
  876. /* functions */
  877. #\:2m {
  878. border-left: 10px solid #ff6381;
  879. border-bottom: 1px solid #eaeaea;
  880. }
  881. /* time */
  882. #\:2o {
  883. border-left: 10px solid #ffd62c;
  884. border-bottom: 1px solid #eaeaea;
  885. }
  886. /* communication */
  887. #\:2q {
  888. border-left: 10px solid #27c04f;
  889. border-bottom: 1px solid #eaeaea;
  890. }
  891. #\:2s {
  892. padding-top: 0px;
  893. }
  894. #\:2s>.blocklyTreeRow {
  895. background-color: #e44c4c !important;
  896. color: #ffffff;
  897. }
  898. .switch_tooltip {
  899. top: -10px;
  900. background-color: black;
  901. color: white;
  902. border-radius: 5px;
  903. opacity: 0;
  904. position: absolute;
  905. -webkit-transition: opacity 0.5s;
  906. -moz-transition: opacity 0.5s;
  907. -ms-transition: opacity 0.5s;
  908. -o-transition: opacity 0.5s;
  909. transition: opacity 0.5s;
  910. }
  911. .switch:hover .tooltip {
  912. opacity: 1;
  913. }
  914. .add_margin {
  915. margin: 0 10px 0 10px;
  916. }
  917. .blocklyTreeRoot {
  918. height: 100%;
  919. }
  920. .resize {
  921. width: 90%;
  922. margin: 10px 5% 10px 5%;
  923. height: 30px;
  924. background-color: #5b8ae7;
  925. }
  926. .languages_logo {
  927. width: 36px;
  928. margin-top: 14px;
  929. }
  930. .lang_resize {
  931. height: 64px;
  932. }
  933. .status_detector {
  934. display: inline-block;
  935. margin-left: 50px;
  936. }
  937. .board_detector, .port_detector {
  938. display: inline-block;
  939. /*overwrite modal_section class*/
  940. margin: 0 10px;
  941. width: auto;
  942. }
  943. .board_detector {
  944. width: 250px;
  945. }
  946. .button_toggle_toolbox_on {
  947. position: absolute;
  948. margin: 0 !important;
  949. padding: 0 !important;
  950. left: 12px;
  951. top: 8px;
  952. text-align: center;
  953. font-size: 1.5rem !important;
  954. z-index: 5;
  955. border-color: #e0e0e0 !important;
  956. border-width: 1px !important;
  957. -webkit-border-radius: 4px 4px 4px 4px !important;
  958. -moz-border-radius: 4px 4px 4px 4px !important;
  959. border-radius: 4px 4px 4px 4px !important;
  960. background: rgba(98, 174, 178, .2) !important;
  961. /* Arduino Light Teal */
  962. -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  963. -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  964. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  965. transition: background 0.3s linear, box-shadow 0.3s linear, border-width 0.3s linear;
  966. -ms-transition: background 0.3s linear, box-shadow 0.3s linear, border-width 0.3s linear;
  967. -moz-transition: background 0.3s linear, -moz-box-shadow 0.3s linear, border-width 0.3s linear;
  968. -webkit-transition: background 0.3s linear, -webkit-box-shadow 0.3s linear, border-width 0.3s linear;
  969. }
  970. .button_toggle_toolbox_off {
  971. position: absolute;
  972. margin: 0 !important;
  973. padding: 0px !important;
  974. left: 12px;
  975. top: 8px;
  976. text-align: center;
  977. font-size: 1.5rem !important;
  978. z-index: 5;
  979. }