From b2045634f5af6db368a1aee47dd45e5a23c80e76 Mon Sep 17 00:00:00 2001 From: Nejc Date: Mon, 26 Sep 2022 12:22:03 +0700 Subject: [PATCH] fix: container background color --- demo/package.json | 2 +- package.json | 3 ++- theme/package.json | 5 +++-- theme/src/gatsby-theme-docz/components/Layout/index.js | 3 ++- yarn.lock | 6 +++--- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/demo/package.json b/demo/package.json index 7c79f9f..3a4cefe 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,6 +1,6 @@ { "name": "@nejcm/demo", - "version": "2.0.15", + "version": "2.1.0", "description": "@nejcm/docz-theme-extended documentation and demo.", "main": "index.js", "author": "", diff --git a/package.json b/package.json index b1b0d69..04278f8 100644 --- a/package.json +++ b/package.json @@ -18,5 +18,6 @@ }, "devDependencies": { "rimraf": "^3.0.2" - } + }, + "dependencies": {} } diff --git a/theme/package.json b/theme/package.json index 5a5f5b5..da10e93 100644 --- a/theme/package.json +++ b/theme/package.json @@ -1,6 +1,6 @@ { "name": "@nejcm/docz-theme-extended", - "version": "2.0.15", + "version": "2.1.0", "description": "Extended default docz theme.", "main": "index.js", "author": "Nejc Mursic (https://github.com/nejcm)", @@ -33,7 +33,8 @@ "build": "docz build", "clean": "docz clean", "dev": "docz dev", - "develop": "npm run dev" + "develop": "npm run dev", + "release": "npm publish" }, "husky": { "hooks": { diff --git a/theme/src/gatsby-theme-docz/components/Layout/index.js b/theme/src/gatsby-theme-docz/components/Layout/index.js index 471d706..edf98e8 100644 --- a/theme/src/gatsby-theme-docz/components/Layout/index.js +++ b/theme/src/gatsby-theme-docz/components/Layout/index.js @@ -29,7 +29,8 @@ export const Layout = ({children, /*pageContext = {},*/ doc = {}, ...rest}) => { const {updated} = doc.value || {}; const mainStyles = { - backgroundColor: 'white', + background: 'transparent', + backgroundColor: 'transparent', marginLeft: align !== 'left' ? 'auto' : 0, marginRight: align !== 'right' ? 'auto' : 0, ...(fullscreen ? {maxWidth: 'none'} : undefined), diff --git a/yarn.lock b/yarn.lock index 3edebd9..de84f07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4117,9 +4117,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001181: - version "1.0.30001185" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001185.tgz#3482a407d261da04393e2f0d61eefbc53be43b95" - integrity sha512-Fpi4kVNtNvJ15H0F6vwmXtb3tukv3Zg3qhKkOGUq7KJ1J6b9kf4dnNgtEAFXhRsJo0gNj9W60+wBvn0JcTvdTg== + version "1.0.30001412" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001412.tgz" + integrity sha512-+TeEIee1gS5bYOiuf+PS/kp2mrXic37Hl66VY6EAfxasIk5fELTktK2oOezYed12H8w7jt3s512PpulQidPjwA== capitalize@^2.0.0: version "2.0.3"