titledk/silverstripe-bodycssclasses

Helper for page / controller specific styling

Maintainers

Package info

github.com/titledk/silverstripe-bodycssclasses

Type:silverstripe-module

pkg:composer/titledk/silverstripe-bodycssclasses

Statistics

Installs: 240

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master 2016-01-10 06:47 UTC

This package is not auto-updated.

Last update: 2026-03-10 10:36:44 UTC


README

Helper for page / controller specific styling, adding the class and parent classes of your pages to your body element. E.g. a CustomCalendarPage that extends CalendarPage would produce CustomCalendarPage CalendarPage.

That way any specific styles for CalendarPage will also apply for CustomCalendarPage.

Installation

Install via composer and add $BodyCssClasses to your body or, wherever you want it.

E.g.:

<body class="$BodyCssClasses">

</body>