From 189cb6a132472ed4f582a8f678f935f8c1ac3682 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 22 May 2024 14:47:43 -0700 Subject: [PATCH] Set fixed table width for Item Getting Guide tables We'll need to dig into this more for mobile, but here's my initial attempt at getting the tables to be consistently-sized and such! --- app/assets/stylesheets/items/sources.sass | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index ad47016f..174237ca 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -4,6 +4,8 @@ .item-list border-collapse: collapse border: 1px solid $soft-border-color + width: 60% + table-layout: auto td, th border-top: 1px solid $soft-border-color @@ -17,21 +19,25 @@ &:last-child padding-right: .5em - .thumbnail-cell img - display: block + .thumbnail-cell width: 2.5em height: 2.5em - .actions-cell - text-align: right - padding-left: 1em - font-size: 85% + img + display: block + width: 100% + height: 100% .name-cell a text-decoration: none &:hover text-decoration: underline + .actions-cell + text-align: right + padding-left: 1em + font-size: 85% + thead background: $module-bg-color