Added dark mode, updated bootstrap
This commit is contained in:
@@ -80,7 +80,7 @@ async function generateCriticalCSSForViews() {
|
||||
|
||||
// Generate critical CSS
|
||||
await generate({
|
||||
src: `http://localhost:5146${urlPath}`,
|
||||
src: `http://localhost:5146${urlPath}?noCriticalCSS`,
|
||||
inline: false,
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
@@ -90,7 +90,7 @@ async function generateCriticalCSSForViews() {
|
||||
},
|
||||
forceExclude: ['.btn'], // Otherwise buttons end up colorless and .btn overrides other classes like .btn-warning, etc. - so it has to be force-excluded here and re-added later
|
||||
forceInclude: [
|
||||
'[data-bs-theme=dark]',
|
||||
'[data-bs-theme="dark"]', '[data-bs-theme="dark"] body', '[data-bs-theme="dark"] .navbar', '[data-bs-theme="dark"] .card', '[data-bs-theme="dark"] .btn',
|
||||
'.navbar',
|
||||
'.col-md-4',
|
||||
'.visually-hidden', // visually hidden headings
|
||||
|
||||
Reference in New Issue
Block a user