Skip to content

UIkit 3.25 LESS backports and less.php 5.5.0 for PHP 8.5#7

Open
BernhardBaumrock wants to merge 2 commits into
ryancramerdesign:mainfrom
baumrock:pr/upstream-contributions
Open

UIkit 3.25 LESS backports and less.php 5.5.0 for PHP 8.5#7
BernhardBaumrock wants to merge 2 commits into
ryancramerdesign:mainfrom
baumrock:pr/upstream-contributions

Conversation

@BernhardBaumrock

Copy link
Copy Markdown
Contributor

Summary

Hi Ryan — our forks diverged after your v0.0.6 release (we both added AdminStyle + less.php 4.1.1/5.4.0 independently). I've synced with your main and this PR contains only the additive changes on top of your current branch.

1. UIkit 3.25 / AdminThemeUikit LESS compatibility (backports to 4.1.1 + 5.4.0)

AdminThemeUikit 3.25 uses modern CSS selectors and color functions that the bundled less.php versions don't parse yet. Backported:

2. Wikimedia less.php 5.5.0

  • Bundles less.php 5.5.0 with upstream PHP 8.5 deprecation fixes
  • Includes the pseudo-class selector backport in the 5.5.0 parser
  • Registered in versions.json; module version → 7

Context

These changes were developed while using the module in production (AdminThemeUikit + PHP 8.5). Happy to adjust versioning or split into separate PRs if you prefer.

Test plan

  • Compile AdminThemeUikit LESS with less.php 4.1.1 — no selector parse errors
  • Compile AdminThemeUikit LESS with less.php 5.4.0 — no selector parse errors
  • rgba(0, 0, 0, var(--opacity)) passes through as native CSS
  • less.php 5.5.0 selectable in module config
  • No PHP 8.5 deprecation warnings with 5.5.0

Made with Cursor

BernhardBaumrock and others added 2 commits July 10, 2026 00:04
Backport :is()/:not()/:where()/:has() comma-separated selector parsing
from elabx/less.php#1, and native CSS color function passthrough for
rgba(..., var(...)) from wikimedia/less.php 5.5.0 (T405815).

Co-authored-by: Cursor <cursoragent@cursor.com>
- Bundle less.php 5.5.0 with upstream PHP 8.5 deprecation fixes
- Keep comma-separated pseudo-class selector backport in 5.5.0 parser
- Register 5.5.0 in versions.json and bump module version to 8

Co-authored-by: Cursor <cursoragent@cursor.com>
@ryancramerdesign

ryancramerdesign commented Jul 9, 2026 via email

Copy link
Copy Markdown
Owner

@ryancramerdesign

ryancramerdesign commented Jul 9, 2026 via email

Copy link
Copy Markdown
Owner

@BernhardBaumrock

Copy link
Copy Markdown
Contributor Author

@ryancramerdesign yeah I saw your comments on wikimedia/less.php#136 but as the less module was not up to date and I had to make a client's website work I went ahead and updated my fork. I also added elabx's fix, so I guess my PR does that same that your latest version does.

@ryancramerdesign

ryancramerdesign commented Jul 9, 2026 via email

Copy link
Copy Markdown
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants