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

Reorganize scss files #27

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
228 changes: 127 additions & 101 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,107 +76,133 @@ Meet WDS BT, a stylish block theme, tailored for WordPress, featuring native blo
## Development

<details closed>
<summary><b>Theme Structure</b></summary>
<pre>
<code>
└── wds=bt/
├── CONTRIBUTING.md
├── README.md
├── a11y.cjs
├── assets
│   ├── fonts
│   ├── images
│   ├── index.js
│   ├── js
│   │   ├── block-filters
│   │   │   ├── index.js
│   │   │   └── unregister-core-embed.js
│   │   ├── block-variations
│   │   │   └── index.js
│   │   ├── global
│   │   │   ├── header.js
│   │   │   ├── index.js
│   │   │   └── table.js
│   │   ├── index.js
│   │   └── templates
│   │   └── index.js
│   └── scss
│   ├── abstracts
│   │   ├── _abstracts.scss
│   │   ├── _mobile-only-mixins.scss
│   │   ├── _responsive-mixins.scss
│   │   └── _utility.scss
│   ├── base
│   │   ├── _base.scss
│   │   ├── _global.scss
│   │   └── _pagination.scss
│   ├── blocks
│   │   └── core
│   │   ├── ...
│   │   └── custom
│   │   ├── _custom.scss
│   ├── components
│   │   ├── _components.scss
│   │   └── _forms.scss
│   ├── index.scss
│   ├── layout
│   │   ├── _footer.scss
│   │   ├── _header.scss
│   │   └── _layout.scss
│   └── pages
│   ├── _404.scss
│   ├── _archive.scss
│   ├── _pages.scss
│   └── _search.scss
├── composer.json
├── composer.lock
├── functions.php
├── inc
│   ├── functions
│   │   └── security.php
│   ├── hooks
│   │   ├── enable-svg.php
│   │   ├── enqueue-block-stylesheet.php
│   │   ├── register-block-categories.php
│   │   ├── register-block-pattern-categories.php
│   │   ├── register-block-styles.php
│   │   ├── register-block-variations.php
│   │   ├── remove-archive-title-prefix.php
│   │   └── unregister-block-variations.php
│   └── setup
│   ├── preload-scripts.php
│   ├── scripts.php
│   └── setup.php
├── lefthook.yml
├── package-lock.json
├── package.json
├── parts
│   ├── footer.html
│   └── header.html
├── patterns
│   ├── footer-default.php
│   └── header-default.php
├── phpcs.xml.dist
├── postcss.config.js
├── readme.txt
├── screenshot.png
├── style.css
├── styles
│   └── dark.json
├── templates
│   ├── 404.html
│   ├── archive.html
│   ├── index.html
│   ├── page-blank.html
│   ├── page-no-title.html
│   ├── page.html
│   ├── search.html
│   └── single.html
├── theme.json
├── webpack.config.js
└── webpack.prod.js
</code>
</pre>
<summary><b>Theme Structure</b></summary>
<pre>
<code>
└── wds=bt/
├── CONTRIBUTING.md
├── README.md
├── a11y.cjs
├── assets
│   ├── fonts
│   ├── images
│   ├── index.js
│   ├── js
│   │   ├── block-filters
│   │   │   ├── index.js
│   │   │   └── unregister-core-embed.js
│   │   ├── block-variations
│   │   │   └── index.js
│   │   ├── global
│   │   │   ├── header.js
│   │   │   ├── index.js
│   │   │   └── table.js
│   │   ├── index.js
│   │   └── templates
│   │   └── index.js
│   └── scss
│   ├── _index.scss
│   ├── abstracts
│   │   ├── _index.scss
│   │   ├── mobile-only-mixins.scss
│   │   ├── responsive-mixins.scss
│   │   └── utility.scss
│   ├── base
│   │   ├── _index.scss
| | ├── forms.scss
│   │   ├── global.scss
│   │   └── pagination.scss
│   ├── blocks
│   │   └── core
│   │   ├── audio.scss
│   │   ├── button.scss
│   │   ├── calendar.scss
│   │   ├── code.scss
│   │   ├── comments.scss
│   │   ├── cover.scss
│   │   ├── file.scss
│   │   ├── footnotes.scss
│   │   ├── gallery.scss
│   │   ├── group.scss
│   │   ├── latest-comments.scss
│   │   ├── latest-posts.scss
│   │   ├── list.scss
│   │   ├── navigation.scss
│   │   ├── page-list.scss
│   │   ├── post-author.scss
│   │   ├── post-comments-form.scss
│   │   ├── post-navigation-link.scss
│   │   ├── post-terms.scss
│   │   ├── preformatted.scss
│   │   ├── pullquote.scss
│   │   ├── query-pagination.scss
│   │   ├── query.scss
│   │   ├── quote.scss
│   │   ├── search.scss
│   │   ├── separator.scss
│   │   ├── social-links.scss
│   │   ├── table.scss
│   │   ├── tag-cloud.scss
│   │   ├── verse.scss
│   │   └── video.scss
│   ├── template-parts
│   │   ├── _index.scss
│   │   ├── footer.scss
│   │   └── header.scss
│   └── pages
│   ├── _index.scss
│   ├── 404.scss
│   ├── archive.scss
│   └── search.scss
├── composer.json
├── composer.lock
├── functions.php
├── inc
│   ├── functions
│   │   └── security.php
│   ├── hooks
│   │   ├── enable-svg.php
│   │   ├── enqueue-block-stylesheet.php
│   │   ├── register-block-categories.php
│   │   ├── register-block-pattern-categories.php
│   │   ├── register-block-styles.php
│   │   ├── register-block-variations.php
│   │   ├── remove-archive-title-prefix.php
│   │   └── unregister-block-variations.php
│   └── setup
│   ├── preload-scripts.php
│   ├── scripts.php
│   └── setup.php
├── lefthook.yml
├── package-lock.json
├── package.json
├── parts
│   ├── footer.html
│   └── header.html
├── patterns
│   ├── footer-default.php
│   └── header-default.php
├── phpcs.xml.dist
├── postcss.config.js
├── readme.txt
├── screenshot.png
├── style.css
├── styles
│   └── dark.json
├── templates
│   ├── 404.html
│   ├── archive.html
│   ├── index.html
│   ├── page-blank.html
│   ├── page-no-title.html
│   ├── page.html
│   ├── search.html
│   └── single.html
├── theme.json
├── webpack.config.js
└── webpack.prod.js
</code>
</pre>
</details>

<details closed>
Expand Down
2 changes: 1 addition & 1 deletion assets/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import './scss/index.scss';
import './scss/_index.scss';
import './js/index';
5 changes: 5 additions & 0 deletions assets/scss/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import './abstracts';
@import './base';
@import './patterns/';
@import './template-parts';
@import './templates';
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 'base/' keeps files styling the base HTML elements.
@import './global';
@import './pagination';
@import './forms';
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions assets/scss/components/_components.scss

This file was deleted.

6 changes: 0 additions & 6 deletions assets/scss/index.scss

This file was deleted.

4 changes: 0 additions & 4 deletions assets/scss/layout/_layout.scss

This file was deleted.

5 changes: 0 additions & 5 deletions assets/scss/pages/_pages.scss

This file was deleted.

2 changes: 2 additions & 0 deletions assets/scss/patterns/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// 'patterns/' houses styles for custom patterns.
// @import './pattern-name';
3 changes: 3 additions & 0 deletions assets/scss/template-parts/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 'template-parts/' houses styles for site editor template parts.
@import './header';
@import './footer';
File renamed without changes.
4 changes: 4 additions & 0 deletions assets/scss/templates/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// 'templates/' houses styles for site editor templates.
@import './archive';
@import './search';
@import './404';
File renamed without changes.
File renamed without changes.
Loading