ardublockly.css 23 KB

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