diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/codemirror/mode/css/index.html | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/codemirror/mode/css/index.html')
-rw-r--r-- | js/codemirror/mode/css/index.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/js/codemirror/mode/css/index.html b/js/codemirror/mode/css/index.html new file mode 100644 index 00000000..7d01e366 --- /dev/null +++ b/js/codemirror/mode/css/index.html | |||
@@ -0,0 +1,56 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror 2: CSS mode</title> | ||
5 | <link rel="stylesheet" href="../../lib/codemirror.css"> | ||
6 | <script src="../../lib/codemirror.js"></script> | ||
7 | <script src="css.js"></script> | ||
8 | <link rel="stylesheet" href="../../theme/default.css"> | ||
9 | <style>.CodeMirror {background: #f8f8f8;}</style> | ||
10 | <link rel="stylesheet" href="../../css/docs.css"> | ||
11 | </head> | ||
12 | <body> | ||
13 | <h1>CodeMirror 2: CSS mode</h1> | ||
14 | <form><textarea id="code" name="code"> | ||
15 | /* Some example CSS */ | ||
16 | |||
17 | @import url("something.css"); | ||
18 | |||
19 | body { | ||
20 | margin: 0; | ||
21 | padding: 3em 6em; | ||
22 | font-family: tahoma, arial, sans-serif; | ||
23 | color: #000; | ||
24 | } | ||
25 | |||
26 | #navigation a { | ||
27 | font-weight: bold; | ||
28 | text-decoration: none !important; | ||
29 | } | ||
30 | |||
31 | h1 { | ||
32 | font-size: 2.5em; | ||
33 | } | ||
34 | |||
35 | h2 { | ||
36 | font-size: 1.7em; | ||
37 | } | ||
38 | |||
39 | h1:before, h2:before { | ||
40 | content: "::"; | ||
41 | } | ||
42 | |||
43 | code { | ||
44 | font-family: courier, monospace; | ||
45 | font-size: 80%; | ||
46 | color: #418A8A; | ||
47 | } | ||
48 | </textarea></form> | ||
49 | <script> | ||
50 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); | ||
51 | </script> | ||
52 | |||
53 | <p><strong>MIME types defined:</strong> <code>text/css</code>.</p> | ||
54 | |||
55 | </body> | ||
56 | </html> | ||