mirror of
https://github.com/mrclay/minify.git
synced 2025-08-30 17:19:54 +02:00
test scssphp functionality
tested cache dependencies
This commit is contained in:
8
tests/_test_files/_included.scss
Normal file
8
tests/_test_files/_included.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
/* lesstest2.scss */
|
||||
|
||||
|
||||
a.included {
|
||||
color: $primary-color;
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
}
|
@@ -9,4 +9,8 @@ return array(
|
||||
'less' => array(
|
||||
'//_test_files/main.less',
|
||||
),
|
||||
|
||||
'scss' => array(
|
||||
'//_test_files/main.scss',
|
||||
),
|
||||
);
|
||||
|
29
tests/_test_files/main.scss
Normal file
29
tests/_test_files/main.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
/*! preserving comment */
|
||||
|
||||
// Variable
|
||||
$primary-color: hotpink;
|
||||
|
||||
// Mixin
|
||||
@mixin border-radius($radius) {
|
||||
-webkit-border-radius: $radius;
|
||||
-moz-border-radius: $radius;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.my-element {
|
||||
color: $primary-color;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.my-other-element {
|
||||
@include border-radius(6px);
|
||||
}
|
||||
|
||||
/* import include -> */
|
||||
@import "_included";
|
||||
/* <- import included */
|
||||
|
||||
/*
|
||||
a normal comment.
|
||||
*/
|
Reference in New Issue
Block a user