Debian Codegraph @

examples/prism-css-extras.html

raw symbols SCIP
1 <h2>Selectors</h2>
2 <pre><code class="language-css">a#id.class:hover {}
3 li:nth-child(2n+1) {}
4 span::before {}
5 a[title], a[href$=".pdf"] {}, a[href$=".jpg" i] {}
6 </code></pre>
7
8 <p>Some of added tokens aren't supported by Prism's default themes.</p>
9
10 <h2>Variables</h2>
11 <pre><code class="language-css">:root {
12 --foo: 12px;
13 }
14 a {
15 font-size: var(--foo);
16 padding: calc(var(--foo) + .5em);
17 }
18 </code></pre>
19
20 <h2>Colors</h2>
21 <pre><code class="language-css">span {
22 background: rgba(0, 128, 255, .4);
23 color: red;
24 color: green;
25 color: blue;
26 border: 1px solid #FFF;
27 }
28 </code></pre>