diff --git a/assets/css/style.css b/assets/css/style.css index c330956..2bc34b0 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1 +1 @@ -/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}p{font-size:1.2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}@font-face{font-family:"Proxima Nova";src:url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-light-webfont.woff2") format("woff2"),url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-light-webfont.woff") format("woff");font-weight:300;font-style:normal;letter-spacing:.3em}@font-face{font-family:"Proxima Nova";src:url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-regular-webfont.woff2") format("woff2"),url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-regular-webfont.woff") format("woff");font-weight:normal;font-style:normal}@font-face{font-family:"Proxima Nova";src:url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-semibold-webfont.woff2") format("woff2"),url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-semibold-webfont.woff") format("woff");font-weight:500;font-style:normal}html{box-sizing:border-box}*,*:before,*:after{box-sizing:border-box}html,body{font-family:"Proxima Nova","Montserrat","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;background-color:#ebebeb;padding:0;margin:0}body{min-height:100vh;min-height:calc(var(--vh, 1vh)*100);height:100vh;height:calc(var(--vh, 1vh)*100);position:relative}a{text-decoration:none;color:inherit}.clear{clear:both}h1,h2,h3,h4,h5{font-weight:500}.responsive{max-width:100%;height:auto}.purple-button{display:inline-block;font-size:1.1em;width:auto;padding:8px 10px 8px 10px;color:#fff;border-radius:5px;border:none;background-color:#64338f;margin:10px 0 10px 10px;cursor:pointer;white-space:nowrap}.purple-button i{padding-left:10px}.purple-button:first-of-type{margin-left:0}.purple-button:last-of-type{margin-right:0}.purple-button:hover{background-color:#3d1f57}.purple-button.inverted,.mode-editor #btn-mode-serial,.mode-serial #btn-mode-editor{color:#64338f;background-color:#c8c8c8}.purple-button.inverted:hover,.mode-editor #btn-mode-serial:hover,.mode-serial #btn-mode-editor:hover{background-color:#a2a2a2}.purple-button:disabled{background-color:#d8d8d8;color:#888}fieldset{border:0}fieldset legend{font-size:1.5em;font-weight:500}.container{width:100%;margin:0 auto;padding:0 10px}@media(min-width: 768px){.container{max-width:768px}}@media(min-width: 992px){.container{max-width:1024px}}@media(min-width: 1200px){.container{max-width:1366px}}.connection-layout{background-color:#fff;padding:0 40px;margin-top:40px;overflow-y:auto;max-height:calc(100vh - 140px);counter-reset:step 0}.connection-layout .step{display:flex;counter-increment:step}.connection-layout .step .step-number{width:75px;height:75px;color:#333;font-size:64px;font-weight:600;line-height:64px;text-align:center;margin:20px 20px 0 0;border:solid 5px #333;border-radius:100%;min-width:75px}.connection-layout .step .step-number::before{content:counter(step)}.connection-layout .step.hidden{display:none}@media(max-width: 767px){.connection-layout{max-height:calc(100vh - 100px);padding:20px}.connection-layout .step .step-number{width:50px;height:50px;font-size:36px;line-height:36px;min-width:50px}}#site-header{display:grid;grid-template-rows:1fr 3px;grid-column:full}#site-header .wrapper{background-color:#333;height:100px}#site-header .content{display:grid;padding-bottom:20px}#site-header a.active{color:#fff}.top-navigation{background-color:#151515;padding-top:10px}.top-navigation .navigation{display:flex;align-items:flex-end;justify-content:flex-end}.top-navigation .navigation a{font-size:16px;color:#aaa}.top-navigation .navigation a:hover{color:#fff}.top-navigation .navigation a.skip-link{margin-left:0;position:absolute;left:10px;top:10px;transform:translateY(-200%);transition:transform .6s}.top-navigation .navigation a.skip-link:focus{transform:translateY(0%)}.top-navigation .navigation>a{margin-left:40px}.top-navigation .navigation>span{margin-left:35px}.top-navigation .navigation>span a{margin-left:5px}.site-brand{width:100%;display:flex;flex-direction:row;align-items:flex-end}.site-banner{font-size:20px;padding-left:120px}.site-banner a{color:#fff}.get-started{margin-left:auto;padding-bottom:10px}.get-started a,.get-started button{display:inline-block;font-size:18px;padding:7px 50px 7px 50px;color:#fff;font-weight:500;border-radius:50px;border:3px solid #fff;background-color:rgba(0,0,0,0);margin:0}.get-started a:hover,.get-started button:hover{color:#000;background-color:#fff}.site-navigation{padding:0 0 10px 0;font-size:18px}.site-navigation a{margin-left:40px;color:#aaa}.site-navigation a:hover{color:#fff}.bottom-bar{background-color:#e71c8c}.file-path,#terminal-title{font-size:20px;line-height:59px;margin-left:10px;display:inline;flex:auto;overflow:hidden;text-overflow:ellipsis}#footer-bar{display:flex}#footer-bar .spacer{flex:auto}#editor-bar{display:flex}@media(max-width: 767px){#site-header{display:none !important}#editor-bar{display:none !important}}#mobile-header{background-color:#333}#mobile-header .header-contents{padding:9px 5px 5px 8px}#mobile-header .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}#mobile-header .site-logo{float:left}#mobile-header .bottom-bar{height:3px}#mobile-editor-bar #mobile-menu{float:left}#mobile-editor-bar #mobile-menu .menu-toggle{font-size:34px;padding:10px 0}#mobile-editor-bar #mobile-menu .menu-toggle button{border:none;color:#333;outline:none}#mobile-editor-bar #mobile-menu-contents{position:absolute;z-index:2;width:100vh;left:0;top:118px}#mobile-editor-bar #mobile-menu-contents.hidden{display:none}#mobile-editor-bar #mobile-menu-contents ul{list-style:none;padding-left:0;margin-bottom:0;font-size:20px;margin-top:0}#mobile-editor-bar #mobile-menu-contents ul li{padding:20px 0 20px 20px;border-bottom:1px solid #ddd;background-color:#f0f0f0}#mobile-editor-bar #mobile-menu-contents ul li:first-child{border-top:1px solid #ddd}#mobile-editor-bar #mobile-menu-contents ul li a{color:#64338f;cursor:pointer}#mobile-editor-bar #mobile-menu-contents ul li a i{padding-left:10px}#mobile-editor-bar .btn-save-run{float:right}#mobile-editor-bar .file-path{float:left}@media(min-width: 768px){#mobile-header{display:none !important}#mobile-editor-bar{display:none !important}}#ble-instructions h1,#web-instructions h1,#usb-instructions h1{font-weight:400}#ble-instructions p,#web-instructions p,#usb-instructions p{margin-bottom:16px}#ble-instructions h2,#web-instructions h2,#usb-instructions h2{border-bottom:1px solid #cecece;padding-bottom:.3em;margin-bottom:16px;margin-top:24px}#ble-instructions ul,#web-instructions ul,#usb-instructions ul{margin-bottom:16px}#ble-instructions ul li,#web-instructions ul li,#usb-instructions ul li{margin-top:.25em}#ble-instructions a,#web-instructions a,#usb-instructions a{color:#0062c7;text-decoration:underline}#editor-bar,#serial-bar{height:59px}#editor-page .editor-container{background:#333}#editor-page .editor-container .cm-editor{height:calc(100vh - 185px);height:calc(var(--vh, 1vh) * 100 - 185px)}#serial-page .terminal-container{background:#333}#serial-page #terminal{position:relative;width:100%;height:calc(100vh - 185px);height:calc(var(--vh, 1vh) * 100 - 185px)}#serial-page #terminal .xterm .xterm-viewport{background-color:rgba(0,0,0,0);overflow-y:scroll;cursor:default;position:absolute;inset:0;scrollbar-color:var(--highlight) var(--dark);scrollbar-width:thin}#serial-page #terminal .xterm .xterm-viewport::-webkit-scrollbar{background-color:var(--dark);width:5px}#serial-page #terminal .xterm .xterm-viewport::-webkit-scrollbar-thumb{background:var(--highlight)}@media(min-width: 768px){#serial-page #terminal{height:calc(100vh - 220px);height:calc(var(--vh, 1vh) * 100 - 220px)}#editor-page .editor-container .cm-editor{height:calc(100vh - 220px);height:calc(var(--vh, 1vh) * 100 - 220px)}}@media(min-width: 650px){.popup-modal.file-dialog{max-height:365px;max-width:650px}}@media(max-width: 767px){.popup-modal.file-dialog #file-list a span:nth-child(3),.popup-modal.file-dialog #file-list a span:nth-child(4){visibility:hidden}}@media(min-width: 768px){.popup-modal.connect-dialog{width:768px}}#main-content.mode-editor #serial-page{display:none}#main-content.mode-serial #editor-page{display:none}#main-content.unsaved .file-path{color:#f60}.CodeMirror{max-height:1000px;width:100%;height:100%}.loader{display:none;z-index:9998;left:0;top:0;width:100%;height:100%;position:fixed}.loader.overlay{background-color:rgba(0,0,0,.35)}.loader div{left:50%;top:50%;transform:translate(-50%, -50%);transition:all 300ms ease-in-out;position:fixed;z-index:9999}.loader.busy{display:block}.body-blackout{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.65);display:none}.body-blackout.is-blacked-out{display:block}.body-blackout.no-overlay{background-color:rgba(0,0,0,0)}.popup-trigger{display:inline-block}.popup-modal{max-height:100vh;max-width:100vw;background-color:#fff;border:2px solid #64338f;border-radius:5px;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);padding:25px 20px 10px;opacity:0;pointer-events:none;transition:all 300ms ease-in-out;display:none}.popup-modal.prompt{max-height:365px}.popup-modal.shadow{filter:drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.6))}.popup-modal.is--visible{opacity:1;pointer-events:auto;display:block}.popup-modal__close{position:absolute;font-size:1.2rem;right:8px;top:5px;cursor:pointer;background:#fff;line-height:25px}.popup-modal.no-padding,.popup-modal.connect-dialog{padding:0}.popup-modal .label{margin-bottom:5px}.popup-modal .label.centered{text-align:center}.popup-modal .buttons{display:flex;text-align:right;margin-top:10px}.popup-modal .buttons button{margin-left:10px}.popup-modal .buttons button:first-child{margin-left:0}.popup-modal .buttons button.purple-button-link{min-width:250px}.popup-modal .buttons input{margin:10px 0;flex-grow:1;font-size:1.2em;padding:0 5px;border:1px solid #888}.popup-modal .buttons input:disabled{background-color:#eee}.popup-modal .buttons.centered{justify-content:center}.popup-modal .buttons.stacked{flex-direction:column}.popup-modal .buttons.stacked button{margin:5px 0;width:250px}.popup-modal.file-dialog #current-path{position:absolute;font-size:1.2rem;top:12px;left:30px;max-width:570px;text-overflow:ellipsis;overflow:hidden}.popup-modal.file-dialog #file-list{font-size:1.4em;overflow:auto;height:200px;padding:5px 0;border:1px solid #888}.popup-modal.file-dialog #file-list a{padding-left:5px;display:grid;grid-template-columns:30px minmax(60px, 1fr) 60px 1fr;grid-gap:10px;cursor:default}.popup-modal.file-dialog #file-list a.hidden-file i,.popup-modal.file-dialog #file-list a.hidden-file span{opacity:.65}.popup-modal.file-dialog #file-list a.selected{background-color:rgba(101,47,143,.3647058824)}.popup-modal.file-dialog #file-list a i{text-align:center}.popup-modal.file-dialog #file-list a span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.popup-modal.file-dialog .buttons button i{padding-left:0}.popup-modal[data-popup-modal=folder-select] #file-list{margin-top:20px}.popup-modal[data-popup-modal=device-discovery] .device-info{margin-top:5px;width:100%;border-collapse:collapse;filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.5))}.popup-modal[data-popup-modal=device-discovery] .device-info thead tr{background-color:rgba(101,47,143,.3647058824);color:#fff;text-align:center}.popup-modal[data-popup-modal=device-discovery] .device-info thead tr th{border-top-left-radius:5px;border-top-right-radius:5px}.popup-modal[data-popup-modal=device-discovery] .device-info th,.popup-modal[data-popup-modal=device-discovery] .device-info td{padding:5px 10px}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr{border-bottom:1px solid #ddd}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr:nth-of-type(even){background-color:#f3f3f3}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr:nth-of-type(odd){background-color:#fff}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr:last-of-type{border-bottom:2px solid #aaa}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr td:first-child{text-align:right}.popup-modal[data-popup-modal=device-discovery] h3{margin:10px auto 5px}.popup-modal[data-popup-modal=device-discovery] h3 i{margin-left:10px;cursor:pointer}.popup-modal[data-popup-modal=device-discovery] h3 i:hover{color:#64338f}.popup-modal[data-popup-modal=device-discovery] #devices{max-width:500px;font-size:1.2rem;height:120px;border:1px solid #333;text-overflow:ellipsis;overflow-y:scroll}.popup-modal[data-popup-modal=device-discovery] #devices a{cursor:pointer}.popup-modal[data-popup-modal=progress] progress{width:100%}.cm-editor{color:#ddd;background-color:#333;line-height:1.5;font-family:"Operator Mono","Source Code Pro",Menlo,Monaco,Consolas,Courier New,monospace}.cm-editor .cm-activeLine{background-color:#333}.cm-editor .cm-content{caret-color:orange}.cm-editor .cm-comment{font-style:italic;color:#676b79}.cm-editor .cm-operator{color:#f3f3f3}.cm-editor .cm-string{color:#19f9d8}.cm-editor .cm-string-2{color:#ffb86c}.cm-editor .cm-tag{color:#ff2c6d}.cm-editor .cm-meta{color:#b084eb}.cm-editor.cm-focused .cm-cursor{border-left-color:orange}.cm-editor.cm-focused .cm-selectionBackground,.cm-editor ::selection{background-color:orange}.cm-editor .cm-gutters{background-color:#292a2b;color:#ddd;border:none}.cm-editor .cm-scroller{overflow:auto}.cm-editor .tok-comment{color:#7f848e}.cm-editor .tok-variableName{color:#61afef}.cm-editor .tok-operator{color:#56b6c2}.cm-editor .tok-string{color:#98c379}.cm-editor .tok-punctuation{color:#fff}.cm-editor .tok-number{color:#e5c07b}.cm-editor .tok-keyword{color:#c678dd}.cm-editor .tok-propertyName{color:#d19a66}.cm-editor .tok-atom,.cm-editor .tok-bool{color:#e06c75}/*# sourceMappingURL=style.css.map */ +/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}p{font-size:1.2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}@font-face{font-family:"Proxima Nova";src:url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-light-webfont.woff2") format("woff2"),url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-light-webfont.woff") format("woff");font-weight:300;font-style:normal;letter-spacing:.3em}@font-face{font-family:"Proxima Nova";src:url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-regular-webfont.woff2") format("woff2"),url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-regular-webfont.woff") format("woff");font-weight:normal;font-style:normal}@font-face{font-family:"Proxima Nova";src:url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-semibold-webfont.woff2") format("woff2"),url("https://cdn-shop.adafruit.com/fonts/proximanova/proximanova-semibold-webfont.woff") format("woff");font-weight:500;font-style:normal}html{box-sizing:border-box}*,*:before,*:after{box-sizing:border-box}html,body{font-family:"Proxima Nova","Montserrat","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;background-color:#ebebeb;padding:0;margin:0}body{min-height:100vh;min-height:calc(var(--vh, 1vh)*100);height:100vh;height:calc(var(--vh, 1vh)*100);position:relative}a{text-decoration:none;color:inherit}.clear{clear:both}h1,h2,h3,h4,h5{font-weight:500}.responsive{max-width:100%;height:auto}.purple-button{display:inline-block;font-size:1.1em;width:auto;padding:8px 10px 8px 10px;color:#fff;border-radius:5px;border:none;background-color:#64338f;margin:10px 0 10px 10px;cursor:pointer;white-space:nowrap}.purple-button i{padding-left:10px}.purple-button:first-of-type{margin-left:0}.purple-button:last-of-type{margin-right:0}.purple-button:hover{background-color:#3d1f57}.purple-button.inverted,.mode-editor #btn-mode-serial,.mode-serial #btn-mode-editor{color:#64338f;background-color:#c8c8c8}.purple-button:disabled{background-color:#d8d8d8;color:#888}fieldset{border:0}fieldset legend{font-size:1.5em;font-weight:500}.container{width:100%;margin:0 auto;padding:0 10px}@media(min-width: 768px){.container{max-width:768px}}@media(min-width: 992px){.container{max-width:1024px}}@media(min-width: 1200px){.container{max-width:1366px}}.connection-layout{background-color:#fff;padding:0 40px;margin-top:40px;overflow-y:auto;max-height:calc(100vh - 140px);counter-reset:step 0}.connection-layout .step{display:flex;counter-increment:step}.connection-layout .step .step-number{width:75px;height:75px;color:#333;font-size:64px;font-weight:600;line-height:64px;text-align:center;margin:20px 20px 0 0;border:solid 5px #333;border-radius:100%;min-width:75px}.connection-layout .step .step-number::before{content:counter(step)}.connection-layout .step.hidden{display:none}@media(max-width: 767px){.connection-layout{max-height:calc(100vh - 100px);padding:20px}.connection-layout .step .step-number{width:50px;height:50px;font-size:36px;line-height:36px;min-width:50px}}#site-header{display:grid;grid-template-rows:1fr 3px;grid-column:full}#site-header .wrapper{background-color:#333;height:100px}#site-header .content{display:grid;padding-bottom:20px}#site-header a.active{color:#fff}.top-navigation{background-color:#151515;padding-top:10px}.top-navigation .navigation{display:flex;align-items:flex-end;justify-content:flex-end}.top-navigation .navigation a{font-size:16px;color:#aaa}.top-navigation .navigation a:hover{color:#fff}.top-navigation .navigation a.skip-link{margin-left:0;position:absolute;left:10px;top:10px;transform:translateY(-200%);transition:transform .6s}.top-navigation .navigation a.skip-link:focus{transform:translateY(0%)}.top-navigation .navigation>a{margin-left:40px}.top-navigation .navigation>span{margin-left:35px}.top-navigation .navigation>span a{margin-left:5px}.site-brand{width:100%;display:flex;flex-direction:row;align-items:flex-end}.site-banner{font-size:20px;padding-left:120px}.site-banner a{color:#fff}.get-started{margin-left:auto;padding-bottom:10px}.get-started a,.get-started button{display:inline-block;font-size:18px;padding:7px 50px 7px 50px;color:#fff;font-weight:500;border-radius:50px;border:3px solid #fff;background-color:rgba(0,0,0,0);margin:0}.get-started a:hover,.get-started button:hover{color:#000;background-color:#fff}.site-navigation{padding:0 0 10px 0;font-size:18px}.site-navigation a{margin-left:40px;color:#aaa}.site-navigation a:hover{color:#fff}.bottom-bar{background-color:#e71c8c}.file-path,#terminal-title{font-size:20px;line-height:59px;margin-left:10px;display:inline;flex:auto;overflow:hidden;text-overflow:ellipsis}#footer-bar{display:flex}#footer-bar .spacer{flex:auto}#editor-bar{display:flex}@media(max-width: 767px){#site-header{display:none !important}#editor-bar{display:none !important}}#mobile-header{background-color:#333}#mobile-header .header-contents{padding:9px 5px 5px 8px}#mobile-header .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}#mobile-header .site-logo{float:left}#mobile-header .bottom-bar{height:3px}#mobile-editor-bar #mobile-menu{float:left}#mobile-editor-bar #mobile-menu .menu-toggle{font-size:34px;padding:10px 0}#mobile-editor-bar #mobile-menu .menu-toggle button{border:none;color:#333;outline:none}#mobile-editor-bar #mobile-menu-contents{position:absolute;z-index:2;width:100vh;left:0;top:118px}#mobile-editor-bar #mobile-menu-contents.hidden{display:none}#mobile-editor-bar #mobile-menu-contents ul{list-style:none;padding-left:0;margin-bottom:0;font-size:20px;margin-top:0}#mobile-editor-bar #mobile-menu-contents ul li{padding:20px 0 20px 20px;border-bottom:1px solid #ddd;background-color:#f0f0f0}#mobile-editor-bar #mobile-menu-contents ul li:first-child{border-top:1px solid #ddd}#mobile-editor-bar #mobile-menu-contents ul li a{color:#64338f;cursor:pointer}#mobile-editor-bar #mobile-menu-contents ul li a i{padding-left:10px}#mobile-editor-bar .btn-save-run{float:right}#mobile-editor-bar .file-path{float:left}@media(min-width: 768px){#mobile-header{display:none !important}#mobile-editor-bar{display:none !important}}#ble-instructions h1,#web-instructions h1,#usb-instructions h1{font-weight:400}#ble-instructions p,#web-instructions p,#usb-instructions p{margin-bottom:16px}#ble-instructions h2,#web-instructions h2,#usb-instructions h2{border-bottom:1px solid #cecece;padding-bottom:.3em;margin-bottom:16px;margin-top:24px}#ble-instructions ul,#web-instructions ul,#usb-instructions ul{margin-bottom:16px}#ble-instructions ul li,#web-instructions ul li,#usb-instructions ul li{margin-top:.25em}#ble-instructions a,#web-instructions a,#usb-instructions a{color:#0062c7;text-decoration:underline}#editor-bar,#serial-bar{height:59px}#editor-page .editor-container{background:#333}#editor-page .editor-container .cm-editor{height:calc(100vh - 185px);height:calc(var(--vh, 1vh) * 100 - 185px)}#serial-page .terminal-container{background:#333}#serial-page #terminal{position:relative;width:100%;height:calc(100vh - 185px);height:calc(var(--vh, 1vh) * 100 - 185px)}#serial-page #terminal .xterm .xterm-viewport{background-color:rgba(0,0,0,0);overflow-y:scroll;cursor:default;position:absolute;inset:0;scrollbar-color:var(--highlight) var(--dark);scrollbar-width:thin}#serial-page #terminal .xterm .xterm-viewport::-webkit-scrollbar{background-color:var(--dark);width:5px}#serial-page #terminal .xterm .xterm-viewport::-webkit-scrollbar-thumb{background:var(--highlight)}@media(min-width: 768px){#serial-page #terminal{height:calc(100vh - 220px);height:calc(var(--vh, 1vh) * 100 - 220px)}#editor-page .editor-container .cm-editor{height:calc(100vh - 220px);height:calc(var(--vh, 1vh) * 100 - 220px)}}@media(min-width: 650px){.popup-modal.file-dialog{max-height:365px;max-width:650px}}@media(max-width: 767px){.popup-modal.file-dialog #file-list a span:nth-child(3),.popup-modal.file-dialog #file-list a span:nth-child(4){visibility:hidden}}@media(min-width: 768px){.popup-modal.connect-dialog{width:768px}}#main-content.mode-editor #serial-page{display:none}#main-content.mode-serial #editor-page{display:none}#main-content.unsaved .file-path{color:#f60}.CodeMirror{max-height:1000px;width:100%;height:100%}.loader{display:none;z-index:9998;left:0;top:0;width:100%;height:100%;position:fixed}.loader.overlay{background-color:rgba(0,0,0,.35)}.loader div{left:50%;top:50%;transform:translate(-50%, -50%);transition:all 300ms ease-in-out;position:fixed;z-index:9999}.loader.busy{display:block}.body-blackout{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.65);display:none}.body-blackout.is-blacked-out{display:block}.body-blackout.no-overlay{background-color:rgba(0,0,0,0)}.popup-trigger{display:inline-block}.popup-modal{max-height:100vh;max-width:100vw;background-color:#fff;border:2px solid #64338f;border-radius:5px;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);padding:25px 20px 10px;opacity:0;pointer-events:none;transition:all 300ms ease-in-out;display:none}.popup-modal.prompt{max-height:365px}.popup-modal.shadow{filter:drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.6))}.popup-modal.is--visible{opacity:1;pointer-events:auto;display:block}.popup-modal__close{position:absolute;font-size:1.2rem;right:8px;top:5px;cursor:pointer;background:#fff;line-height:25px}.popup-modal.no-padding,.popup-modal.connect-dialog{padding:0}.popup-modal .label{margin-bottom:5px}.popup-modal .label.centered{text-align:center}.popup-modal .buttons{display:flex;text-align:right;margin-top:10px}.popup-modal .buttons button{margin-left:10px}.popup-modal .buttons button:first-child{margin-left:0}.popup-modal .buttons button.purple-button-link{min-width:250px}.popup-modal .buttons input{margin:10px 0;flex-grow:1;font-size:1.2em;padding:0 5px;border:1px solid #888}.popup-modal .buttons input:disabled{background-color:#eee}.popup-modal .buttons.centered{justify-content:center}.popup-modal .buttons.stacked{flex-direction:column}.popup-modal .buttons.stacked button{margin:5px 0;width:250px}.popup-modal.file-dialog #current-path{position:absolute;font-size:1.2rem;top:12px;left:30px;max-width:570px;text-overflow:ellipsis;overflow:hidden}.popup-modal.file-dialog #file-list{font-size:1.4em;overflow:auto;height:200px;padding:5px 0;border:1px solid #888}.popup-modal.file-dialog #file-list a{padding-left:5px;display:grid;grid-template-columns:30px minmax(60px, 1fr) 60px 1fr;grid-gap:10px;cursor:default}.popup-modal.file-dialog #file-list a.hidden-file i,.popup-modal.file-dialog #file-list a.hidden-file span{opacity:.65}.popup-modal.file-dialog #file-list a.selected{background-color:rgba(101,47,143,.3647058824)}.popup-modal.file-dialog #file-list a i{text-align:center}.popup-modal.file-dialog #file-list a span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.popup-modal.file-dialog .buttons button i{padding-left:0}.popup-modal[data-popup-modal=folder-select] #file-list{margin-top:20px}.popup-modal[data-popup-modal=device-discovery] .device-info{margin-top:5px;width:100%;border-collapse:collapse;filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.5))}.popup-modal[data-popup-modal=device-discovery] .device-info thead tr{background-color:rgba(101,47,143,.3647058824);color:#fff;text-align:center}.popup-modal[data-popup-modal=device-discovery] .device-info thead tr th{border-top-left-radius:5px;border-top-right-radius:5px}.popup-modal[data-popup-modal=device-discovery] .device-info th,.popup-modal[data-popup-modal=device-discovery] .device-info td{padding:5px 10px}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr{border-bottom:1px solid #ddd}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr:nth-of-type(even){background-color:#f3f3f3}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr:nth-of-type(odd){background-color:#fff}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr:last-of-type{border-bottom:2px solid #aaa}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-modal[data-popup-modal=device-discovery] .device-info tbody tr td:first-child{text-align:right}.popup-modal[data-popup-modal=device-discovery] h3{margin:10px auto 5px}.popup-modal[data-popup-modal=device-discovery] h3 i{margin-left:10px;cursor:pointer}.popup-modal[data-popup-modal=device-discovery] h3 i:hover{color:#64338f}.popup-modal[data-popup-modal=device-discovery] #devices{max-width:500px;font-size:1.2rem;height:120px;border:1px solid #333;text-overflow:ellipsis;overflow-y:scroll}.popup-modal[data-popup-modal=device-discovery] #devices a{cursor:pointer}.popup-modal[data-popup-modal=progress] progress{width:100%}.cm-editor{color:#ddd;background-color:#333;line-height:1.5;font-family:"Operator Mono","Source Code Pro",Menlo,Monaco,Consolas,Courier New,monospace}.cm-editor .cm-activeLine{background-color:#333}.cm-editor .cm-content{caret-color:orange}.cm-editor .cm-comment{font-style:italic;color:#676b79}.cm-editor .cm-operator{color:#f3f3f3}.cm-editor .cm-string{color:#19f9d8}.cm-editor .cm-string-2{color:#ffb86c}.cm-editor .cm-tag{color:#ff2c6d}.cm-editor .cm-meta{color:#b084eb}.cm-editor.cm-focused .cm-cursor{border-left-color:orange}.cm-editor.cm-focused .cm-selectionBackground,.cm-editor ::selection{background-color:orange}.cm-editor .cm-gutters{background-color:#292a2b;color:#ddd;border:none}.cm-editor .cm-scroller{overflow:auto}.cm-editor .tok-comment{color:#7f848e}.cm-editor .tok-variableName{color:#61afef}.cm-editor .tok-operator{color:#56b6c2}.cm-editor .tok-string{color:#98c379}.cm-editor .tok-punctuation{color:#fff}.cm-editor .tok-number{color:#e5c07b}.cm-editor .tok-keyword{color:#c678dd}.cm-editor .tok-propertyName{color:#d19a66}.cm-editor .tok-atom,.cm-editor .tok-bool{color:#e06c75}/*# sourceMappingURL=style.css.map */ diff --git a/assets/css/style.css.map b/assets/css/style.css.map index 1754f4a..f5132df 100644 --- a/assets/css/style.css.map +++ b/assets/css/style.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../sass/vendors/_normalize.scss","../sass/base/_typography.scss","../sass/base/_base.scss","../sass/base/_mixins.scss","../sass/base/_variables.scss","../sass/layout/_grid.scss","../sass/layout/_header.scss","../sass/layout/_header_mobile.scss","../sass/pages/_code.scss","../sass/pages/_editor.scss"],"names":[],"mappings":"AAAA,4EAUA,KACI,iBAEA,8BAWJ,KACI,SAQJ,GACI,cACA,eAGJ,EACI,gBAWJ,GACI,uBAEA,SAEA,iBASJ,IACI,gCAEA,cAWJ,EACI,+BAQJ,YACI,mBAEA,0BAEA,iCAQJ,SAEI,mBAQJ,cAGI,gCAEA,cAQJ,MACI,cAQJ,QAEI,cACA,cACA,kBACA,wBAGJ,IACI,eAGJ,IACI,WAUJ,IACI,kBAWJ,sCAKI,oBAEA,eAEA,iBAEA,SASJ,aAGI,iBAQJ,cAGI,oBAOJ,gDAII,0BAOJ,wHAII,kBACA,UAOJ,4GAII,8BAOJ,SACI,2BAUJ,OACI,sBAEA,cAEA,cAEA,eAEA,UAEA,mBAQJ,SACI,wBAOJ,SACI,cAQJ,6BAEI,sBAEA,UAQJ,kFAEI,YA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ACI,WAGJ,uBACI,cAGJ,wBACI,cAGJ,6BACI,cAGJ,0CAEI","file":"style.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../sass/vendors/_normalize.scss","../sass/base/_typography.scss","../sass/base/_base.scss","../sass/base/_mixins.scss","../sass/base/_variables.scss","../sass/layout/_grid.scss","../sass/layout/_header.scss","../sass/layout/_header_mobile.scss","../sass/pages/_code.scss","../sass/pages/_editor.scss"],"names":[],"mappings":"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","file":"style.css"} \ No newline at end of file diff --git a/assets/js/workflows/web.js b/assets/js/workflows/web.js index dac3246..19f0cb5 100644 --- a/assets/js/workflows/web.js +++ b/assets/js/workflows/web.js @@ -102,10 +102,11 @@ class WebWorkflow extends Workflow { } else { return Error("You are connected with localhost, but didn't supply the device hostname."); } - } else if (isMdns()) { - this.host = location.hostname; - } else if (isIp()) { + } else if (isMdns() || isIp()) { this.host = location.hostname; + if (location.port != 80) { + this.host += ":" + location.port; + } } if (this.host != null) { diff --git a/assets/js/workflows/workflow.js b/assets/js/workflows/workflow.js index 55d20e3..bbccc5d 100644 --- a/assets/js/workflows/workflow.js +++ b/assets/js/workflows/workflow.js @@ -205,22 +205,24 @@ class Workflow { if (path == "/code.py") { await this.serialTransmit(CHAR_CTRL_D); - } + } else { - let extension = path.split('.').pop(); - if (extension === null) { - console.log("Extension not found"); - return false; - } - if (String(extension).toLowerCase() != "py") { - console.log("Extension not py, twas " + String(extension).toLowerCase()); - return false; - } - path = path.slice(0, -3); - path = path.replace(/\//g, "."); + let extension = path.split('.').pop(); + if (extension === null) { + console.log("Extension not found"); + return false; + } + if (String(extension).toLowerCase() != "py") { + console.log("Extension not py, it was " + String(extension).toLowerCase()); + return false; + } + path = path.slice(1, -3); + path = path.replace(/\//g, "."); + + await this.serialTransmit(CHAR_CTRL_C + "import " + path + CHAR_CRLF); + } await this._changeMode(MODE_SERIAL); - await this.serialTransmit(CHAR_CTRL_C + "import " + path + CHAR_CRLF); } async checkSaved() {