PluginProbe
Responsive Menu – Create Mobile-Friendly Menu / 3.0.6
Responsive Menu – Create Mobile-Friendly Menu v3.0.6
4.7.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 All 90 releases
responsive-menu / src / app / Mappers / scssphp / tests / inputs / functions.scss

functions.scss in Responsive Menu – Create Mobile-Friendly Menu 3.0.6, at src/app/Mappers/scssphp/tests/inputs/functions.scss

82 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 @function hello($x) {
3 @return $x + 4;
4 }
5
6 @function add($a, $b) {
7 @return $a + $b;
8 }
9
10 div {
11 color: hello(10px);
12 sum: add(11, 12);
13 }
14
15 // make sure values are being reduced before being passed up to previous scope
16
17 @function one($a, $b) {
18 @return $a $b;
19 }
20
21 @function two($a, $b) {
22 @return $a#{$a} $b;
23 }
24
25 @function three($a, $b: default) {
26 @return "hello #{$a} and #{$b}"
27 }
28
29 @function all($a...) {
30 @return "hello #{$a}"
31 }
32
33 div {
34 hello: one(10, 55);
35 hello: two(10, 55);
36 hello: three(10, 55);
37 }
38
39
40 @function hello_world() {
41 @return 1000;
42 }
43
44 del {
45 color: hello-world();
46 }
47
48 div {
49 $args: foo bar;
50 hello: three($args...);
51 hello: three(bar...);
52 hello: all(Alice, Bob, Tom);
53 }
54
55 @function stringConcatCompassStyle($start,$last)
56 {
57 // Compass still uses it like this
58 @return #{$start}-#{$last};
59 }
60
61 .foo
62 {
63 test2: stringConcatCompassStyle(-moz,art);
64 }
65
66 @mixin content_test {
67 span {
68 $color: green;
69 @content;
70 }
71 }
72
73 @function func_test($c) {
74 @return $c + 1;
75 }
76
77 div {
78 @include content_test {
79 height: func_test(2px);
80 }
81 }
82