about summary refs log tree commit diff stats
path: root/src/css/mediaquery.nim
Commit message (Collapse)AuthorAgeFilesLines
* css/values -> css/cssvaluesbptato2024-05-161-1/+1
| | | | for consistency
* Use isSome instead of isOkbptato2024-05-051-1/+1
| | | | no point in having identical overloads
* cssparser: refactorbptato2024-05-011-3/+2
| | | | | | | | | * factor out skipWhitespace * remove streams dependency (cssparser could never stream without blocking the event loop, so we were just passing a StringStream in all cases, which made the whole streaming pointless.)
* Update code stylebptato2024-04-171-121/+112
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* css: hide noscript tags when scripting is enabledbptato2024-02-131-3/+23
|
* Use std/* imports everywherebptato2024-01-071-2/+2
|
* css: change type of rvalue to char (from Rune)bptato2023-10-011-9/+7
| | | | | | | | We did were not using it as a unicode value anywhere, it was just making our life harder. If we ever need unicode delimiter tokens, we can re-introduce them as a different token type.
* move around more modulesbptato2023-09-141-1/+1
| | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/
* twtstr: simplifybptato2023-09-131-2/+3
| | | | | | * remove unused function isAlphaAscii * swap pushHex for less casting * remove == overload for char/rune (we did not really use it anyway)
* mediaquery: fix logic errorbptato2023-08-141-1/+1
| | | | Not isAscii means we cannot convert to char. Oops.
* mediaquery: fix some missing has checks in parserbptato2023-07-281-0/+2
|
* mediaquery: better debugging functionsbptato2023-07-231-3/+35
|
* Fix bug in media-query parsingbptato2023-07-041-2/+16
| | | | This fixes interpretation of "@media (min/max-width: 1234px)".
* css/values: use Result instead of exceptionsbptato2023-06-251-3/+4
|
* Add support for width, height media querybptato2023-06-071-22/+183
|
* Update CSS tokenizerbptato2022-07-291-8/+7
| | | | It was slightly outdated and in many places incorrect.
* Rename conflicting source filesbptato2022-05-101-1/+1
| | | | Nim can't really differentiate between them, unfortunately.
* Support external stylesheetsbptato2022-01-231-1/+1
|
* Fix media query bug, do not refresh page without css change (wip)bptato2022-01-221-2/+6
|
* Implement basic media query supportbptato2021-12-271-0/+306