Patch alters the markup within <eg-staff-banner> to include H1 headings
for page titles.
The patch also includes a new CSS file for the course page component,
which appears to be the only component taking advantage of the custom
classes and icons for page titles. I've made archived course titles gray
and italicized.
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
} from './course-associate-users.component';
@Component({
- templateUrl: './course-list.component.html'
+ templateUrl: './course-list.component.html',
+ styleUrls: ['./course-page.component.css']
})
export class CourseListComponent implements OnInit, AfterViewInit {
--- /dev/null
+.course-archived {
+ color: #666;
+ font-style: italic;
+}
\ No newline at end of file
<eg-staff-banner
bannerText=" {{currentCourse.course_number()}}: {{currentCourse.name()}}"
i18n-bannerText class="mb-3" *ngIf="currentCourse"
- [bannerStyle]="(courseIsArchived || currentCourse.is_archived()) === 't' ? 'alert-secondary' : null"
+ [bannerStyle]="(courseIsArchived || currentCourse.is_archived()) === 't' ? 'course-archived' : null"
[bannerIcon]="(courseIsArchived || currentCourse.is_archived()) === 't' ? 'lock' : null">
</eg-staff-banner>
template: `
<div class="lead alert alert-primary text-center pt-1 pb-1"
[ngClass]="bannerStyle ? bannerStyle : 'alert-primary'">
- <eg-title i18n-prefix [prefix]="bannerText"></eg-title>
- <i class="material-icons align-middle text-left" *ngIf="bannerIcon">{{bannerIcon}}</i>
- <span class="align-middle">{{bannerText}}</span>
+ <h1>
+ <i class="material-icons align-middle text-left" *ngIf="bannerIcon">{{bannerIcon}}</i>
+ <span i18n>{{bannerText}}</span>
+ </h1>
</div>
`
})
*/
font-size: .88rem;
}
+h1 {
+ font-size: 1.25rem;
+ font-weight: normal;
+ margin: 0
+}
h2 {
font-size: 1.25rem;
font-weight: 550;