From dce3a2ed60b78b147fd717740d714faffae04814 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Tue, 21 Sep 2021 15:25:31 -0700 Subject: [PATCH] Theme: Refine padding and margins. See #6 --- bs-config.js | 5 --- package.json | 5 +-- readme.md | 1 + .../block-template-parts/post-navigation.html | 5 +-- .../themes/wporg-news-2021/package.json | 4 +-- .../wporg-news-2021/sass/base/_alignment.scss | 32 +++++++++++++++---- .../sass/base/_breakpoints.scss | 19 +++++++++++ .../wporg-news-2021/sass/base/_layout.scss | 6 ++++ .../sass/blocks/_navigation.scss | 0 .../sass/blocks/_paragraph.scss | 2 -- .../sass/post/_navigation.scss | 16 ++++++++++ .../themes/wporg-news-2021/sass/style.scss | 1 + .../themes/wporg-news-2021/theme.json | 16 ++++++++-- 13 files changed, 90 insertions(+), 22 deletions(-) create mode 100644 source/wp-content/themes/wporg-news-2021/sass/blocks/_navigation.scss diff --git a/bs-config.js b/bs-config.js index 7ceb40d3..f69a73a3 100644 --- a/bs-config.js +++ b/bs-config.js @@ -25,11 +25,6 @@ module.exports = { paths.globalHeaderFooter + watchedFilesPattern ], - "ignore": [ - paths.theme + '/sass/**/*.*', - paths.globalHeaderFooter + '/postcss/**/*.*' - ], - "open": false, "reloadOnRestart": true, "notify": false, diff --git a/package.json b/package.json index 1aba5c9e..6ceabc10 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "wporg-news-2021-project", "version": "1.0.0", - "description": "", + "description": "The codebase and development environment for w.org/news.", "author": "WordPress.org", "license": "GPL-2.0-or-later", "private": true, @@ -24,6 +24,7 @@ "sync": "browser-sync start --config bs-config.js" }, "workspaces": [ - "source/wp-content/themes/wporg-news-2021" + "source/wp-content/themes/wporg-news-2021", + "source/wp-content/mu-plugins/wporg-mu-plugins" ] } diff --git a/readme.md b/readme.md index 94b4b07f..f0a5fc37 100644 --- a/readme.md +++ b/readme.md @@ -32,3 +32,4 @@ These must be run in the project's root folder, _not_ in theme/plugin subfolders * Build all assets once: `yarn workspaces run build` * Rebuild all assets on change: `yarn workspaces run start` +* Reload browser when files change: `npm run sync` diff --git a/source/wp-content/themes/wporg-news-2021/block-template-parts/post-navigation.html b/source/wp-content/themes/wporg-news-2021/block-template-parts/post-navigation.html index ba904bf1..62b42d22 100644 --- a/source/wp-content/themes/wporg-news-2021/block-template-parts/post-navigation.html +++ b/source/wp-content/themes/wporg-news-2021/block-template-parts/post-navigation.html @@ -2,13 +2,14 @@
- -