Debian Codegraph @

sass-spec/spec/output_styles/nested/scss/mixin-content/input.scss

raw
1 @mixin foo() {
2 name: foo;
3 @content;
4 @include bar() {
5 stuff: content for bar;
6 @content;
7 }
8 }
9
10 @mixin bar() {
11 name: bar;
12 @content;
13 }
14
15 div {
16 /* with a content block */
17 @include foo() {
18 stuff: content for foo;
19 }
20 /* without */
21 @include foo();
22 }
23
24 @mixin foo() {
25 $size: 80%;
26 div {
27 color: red;
28 @content;
29 background: blue;
30 width: $size;
31 @include bar() {
32 color: orange;
33 @content;
34 }
35 }
36 }
37
38 @mixin bar() {
39 form {
40 @content;
41 }
42 }
43
44 span {
45 $size: 1.2em;
46 color: green;
47 @include foo() {
48 @media fudge {
49 p {
50 font-weight: bold;
51 font-size: $size;
52 a {
53 text-decoration: underline;
54 }
55 }
56 }
57 }
58 }
59
60 @mixin apply-to-ie6-only {
61 * html {
62 @content;
63 }
64 }
65 @include apply-to-ie6-only {
66 #logo {
67 background-image: url(/logo.gif);
68 }
69 }