Skip to content
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/block1/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useBlockProps } from '@wordpress/block-editor';
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './editor.scss';
import './editor.css';

/**
* The edit function describes the structure of your block in the context of the
Expand Down
7 changes: 6 additions & 1 deletion src/block1/editor.scss → src/block1/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* Replace them with your own styles or remove the file completely.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

.wp-block-create-block-block1 {
border: 2px dotted #f00;
/* border: 2px dotted #f00; */
@apply border-2 border-green-300;
}
6 changes: 4 additions & 2 deletions src/block1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ import { registerBlockType } from '@wordpress/blocks';
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './style.scss';
// import './style.css';
// import './style.postcss';
import './style.css';

/**
* Internal dependencies
*/
import Edit from './edit';
import save from './save';
import json from './json';
import json from './block.json';

const { name } = json;

Expand Down
8 changes: 4 additions & 4 deletions src/block1/style.scss → src/block1/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* Replace them with your own styles or remove the file completely.
*/

@tailwind components;
@tailwind utilities;
@tailwind base;
@tailwind components;
@tailwind utilities;

.wp-block-create-block-block1 {
background-color: #21759b;
color: #fff;
@apply bg-purple-800 text-slate-400 border-2 border-green-400 rounded;
}
2 changes: 1 addition & 1 deletion src/block1/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
content: ['./src/block1/*js'],
content: ['./src/block1/*js', './src/block1/*css'],
theme: {
extend: {},
},
Expand Down
2 changes: 1 addition & 1 deletion src/block2/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useBlockProps } from '@wordpress/block-editor';
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './editor.scss';
import './editor.css';

/**
* The edit function describes the structure of your block in the context of the
Expand Down
7 changes: 6 additions & 1 deletion src/block2/editor.scss → src/block2/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* Replace them with your own styles or remove the file completely.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

.wp-block-create-block-block2 {
border: 2px dotted #f00;
/* border: 2px dotted #f00; */
@apply border-2 border-dotted border-[#f00];
}
4 changes: 2 additions & 2 deletions src/block2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import { registerBlockType } from '@wordpress/blocks';
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './style.scss';
import './style.css';

/**
* Internal dependencies
*/
import Edit from './edit';
import save from './save';
import json from './json';
import json from './block.json';

const { name } = json;

Expand Down
10 changes: 6 additions & 4 deletions src/block2/style.scss → src/block2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
* Replace them with your own styles or remove the file completely.
*/

@tailwind components;
@tailwind utilities;
@tailwind base;
@tailwind components;
@tailwind utilities;

.wp-block-create-block-block2 {
background-color: #1dd85c;
color: #fff;
/* background-color: #1dd85c;
color: #fff; */
@apply bg-[#1dd85c] text-[#fff];
}
2 changes: 1 addition & 1 deletion src/block2/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
content: ['./src/block2/*js'],
content: ['./src/block1/*js', './src/block1/*css'],
theme: {
extend: {},
},
Expand Down
2 changes: 1 addition & 1 deletion src/block3/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useBlockProps } from '@wordpress/block-editor';
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './editor.scss';
import './editor.css';

/**
* The edit function describes the structure of your block in the context of the
Expand Down
7 changes: 6 additions & 1 deletion src/block3/editor.scss → src/block3/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* Replace them with your own styles or remove the file completely.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

.wp-block-create-block-block3 {
border: 2px dotted #f00;
/* border: 2px dotted #f00; */
@apply border-2 border-dotted border-[#f00];
}
4 changes: 2 additions & 2 deletions src/block3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import { registerBlockType } from '@wordpress/blocks';
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './style.scss';
import './style.css';

/**
* Internal dependencies
*/
import Edit from './edit';
import save from './save';
import json from './json';
import json from './block.json';

const { name } = json;

Expand Down
10 changes: 6 additions & 4 deletions src/block3/style.scss → src/block3/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
* Replace them with your own styles or remove the file completely.
*/

@tailwind components;
@tailwind utilities;
@tailwind base;
@tailwind components;
@tailwind utilities;

.wp-block-create-block-block3 {
background-color: #df1a5c;
color: #fff;
/* background-color: #df1a5c;
color: #fff; */
@apply bg-[#df1a5c] text-white;
}
2 changes: 1 addition & 1 deletion src/block3/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
content: ['./src/block3/*js'],
content: ['./src/block1/*js', './src/block1/*css'],
theme: {
extend: {},
},
Expand Down