1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-26 10:49:17 +00:00

css tweaks

This commit is contained in:
Steven Hugg 2018-11-25 07:18:32 -05:00
parent 71b4e68a55
commit e90b60faa3
3 changed files with 15 additions and 11 deletions

View File

@ -61,13 +61,13 @@
bottom:0; bottom:0;
left:0; left:0;
right:0; right:0;
background-color: #666; background-color:#666;
overflow: hidden; overflow:hidden;
display:flex;
flex-direction:row;
} }
#workspace { #workspace {
background-color:#333; background-color:#333;
float:left;
height:100%;
overflow:hidden; overflow:hidden;
} }
div.editor { div.editor {
@ -222,8 +222,6 @@ a.dropdown-toggle {
border-radius:6px 0 6px 6px; border-radius:6px 0 6px 6px;
} }
div.emulator { div.emulator {
float:left;
height:100%;
background-color: #666; background-color: #666;
margin-top: 20px auto 0; margin-top: 20px auto 0;
} }
@ -347,8 +345,7 @@ div.replaydiv {
} }
.split, .split,
.gutter.gutter-horizontal { .gutter.gutter-horizontal {
float: left; height: 100%;
height: 100%;
} }
div.markdown { div.markdown {
background-color: #fff; background-color: #fff;
@ -366,7 +363,6 @@ div.markdown th {
padding:0.2em; padding:0.2em;
} }
#sidebar { #sidebar {
float:left;
} }
#sidebar ul { #sidebar ul {
list-style-type:none; list-style-type:none;
@ -393,3 +389,11 @@ div.markdown th {
-webkit-background-clip: text; -webkit-background-clip: text;
color:rgba(0,0,0,0); color:rgba(0,0,0,0);
} }
.disable-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

View File

@ -40,7 +40,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
<!-- for file upload --> <!-- for file upload -->
<input type="file" id="uploadFileElem" multiple accept="*" style="display:none" onchange="handleFileUpload(this.files)"> <input type="file" id="uploadFileElem" multiple accept="*" style="display:none" onchange="handleFileUpload(this.files)">
<div id="controls_top" style="user-select: none"> <div id="controls_top" class="disable-select">
<span class="dropdown"> <span class="dropdown">
<a class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Menu"> <a class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Menu">
<span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span> <span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>

View File

@ -308,7 +308,7 @@ var VerilogPlatform = function(mainElement, options) {
getPresets() { return VERILOG_PRESETS; } getPresets() { return VERILOG_PRESETS; }
start() { start() {
video = new RasterVideo(mainElement,videoWidth,videoHeight); video = new RasterVideo(mainElement,videoWidth,videoHeight,{overscan:true});
video.create(); video.create();
var ctx = video.getContext(); var ctx = video.getContext();
ctx.font = "8px TinyFont"; ctx.font = "8px TinyFont";