diff --git a/static/fontscale.js b/static/fontscale.js index 7ee7fa497..2b40057a9 100644 --- a/static/fontscale.js +++ b/static/fontscale.js @@ -31,7 +31,7 @@ var options = require('./options'); function makeFontSizeDropdown(elem, obj, buttonDropdown) { var onWheelEvent = function (e) { e.preventDefault(); - var selectedId = elem.find('.dropdown-item-active').index(); + var selectedId = elem.find('.active').index(); if (e.originalEvent.deltaY >= 0 && selectedId < elem.children().length - 1) { selectedId++; } else if (e.originalEvent.deltaY < 0 && selectedId > 0) { @@ -43,8 +43,8 @@ function makeFontSizeDropdown(elem, obj, buttonDropdown) { var onClickEvent = function () { // Toggle off the selection of the others $(this) - .addClass('dropdown-item-active') - .siblings().removeClass('dropdown-item-active'); + .addClass('active') + .siblings().removeClass('active'); // Send the data obj.scale = $(this).data('value'); obj.apply(); @@ -55,13 +55,13 @@ function makeFontSizeDropdown(elem, obj, buttonDropdown) { var item = $(''); item.attr('data-value', i) - .addClass('dropdown-item btn btn-sm') + .addClass('dropdown-item btn btn-sm btn-light') .text(i) .appendTo(elem) .click(onClickEvent); if (obj.scale === i) { - item.addClass('dropdown-item-active'); + item.addClass('active'); } } diff --git a/static/themes/dark-theme.css b/static/themes/dark-theme.css index 3813715eb..10a76f777 100644 --- a/static/themes/dark-theme.css +++ b/static/themes/dark-theme.css @@ -140,7 +140,7 @@ a.navbar-brand img.logo.normal { .selectize-dropdown { color: #f2f2f2 !important; - background-color: #666 !important; + background-color: #303030 !important; } .selectize-control.single .selectize-input.disabled { @@ -148,6 +148,15 @@ a.navbar-brand img.logo.normal { background-color: #383838 !important; } +.active { + background-color: #235765 !important; + color: #fff !important; +} + +.active:hover { + background-color: #998899 !important; +} + .dropdown-menu { color: #f2f2f2 !important; background-color: #303030 !important; @@ -163,14 +172,6 @@ a.navbar-brand img.logo.normal { background-color: #23272b !important; } -.dropdown-item-active { - background-color: #235765 !important; -} - -.dropdown-item-active:hover { - background-color: #998899 !important; -} - .notification { background-color: gray !important; } @@ -227,24 +228,30 @@ input { .btn-light { color: #e2e2e2 !important; - background-color: #474747 !important; - border-color: #272727 !important; -} - -.btn-light:hover { - background-color: #383838 !important; + background-color: #333 !important; + border-color: #333 !important; } .btn-light.active { - color: #f2f2f2 !important; + background-color: #235765 !important; + color: #fff !important; +} + +.btn-light.active:hover { + background-color: #998899 !important; +} + +.btn-light:hover { + background-color: #23272b !important; } .btn-light:disabled { - color: #aaa !important; + background-color: #575757 !important; + color: #fff !important; } .btn-light:disabled:hover { - background-color: #474747 !important; + background-color: #575757 !important; } .top-bar.btn-toolbar.bg-light { @@ -317,13 +324,13 @@ input { } #socialshare .share-twitter, .share-twitter { - background-color: #1da1f2; - color: white; + background-color: #1da1f2 !important; + color: white !important; } #socialshare .share-reddit, .share-reddit { - background-color: #ff4500; - color: white; + background-color: #ff4500 !important; + color: white !important; } .share-disabled { diff --git a/views/templates.pug b/views/templates.pug index 81a28b0dd..7564bd051 100644 --- a/views/templates.pug +++ b/views/templates.pug @@ -6,7 +6,7 @@ .btn-group.btn-group-sm .input-group.input-group-sm .input-group-prepend - button.btn.btn-sm.btn-outline-secondary.dropdown-toggle(data-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false") + button.btn.btn-sm.btn-light.btn-outline-secondary.dropdown-toggle(data-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false") span.current Short ul.dropdown-menu.sources if storageSolution !== "null" @@ -16,11 +16,11 @@ | Full input.form-control.permalink(type="text" placeholder="Loading" readonly size="1024") .input-group-append - button.btn.btn-sm.btn-outline-secondary.clippy(type="button" data-clipboard-target=".popover .permalink" title="Copy to clipboard") + button.btn.btn-sm.btn-light.btn-outline-secondary.clippy(type="button" data-clipboard-target=".popover .permalink" title="Copy to clipboard") span.fa.fa-clipboard div |   - button.btn.btn-sm.btn-outline-secondary.shareembed(data-target="#shareembedlink" data-toggle="modal" data-bind="Embed") + button.btn.btn-sm.btn-light.btn-outline-secondary.shareembed(data-target="#shareembedlink" data-toggle="modal" data-bind="Embed") | Embedded if sharingEnabled .card-footer @@ -30,10 +30,10 @@ .top-bar.btn-toolbar.bg-light(role="toolbar" aria-label="Editor toolbar" name="editor-btn-toolbar") include font-size.pug .btn-group.btn-group-sm(role="group" aria-label="Editor settings") - button.btn.btn-light.load-save(title="Load or save text" aria-label="Load or save text") + button.btn.btn-sm.btn-light.load-save(title="Load or save text" aria-label="Load or save text") span.fa.fa-save span.hideable  Save/Load - button.dropdown-toggle.btn.btn-light.add-pane(type="button" title="Add a new pane" aria-label="Add a new pane" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") + button.dropdown-toggle.btn.btn-sm.btn-light.add-pane(type="button" title="Add a new pane" aria-label="Add a new pane" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") span.fa.fa-plus span.hideable  Add new... .dropdown-menu @@ -49,10 +49,10 @@ button.dropdown-item.btn.btn-sm.btn-light.add-editor(title="Add a new source editor view" aria-label="New source editor") span.dropdown-icon.fa.fa-code | Source editor - button#vim-flag.btn.btn-light(title="Toggle Vim Keybindings") + button#vim-flag.btn.btn-sm.btn-light(title="Toggle Vim Keybindings") span.fab.fa-vimeo-v span.hideable   Vim - a.btn.btn-light.open-in-cppinsights(href="https://cppinsights.io/" target="_blank" title="Open in Cppinsights" arial-label="Open in Cppinsights") + a.btn.btn-sm.btn-light.open-in-cppinsights(href="https://cppinsights.io/" target="_blank" title="Open in Cppinsights" arial-label="Open in Cppinsights") svg(height="16" width="16") include resources/cppinsights.svg span.hideable  CppInsights @@ -67,80 +67,80 @@ select.compiler-picker(placeholder="Select a compiler...") .input-group.mb-auto .input-group-prepend(title="Show all compilation options") - button.input-group-text.prepend-options(data-trigger="click" style="cursor: pointer;" role="button" title="All compilation options") - span.btn.btn-light.btn-sm.status-icon + button.btn.btn-sm.btn-light.input-group-text.prepend-options(data-trigger="click" style="cursor: pointer;" role="button" title="All compilation options") + span.status-icon input.options.form-control(type="text" placeholder="Compiler options..." size="256" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false") .input-group-append.populararguments(title="Popular arguments") - button.btn.btn-outline-secondary.dropdown-toggle.dropdown-toggle-split(type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") + button.btn.btn-sm.btn-light.btn-outline-secondary.dropdown-toggle.dropdown-toggle-split(type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") span.sr-only Popular arguments div.dropdown-menu.dropdown-menu-right include font-size .btn-group.btn-group-sm.filters(role="group" aria-label="Compiler filters") .button-checkbox - button.btn.btn-light.btn-sm(type="button" title="Compile to binary and disassemble the output" data-bind="binary" aria-pressed="false") + button.btn.btn-sm.btn-light(type="button" title="Compile to binary and disassemble the output" data-bind="binary" aria-pressed="false") span 11010 input.d-none(type="checkbox") .button-checkbox - button.btn.btn-light.btn-sm(type="button" title="Execute the binary" data-bind="execute" aria-pressed="false") + button.btn.btn-sm.btn-light(type="button" title="Execute the binary" data-bind="execute" aria-pressed="false") span ./a.out input.d-none(type="checkbox") .button-checkbox - button.btn.btn-light.btn-sm.active.nonbinary(type="button" title="Filter unused labels from the output" data-bind="labels" aria-pressed="true") + button.btn.btn-sm.btn-light.active.nonbinary(type="button" title="Filter unused labels from the output" data-bind="labels" aria-pressed="true") span .LX0: input.d-none(type="checkbox" checked=true) .button-checkbox - button.btn.btn-light.btn-sm.active.nonbinary(title="Filter functions from other libraries from the output" data-bind="libraryCode" aria-pressed="true") + button.btn.btn-sm.btn-light.active.nonbinary(title="Filter functions from other libraries from the output" data-bind="libraryCode" aria-pressed="true") span lib.f: input.d-none(type="checkbox") .button-checkbox - button.btn.btn-light.btn-sm.active.nonbinary(type="button" title="Filter all assembler directives from the output" data-bind="directives" aria-pressed="true") + button.btn.btn-sm.btn-light.active.nonbinary(type="button" title="Filter all assembler directives from the output" data-bind="directives" aria-pressed="true") span .text input.d-none(type="checkbox" checked=true) .button-checkbox - button.btn.btn-light.btn-sm.active.nonbinary(type="button" title="Remove all lines which are only comments from the output" data-bind="commentOnly" aria-pressed="true") + button.btn.btn-sm.btn-light.active.nonbinary(type="button" title="Remove all lines which are only comments from the output" data-bind="commentOnly" aria-pressed="true") span // input.d-none(type="checkbox" checked=true) .button-checkbox - button.btn.btn-light.btn-sm(type="button" title="Trim intra-line whitespace" data-bind="trim" aria-pressed="false") + button.btn.btn-sm.btn-light(type="button" title="Trim intra-line whitespace" data-bind="trim" aria-pressed="false") span \s+ input.d-none(type="checkbox") .button-checkbox - button.btn.btn-light.btn-sm.active(type="button" title="Output disassembly in Intel syntax" data-bind="intel" aria-pressed="true") + button.btn.btn-sm.btn-light.active(type="button" title="Output disassembly in Intel syntax" data-bind="intel" aria-pressed="true") span Intel input.d-none(type="checkbox" checked=true) .button-checkbox - button.btn.btn-light.btn-sm.active(type="button" title="Demangle output" data-bind="demangle" aria-pressed="true") + button.btn.btn-sm.btn-light.active(type="button" title="Demangle output" data-bind="demangle" aria-pressed="true") span Demangle input.d-none(type="checkbox" checked=true) .btn-group.btn-group-sm(role="group" aria-label="Compiler additions") - button.btn.btn-light.btn-sm.show-libs.dropdown-toggle(title="Include libs" aria-label="Toggle libraries dropdown" aria-pressed="false" aria-haspopup="true") + button.btn.btn-sm.btn-light.show-libs.dropdown-toggle(title="Include libs" aria-label="Toggle libraries dropdown" aria-pressed="false" aria-haspopup="true") span.fas.fa-book span.hideable  Libraries .btn-group.btn-group-sm(role="group") - button.btn.btn-light.btn-sm.dropdown-toggle.add-pane(type="button" title="Add a new pane" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Add new element for this compiler") + button.btn.btn-sm.btn-light.dropdown-toggle.add-pane(type="button" title="Add a new pane" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Add new element for this compiler") span.fas.fa-plus span.hideable  Add new... .dropdown-menu.dropdown-menu-right - button.dropdown-item.btn.btn-light.btn-sm.add-compiler(title="Clone this compiler window (click or drag)") + button.dropdown-item.btn.btn-sm.btn-light.add-compiler(title="Clone this compiler window (click or drag)") span.dropdown-icon.far.fa-clone | Clone compiler - button.dropdown-item.btn.btn-light.btn-sm.view-optimization(title="Show optimization output") + button.dropdown-item.btn.btn-sm.btn-light.view-optimization(title="Show optimization output") span.dropdown-icon.fas.fa-weight | Optimization output - button.dropdown-item.btn.btn-light.btn-sm.view-ast(title="Show AST output") + button.dropdown-item.btn.btn-sm.btn-light.view-ast(title="Show AST output") span.dropdown-icon.fas.fa-leaf | AST output - button.dropdown-item.btn.btn-light.btn-sm.view-ir(title="Show IR output") + button.dropdown-item.btn.btn-sm.btn-light.view-ir(title="Show IR output") span.dropdown-icon.fas.fa-align-center | IR output - button.dropdown-item.btn.btn-light.btn-sm.view-gccdump(title="Show Tree/RTL dump (GCC only)") + button.dropdown-item.btn.btn-sm.btn-light.view-gccdump(title="Show Tree/RTL dump (GCC only)") span.dropdown-icon.fas.fa-tree | GCC Tree/RTL output - button.dropdown-item.btn.btn-light.btn-sm.view-cfg(title="Show Graph Output") + button.dropdown-item.btn.btn-sm.btn-light.view-cfg(title="Show Graph Output") span.dropdown-icon.fas.fa-exchange-alt | Graph output .btn-group.btn-group-sm(role="group") - button.btn.btn-light.btn-sm.dropdown-toggle.add-tool(type="button" title="Add tool" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Add tooling to this editor and compiler") + button.btn.btn-sm.btn-light.dropdown-toggle.add-tool(type="button" title="Add tool" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Add tooling to this editor and compiler") span.fas.fa-cogs span.hideable  Add tool... .dropdown-menu.dropdown-menu-right.toolsmenu @@ -150,9 +150,9 @@ .btn-group.btn-group-sm .input-group .input-group-prepend - button.btn.btn-light.btn-sm.clear-cache(title="Clear cache & recompile") + button.btn.btn-sm.btn-light.clear-cache(title="Clear cache & recompile") span.fas.fa-redo - button.btn.btn-light.btn-sm.output-btn + button.btn.btn-sm.btn-light.output-btn span.fas.fa-receipt.status-text |  Output span.output-count @@ -164,25 +164,25 @@ | 0 | ) span.short-compiler-name - button.btn.btn-light.btn-sm.fas.fa-info.full-compiler-name(data-trigger="click" style="cursor: pointer;" role="button" title="Full compiler version") + button.btn.btn-sm.btn-light.fas.fa-info.full-compiler-name(data-trigger="click" style="cursor: pointer;" role="button" title="Full compiler version") span.compile-time(title="Compilation time (Result size)") #executor .top-bar.btn-toolbar.bg-light(role="toolbar") include font-size - button.btn.btn-light.btn-sm.show-libs.dropdown-toggle(title="Include libs" aria-label="Toggle libraries dropdown" aria-pressed="false" aria-haspopup="true") + button.btn.btn-sm.btn-light.show-libs.dropdown-toggle(title="Include libs" aria-label="Toggle libraries dropdown" aria-pressed="false" aria-haspopup="true") span.fas.fa-book span.hideable  Libraries - button.btn.btn-light.btn-sm.toggle-compilation.active + button.btn.btn-sm.btn-light.toggle-compilation.active span.fas.fa-cogs span.hideable  Compilation - button.btn.btn-light.btn-sm.toggle-args + button.btn.btn-sm.btn-light.toggle-args span.fas.fa-terminal span.hideable  Arguments - button.btn.btn-light.btn-sm.toggle-stdin + button.btn.btn-sm.btn-light.toggle-stdin span.fas.fa-sign-in-alt span.hideable  Stdin - button.btn.btn-light.btn-sm.toggle-compilerout.active + button.btn.btn-sm.btn-light.toggle-compilerout.active span.fas.fa-sign-out-alt span.hideable  Compiler output .top-bar.btn-toolbar.bg-light.panel-compilation(role="toolbar") @@ -191,7 +191,7 @@ .input-group.mb-auto .input-group-prepend(title="Show all compilation options") button.input-group-text.prepend-options(data-trigger="click" style="cursor: pointer;" role="button" title="All compilation options") - span.btn.btn-light.btn-sm.status-icon + span.btn.btn-sm.btn-light.status-icon input.compilation-options.form-control(type="text" placeholder="Compiler options..." size="256" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false") .top-bar.btn-toolbar.bg-light.panel-args.d-none(role="toolbar") input.execution-arguments.form-control(type="text" placeholder="Execution arguments..." size="256" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false") @@ -203,7 +203,7 @@ .execution-output .bottom-bar.bg-light span.short-compiler-name - button.btn.btn-light.btn-sm.fas.fa-info.full-compiler-name(data-trigger="click" style="cursor: pointer;" role="button" title="Full compiler version") + button.btn.btn-sm.btn-light.fas.fa-info.full-compiler-name(data-trigger="click" style="cursor: pointer;" role="button" title="Full compiler version") span.compile-time(title="Compilation time (Result size)") #compiler-output @@ -211,7 +211,7 @@ include font-size .btn-group.btn-group-sm.options(role="group" aria-label="Output options") .button-checkbox - button.btn.btn-light.btn-sm.wrap-lines(type="button" title="Wrap lines" data-bind="wrap" aria-pressed="false" aria-label="Wrap lines") + button.btn.btn-sm.btn-light.wrap-lines(type="button" title="Wrap lines" data-bind="wrap" aria-pressed="false" aria-label="Wrap lines") span Wrap lines input.d-none(type="checkbox" checked=false) pre.content @@ -222,13 +222,13 @@ .input-group.input-group-sm.mb-auto include font-size .button-checkbox - button.btn.btn-light.btn-sm.wrap-lines(type="button" title="Wrap lines" data-bind="wrap" aria-pressed="false" aria-label="Wrap lines") + button.btn.btn-sm.btn-light.wrap-lines(type="button" title="Wrap lines" data-bind="wrap" aria-pressed="false" aria-label="Wrap lines") span Wrap lines input.d-none(type="checkbox" checked=false) - button.btn.btn-light.btn-sm.toggle-args + button.btn.btn-sm.btn-light.toggle-args span.fas.fa-terminal span.hideable  Arguments - button.btn.btn-light.btn-sm.toggle-stdin + button.btn.btn-sm.btn-light.toggle-stdin span.fas.fa-sign-in-alt span.hideable  Stdin .top-bar.btn-toolbar.bg-light.panel-args.d-none(role="toolbar") @@ -277,11 +277,11 @@ select.gccdump-pass-picker(placeholder="Select a pass...") .btn-group.btn-group-sm.dump-filters .button-checkbox - button.btn.btn-light.btn-sm.active(type="button" title="Show Tree pass" data-bind="treeDump" aria-pressed="true") + button.btn.btn-sm.btn-light.active(type="button" title="Show Tree pass" data-bind="treeDump" aria-pressed="true") span Tree pass input.d-none(type="checkbox" checked=true) .button-checkbox - button.btn.btn-light.btn-sm.active(type="button" title="Show RTL pass" data-bind="rtlDump" aria-pressed="true") + button.btn.btn-sm.btn-light.active(type="button" title="Show RTL pass" data-bind="rtlDump" aria-pressed="true") span RTL pass input.d-none(type="checkbox" checked=true) .monaco-placeholder @@ -292,11 +292,11 @@ select.function-picker .btn-group.btn-group-sm.options(role="group") .button-checkbox - button.btn.btn-light.btn-sm.toggle-navigation(type="button" title="Toggle navigation buttons" aria-pressed="false" data-bind="navigation") + button.btn.btn-sm.btn-light.toggle-navigation(type="button" title="Toggle navigation buttons" aria-pressed="false" data-bind="navigation") span Nav input.d-none(type="checkbox") .button-checkbox - button.btn.btn-light.btn-sm.toggle-physics(type="button" title="Toggle physics to nodes" aria-pressed="false" data-bind="physics") + button.btn.btn-sm.btn-light.toggle-physics(type="button" title="Toggle physics to nodes" aria-pressed="false" data-bind="physics") span Physics input.d-none(type="checkbox") .graph-placeholder @@ -304,10 +304,10 @@ #conformance .top-bar.btn-toolbar.options-toolbar.bg-light(role="toolbar") .btn-group.btn-group-sm(role="group") - button.btn.btn-light.btn-sm.add-compiler(title="Add compiler") + button.btn.btn-sm.btn-light.add-compiler(title="Add compiler") span.fas.fa-plus span.hideable  Add compiler - button.btn.btn-light.btn-sm.show-libs.dropdown-toggle(title="Include libs" aria-label="Toggle libraries dropdown" aria-pressed="false" aria-haspopup="true") + button.btn.btn-sm.btn-light.show-libs.dropdown-toggle(title="Include libs" aria-label="Toggle libraries dropdown" aria-pressed="false" aria-haspopup="true") span.fas.fa-book span.hideable  Libraries .conformance-wrapper @@ -321,7 +321,7 @@ .input-group.mb-auto .input-group-prepend(title="Show all compilation options") a.input-group-text.prepend-options(tabindex="0" data-trigger="focus" style="cursor: pointer;" role="button" title="All compilation options") - span.btn.btn-light.btn-sm.status-icon + span.btn.btn-sm.btn-light.status-icon input.options.form-control(type="text" placeholder="Compiler options..." size="256" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false") .col-1 span.fas.fa-receipt.d-none.compiler-out(style="cursor: help;")