modules/custom-css/custom-css/preprocessors/lessc.inc.php 1 location
|
@@ 200-207 (lines=8) @@
|
| 197 |
|
case "media": |
| 198 |
|
$this->compileMedia($block); |
| 199 |
|
break; |
| 200 |
|
case "directive": |
| 201 |
|
$name = "@" . $block->name; |
| 202 |
|
if (!empty($block->value)) { |
| 203 |
|
$name .= " " . $this->compileValue($this->reduce($block->value)); |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
$this->compileNestedBlock($block, array($name)); |
| 207 |
|
break; |
| 208 |
|
default: |
| 209 |
|
$this->throwError("unknown block type: $block->type\n"); |
| 210 |
|
} |
modules/custom-css/custom-css/preprocessors/scss.inc.php 1 location
|
@@ 571-578 (lines=8) @@
|
| 568 |
|
$out->lines[] = "@import " . $this->compileValue($rawPath) . ";"; |
| 569 |
|
} |
| 570 |
|
break; |
| 571 |
|
case "directive": |
| 572 |
|
list(, $directive) = $child; |
| 573 |
|
$s = "@" . $directive->name; |
| 574 |
|
if (!empty($directive->value)) { |
| 575 |
|
$s .= " " . $this->compileValue($directive->value); |
| 576 |
|
} |
| 577 |
|
$this->compileNestedBlock($directive, array($s)); |
| 578 |
|
break; |
| 579 |
|
case "media": |
| 580 |
|
$this->compileMedia($child[1]); |
| 581 |
|
break; |