Skip to content

Commit

Permalink
Changed length of all rolling rankings to be longer.
Browse files Browse the repository at this point in the history
Fixed top/bottom links sometimes obscured by UI elements.
Fixed Twitter panel appearance.
  • Loading branch information
Bilge committed Apr 17, 2024
1 parent 1b4b636 commit 63a00d1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions assets/css/250.less
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,9 @@ tr.a .movement.none:before {
}

&.tweets {
background: #121a25;
border-radius: 6px;

>.twitter-timeline {
margin: auto;
}
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Ranking/Impl/RollingMonthRanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Ranking/Impl/RollingQuarterRanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion src/Ranking/Impl/RollingWeekRanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()}");
Expand Down
2 changes: 1 addition & 1 deletion src/Ranking/Impl/RollingYearRanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 63a00d1

Please sign in to comment.