From 2319c8e19e323552112d99eb440a76771cffd3de Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 17 Feb 2020 23:55:28 -0500 Subject: make compatibility list header sticky --- src/SMAPI.Web/wwwroot/Content/css/mods.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/SMAPI.Web/wwwroot/Content') diff --git a/src/SMAPI.Web/wwwroot/Content/css/mods.css b/src/SMAPI.Web/wwwroot/Content/css/mods.css index 1c2b8056..697ba514 100644 --- a/src/SMAPI.Web/wwwroot/Content/css/mods.css +++ b/src/SMAPI.Web/wwwroot/Content/css/mods.css @@ -86,6 +86,11 @@ table.wikitable > caption { font-size: 0.9em; } +#mod-list thead tr { + position: sticky; + top: 0; +} + #mod-list th.header { background-repeat: no-repeat; background-position: center right; -- cgit From 7f63e065917f8879f42dbac92748702bfb6d044d Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 18 Feb 2020 00:31:36 -0500 Subject: fix anchor position for new sticky header --- src/SMAPI.Web/Views/Mods/Index.cshtml | 4 ++-- src/SMAPI.Web/wwwroot/Content/js/mods.js | 24 +++++++++++++++++------- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'src/SMAPI.Web/wwwroot/Content') diff --git a/src/SMAPI.Web/Views/Mods/Index.cshtml b/src/SMAPI.Web/Views/Mods/Index.cshtml index 5b310d55..b1d9ae2c 100644 --- a/src/SMAPI.Web/Views/Mods/Index.cshtml +++ b/src/SMAPI.Web/Views/Mods/Index.cshtml @@ -8,11 +8,11 @@ TimeSpan staleAge = DateTimeOffset.UtcNow - Model.LastUpdated; } @section Head { - + - +