From 5517204b3b600d511a2743b7381da6ff7fbde566 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 5 Jan 2017 06:03:46 +0300 Subject: [PATCH] minor tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/experimenting.css | 15 ++++++++++++++- ui (gen4)/css/widget/browse.css | 18 +++++++++--------- ui (gen4)/features/keyboard.js | 3 ++- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/ui (gen4)/css/experimenting.css b/ui (gen4)/css/experimenting.css index e4d54878..481889cf 100755 --- a/ui (gen4)/css/experimenting.css +++ b/ui (gen4)/css/experimenting.css @@ -298,6 +298,9 @@ body { font-weight: bold; background: rgba(0, 0, 0, 0.5); } +.browse-widget.key-bindings .list>.mode span:first-child { + margin-left: -0.5em; +} .browse-widget.key-bindings .list>.mode .doc { margin-left: 1em; @@ -314,7 +317,8 @@ body { background: rgba(0, 0, 0, 0.7); } -.browse-widget.key-bindings .list>.key { +.browse-widget.key-bindings .list>div:not(.selected):not(.mode):nth-child(even) { + background: rgba(0, 0, 0, 0.03); } .browse-widget.key-bindings .list>.key .button { background-color: rgba(0, 0, 0, 0.1); @@ -342,6 +346,15 @@ body { .browse-widget.key-bindings .list>.new.selected { } +/* dark theme... */ +.dark .browse-widget.key-bindings .list>.mode { + background: rgba(255, 255, 255, 0.1); +} +.dark .browse-widget.key-bindings .list>div:not(.selected):not(.mode):nth-child(even) { + background: rgba(255, 255, 255, 0.03); +} + + /* DEBUG stuff... */ diff --git a/ui (gen4)/css/widget/browse.css b/ui (gen4)/css/widget/browse.css index 2c86edcf..7e0b229b 100755 --- a/ui (gen4)/css/widget/browse.css +++ b/ui (gen4)/css/widget/browse.css @@ -310,31 +310,31 @@ margin-left: -15px; } -.browse-widget .list>div:nth-of-type(1) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(1) .text:first-child:before { content: "1"; } -.browse-widget .list>div:nth-of-type(2) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(2) .text:first-child:before { content: "2"; } -.browse-widget .list>div:nth-of-type(3) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(3) .text:first-child:before { content: "3"; } -.browse-widget .list>div:nth-of-type(4) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(4) .text:first-child:before { content: "4"; } -.browse-widget .list>div:nth-of-type(5) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(5) .text:first-child:before { content: "5"; } -.browse-widget .list>div:nth-of-type(6) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(6) .text:first-child:before { content: "6"; } -.browse-widget .list>div:nth-of-type(7) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(7) .text:first-child:before { content: "7"; } -.browse-widget .list>div:nth-of-type(8) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(8) .text:first-child:before { content: "8"; } -.browse-widget .list>div:nth-of-type(9) .text:first-child:before { +.browse-widget:not(.no-item-numbers) .list>div:nth-of-type(9) .text:first-child:before { content: "9"; } diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index c747be0c..edb50a8f 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -610,6 +610,7 @@ var KeyboardActions = actions.Actions({ // * add ability to disable key (???) // XXX key editor: // + // [ mode ] // [ action (text with dataset) ] [ args (text field) ] no default: [_] // --- // @@ -693,7 +694,7 @@ var KeyboardActions = actions.Actions({ .addClass('new') }) }, { - cls: 'key-bindings', + cls: 'key-bindings no-item-numbers', itemButtons: [ // XXX up