From 0984a07005759811b7121112c08028077373689a Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sun, 20 Jan 2019 01:11:18 +0800 Subject: [PATCH] Center align week tabs, and misc cleanup --- src/bootstrap.php | 3 ++- src/report.php | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/bootstrap.php b/src/bootstrap.php index 097af20..0510a8b 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -84,7 +84,8 @@ function doIt() { $completedTasks = file_exists($completedTasksFile) ? lines(trim(file_get_contents($completedTasksFile))) : []; return table(map(function($task) use($completedTasks) { return [getString($task), in_array($task, $completedTasks) ? '👍😄' : '👎😱']; })(getTasksForTheWeek($year, $month, $num, require 'taskMatrix.php'))); })($mondays), - ($year == $today->year && $month == $today->month) ? 'Week ' . $today->weekNum : 'Week 1' + ($year == $today->year && $month == $today->month) ? 'Week ' . $today->weekNum : 'Week 1', + true ); })(range(1,12)), ($year == $today->year) ? strToUpper(getMonthName($today->month)) : 'JANUARY' diff --git a/src/report.php b/src/report.php index 83c76c8..4368b5b 100644 --- a/src/report.php +++ b/src/report.php @@ -25,13 +25,13 @@ padding-bottom: 1rem; } img { - image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */ - image-rendering: -moz-crisp-edges; /* Firefox */ - image-rendering: -o-crisp-edges; /* Opera */ - image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */ - image-rendering: pixelated; /* Chrome */ - image-rendering: optimize-contrast; /* CSS3 Proposed */ - -ms-interpolation-mode: nearest-neighbor; /* IE8+ */ + image-rendering: optimizeSpeed; + image-rendering: -moz-crisp-edges; + image-rendering: -o-crisp-edges; + image-rendering: -webkit-optimize-contrast; + image-rendering: pixelated; + image-rendering: optimize-contrast; + -ms-interpolation-mode: nearest-neighbor; width: 100%; margin-top: 3.5rem; position: sticky; -- 2.11.0