Skip to content

Commit

Permalink
implement grade display abbreviated
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 17, 2024
1 parent 05221b0 commit bf7ce3b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
18 changes: 9 additions & 9 deletions php/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
use LiturgicalCalendar\Components\WebCalendar\Grouping;
use LiturgicalCalendar\Components\WebCalendar\ColorAs;
use LiturgicalCalendar\Components\WebCalendar\Column;
use LiturgicalCalendar\Components\WebCalendar\ColumnOrder;
use LiturgicalCalendar\Components\WebCalendar\DateFormat;
use LiturgicalCalendar\Components\WebCalendar\GradeDisplay;

$isStaging = ( strpos($_SERVER['HTTP_HOST'], "-staging") !== false || strpos($_SERVER['HTTP_HOST'], "localhost") !== false );
$stagingURL = $isStaging ? "-staging" : "";
Expand Down Expand Up @@ -132,7 +134,9 @@
->eventColor(ColorAs::INDICATOR)
->eventColorColumns(Column::EVENT)
->monthHeader()
->dateFormat(DateFormat::DAY_ONLY);
->dateFormat(DateFormat::DAY_ONLY)
->columnOrder(ColumnOrder::GRADE_FIRST)
->gradeDisplay(GradeDisplay::ABBREVIATED);
}


Expand Down
9 changes: 9 additions & 0 deletions php/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
color: #BD752F;
}

#LitCalTable .liturgicalGrade {
text-align: center;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#LitCalTable .liturgicalGrade.liturgicalGrade_0 {
visibility: invisible;
}

#LitCalTable .liturgicalGrade_0, #LitCalTable .liturgicalGrade_1, #LitCalTable .liturgicalGrade_2 {
font-size: .9em;
}
Expand Down

0 comments on commit bf7ce3b

Please sign in to comment.