@page "/" Layout Lab

Layout Lab

This page has no @@layout directive, so RouteView wraps it in its DefaultLayout, MainLayout. The dark header and the dashed footer come from MainLayout.razor. This text is the page itself, placed where MainLayout writes @@Body.

The purple line under the heading comes from MainLayout.razor.css. The rule main ::deep h1 reaches into the page.

MainLayout.razor.css also has a plain p rule with a dashed border. This paragraph does not get it, because the rule became p[b-…] and only elements written in MainLayout.razor carry that attribute.