File: input.scss

package info (click to toggle)
node-node-sass 9.0.0%2Bgit20240131.6081731%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,520 kB
  • sloc: javascript: 7,313; cpp: 1,495; perl: 428; makefile: 11
file content (113 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
$x: global-x;
$y: global-y;
$z: global-z;

@mixin foo($x, $y) {
  /* begin foo */
  margin: $x $y;
  blip {
    hey: now;
  }
  /* end foo */
}

@mixin foogoo($x, $y, $z) {
  margin: $x $y $z;
}

@mixin hux($y) {
  /* begin hux */
  color: $y;
  @include foo(called-from-hux, $y: $y);
  /* end hux */
}

div {
  @include foo(1, 2);
  @include foo(1, 3);
  @include foogoo(1, 2, $z: zee);
  @include foogoo(1, $y /* blah */ : kwd-y, $z: kwd-z);
}

div {
  @include hux($y: $y);
}

$y: different-global-y;

div {
  @include hux(calling-hux-again);
}

@mixin bung() {
  blah: original-bung;
}

div {
  @include bung();
}

@mixin bung() {
  blah: redefined-bung;
}

div {
  @include bung();
}

div {
  /* calls to nullary mixins may omit the empty argument list */
  @include bung;
}

div {
  @include foo($x: kwdarg1, $y: kwdarg2);
}

@mixin ruleset() {
  hoo {
    color: boo;
  }
}

@include ruleset();

$da: default argument;

@mixin default_args($x, $y: $da) {
  blah: $x $y;
}
$da: some other default;

div {
  @include default_args(boogoo);
}

@mixin original() {
  value: original;
}

div {
  @include original();
}

@mixin original() {
  value: no longer original;
}

div {
  @include original();
}

@mixin set-x($x) {
  $x: changed local x;
  arg: $x;
  $y: changed global y !global;
  blarg: $y;
}

div {
  @include set-x(blah);
  a: $x;
  b: $y;
}