File: escape.md

package info (click to toggle)
node-stylus 0.54.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,392 kB
  • ctags: 913
  • sloc: makefile: 38
file content (33 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (4)
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
---
layout: default
permalink: docs/escape.html
---

# Char Escaping

 Stylus lets you escape characters. This effectively turns them into identifiers, allowing them to be rendered as literals. 
 
 For example:

     body
       padding 1 \+ 2

Compiles to:

     body {
       padding: 1 + 2;
     }


Note that Stylus requires that `/` is parenthesized when used in a property:

    body
      font 14px/1.4
      font (14px/1.4)

yields:

    body {
      font: 14px/1.4;
      font: 10px;
    }