- ASP.NET Core 2 and Angular 5
- Valerio De Sanctis
- 78字
- 2025-04-04 17:58:00
The Stylesheet file
Last but not least, we need to add the CSS asset that we declared in the styleUrls array within the quiz-list.component.ts file.
From Solution Explorer, right-click on the /ClientApp/app/components/quiz/ folder and create a new CSS file; call it quiz-list.component.css and replace the sample code with the following:
ul.quizzes li {
color: #000acb;
cursor: pointer;
}
ul.quizzes li.selected {
background-color: #cccccc;
}
There's nothing fancy here, just some minimal styling to make things look less ugly.