From e5771b849b5bf729501f036ee8e7b6f0f2f1c5e9 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Fri, 9 Dec 2022 11:22:13 -0600 Subject: [PATCH] LP1999955 AccessKeys info style updates Adds styles to the keyboard shortcuts to make them look more like keys. Also adds striping to each row and makes the headers bold. Signed-off-by: Stephanie Leary Signed-off-by: Josh Stompro Signed-off-by: Jane Sandberg --- .../share/accesskey/accesskey-info.component.css | 35 ++++++++++++++++++++++ .../share/accesskey/accesskey-info.component.html | 27 ++++++++++------- .../share/accesskey/accesskey-info.component.ts | 6 ++-- 3 files changed, 55 insertions(+), 13 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css diff --git a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css new file mode 100644 index 0000000000..b672194f4a --- /dev/null +++ b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css @@ -0,0 +1,35 @@ +.modal-body .row { + margin: 0; +} + +.modal-body .row:nth-of-type(odd) { + background: #f4f4f4; +} + +.modal-body .row.shortcut-info { + background: #fff; + font-style: italic; +} + +.modal-body .row-header { + font-weight: bold; +} + +.shortcut-keycombo { + text-align: center; +} + +kbd { + background-color:#e4e4e7; + border-radius:.2rem; + border: none; + box-shadow: 1px 1px 1px rgba(0,0,10,0.5); + color: #000; + margin: 0 .2em; + /* :first-letter requires a block-level element */ + display: inline-block; +} + +kbd:first-letter { + text-transform: uppercase; +} diff --git a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html index 8396ea5873..e528540814 100644 --- a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html +++ b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html @@ -7,20 +7,25 @@