Browse Source

docs: shadow effect for images

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6467/head
Raju Udava 1 year ago
parent
commit
46e4a14d76
  1. 10
      packages/noco-docs/docusaurus.config.js
  2. 6
      packages/noco-docs/src/css/custom.scss

10
packages/noco-docs/docusaurus.config.js

@ -145,13 +145,13 @@ const config = {
selector: ".markdown img", selector: ".markdown img",
// Optional medium-zoom options // Optional medium-zoom options
// see: https://www.npmjs.com/package/medium-zoom#options // see: https://www.npmjs.com/package/medium-zoom#options
// options: { options: {
// margin: 24, margin: 96,
// background: "#BADA55", background: "rgba(0,0,0,0.25)",
// scrollOffset: 0, scrollOffset: 0,
// container: "#zoom-container", // container: "#zoom-container",
// template: "#zoom-template", // template: "#zoom-template",
// }, },
}, },
}), }),
clientModules: [require.resolve("./src/modules/tele.js")], clientModules: [require.resolve("./src/modules/tele.js")],

6
packages/noco-docs/src/css/custom.scss

@ -31,3 +31,9 @@
--ifm-color-primary-lightest: #4fcbe9; --ifm-color-primary-lightest: #4fcbe9;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
} }
.markdown img {
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.75);
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.75);
box-shadow: 0 0 10px rgba(0,0,0,0.75);
}

Loading…
Cancel
Save