From 440d01c66022836565f8565c930a8babc692c14f Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Fri, 15 Oct 2021 22:22:48 -0400 Subject: Key styling --- application/components/key-value.vue | 2 +- application/components/key.vue | 10 +- application/components/keymap-picker.vue | 237 +++++++++++++++++++++++++++++++ application/style.css | 1 + 4 files changed, 244 insertions(+), 6 deletions(-) create mode 100644 application/components/keymap-picker.vue (limited to 'application') diff --git a/application/components/key-value.vue b/application/components/key-value.vue index 12c0acd..776a37b 100644 --- a/application/components/key-value.vue +++ b/application/components/key-value.vue @@ -30,7 +30,7 @@ export default { } .code.highlight { background-color: white !important; - color: var(--dark-red) !important; + color: var(--hover-selection) !important; } \ No newline at end of file diff --git a/application/components/key.vue b/application/components/key.vue index c1cecc3..315a2e9 100644 --- a/application/components/key.vue +++ b/application/components/key.vue @@ -202,16 +202,16 @@ export default { align-items: center; color: #999; + background-color: whitesmoke; font-size: 110%; - border: 1px solid lightgray; border-radius: 5px; } .key:hover { - background-color: var(--dark-red); - /*transition: 250ms;*/ + background-color: var(--hover-selection); + transition: 200ms; z-index: 1; } -.key:hover .code { +.key:hover .code, .key:hover .behaviour-binding { color: white; } .key > .code { @@ -233,7 +233,7 @@ export default { .behaviour-binding:hover { cursor: pointer; - color: var(--dark-red); + color: var(--hover-selection) !important; background-color: white; border-radius: 5px 0; opacity: 1; diff --git a/application/components/keymap-picker.vue b/application/components/keymap-picker.vue new file mode 100644 index 0000000..e93945a --- /dev/null +++ b/application/components/keymap-picker.vue @@ -0,0 +1,237 @@ + + + + + \ No newline at end of file diff --git a/application/style.css b/application/style.css index eb12f24..daca53b 100644 --- a/application/style.css +++ b/application/style.css @@ -1,6 +1,7 @@ :root { --dark-red: #910e0e; --dark-blue: #6d99c6; + --hover-selection: rgba(60, 179, 113, 0.85); } html { -- cgit v1.2.3