_content/Radzen.Blazor/css/default-base.css contains definitions for base html elements which are used if you do not explicitly define them in css/site.css or load the scripts in the wrong order #276

Closed
opened 2026-01-29 17:34:36 +00:00 by claunia · 0 comments
Owner

Originally created by @qfyra on GitHub (Dec 8, 2021).

Regarding Blazor Server 3.1 (not sure if there is an issue latest Blazor).

_content/Radzen.Blazor/css/default-base.css contains definitions for h1 - h6, p, and label. This has the following effects:

  • If put <link href="_content/Radzen.Blazor/css/default-base.css" rel="stylesheet" /> after <link href="css/site.css" rel="stylesheet" />, your h1 - h6 sizes and weights will be completely redefined for the entire Blazor site, and so will the line height for p and the bottom margin for label.
  • If you put <link href="_content/Radzen.Blazor/css/default-base.css" rel="stylesheet" /> before <link href="css/site.css" rel="stylesheet" /> you will have to unset size and weight for h1 - h6 as well as line height for p and the bottom margin for label, so as to not be affected by the default-base.css style sheet.

I would like to request that the definitions for these base html elements are removed from default-base.css, so as to not interfere with styles defined in the site-wide css.

Originally created by @qfyra on GitHub (Dec 8, 2021). Regarding Blazor Server 3.1 (not sure if there is an issue latest Blazor). `_content/Radzen.Blazor/css/default-base.css` contains definitions for `h1` - `h6`, `p`, and `label`. This has the following effects: - If put `<link href="_content/Radzen.Blazor/css/default-base.css" rel="stylesheet" />` **after** `<link href="css/site.css" rel="stylesheet" />`, your `h1` - `h6` sizes and weights will be completely redefined for the entire Blazor site, and so will the line height for `p` and the bottom margin for `label`. - If you put `<link href="_content/Radzen.Blazor/css/default-base.css" rel="stylesheet" />` **before** `<link href="css/site.css" rel="stylesheet" />` you will have to unset size and weight for `h1` - `h6` as well as line height for `p` and the bottom margin for `label`, so as to not be affected by the default-base.css style sheet. I would like to request that the definitions for these base html elements are removed from default-base.css, so as to not interfere with styles defined in the site-wide css.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#276