mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Weekend header labels in month view should have darker backgrounds instead of dark actual weekend days.
Summary: Closes T8186, Weekend header labels in month view should have darker backgrounds instead of dark actual weekend days. Test Plan: open month view, observe weekend labels having a darker background. Reviewers: chad, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T8186 Differential Revision: https://secure.phabricator.com/D12860
This commit is contained in:
parent
6620ebe553
commit
27c75357be
3 changed files with 16 additions and 6 deletions
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue