vendor/leafo/scssphp/tests/inputs/functions.scss
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@function hello($x) {
@return $x + 4;
}
@function add($a, $b) {
@return $a + $b;
}
div {
color: hello(10px);
sum: add(11, 12);
}
// make sure values are being reduced before being passed up to previous scope
@function one($a, $b) {
@return $a $b;
}
@function two($a, $b) {
@return $a#{$a} $b;
}
@function three($a, $b: default) {
@return "hello #{$a} and #{$b}"
}
@function all($a...) {
@return "hello #{$a}"
}
div {
hello: one(10, 55);
hello: two(10, 55);
hello: three(10, 55);
}
@function hello_world() {
@return 1000;
}
del {
color: hello-world();
}
div {
$args: foo bar;
hello: three($args...);
hello: three(bar...);
hello: all(Alice, Bob, Tom);
}
@function stringConcatCompassStyle($start,$last)
{
// Compass still uses it like this
@return #{$start}-#{$last};
}
后面还有 21 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
