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

changed pulldown menus; css why do you hate me

This commit is contained in:
Steven Hugg 2019-05-21 22:36:56 -04:00
parent 029c1156ed
commit fb3d3430da
3 changed files with 49 additions and 45 deletions

View File

@ -283,14 +283,16 @@ canvas.pixelated {
font-family: TinyFont; font-family: TinyFont;
src: url(04B_03__.TTF); src: url(04B_03__.TTF);
} }
#booksMenuButton { .toolbarMenuButton {
border-width:3px; background-color:#666;
border-color:#99ff99;
background-color:#006600;
border-style:solid; border-style:solid;
font-family: "Andale Mono", "Menlo", "Lucida Console", monospace; font-family: "Andale Mono", "Menlo", "Lucida Console", monospace;
position:relative; position:relative;
top:-0.25em; margin-left:0.5em;
margin-right:0.5em;
}
a.toolbarMenuButton {
padding:0.3em;
} }
a.dropdown-toggle { a.dropdown-toggle {
} }
@ -540,5 +542,5 @@ div.asset_toolbar {
color: #ccc; color: #ccc;
} }
.book-title { .book-title {
font-size:14pt; font-size:12pt;
} }

View File

@ -45,11 +45,11 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
<div id="controls_top" class="disable-select"> <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 dropdown-toggle toolbarMenuButton" 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>
<span class="caret"></span> <span class="caret"></span>
</a> </a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <ul class="dropdown-menu dropdown-menu-left" aria-labelledby="dropdownMenuButton">
<li><a class="dropdown-item" href="#" id="item_new_file">New Project...</a></li> <li><a class="dropdown-item" href="#" id="item_new_file">New Project...</a></li>
<li><a class="dropdown-item" href="#" id="item_upload_file">Upload...</a></li> <li><a class="dropdown-item" href="#" id="item_upload_file">Upload...</a></li>
<hr> <hr>
@ -113,10 +113,33 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
</li> </li>
</ul> </ul>
</li> </li>
<hr> <!--
<li class="dropdown dropdown-submenu"> <hr><li><a class="dropdown-item" href="/redir.html">Use Latest Version</a></li>
<a tabindex="-1" href="#">Platform</a> -->
<ul class="dropdown-menu"> </ul>
</span>
<select id="preset_select" name="" title="Project Select" style="width:18em;visibility:hidden">
</select>
<img id="compile_spinner" src="images/spinner.gif" height="20em" style="visibility:hidden;margin-left:8px;margin-right:8px">
<span id="toolbar" class="hidden-xs"></span>
<span class="btn_group view_group hidden-sm hidden-xs" id="speed_bar" style="display:none">
<button id="dbg_slowest" class="btn" title="Slowest"><span class="glyphicon glyphicon-fast-backward" aria-hidden="true"></span></button>
<button id="dbg_slower" class="btn" title="Slower"><span class="glyphicon glyphicon-backward" aria-hidden="true"></span></button>
<span class="label"><span id="fps_label">60.00</span> fps</span>
<button id="dbg_faster" class="btn" title="Faster"><span class="glyphicon glyphicon-forward" aria-hidden="true"></span></button>
<button id="dbg_fastest" class="btn" title="Faster"><span class="glyphicon glyphicon-fast-forward" aria-hidden="true"></span></button>
</span>
<span id="verilog_bar" style="display:none">
<span class="label"><span id="settle_label"></span> evals/clk</span>
</span>
<span class="dropdown">
<a class="btn dropdown-toggle hidden-xs toolbarMenuButton" id="platformsMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
PLATFORMS <span class="caret"></span>
</a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="platformsMenuButton">
<li class="dropdown dropdown-submenu"> <li class="dropdown dropdown-submenu">
<a tabindex="-1" href="#">Game Consoles</a> <a tabindex="-1" href="#">Game Consoles</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@ -158,36 +181,12 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
</ul> </ul>
</li> </li>
</ul> </ul>
</li>
<!--
<hr><li><a class="dropdown-item" href="/redir.html">Use Latest Version</a></li>
-->
</ul>
</span> </span>
<span class="dropdown">
<select id="preset_select" name="" title="Project Select" style="width:18em;visibility:hidden"> <a class="btn dropdown-toggle hidden-xs toolbarMenuButton" id="booksMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
</select> BOOKS <span class="caret"></span>
<img id="compile_spinner" src="images/spinner.gif" height="20em" style="visibility:hidden;margin-left:8px;margin-right:8px">
<span id="toolbar" class="hidden-xs"></span>
<span class="btn_group view_group hidden-sm hidden-xs" id="speed_bar" style="display:none">
<button id="dbg_slowest" class="btn" title="Slowest"><span class="glyphicon glyphicon-fast-backward" aria-hidden="true"></span></button>
<button id="dbg_slower" class="btn" title="Slower"><span class="glyphicon glyphicon-backward" aria-hidden="true"></span></button>
<span class="label"><span id="fps_label">60.00</span> fps</span>
<button id="dbg_faster" class="btn" title="Faster"><span class="glyphicon glyphicon-forward" aria-hidden="true"></span></button>
<button id="dbg_fastest" class="btn" title="Faster"><span class="glyphicon glyphicon-fast-forward" aria-hidden="true"></span></button>
</span>
<span id="verilog_bar" style="display:none">
<span class="label"><span id="settle_label"></span> evals/clk</span>
</span>
<span class="dropdown" style="float:right">
<span class="logo-gradient hidden-xs hidden-sm hidden-md">8bitworkshop</span>
&nbsp;
<a class="btn btn-secondary dropdown-toggle hidden-xs" id="booksMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
GET BOOKS <span class="caret"></span>
</a> </a>
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenuButton"> <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="booksMenuButton">
<li> <li>
<a class="dropdown-item dropdown-link" target="_book_a2600" href="https://www.amazon.com/gp/product/1541021304/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=pzp-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N4DSRIZ&linkId=04d39e274c06e6c93b93d20a9a977111"> <a class="dropdown-item dropdown-link" target="_book_a2600" href="https://www.amazon.com/gp/product/1541021304/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=pzp-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N4DSRIZ&linkId=04d39e274c06e6c93b93d20a9a977111">
<img src="images/book_a2600.png"/> <img src="images/book_a2600.png"/>
@ -208,6 +207,9 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
</li> </li>
</ul> </ul>
</span> </span>
<span class="logo-gradient hidden-xs hidden-sm hidden-md pull-right">8bitworkshop</span>
<!--<span id="best_in_firefox" style="display:none;font-size:12px;font-style:italic;float:right;color:#666">Note: Works best in Firefox</span>--> <!--<span id="best_in_firefox" style="display:none;font-size:12px;font-style:italic;float:right;color:#666">Note: Works best in Firefox</span>-->
</div> </div>
<div id="notebook"> <div id="notebook">

View File

@ -472,7 +472,7 @@ function _publishProjectToGithub(e) {
} }
var modal = $("#publishGithubModal"); var modal = $("#publishGithubModal");
var btn = $("#publishGithubButton"); var btn = $("#publishGithubButton");
$("#githubRepoName").val(getFilenamePrefix(current_project.mainPath)); $("#githubRepoName").val(getFilenamePrefix(getFilenameForPath(current_project.mainPath)));
modal.modal('show'); modal.modal('show');
btn.off('click').on('click', () => { btn.off('click').on('click', () => {
var name = $("#githubRepoName").val()+""; var name = $("#githubRepoName").val()+"";