From 31b5b99598b1d2792880c19740b733019a016956 Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Wed, 25 Sep 2019 14:15:09 -0700 Subject: [PATCH] Kbd elements in about (#871) * WIP * improve /about with keyboard shortcuts * clean up about styles --- components/ExportMenu.js | 2 +- components/style/Reset.js | 16 ++++++++++++ pages/about.js | 51 ++++++++++++++++++++++++++++++--------- 3 files changed, 56 insertions(+), 13 deletions(-) diff --git a/components/ExportMenu.js b/components/ExportMenu.js index 988dbaa..101705e 100644 --- a/components/ExportMenu.js +++ b/components/ExportMenu.js @@ -141,7 +141,7 @@ function ExportMenu({
- Export as + Export
{!disablePNG && (
@@ -79,6 +78,25 @@ export default () => ( ) below the image.

+

+ Keyboard Shortcuts +

+ + + + + + + + + + + +
Open settings menu + ⌘-/ +
Export as PNG + ⌘-Shift-E +

I want to make this better.

@@ -93,28 +111,37 @@ export default () => ( {` .about { font-size: 16px; + max-width: 632px; } + h2 { font-weight: bold; font-size: 32px; } + h4 { + font-weight: bold; + } p, li { color: #fff; } + ul { + list-style-position: inside; + list-style-type: circle; + } + span { color: #fff; } - ul { - list-style-position: inside; - list-style-type: circle; + td { + padding: 0.25rem 0; } - .about { - max-width: 632px; + kbd { + margin-left: var(--x3); } `}