Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
5 lars 1
<!doctype html>
2
<title>CodeMirror: Stylus mode</title>
3
<meta charset="utf-8" />
4
<link rel=stylesheet href="../../doc/docs.css">
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
7
<script src="../../lib/codemirror.js"></script>
8
<script src="stylus.js"></script>
9
<script src="../../addon/hint/show-hint.js"></script>
10
<script src="../../addon/hint/css-hint.js"></script>
11
<style>
12
    .CodeMirror {
13
        background: #f8f8f8;
14
    }
15
 
16
    form {
17
        margin-bottom: .7em;
18
    }
19
</style>
20
<div id=nav>
21
    <a href="http://codemirror.net">
22
        <h1>CodeMirror</h1>
23
        <img id=logo src="../../doc/logo.png">
24
    </a>
25
    <ul>
26
        <li>
27
            <a href="../../index.html">Home</a>
28
            <li>
29
                <a href="../../doc/manual.html">Manual</a>
30
                <li>
31
                    <a href="https://github.com/codemirror/codemirror">Code</a>
32
    </ul>
33
    <ul>
34
        <li>
35
            <a href="../index.html">Language modes</a>
36
            <li>
37
                <a class=active href="#">Stylus</a>
38
    </ul>
39
</div>
40
<article>
41
    <h2>Stylus mode</h2>
42
    <form>
43
        <textarea id="code" name="code"> /* Stylus mode */ #id, .class, article font-family Arial, sans-serif #id, .class, article { font-family: Arial, sans-serif; } // Variables font-size-base = 16px line-height-base = 1.5 font-family-base = "Helvetica Neue", Helvetica, Arial, sans-serif
44
            text-color = lighten(#000, 20%) body font font-size-base/line-height-base font-family-base color text-color body { font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #333; } // Variables link-color = darken(#428bca,
45
            6.5%) link-hover-color = darken(link-color, 15%) link-decoration = none link-hover-decoration = false // Mixin tab-focus() outline thin dotted outline 5px auto -webkit-focus-ring-color outline-offset -2px a color link-color if link-decoration
46
            text-decoration link-decoration &:hover &:focus color link-hover-color if link-hover-decoration text-decoration link-hover-decoration &:focus tab-focus() a { color: #3782c4; text-decoration: none; } a:hover, a:focus { color: #2f6ea7; } a:focus
47
            { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } </textarea>
48
    </form>
49
    <script>
50
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
51
        {
52
            extraKeys:
53
            {
54
                "Ctrl-Space": "autocomplete"
55
            },
56
            tabSize: 2
57
        });
58
    </script>
59
    <p>
60
        <strong>MIME types defined:</strong> <code>text/x-styl</code>.</p>
61
    <p>Created by
62
        <a href="https://github.com/dmitrykiselyov">Dmitry Kiselyov</a>
63
    </p>
64
</article>