diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-02-21 18:32:09 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-02-22 13:26:10 +0100 |
commit | ecf3cd514fe0e4c848513053721ee9573108f666 (patch) | |
tree | 4b2815053abe072e0218aa82d92025b5cab6a6fc /bepdock.sh | |
parent | a1a9c08b5ffee8432d9ed23143233d5f00b50608 (diff) |
tocss: Simplify the hugo:vars type handling
Instead of maintaing a list of all CSS units and functions this commit:
* Uses 3 regexps to detect typed CSS values (e.g. `24px`) + properly handle numeric Go types.
* These regexps may have some false positives -- e.g. strings that needs to be quoted.
* For that rare case, you can mark the string with e.g. `"32xxx" | css.Quoted`
* For the opposite case: `"32" | css.Unquoted`
Updates #10632
Diffstat (limited to 'bepdock.sh')
0 files changed, 0 insertions, 0 deletions