diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 4c3c1b87ac..1b82da2ae9 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -122,7 +122,7 @@ return array( 'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894', 'rsrc/css/phui/calendar/phui-calendar-day.css' => '3b4a65d8', 'rsrc/css/phui/calendar/phui-calendar-list.css' => '840baa8d', - 'rsrc/css/phui/calendar/phui-calendar-month.css' => '9fde32d1', + 'rsrc/css/phui/calendar/phui-calendar-month.css' => '7819a8b1', 'rsrc/css/phui/calendar/phui-calendar.css' => '8345be98', 'rsrc/css/phui/phui-action-header-view.css' => '89c497e7', 'rsrc/css/phui/phui-action-list.css' => '4f4d09f2', @@ -763,7 +763,7 @@ return array( 'phui-calendar-css' => '8345be98', 'phui-calendar-day-css' => '3b4a65d8', 'phui-calendar-list-css' => '840baa8d', - 'phui-calendar-month-css' => '9fde32d1', + 'phui-calendar-month-css' => '7819a8b1', 'phui-crumbs-view-css' => '594d719e', 'phui-document-view-css' => '94d5dcd8', 'phui-feed-story-css' => 'c9f3a0b5', diff --git a/src/view/phui/calendar/PHUICalendarMonthView.php b/src/view/phui/calendar/PHUICalendarMonthView.php index 80fe049dc3..16e58e3203 100644 --- a/src/view/phui/calendar/PHUICalendarMonthView.php +++ b/src/view/phui/calendar/PHUICalendarMonthView.php @@ -294,17 +294,21 @@ final class PHUICalendarMonthView extends AphrontView { 'tr', array('class' => 'phui-calendar-day-of-week-header'), array( - $this->getDayHeader(pht('Sun'), pht('Sunday')), + $this->getDayHeader(pht('Sun'), pht('Sunday'), true), $this->getDayHeader(pht('Mon'), pht('Monday')), $this->getDayHeader(pht('Tue'), pht('Tuesday')), $this->getDayHeader(pht('Wed'), pht('Wednesday')), $this->getDayHeader(pht('Thu'), pht('Thursday')), $this->getDayHeader(pht('Fri'), pht('Friday')), - $this->getDayHeader(pht('Sat'), pht('Saturday')), + $this->getDayHeader(pht('Sat'), pht('Saturday'), true), )); } - private function getDayHeader($short, $long) { + private function getDayHeader($short, $long, $is_weekend = false) { + $class = null; + if ($is_weekend) { + $class = 'weekend-day-header'; + } $day = array(); $day[] = phutil_tag( 'span', @@ -320,7 +324,9 @@ final class PHUICalendarMonthView extends AphrontView { $short); return phutil_tag( 'th', - array(), + array( + 'class' => $class, + ), $day); } diff --git a/webroot/rsrc/css/phui/calendar/phui-calendar-month.css b/webroot/rsrc/css/phui/calendar/phui-calendar-month.css index cd7a0e4712..ba268f332f 100644 --- a/webroot/rsrc/css/phui/calendar/phui-calendar-month.css +++ b/webroot/rsrc/css/phui/calendar/phui-calendar-month.css @@ -16,6 +16,10 @@ tr.phui-calendar-day-of-week-header th { background: {$lightgreybackground}; } +tr.phui-calendar-day-of-week-header th.weekend-day-header { + background: {$greybackground}; +} + .device tr.phui-calendar-day-of-week-header th .long-weekday-name { display: none; }