Skip to content

Commit 481d180

Browse files
committed
release: 1.2.0
1 parent bc2191e commit 481d180

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Little Layout plugin for Craft CMS 3.x
1+
# Little Layout plugin for Craft CMS 4.x
22

33
A compact, visual way to lay out fields, elements, and Matrix blocks.
44

55
## Requirements
66

7-
This plugin requires Craft CMS 3.6 or later.
7+
This plugin requires Craft CMS 4.0 or later.
88

99
## Installation
1010

@@ -108,7 +108,7 @@ If you use a CSS framework, like Tailwind CSS, you could do something like this:
108108
<div class="col-start-{{ element.fieldHandle.gridColumnStart }} col-span-{{ element.fieldHandle.gridColumnSpan }} row-start-{{ element.fieldHandle.gridRowStart }} row-span-{{ element.fieldHandle.gridRowSpan }}"></div>
109109
```
110110

111-
While that could work, if you use Tailwind’s PurgeCSS feature, you may prefer to preserve full class names using logic and a lookup table:
111+
If your Twig template files are included in your Tailwind confguration’s `content` patterns, you may prefer to preserve full class names using logic and a lookup table:
112112

113113
```twig
114114
{% set columnStartClasses = {
@@ -214,19 +214,6 @@ Then on the front-end, (assuming LTR reading order in this case), you can do som
214214

215215
In this case `element.fieldHandle.selectedColumns` gives us an array with the numbers `1`, `2`, or `3` as the value.
216216

217-
## Contributing
218-
219-
The repo for this plugin includes config files that can be used to test and build the front-end assets for this plugin. _(NOTE: [DDEV-local](https://ddev.readthedocs.io/en/stable/) is required to spin up and run the full testing environment)_
220-
221-
To contribute a PR to this project please do the following:
222-
223-
1. In the repo root directory, run `ddev start`. This should install Composer in the `_source/_craft/` directory, a fresh Craft install, and NPM in the `_source/_assets/` directory.
224-
1. Find the `_source/_craft/.env` file and change the value of `PLUGIN_HMR` to `true` _(NOTE: this needs to be set back to `false` before submitting a PR)_
225-
1. Run `ddev npm run dev` to start up a Vite web server.
226-
1. Log into the local CMS at `https://craft-little-layout.test/admin`, using credentials installed during `ddev start` and make code changes.
227-
1. Return the `_source/_craft/.env` variable, `PLUGIN_HMR`, to `true` false and run `ddev npm run prod` to perform a Vite build.
228-
1. Submit PR to [GitHub repo.](https://github.com/wbrowar/craft-little-layout/pulls)
229-
230217
---
231218

232219
Brought to you by [Will Browar](https://wbrowar.com)

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "wbrowar/craft-little-layout",
33
"description": "A compact, visual way to lay out fields, elements, and Matrix blocks.",
44
"type": "craft-plugin",
5-
"version": "1.1.0",
5+
"version": "1.2.0",
66
"keywords": [
77
"craft",
88
"cms",
@@ -27,7 +27,7 @@
2727
}
2828
],
2929
"require": {
30-
"craftcms/cms": "^4.0.0-beta.4"
30+
"craftcms/cms": "^4.0.0"
3131
},
3232
"autoload": {
3333
"psr-4": {

0 commit comments

Comments
 (0)