29 Commits

Author SHA1 Message Date
Luke Page
e0dff5308c Bubble import only above other non comment, non charset rules. Fixes #2440 2015-03-21 22:06:01 +00:00
Luke Page
c04bdc91a8 allow media features to be variables. Fixes #1330 2013-09-18 18:04:00 +01:00
Luke Page
577751a174 improve output of page rules during compression - don't strip ; on rule before rulesets 2013-09-16 22:22:33 +01:00
Luke Page
1b3acd403a fix media query bug. Fixes #1502 2013-09-01 17:56:59 +01:00
Luke Page
8529f93b48 start moving the tab indent so that css is not modified once output 2013-07-13 15:43:09 +01:00
Luke Page
42dfeb8d3b move the property check out of the ruleset and fix an issue in the visitor 2013-07-05 20:56:59 +01:00
Luke Page
aa802bd84c import silent to work with media queries and directives 2013-07-05 06:50:56 +01:00
Luke Page
bbef83e171 Add tests for operations in media queries 2013-02-02 15:35:25 +00:00
Luke Page
531195c92d take maths further 2013-01-24 22:27:17 +00:00
Dustin Cass
241b9d23a4 Remove spaces around slashes in final CSS output and update tests to reflect that; Added a couple shorthand tests 2013-01-23 20:37:49 +00:00
Dustin Cass
bf1823f109 Removed Shorthand and Ratio parsers; Fixed some issues with paren depth state; Adjusted tests to pass on new output 2013-01-23 20:37:48 +00:00
Luke Page
1abb5dd460 Fix #1122 2013-01-12 09:46:20 +00:00
Luke Page
0601933239 Fix issue with media queries inside mixins. fixes #999 2012-10-29 19:57:19 +00:00
Luke Page
473b320c68 Fix bug in media bubbling. Fixes #762 2012-08-12 19:09:54 +01:00
Philip Harrison
4c4e2bfdcd Add dppx and dpcm units to parser dimensions
dppx is currently supported by Firefox > 16.
This can be used to target retina setups:
@media (min-resolution: 2dppx) {}

http://www.w3.org/TR/css3-values/#resolution
2012-08-10 15:04:58 +01:00
Luke Page
b96e307bd5 Support for support/viewport/page directives. Fixes #847 and fixes #366 2012-08-08 22:55:36 +01:00
Andrew Stone
0d61ea6449 media test now passes 2012-07-28 18:14:49 +01:00
Alexis Sellier
089ca34dc1 Merge branch 'patch-media-query-variable' of https://github.com/sirlantis/less.js
Conflicts:
	test/css/media.css
	test/less/media.less
2012-02-28 16:49:24 +01:00
Marcel Jackwerth
9f9eeec297 media-query can now be a variable 2012-02-20 17:28:24 +01:00
Marcel Jackwerth
1ba622dd8d fixed a bug when using @media with mixins 2012-02-17 11:57:31 +01:00
Marcel Jackwerth
936ab7d52e Added automatic merging of media-query conditions 2012-02-17 01:39:03 +01:00
Marcel Jackwerth
378ddef61f fixed double-space 2012-02-15 17:17:48 +01:00
Marcel Jackwerth
9fb9b55770 added more complex test for @media bubbling 2012-02-14 20:28:43 +01:00
Marcel Jackwerth
288248dc5a added @media bubbling (similar to SASS) 2012-02-14 20:10:25 +01:00
Jacob Thornton
75419077d7 always newline selector lists 2012-01-20 19:56:18 -08:00
Alexis Sellier
eda86e5c74 (test) variable in @media feature 2011-12-17 17:47:35 +01:00
Alexis Sellier
ff3d7c61ff properly support @media and @import features 2011-12-17 17:41:54 +01:00
James A. Rosen
aeb4680232 fixed @media and @page parsing problem 2010-11-27 06:34:17 +08:00
cloudhead
604261c3f0 @media tests 2010-05-22 18:24:57 -04:00