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

fix (theme); entry file name #435

Open
wants to merge 1 commit into
base: chore/update-sass-deprecations-rules
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/scss/01-abstract/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use "sass:map";
@use "sass:math";

$entry-file-name: "style";
$entry-file-name: "undefined";

/**
* Variables
Expand Down
2 changes: 0 additions & 2 deletions src/scss/01-abstract/abstract.scss

This file was deleted.

41 changes: 0 additions & 41 deletions src/scss/02-tools/tools.scss

This file was deleted.

14 changes: 0 additions & 14 deletions src/scss/03-base/base.scss

This file was deleted.

10 changes: 0 additions & 10 deletions src/scss/04-utilities/utilities.scss

This file was deleted.

7 changes: 0 additions & 7 deletions src/scss/05-components/components.scss

This file was deleted.

28 changes: 0 additions & 28 deletions src/scss/06-blocks/blocks.scss

This file was deleted.

Empty file added src/scss/07-patterns/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions src/scss/07-patterns/patterns.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/scss/08-template-parts/template-parts.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/scss/09-templates/templates.scss

This file was deleted.

Empty file added src/scss/10-vendor/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion src/scss/10-vendor/vendor.scss

This file was deleted.

50 changes: 37 additions & 13 deletions src/scss/editor.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
$entry-file-name: "editor";

/**
* Abstract
* == Contain SCSS and CSS variables and webfonts declarations.
*/

@use "01-abstract/abstract";

/**
* Tools
* == Contains functions and mixins.
*/
@use "01-abstract/constants";
@use "01-abstract/variables";

@use "02-tools/tools";
variables.$entry-file-name: "editor";

/**
* Base
Expand All @@ -30,7 +24,16 @@ $entry-file-name: "editor";
* == Utility classes that are not assigned to a specific component.
*/

@use "04-utilities/utilities";
@use "04-utilities/wp-admin-bar";
@use "04-utilities/focus";
@use "04-utilities/lazyload";
@use "04-utilities/seo";
@use "04-utilities/video-wrapper";
@use "04-utilities/palette";
@use "04-utilities/container";
@use "04-utilities/sr-only";
@use "04-utilities/js-animation";
@use "04-utilities/aria";

/**
* Blocks
Expand All @@ -45,18 +48,39 @@ $entry-file-name: "editor";
*/

@use "06-blocks/gutenberg";
@use "06-blocks/blocks";
@use "06-blocks/core/audio";
@use "06-blocks/core/buttons";
@use "06-blocks/core/code";
@use "06-blocks/core/columns";
@use "06-blocks/core/cover";
@use "06-blocks/core/file";
@use "06-blocks/core/freeform";
@use "06-blocks/core/gallery";
@use "06-blocks/core/group";
@use "06-blocks/core/heading";
@use "06-blocks/core/image";
@use "06-blocks/core/list";
@use "06-blocks/core/media-text";
@use "06-blocks/core/paragraph";
@use "06-blocks/core/preformatted";
@use "06-blocks/core/pullquote";
@use "06-blocks/core/quote";
@use "06-blocks/core/separator";
@use "06-blocks/core/search";
@use "06-blocks/core/spacer";
@use "06-blocks/core/table";
@use "06-blocks/core/video";

/**
* Patterns
* == Contains styles for gutenberg patterns.
*/

@use "07-patterns/patterns";
// @use "07-patterns/...";

/**
* Vendor
* == Plugins or libraries custom styles.
*/

@use "10-vendor/vendor";
// @use "10-vendor/...";
70 changes: 55 additions & 15 deletions src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,68 +3,108 @@
* == Contain SCSS and CSS variables and webfonts declarations.
*/

@use "01-abstract/abstract";
@use "01-abstract/constants";
@use "01-abstract/variables";

/**
* Tools
* == Contains functions and mixins.
*/

@use "02-tools/tools";
variables.$entry-file-name: "style";

/**
* Base
* == Contain generic styles such as normalize or reset.
*/

@use "03-base/base";
@use "03-base/fonts";
@use "03-base/variables-css";
@use "03-base/normalize";
@use "03-base/body";
@use "03-base/svg-icons";
@use "03-base/forms";
@use "03-base/links";
@use "03-base/media";
@use "03-base/text";
@use "03-base/print";

/**
* Utilities
* == Utility classes that are not assigned to a specific component.
*/

@use "04-utilities/utilities";
@use "04-utilities/wp-admin-bar";
@use "04-utilities/focus";
@use "04-utilities/lazyload";
@use "04-utilities/seo";
@use "04-utilities/video-wrapper";
@use "04-utilities/palette";
@use "04-utilities/container";
@use "04-utilities/sr-only";
@use "04-utilities/js-animation";
@use "04-utilities/aria";

/**
* Components
* == Contain any default component. Just give the components some basic styles.
*/

@use "05-components/components";
@use "05-components/btn";
@use "05-components/searchform";
@use "05-components/skip-links";

/**
* Gutenberg
* == Gutenberg core/custom blocks and patterns styles, style for front-end layout and editor.
*/

@use "06-blocks/gutenberg";
@use "06-blocks/blocks";
@use "06-blocks/core/audio";
@use "06-blocks/core/buttons";
@use "06-blocks/core/code";
@use "06-blocks/core/columns";
@use "06-blocks/core/cover";
@use "06-blocks/core/file";
@use "06-blocks/core/freeform";
@use "06-blocks/core/gallery";
@use "06-blocks/core/group";
@use "06-blocks/core/heading";
@use "06-blocks/core/image";
@use "06-blocks/core/list";
@use "06-blocks/core/media-text";
@use "06-blocks/core/paragraph";
@use "06-blocks/core/preformatted";
@use "06-blocks/core/pullquote";
@use "06-blocks/core/quote";
@use "06-blocks/core/separator";
@use "06-blocks/core/search";
@use "06-blocks/core/spacer";
@use "06-blocks/core/table";
@use "06-blocks/core/video";

/**
* Patterns
* == Contains styles for gutenberg patterns.
*/

@use "07-patterns/patterns";
// @use "07-patterns/...";

/**
* Template parts
* == If you want to add custom styles for specific page templates parts.
*/

@use "08-template-parts/template-parts";
@use "08-template-parts/header";
@use "08-template-parts/footer";
@use "08-template-parts/hero";

/**
* Pages
* == If you want to add custom styles for specific page templates.
*/

@use "09-templates/templates";
@use "09-templates/home";
@use "09-templates/default";

/**
* Vendor
* == Plugins or libraries custom styles.
*/

@use "10-vendor/vendor";
// @use "10-vendor/...";