protected function AvailabilityCalendarCssGenerator::createHeaderCss in Availability Calendars 7.3
Same name and namespace in other branches
- 7.5 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::createHeaderCss()
- 7.4 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::createHeaderCss()
Return value
string The CSS for the header.
1 call to AvailabilityCalendarCssGenerator::createHeaderCss()
- AvailabilityCalendarCssGenerator::createCss in ./
availability_calendar.styles.inc - Creates the css.
File
- ./
availability_calendar.styles.inc, line 614
Class
Code
protected function createHeaderCss() {
$category = 'header';
$css = '';
$css .= "/* Weekday names (header row) */\n";
$css .= $this
->cssSelector(".cal thead th");
$css .= $this
->addCssLengthDeclaration($category, 'height');
$css .= $this
->addCssDeclaration($category, 'text-align');
$css .= $this
->addCssDeclaration($category, 'font-weight');
$css .= $this
->addCssDeclaration($category, 'font-style');
$css .= $this
->addCssDeclaration($category, 'font-size');
// Add color also to th cells to override Bartik
$css .= $this
->addCssColorDeclaration('table', 'color');
// Add width to first row to assure that IE7 works fine.
// Will be overridden for the column that contains the weeknumber/notes.
$css .= $this
->addCssLengthDeclaration('days', 'width');
$css .= $this
->cssSelectorEnd();
return $css;
}