diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 51fb47c..3d6ed8e 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -60,6 +60,7 @@ textarea { /* blue - target for interaction with pointer */ /* gray - target for interaction with keyboard */ +/* TODO: remove non-font-size rems from buttons/inputs below */ a, button { white-space: nowrap; @@ -104,7 +105,6 @@ button > svg { /* TODO: move normal non-button links (:hover/:focus) styling here (i.e. * page-wide, top-level) and remove from table.items - as the style should be * same everywhere */ - .button:focus-visible, button:focus-visible, input[type=submit]:focus-visible { @@ -255,6 +255,7 @@ input[type=text]:read-only { } +/* TODO: Update styling, including rem removal. */ form table { border-spacing: 0.8rem; } @@ -354,6 +355,7 @@ table.items td.actions { } /* TODO: replace :hover:focus-visible combos with proper LOVE stye order */ +/* TODO: Update styling, including rem removal. */ table.items td.link a:hover, table.items td.link a:focus-visible, table.items td.link a:hover:focus-visible { diff --git a/app/models/unit.rb b/app/models/unit.rb index 195e963..4e2cff2 100644 --- a/app/models/unit.rb +++ b/app/models/unit.rb @@ -1,5 +1,6 @@ class Unit < ApplicationRecord belongs_to :user, optional: true + # TODO: validate base.user == user belongs_to :base, optional: true, class_name: "Unit" validates :symbol, presence: true, uniqueness: {scope: :user_id},