$grey: #333; $orange: #ff5f00; $lightgrey: lighten($grey, 20); $darkgrey: darken($grey, 20); /* Remove defaults */ * { padding: 0; margin: 0; border: none; box-sizing: border-box; } /* Side panel styling */ .sidepanel { /* 0 width - change this with JavaScript */ height: 100vh; width: 0; /* sizing */ position: fixed; z-index: 1; top: 0; right: 0; background-color: $grey; overflow-x: hidden; padding-top: 60px; transition: 0.5s; a, input, p { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 20px; color: white; display: block; transition: 0.3s; } a:hover { color: $orange; } .closebtn { position: absolute; top: 0; left: 0; font-size: 36px; } } .section { border: 2px solid $orange; border-radius: 8px; position: relative; padding: 10px; margin: 10px; .title { font-size: 24px; color: $orange; padding: 0 5px; position: absolute; top: -13px; left: 8px; display: inline-block; background-color: $grey; } hr { border: 1px dashed $lightgrey; } } .prop { margin: 10px; color: white; .item { width: 100%; display: flex; justify-content: space-between; align-items: baseline; label { width: 40%; } input { font-size: 15px; margin-top: 2px; color: $orange; padding: 5px 10px; width: 40%; background-color: $lightgrey; } } .item+.item { margin-top: 10px; } } .openbtn { position: absolute; right: 5px; top: 5px; font-size: 20px; cursor: pointer; background-color: $lightgrey; color: white; padding: 10px 15px; border: none; &:hover { background-color: $orange; color: darken($color: $grey, $amount: 10); } &:focus { outline: none; } } /* Main body styling */ .wrapper { background-color: darken($color: $grey, $amount: 20); width: 100vw; height: 100vh; overflow: hidden; } .canvas { width: 100%; height: 100%; }