From 742a8cce016dc98efebef17c22cf0ca65b1229aa Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 10 Jul 2026 16:21:18 -0400 Subject: [PATCH] Improved css reset for deafault.css "modern-normalize" was already in the dev-dependencies for the clientside project but was unused. Instead a manual css reset was in place which was too strong and made the default `em` `` `` `` have wrong defaults that made them useless. I believe this was temporary and the intention was to use modern-normalize in the first place and it was gorgotten. This PR fixes that. The above elements now look fine and I went over the default theme and the DNN UI parts and it appers to not have affected them. Closes #7352 --- DNN Platform/Dnn.ClientSide/build.ts | 1 + .../default-css/10.0.0/base/_reset.scss | 19 +------------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/DNN Platform/Dnn.ClientSide/build.ts b/DNN Platform/Dnn.ClientSide/build.ts index 7a5bc04e5cd..77961c8b08f 100644 --- a/DNN Platform/Dnn.ClientSide/build.ts +++ b/DNN Platform/Dnn.ClientSide/build.ts @@ -57,6 +57,7 @@ async function buildScss(input: string, output: string): Promise { { sourceMap: true, sourceMapIncludeSources: true, + importers: [new sass.NodePackageImporter()], } ); diff --git a/DNN Platform/Dnn.ClientSide/src/styles/default-css/10.0.0/base/_reset.scss b/DNN Platform/Dnn.ClientSide/src/styles/default-css/10.0.0/base/_reset.scss index 8519dc91642..2a3512947d4 100644 --- a/DNN Platform/Dnn.ClientSide/src/styles/default-css/10.0.0/base/_reset.scss +++ b/DNN Platform/Dnn.ClientSide/src/styles/default-css/10.0.0/base/_reset.scss @@ -1,18 +1 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, table, caption, -tbody, tfoot, thead, tr, th, td, article, aside, -canvas, details, embed, figure, figcaption, footer, -header, hgroup, menu, nav, output, ruby, section, -summary, time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} \ No newline at end of file +@use "pkg:modern-normalize"; \ No newline at end of file