Debian Codegraph @

examples/prism-less.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code>// Single line comment
3 /* Multi-line
4 comment */</code></pre>
5
6 <h2>Variables</h2>
7 <pre><code>@nice-blue: #5B83AD;
8 @light-blue: @nice-blue + #111;</code></pre>
9
10 <h2>At-rules</h2>
11 <pre><code>@media screen and (min-width: 320px) {}</code></pre>
12
13 <h2>Mixins</h2>
14 <pre><code>.bordered {
15 border-top: dotted 1px black;
16 border-bottom: solid 2px black;
17 }
18 #menu a {
19 .bordered;
20 }
21 #header a {
22 color: orange;
23 #bundle > .button;
24 }</code></pre>
25
26 <h2>Mixins with parameters</h2>
27 <pre><code>.foo (@bg: #f5f5f5, @color: #900) {
28 background: @bg;
29 color: @color;
30 }
31 .bar {
32 .foo();
33 }
34 .class1 {
35 .mixin(@margin: 20px; @color: #33acfe);
36 }
37 .class2 {
38 .mixin(#efca44; @padding: 40px);
39 }</code></pre>
40
41 <h2>Interpolation</h2>
42 <pre><code>@mySelector: banner;
43 .@{mySelector} {
44 font-weight: bold;
45 }
46 @property: color;
47 .widget {
48 @{property}: #0ee;
49 background-@{property}: #999;
50 }</code></pre>