From 3dbcf41e4f8a9d456cf42e6e41a4d45cc1084b93 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sun, 9 Jun 2024 15:22:21 -0700 Subject: [PATCH] Restyle Owls link a bit in Item Getting Guide I think it helps a bit to have only the label be dotted-underlined, to hint that I'm offering help about what that *means*, but clear the way for the value itself to be more visible and less cluttered. --- app/assets/stylesheets/items/sources.sass | 6 ++---- app/views/items/sources.html.haml | 8 +++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index 8818ec82..13e6fcf6 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -84,14 +84,12 @@ a color: inherit - a[title] + .owls-info-link + .owls-info-label text-decoration-line: underline text-decoration-style: dotted cursor: help - &:hover, &:focus - text-decoration-style: solid - /* For wearable items that belong to a specific set that all come together, * like a Paint Brush. */ &[data-group-type="bundle"] diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index 4751ca28..90a6b3a8 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -174,9 +174,11 @@ = render "item_list_row", item: do - content_for :subtitle, flush: true do - if item.nc_trade_value.present? - = link_to "Owls listing: #{item.nc_trade_value.value_text}", - "https://www.neopets.com/~owls", target: "_blank", - title: 'Owls keeps track of approximate "capsule" values of NC items for trading. Items with similar values can often be traded for one another. This is an estimate, not a rule!' + = link_to "https://www.neopets.com/~owls", + class: "owls-info-link", target: "_blank", + title: 'Owls keeps track of approximate "capsule" values of NC items for trading. Items with similar values can often be traded for one another. This is an estimate, not a rule!' do + %span.owls-info-label Owls listing: + #{item.nc_trade_value.value_text} = button_link_to "NC Trades", item_trades_path(item, type: "offering"),