-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,219 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# wporg-events-2023 | ||
|
||
You must run the `build` task for this to be recognized as a valid theme by WP. |
18 changes: 18 additions & 0 deletions
18
public_html/wp-content/themes/wporg-events-2023/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "wporg-events-2023", | ||
"version": "0.0.1", | ||
"description": "Description: Includes templates for the homepage, event archives, etc", | ||
"license": "GPL-2.0-or-later", | ||
"devDependencies": { | ||
"cssnano": "^6.0.1", | ||
"postcss": "^8.4.31", | ||
"postcss-cli": "^10.1.0", | ||
"postcss-import": "^15.1.0", | ||
"postcss-preset-env": "^9.3.0" | ||
}, | ||
"scripts": { | ||
"watch": "npm run build -- --watch", | ||
"build": "postcss postcss/style.pcss --output style.css", | ||
"lint:js": "echo 'There is no JS, but this is required to make the `linter.yml` workflow pass. See https://github.com/yarnpkg/yarn/issues/6739, https://github.com/yarnpkg/yarn/issues/6894.'" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
public_html/wp-content/themes/wporg-events-2023/parts/front-page/cover.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
public_html/wp-content/themes/wporg-events-2023/postcss.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const isProduction = process.env.NODE_ENV === 'production'; | ||
|
||
const plugins = [ | ||
// This has to run before any other plugins, to concatenate all files into one. | ||
require( 'postcss-import' ), | ||
|
||
// Enable transforms for stage 2+, explictly enable nesting (stage 1). | ||
require( 'postcss-preset-env' )( { | ||
stage: 2, | ||
features: { | ||
'nesting-rules': true, | ||
}, | ||
} ), | ||
]; | ||
|
||
// Minify. | ||
if ( isProduction ) { | ||
plugins.push( require( 'cssnano' ) ); | ||
} | ||
|
||
module.exports = { | ||
plugins, | ||
}; |
4 changes: 4 additions & 0 deletions
4
public_html/wp-content/themes/wporg-events-2023/postcss/front-page/cover.pcss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.wporg-events__cover { | ||
gap: 0; | ||
/* also add gap for other block */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
* Text Domain: wporg | ||
* Template: wporg-parent-2021 | ||
*/ | ||
|
||
@import 'front-page/cover.pcss'; |