From 302c116c8f5eff3db02bda883d38ebba110dd6f7 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 20 Jun 2024 14:20:06 -0700 Subject: [PATCH] Don't color PB shop/trade buttons purple in Item Getting Guide I think it's clearer to just keep the purple meaning "NC", and in particular "bulk NC Mall purchase" --- app/assets/stylesheets/items/sources.sass | 11 ++++++----- app/views/items/sources.html.haml | 10 ++++++++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index d348ebe7..1927b5b4 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -62,11 +62,6 @@ .thumbnail-cell img outline: 1px solid $soft-border-color - .actions-cell - button, a.button - /* Bootstrap's Purple 600 */ - +awesome-button-color(#59359a) - tr[data-item-owned] color: #aaa @@ -119,6 +114,12 @@ text-decoration-line: underline text-decoration-style: dotted + .actions-cell + button, a.button + &[data-action-kind=bulk-nc-mall] + /* Bootstrap's Purple 600 */ + +awesome-button-color(#59359a) + &[data-complexity="high"] width: 70% diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index d16ae107..4ac4bde0 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -21,7 +21,10 @@ %td.actions-cell - if @items_needed[:nc_mall].present? - %button{onclick: "alert('Todo!')"} + %button{ + onclick: "alert('Todo!')", + data: {"action-kind": "bulk-nc-mall"}, + } = cart_icon alt: "" Buy all in NC Mall %tbody @@ -65,7 +68,10 @@ (~#{dyeworks_estimated_potions_cost_for @items_needed[:dyeworks]} NC) %td.actions-cell - if @items_needed[:dyeworks].present? - %button{onclick: "alert('Todo!')"} + %button{ + onclick: "alert('Todo!')", + data: {"action-kind": "bulk-nc-mall"}, + } = cart_icon alt: "" Buy all in NC Mall %tbody