doks icon indicating copy to clipboard operation
doks copied to clipboard

CSS class .offcanvas-backdrop is missing after static build.

Open hschneider opened this issue 1 year ago • 1 comments

Description

Clicking an offcanvas menu does not show the dark backdrop under the menu.

Steps to reproduce

npm run build Upload /public to some webserver or use a local server.

Expected result

The semi-transparent black overlay should be shown.

Actual result

No overlay visible at all. Class .offcanvas-backdrop seems to be missing in the page's source.

Environment

[email protected] precheck npm version

{ 'doks-child-theme': '0.5.0', npm: '8.11.0', node: '16.16.0', v8: '9.4.146.24-node.21', uv: '1.43.0', zlib: '1.2.11', brotli: '1.0.9', ares: '1.18.1', modules: '93', nghttp2: '1.47.0', napi: '8', llhttp: '6.0.7', openssl: '1.1.1q+quic', cldr: '40.0', icu: '70.1', tz: '2021a3', unicode: '14.0', ngtcp2: '0.1.0-DEV', nghttp3: '0.1.0-DEV' }

[email protected] check exec-bin node_modules/.bin/hugo/hugo version

hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended darwin/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio

hschneider avatar Jul 20 '22 08:07 hschneider

I was able to fix it by removing | postCSS (dict "config" "config/postcss.config.js") from line #7 of layouts/partials/head/stylesheet.html

I also noticed, that some CSS variables defined in _custom.css were missing after CSS post-processing, while other variables defined in the same file were intact.

Looks like a bug in the post-processor.

hschneider avatar Jul 20 '22 09:07 hschneider

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 20 '22 00:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 25 '22 00:08 github-actions[bot]

@hschneider Good job. I've met the bug as you too. Thanks!

oscome avatar Sep 26 '22 16:09 oscome