Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/site editor index #1097

Merged
merged 19 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"phpsab.standard": "WordPress",
"phpsab.executablePathCS": "./vendor/bin/phpcs",
"phpsab.executablePathCBF": "./vendor/bin/phpcbf",
"editor.formatOnSave": true,
Expand Down
Binary file not shown.
4 changes: 4 additions & 0 deletions assets/scss/global/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ html {
pre {
@apply overflow-auto;
}

.post-container {
@apply mb-6;
}
29 changes: 29 additions & 0 deletions assets/scss/template-tags/_comments.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Comments
--------------------------------------------- */

.comments-area {
.comment-list {
@apply list-none mb-0 p-0;

.comment {
@apply clear-both;
}

.children {
@apply list-none my-4;
}
}

.comment-respond {
.comment-form {
.comment-form-comment {
@apply flex flex-col;

textarea {
@apply rounded-md;
border: 1px var( --wp--preset--color--primary-300 ) solid;
}
}
}
}
}
31 changes: 31 additions & 0 deletions assets/scss/template-tags/_forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* Comments
--------------------------------------------- */
button,
input,
optgroup,
select,
textarea {
@apply rounded-md;
border: 1px var( --wp--preset--color--primary-300 ) solid;
padding-top: 6px;
padding-right: 16px;
padding-bottom: 6px;
padding-left: 16px;
}

[type='reset'],
[type='submit'] {
background-color: var( --wp--preset--color--tertiary-300 );
border-radius: 10px;
border-width: 0;
border-style: solid;
color: var( --wp--preset--color--white );
font-family: inherit;
font-size: var( --wp--preset--font-size--normal );
line-height: 1.435;
padding-top: 8px;
padding-right: 16px;
padding-bottom: 8px;
padding-left: 16px;
text-decoration: none;
}
3 changes: 3 additions & 0 deletions assets/scss/template-tags/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
// Template Tag Styles
// Import partials for functions in template-tags.php.
//----------------------------------------

@import 'comments';
@import 'forms';
7 changes: 0 additions & 7 deletions assets/tailwind-preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ table {

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
Expand All @@ -154,8 +152,6 @@ textarea {
font-weight: inherit; /* 1 */
line-height: inherit; /* 1 */
color: inherit; /* 1 */
margin: 0; /* 2 */
padding: 0; /* 3 */
}

/*
Expand All @@ -169,16 +165,13 @@ select {

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
-webkit-appearance: button; /* 1 */
background-color: transparent; /* 2 */
background-image: none; /* 2 */
}

/*
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@wordpress/eslint-plugin": "15.0.0",
"@wordpress/scripts": "^26.2.0",
"@wordpress/scripts": "^26.13.0",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
Expand All @@ -32,21 +32,21 @@
"eslint-webpack-plugin": "^4.0.1",
"imagemin-webpack-plugin": "^2.4.2",
"offline-github-changelog": "^3.0.1",
"postcss-loader": "^7.2.4",
"postcss-loader": "^7.3.3",
"postcss-move-props-to-bg-image-query": "^4.0.0",
"postcss-preset-env": "^9.1.1",
"sass-loader": "^13.2.2",
"stylelint-config-prettier": "^9.0.5",
"stylelint-webpack-plugin": "^4.1.1",
"svg-spritemap-webpack-plugin": "^4.5.0",
"svg-transform-loader": "^2.0.13",
"tailwindcss": "^3.3.1"
"tailwindcss": "^3.3.3"
},
"devDependencies": {
"@evilmartians/lefthook": "^1.4.9",
"@wordpress/prettier-config": "^2.14.0",
"auto-changelog": "^2.4.0",
"autoprefixer": "^10.4.14",
"autoprefixer": "^10.4.16",
"browser-sync": "^2.29.3",
"css-loader": "^6.7.3",
"glob": "^10.3.3",
Expand Down
2 changes: 1 addition & 1 deletion patterns/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<!-- wp:column {"verticalAlignment":"center","width":"100%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:100%">
<!-- wp:navigation {"ref":540,"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"},"style":{"spacing":{"blockGap":"var:preset|spacing|60"}}} /-->
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} /-->
</div>
<!-- /wp:column -->
</div>
Expand Down
8 changes: 7 additions & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

get_template_part( 'template-parts/content', get_post_type() );

the_post_navigation();
echo wp_kses_post(
get_the_post_navigation(
[
'class' => 'is-layout-constrained',
]
)
);

print_comments();

Expand Down
10 changes: 10 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- wp:template-part {"slug":"header","theme":"wd_s"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"className":"alignfull","align":"full","layout":{"type":"constrained"}} -->
<main class="wp-block-group alignfull">
<!-- wp:post-title /-->
<!-- wp:post-content /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"wd_s","tagName":"footer","area":"footer"} /-->
Loading