From 3edc35691b7e20548bfcbbefd42f4ec8991f89f7 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 13 Nov 2020 19:48:22 -0500 Subject: Display updates (#1024) * Update display generation to use new format assumptions * Simplify how debug information is presented --- ext/mixed/css/display.css | 12 +++++++----- ext/mixed/display-templates.html | 2 +- ext/mixed/js/display-generator.js | 35 ++++++++++++----------------------- ext/mixed/js/display.js | 9 +++++++++ 4 files changed, 29 insertions(+), 29 deletions(-) (limited to 'ext') diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index 77f6b073..e8cf5b8e 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -138,6 +138,12 @@ h2 { border-bottom: 0.05714285714285714em solid var(--light-border-color); /* 14px * 1.25em => 1px */ } +a { + color: var(--popuplar-kanji-text-color); + text-decoration: underline; + cursor: pointer; +} + /* * Navigation @@ -524,14 +530,10 @@ button.action-button { content: ", "; } -.debug-info { +:root:not([data-debug=true]) .debug-info { display: none; } -:root[data-debug=true] .debug-info { - display: block; -} - :root[data-anki-enabled=false] .action-view-note, :root[data-anki-enabled=false] .action-add-note { display: none; diff --git a/ext/mixed/display-templates.html b/ext/mixed/display-templates.html index fed252a1..08028f7b 100644 --- a/ext/mixed/display-templates.html +++ b/ext/mixed/display-templates.html @@ -21,7 +21,7 @@
      -
      
      +    
      Log debug info to console