From 18089c316e032ac2e14d583738ebc79c8d6553de Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Wed, 3 Jan 2024 00:51:30 +0100 Subject: [PATCH] Refine link styling --- app/assets/stylesheets/application.css | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 5197b94..d39cbe2 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -77,7 +77,7 @@ input[type=submit] { padding: 0.4em; width: fit-content; } -input:not([type=submit]).not([type=checkbox]), +input:not([type=submit]):not([type=checkbox]), select { padding: 0.2rem 0.4rem; } @@ -165,20 +165,20 @@ input[type=text]:read-only { .navigation > .tab + .tab.right { margin-inline-start: 4%; } -/* TODO: inactive tab color #d0d0d0 or #c7c7c7 */ .navigation > .tab { - border-bottom: solid 3px #c7c7c7; + border-bottom: solid 2px #c7c7c7; display: flex; flex: 1; font-size: 1rem; justify-content: center; padding-block: 0.3em; } -.navigation > .tab:hover { - border-bottom: solid 4px #009ade; +.navigation > .tab:hover, +.navigation > .tab:focus-visible { + background-color: #f3f3f3; } .navigation > .tab.active { - border-bottom: solid 4px; + border-bottom: solid 4px #009ade; color: #009ade; fill: #009ade; } @@ -339,22 +339,24 @@ table.items td.actions { justify-content: end; } -table.items a:hover, -table.items a:focus-visible, -table.items a:hover:focus-visible { +/* TODO: replace :hover:focus-visible with proper stye order */ +table.items td.link a:hover, +table.items td.link a:focus-visible, +table.items td.link a:hover:focus-visible { text-decoration: underline; text-decoration-thickness: 0.05rem; text-underline-offset: 0.2rem; } -table.items a:hover { +table.items td.link a:hover { color: #009ade; } -table.items a:focus-visible { +table.items td.link a:focus-visible { text-decoration-color: #a0a0a0; } -table.items a:hover:focus-visible { +table.items td.link a:hover:focus-visible { color: #006c9b; } + table.items td:not(:first-child) { color: #909090; fill: #909090;