summaryrefslogtreecommitdiff
path: root/scss/cssdefs.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for CSS shape functionsKevin Bieri2016-08-031-0/+4
|
* Merge pull request #332 from dexbol/narrow-buildEevee2016-06-081-1/+5
|\ | | | | Workaround for narrow Python build
| * Workaround for narrow Python builddexbol2015-03-231-1/+5
| | | | | | | | More info: http://stackoverflow.com/questions/7105874/valueerror-unichr-arg-not-in-range0x10000-narrow-python-build-please-hel
* | Avoid precision loss when converting between units. Fixes #330Eevee (Lexy Munroe)2016-06-081-9/+10
| |
* | Avoid stripping inline comments that are part of URLs. Fixes #350Eevee (Lexy Munroe)2016-06-081-0/+2
|/
* Fix parsing of `@if(...)`, where there's no literal space.Eevee (Alex Munroe)2014-12-101-4/+6
|
* Make line numbers in errors moderately less wrong.Eevee (Alex Munroe)2014-12-101-1/+0
|
* Minor optimizations to selector code.Eevee (Alex Munroe)2014-09-221-0/+11
| | | | I don't remember why I ever thought all that sorting was necessary.
* Remove debug code, oops.Eevee (Alex Munroe)2014-09-051-2/+0
|
* Fix an oversight in the spec-compliant unescape().Eevee (Alex Munroe)2014-09-051-3/+5
|
* Several vast improvements to string parsing.Eevee (Alex Munroe)2014-08-291-2/+25
| | | | | | | | | | | | | | | | | | | | - Interpolation is now understood by the parser! It works for barewords, quoted strings, and both forms of URL. - Escaped characters are now understood and translated by the parser as well! - Rendering strings to CSS attempts to escape them correctly, regardless of how they were put together. - The block locator (at least the Python version) is now a little more aware of CSS escaping. Unfortunately there are some problems with the C module in this commit, which I will be promptly fixing. Conflicts: scss/blockast.py
* rebeccapurpleEevee (Alex Munroe)2014-08-211-0/+1
| | | | http://meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/
* Write CSS out in the same encoding it claims to be.Eevee (Alex Munroe)2014-03-291-8/+4
|
* Implement real CSS @charset support.Eevee (Alex Munroe)2014-03-291-5/+75
|
* Made the speedups module Unicode-aware!Eevee (Alex Munroe)2014-03-291-2/+0
| | | | | | | | As part of this, I also got to (had to) remove the inlining of line numbers into the source code delimited by NULs; instead, the scanner and its pending blocks now just track the current line number. Works on both 2 and 3, too.
* Make the internals all use unicode, even on py2.Eevee (Alex Munroe)2014-03-291-0/+21
| | | | | | | | | This was happening on py3 anyway, so might as well try to be Unicode-clean everywhere. The CSS charset detection is not actually implemented yet. Also, speedups are now totally broken on py2. Please hold.
* Add a few CSS4 image functions as known function names.Eevee (Alex Munroe)2013-08-211-0/+5
|
* Cancel convertable units in the Number constructor. #180Eevee (Alex Munroe)2013-08-131-0/+56
|
* Recognize from() and to(), the ancient WebKit gradient functions.Eevee (Alex Munroe)2013-08-011-0/+1
|
* Better support for `transparent`, including on output.Eevee (Alex Munroe)2013-08-011-140/+141
|
* Remove old unit stuff.Eevee (Alex Munroe)2013-07-311-46/+0
|
* Rewrite NumberValue to handle arbitrary unit combinations.Eevee (Alex Munroe)2013-07-311-1/+68
| | | | | Now matches Sass semantics much more closely, and understands intermediate units in expressions like "1px * 1px / 1px".
* Greatly simplify color shortening.Eevee (Alex Munroe)2013-07-261-159/+144
| | | | | | | | | | | | | | CSS types now know whether they're expected to be rendered compressed or not, and so can choose the most appropriate representation. Colors in particular now try each of several possible renderings and choose the shortest. (short_colors is still a separate setting, though compress implies it.) This removes the need for a full-document regex to shuffle colors around, solving several problems related to color names that aren't actually colors. It also kills off several regexes and dicts and brings us closer to Ruby parity.
* Eliminate _undefined_re once and for all.Eevee2013-06-261-1/+0
|
* Refactor and simplify variable storage and expression evaluation.Eevee2013-05-231-0/+2
| | | | | | | | Variables, functions, and mixins are now all stored within a single Namespace object, which can easily spin off child namespaces. Calculator methods no longer need to accept a rule at all, making it possible to parse and evaluate expressions in a vacuum.
* Avoid expanding colors on load.Eevee2013-05-231-1/+0
|
* Rework expression parser to spit out an AST rather than evaluating as it goes.Eevee2013-05-231-37/+53
|
* Remove _skip_word_re.Eevee2013-05-231-1/+0
| | | | | | | | | This was an optimization to short-circuit evaluating any expressions that don't appear to contain Sass syntax, but it was wrong: the particular case I ran across was `foo, bar` not being parsed as a list! Removing it added only 3% to the test suite runtime. We can see about resurrecting the idea later, after the suite actually passes. :)
* Add skew function from CSS3 3D Transforms list. (Thanks to QuLogic)German M. Bravo2013-05-061-3/+3
|
* Cleanups, variables names fixed, small issues fixedGerman M. Bravo2013-05-021-4/+2
|
* Rewrite block nesting handling -- @keyframes works now! Fixes #75.Eevee2013-03-131-0/+1
|
* Big Sass function breakout.Eevee2013-02-211-26/+69
| | | | | | | | | | | | - FunctionRegistry is now FunctionLibrary, which sounds more like a thing and less like I had no idea what to call it. - Built-in functions are all added to the library decorator-style. - Built-in functions have been split into several smaller modules. - The stuff in parseutil turns out not to be related to parsing, so it's been broken apart too.
* Moved code around for easier syncingGerman M. Bravo2013-02-151-28/+28
|
* Break out expression parsing and resolution.Eevee2013-02-131-0/+43
|
* Evict list of colors.Eevee2013-02-081-0/+144
|
* Break out about half of __init__.py.Eevee2013-02-081-0/+71