From 63a00d171a8ac63111d4797f1048b2ae20135ce3 Mon Sep 17 00:00:00 2001 From: Bilge Date: Wed, 17 Apr 2024 21:51:01 +0100 Subject: [PATCH] Changed length of all rolling rankings to be longer. Fixed top/bottom links sometimes obscured by UI elements. Fixed Twitter panel appearance. --- assets/css/250.less | 9 +++++++-- src/Ranking/Impl/RollingMonthRanking.php | 2 +- src/Ranking/Impl/RollingQuarterRanking.php | 2 +- src/Ranking/Impl/RollingWeekRanking.php | 2 +- src/Ranking/Impl/RollingYearRanking.php | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/css/250.less b/assets/css/250.less index 8bf29a728cc..16ca731b44e 100644 --- a/assets/css/250.less +++ b/assets/css/250.less @@ -1268,6 +1268,9 @@ tr.a .movement.none:before { } &.tweets { + background: #121a25; + border-radius: 6px; + >.twitter-timeline { margin: auto; } @@ -1276,10 +1279,10 @@ tr.a .movement.none:before { float: right; margin: .5ex 1ch; - color: #adb9d3; + color: #98b0df; font-size: 95%; font-weight: bold; - text-shadow: -1px 1px 0 #2e3748; + text-shadow: -1px 1px 0 #202735; text-transform: lowercase; text-underline-offset: 2px; text-decoration-thickness: 1px; @@ -1763,6 +1766,8 @@ tr.a .movement.none:before { .fixedlinks { position: fixed; + // Ensure links are not obscured by minor visual elements exploiting stacking contexts. + z-index: 1; bottom: .7vh; right: .7vw; } diff --git a/src/Ranking/Impl/RollingMonthRanking.php b/src/Ranking/Impl/RollingMonthRanking.php index 52995dd644d..4f453f639c8 100644 --- a/src/Ranking/Impl/RollingMonthRanking.php +++ b/src/Ranking/Impl/RollingMonthRanking.php @@ -9,7 +9,7 @@ class RollingMonthRanking extends RollingRanking { public function __construct(RankingDependencies $dependencies) { - parent::__construct($dependencies, '30day', 'last month', 50); + parent::__construct($dependencies, '30day', 'last month', 100); $this->setWeight(1); } diff --git a/src/Ranking/Impl/RollingQuarterRanking.php b/src/Ranking/Impl/RollingQuarterRanking.php index da4b9c469a5..296f77da2dc 100644 --- a/src/Ranking/Impl/RollingQuarterRanking.php +++ b/src/Ranking/Impl/RollingQuarterRanking.php @@ -9,6 +9,6 @@ class RollingQuarterRanking extends RollingRanking { public function __construct(RankingDependencies $dependencies) { - parent::__construct($dependencies, '90day', '-3 month', 100); + parent::__construct($dependencies, '90day', '-3 month', 200); } } diff --git a/src/Ranking/Impl/RollingWeekRanking.php b/src/Ranking/Impl/RollingWeekRanking.php index 7d934f983b9..2abc9eb08d5 100644 --- a/src/Ranking/Impl/RollingWeekRanking.php +++ b/src/Ranking/Impl/RollingWeekRanking.php @@ -9,7 +9,7 @@ class RollingWeekRanking extends RollingRanking { public function __construct(RankingDependencies $dependencies) { - parent::__construct($dependencies, '7day', '-7 day', 30); + parent::__construct($dependencies, '7day', '-7 day', 50); $this->setWeight(4); $this->setTitle("Week Top {$this->getLimit()}"); diff --git a/src/Ranking/Impl/RollingYearRanking.php b/src/Ranking/Impl/RollingYearRanking.php index 4667bd6ac36..d9779d58907 100644 --- a/src/Ranking/Impl/RollingYearRanking.php +++ b/src/Ranking/Impl/RollingYearRanking.php @@ -9,6 +9,6 @@ class RollingYearRanking extends RollingRanking { public function __construct(RankingDependencies $dependencies) { - parent::__construct($dependencies, '365day', 'last year', 150); + parent::__construct($dependencies, '365day', 'last year', 250); } }