haml-more 0.4.0.a
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +79 -0
- data/lib/haml/more/coffee_script.rb +137 -0
- data/lib/haml/more/content_for.rb +25 -0
- data/lib/haml/more.rb +45 -0
- data/lib/haml-more.rb +1 -0
- data/lib/sass/more.rb +16 -0
- data/lib/sass-more.rb +1 -0
- data/spec/sass/more_spec.rb +21 -0
- data/vendor/coffee-script/Cakefile +57 -0
- data/vendor/coffee-script/LICENSE +22 -0
- data/vendor/coffee-script/README +41 -0
- data/vendor/coffee-script/Rakefile +20 -0
- data/vendor/coffee-script/bin/cake +7 -0
- data/vendor/coffee-script/bin/coffee +7 -0
- data/vendor/coffee-script/documentation/coffee/aliases.coffee +9 -0
- data/vendor/coffee-script/documentation/coffee/arguments.coffee +4 -0
- data/vendor/coffee-script/documentation/coffee/array_comprehensions.coffee +7 -0
- data/vendor/coffee-script/documentation/coffee/assignment.coffee +2 -0
- data/vendor/coffee-script/documentation/coffee/cake_tasks.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/comparisons.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/conditionals.coffee +9 -0
- data/vendor/coffee-script/documentation/coffee/embedded.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/existence.coffee +8 -0
- data/vendor/coffee-script/documentation/coffee/expressions.coffee +9 -0
- data/vendor/coffee-script/documentation/coffee/expressions_assignment.coffee +1 -0
- data/vendor/coffee-script/documentation/coffee/expressions_comprehension.coffee +3 -0
- data/vendor/coffee-script/documentation/coffee/expressions_try.coffee +6 -0
- data/vendor/coffee-script/documentation/coffee/fat_arrow.coffee +6 -0
- data/vendor/coffee-script/documentation/coffee/functions.coffee +2 -0
- data/vendor/coffee-script/documentation/coffee/heredocs.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/multiple_return_values.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/object_comprehensions.coffee +4 -0
- data/vendor/coffee-script/documentation/coffee/object_extraction.coffee +13 -0
- data/vendor/coffee-script/documentation/coffee/objects_and_arrays.coffee +13 -0
- data/vendor/coffee-script/documentation/coffee/overview.coffee +29 -0
- data/vendor/coffee-script/documentation/coffee/parallel_assignment.coffee +4 -0
- data/vendor/coffee-script/documentation/coffee/range_comprehensions.coffee +6 -0
- data/vendor/coffee-script/documentation/coffee/scope.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/slices.coffee +6 -0
- data/vendor/coffee-script/documentation/coffee/soaks.coffee +1 -0
- data/vendor/coffee-script/documentation/coffee/splats.coffee +25 -0
- data/vendor/coffee-script/documentation/coffee/splices.coffee +5 -0
- data/vendor/coffee-script/documentation/coffee/strings.coffee +8 -0
- data/vendor/coffee-script/documentation/coffee/super.coffee +34 -0
- data/vendor/coffee-script/documentation/coffee/switch.coffee +10 -0
- data/vendor/coffee-script/documentation/coffee/try.coffee +7 -0
- data/vendor/coffee-script/documentation/coffee/while.coffee +10 -0
- data/vendor/coffee-script/documentation/css/docs.css +213 -0
- data/vendor/coffee-script/documentation/css/idle.css +63 -0
- data/vendor/coffee-script/documentation/css/logo.png +0 -0
- data/vendor/coffee-script/documentation/index.html.erb +967 -0
- data/vendor/coffee-script/documentation/js/aliases.js +14 -0
- data/vendor/coffee-script/documentation/js/arguments.js +8 -0
- data/vendor/coffee-script/documentation/js/array_comprehensions.js +26 -0
- data/vendor/coffee-script/documentation/js/assignment.js +5 -0
- data/vendor/coffee-script/documentation/js/cake_tasks.js +14 -0
- data/vendor/coffee-script/documentation/js/comparisons.js +5 -0
- data/vendor/coffee-script/documentation/js/conditionals.js +12 -0
- data/vendor/coffee-script/documentation/js/embedded.js +6 -0
- data/vendor/coffee-script/documentation/js/existence.js +7 -0
- data/vendor/coffee-script/documentation/js/expressions.js +13 -0
- data/vendor/coffee-script/documentation/js/expressions_assignment.js +4 -0
- data/vendor/coffee-script/documentation/js/expressions_comprehension.js +12 -0
- data/vendor/coffee-script/documentation/js/expressions_try.js +9 -0
- data/vendor/coffee-script/documentation/js/fat_arrow.js +15 -0
- data/vendor/coffee-script/documentation/js/functions.js +9 -0
- data/vendor/coffee-script/documentation/js/heredocs.js +4 -0
- data/vendor/coffee-script/documentation/js/intro.js +7 -0
- data/vendor/coffee-script/documentation/js/multiple_return_values.js +11 -0
- data/vendor/coffee-script/documentation/js/object_comprehensions.js +17 -0
- data/vendor/coffee-script/documentation/js/object_extraction.js +17 -0
- data/vendor/coffee-script/documentation/js/objects_and_arrays.js +10 -0
- data/vendor/coffee-script/documentation/js/overview.js +43 -0
- data/vendor/coffee-script/documentation/js/parallel_assignment.js +8 -0
- data/vendor/coffee-script/documentation/js/punctuation.js +8 -0
- data/vendor/coffee-script/documentation/js/range_comprehensions.js +21 -0
- data/vendor/coffee-script/documentation/js/scope.js +10 -0
- data/vendor/coffee-script/documentation/js/slices.js +6 -0
- data/vendor/coffee-script/documentation/js/soaks.js +4 -0
- data/vendor/coffee-script/documentation/js/splats.js +16 -0
- data/vendor/coffee-script/documentation/js/splices.js +5 -0
- data/vendor/coffee-script/documentation/js/strings.js +9 -0
- data/vendor/coffee-script/documentation/js/super.js +37 -0
- data/vendor/coffee-script/documentation/js/switch.js +18 -0
- data/vendor/coffee-script/documentation/js/try.js +10 -0
- data/vendor/coffee-script/documentation/js/while.js +22 -0
- data/vendor/coffee-script/documentation/underscore.html +627 -0
- data/vendor/coffee-script/examples/beautiful_code/binary_search.coffee +16 -0
- data/vendor/coffee-script/examples/beautiful_code/quicksort_runtime.coffee +13 -0
- data/vendor/coffee-script/examples/beautiful_code/regular_expression_matcher.coffee +34 -0
- data/vendor/coffee-script/examples/blocks.coffee +57 -0
- data/vendor/coffee-script/examples/code.coffee +173 -0
- data/vendor/coffee-script/examples/computer_science/README +4 -0
- data/vendor/coffee-script/examples/computer_science/binary_search.coffee +25 -0
- data/vendor/coffee-script/examples/computer_science/bubble_sort.coffee +11 -0
- data/vendor/coffee-script/examples/computer_science/linked_list.coffee +106 -0
- data/vendor/coffee-script/examples/computer_science/luhn_algorithm.coffee +36 -0
- data/vendor/coffee-script/examples/computer_science/merge_sort.coffee +19 -0
- data/vendor/coffee-script/examples/computer_science/selection_sort.coffee +23 -0
- data/vendor/coffee-script/examples/poignant.coffee +186 -0
- data/vendor/coffee-script/examples/potion.coffee +205 -0
- data/vendor/coffee-script/examples/underscore.coffee +603 -0
- data/vendor/coffee-script/examples/web_server.coffee +12 -0
- data/vendor/coffee-script/extras/CoffeeScript.tmbundle/Preferences/CoffeeScript.tmPreferences +24 -0
- data/vendor/coffee-script/extras/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage +361 -0
- data/vendor/coffee-script/extras/CoffeeScript.tmbundle/info.plist +10 -0
- data/vendor/coffee-script/extras/EXTRAS +20 -0
- data/vendor/coffee-script/extras/coffee.vim +117 -0
- data/vendor/coffee-script/index.html +1847 -0
- data/vendor/coffee-script/lib/bin/cake +7 -0
- data/vendor/coffee-script/lib/bin/coffee +7 -0
- data/vendor/coffee-script/lib/cake.js +80 -0
- data/vendor/coffee-script/lib/coffee-script.js +61 -0
- data/vendor/coffee-script/lib/command_line.js +201 -0
- data/vendor/coffee-script/lib/grammar.js +564 -0
- data/vendor/coffee-script/lib/lexer.js +405 -0
- data/vendor/coffee-script/lib/narwhal.js +44 -0
- data/vendor/coffee-script/lib/nodes.js +1328 -0
- data/vendor/coffee-script/lib/optparse.js +117 -0
- data/vendor/coffee-script/lib/parser.js +536 -0
- data/vendor/coffee-script/lib/repl.js +32 -0
- data/vendor/coffee-script/lib/rewriter.js +383 -0
- data/vendor/coffee-script/lib/scope.js +114 -0
- data/vendor/coffee-script/package.json +7 -0
- data/vendor/coffee-script/src/cake.coffee +45 -0
- data/vendor/coffee-script/src/coffee-script.coffee +45 -0
- data/vendor/coffee-script/src/command_line.coffee +130 -0
- data/vendor/coffee-script/src/grammar.coffee +456 -0
- data/vendor/coffee-script/src/lexer.coffee +327 -0
- data/vendor/coffee-script/src/narwhal.coffee +42 -0
- data/vendor/coffee-script/src/nodes.coffee +1045 -0
- data/vendor/coffee-script/src/optparse.coffee +79 -0
- data/vendor/coffee-script/src/repl.coffee +23 -0
- data/vendor/coffee-script/src/rewriter.coffee +253 -0
- data/vendor/coffee-script/src/scope.coffee +75 -0
- data/vendor/coffee-script/test/test_arguments.coffee +34 -0
- data/vendor/coffee-script/test/test_array_comprehension.coffee +42 -0
- data/vendor/coffee-script/test/test_assignment.coffee +26 -0
- data/vendor/coffee-script/test/test_blocks.coffee +4 -0
- data/vendor/coffee-script/test/test_calling_super.coffee +42 -0
- data/vendor/coffee-script/test/test_chained_calls.coffee +25 -0
- data/vendor/coffee-script/test/test_destructuring_assignment.coffee +62 -0
- data/vendor/coffee-script/test/test_everything.coffee +29 -0
- data/vendor/coffee-script/test/test_exceptions.coffee +2 -0
- data/vendor/coffee-script/test/test_existence.coffee +81 -0
- data/vendor/coffee-script/test/test_expressions.coffee +30 -0
- data/vendor/coffee-script/test/test_fancy_if_statement.coffee +26 -0
- data/vendor/coffee-script/test/test_functions.coffee +80 -0
- data/vendor/coffee-script/test/test_funky_comments.coffee +25 -0
- data/vendor/coffee-script/test/test_heredocs.coffee +46 -0
- data/vendor/coffee-script/test/test_lexical_scope.coffee +10 -0
- data/vendor/coffee-script/test/test_literals.coffee +56 -0
- data/vendor/coffee-script/test/test_nested_comprehensions.coffee +11 -0
- data/vendor/coffee-script/test/test_newline_escaping.coffee +6 -0
- data/vendor/coffee-script/test/test_operations.coffee +18 -0
- data/vendor/coffee-script/test/test_range_comprehension.coffee +20 -0
- data/vendor/coffee-script/test/test_ranges_and_slices.coffee +16 -0
- data/vendor/coffee-script/test/test_splats.coffee +47 -0
- data/vendor/coffee-script/test/test_splices.coffee +5 -0
- data/vendor/coffee-script/test/test_switch.coffee +64 -0
- data/vendor/coffee-script/test/test_while.coffee +30 -0
- data/vendor/coffee-script/vendor/jison/Jakefile +31 -0
- data/vendor/coffee-script/vendor/jison/README.md +347 -0
- data/vendor/coffee-script/vendor/jison/bin/jison +3 -0
- data/vendor/coffee-script/vendor/jison/bin/json2jison +3 -0
- data/vendor/coffee-script/vendor/jison/examples/ansic.jison +415 -0
- data/vendor/coffee-script/vendor/jison/examples/basic.json +8 -0
- data/vendor/coffee-script/vendor/jison/examples/basic2.json +9 -0
- data/vendor/coffee-script/vendor/jison/examples/basic2_lex.json +16 -0
- data/vendor/coffee-script/vendor/jison/examples/basic_lex.json +15 -0
- data/vendor/coffee-script/vendor/jison/examples/calculator.jison +38 -0
- data/vendor/coffee-script/vendor/jison/examples/calculator.jisonlex +14 -0
- data/vendor/coffee-script/vendor/jison/examples/calculator.json +42 -0
- data/vendor/coffee-script/vendor/jison/examples/classy.json +105 -0
- data/vendor/coffee-script/vendor/jison/examples/classy_ast.json +126 -0
- data/vendor/coffee-script/vendor/jison/examples/dism.json +25 -0
- data/vendor/coffee-script/vendor/jison/examples/dism_lr0.json +26 -0
- data/vendor/coffee-script/vendor/jison/examples/json.js +80 -0
- data/vendor/coffee-script/vendor/jison/examples/json_ast.js +83 -0
- data/vendor/coffee-script/vendor/jison/examples/precedence.json +26 -0
- data/vendor/coffee-script/vendor/jison/examples/reduce_conflict.json +13 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/bnf.js +43 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/jisonlex.js +18 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/json2jison.js +146 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/lexer.js +224 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/util/bnf-parser.js +383 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/util/lex-parser.js +407 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/util/set.js +94 -0
- data/vendor/coffee-script/vendor/jison/lib/jison/util/typal.js +90 -0
- data/vendor/coffee-script/vendor/jison/lib/jison.js +1414 -0
- data/vendor/coffee-script/vendor/jison/package.json +14 -0
- data/vendor/coffee-script/vendor/jison/src/bnf.jison +110 -0
- data/vendor/coffee-script/vendor/jison/src/bnf.jisonlex +25 -0
- data/vendor/coffee-script/vendor/jison/src/bnf.lex.json +24 -0
- data/vendor/coffee-script/vendor/jison/src/jisonlex.jison +129 -0
- data/vendor/coffee-script/vendor/jison/src/jisonlex.jisonlex +31 -0
- data/vendor/coffee-script/vendor/jison/src/jisonlex.lex.json +30 -0
- data/vendor/coffee-script/vendor/jison/tests/all-tests.js +8 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/bnf.js +91 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/bnf_parse.js +65 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/grammar-tests.js +10 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/json2jison.js +24 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex/ansic.jisonlex +115 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex +25 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.lex.json +24 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex +31 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json +30 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex.jison +119 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex.js +58 -0
- data/vendor/coffee-script/vendor/jison/tests/grammar/lex_parse.js +117 -0
- data/vendor/coffee-script/vendor/jison/tests/lexer/lexer-tests.js +6 -0
- data/vendor/coffee-script/vendor/jison/tests/lexer/regexplexer.js +417 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/actions.js +311 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/api.js +236 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/generator.js +196 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/lalr.js +183 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/lr0.js +72 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/lr1.js +119 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/parser-tests.js +14 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/precedence.js +237 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/slr.js +52 -0
- data/vendor/coffee-script/vendor/jison/tests/parser/tables.js +126 -0
- data/vendor/coffee-script/vendor/jison/tests/performance.js +110 -0
- data/vendor/coffee-script/vendor/jison/tests/setup.js +3 -0
- metadata +324 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
# Assignment:
|
2
|
+
number: 42
|
3
|
+
opposite_day: true
|
4
|
+
|
5
|
+
# Conditions:
|
6
|
+
number: -42 if opposite_day
|
7
|
+
|
8
|
+
# Functions:
|
9
|
+
square: (x) -> x * x
|
10
|
+
|
11
|
+
# Arrays:
|
12
|
+
list: [1, 2, 3, 4, 5]
|
13
|
+
|
14
|
+
# Objects:
|
15
|
+
math: {
|
16
|
+
root: Math.sqrt
|
17
|
+
square: square
|
18
|
+
cube: (x) -> x * square x
|
19
|
+
}
|
20
|
+
|
21
|
+
# Splats:
|
22
|
+
race: (winner, runners...) ->
|
23
|
+
print winner, runners
|
24
|
+
|
25
|
+
# Existence:
|
26
|
+
alert "I knew it!" if elvis?
|
27
|
+
|
28
|
+
# Array comprehensions:
|
29
|
+
cubed_list: math.cube num for num in list
|
@@ -0,0 +1 @@
|
|
1
|
+
lottery.draw_winner()?.address?.zipcode
|
@@ -0,0 +1,25 @@
|
|
1
|
+
gold: silver: the_field: "unknown"
|
2
|
+
|
3
|
+
award_medals: (first, second, rest...) ->
|
4
|
+
gold: first
|
5
|
+
silver: second
|
6
|
+
the_field: rest
|
7
|
+
|
8
|
+
contenders: [
|
9
|
+
"Michael Phelps"
|
10
|
+
"Liu Xiang"
|
11
|
+
"Yao Ming"
|
12
|
+
"Allyson Felix"
|
13
|
+
"Shawn Johnson"
|
14
|
+
"Roman Sebrle"
|
15
|
+
"Guo Jingjing"
|
16
|
+
"Tyson Gay"
|
17
|
+
"Asafa Powell"
|
18
|
+
"Usain Bolt"
|
19
|
+
]
|
20
|
+
|
21
|
+
award_medals contenders...
|
22
|
+
|
23
|
+
alert "Gold: " + gold
|
24
|
+
alert "Silver: " + silver
|
25
|
+
alert "The Field: " + the_field
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Animal: ->
|
2
|
+
|
3
|
+
Animal::move: (meters) ->
|
4
|
+
alert @name + " moved " + meters + "m."
|
5
|
+
|
6
|
+
Snake: (name) ->
|
7
|
+
@name: name
|
8
|
+
this
|
9
|
+
|
10
|
+
Snake extends Animal
|
11
|
+
|
12
|
+
Snake::move: ->
|
13
|
+
alert "Slithering..."
|
14
|
+
super 5
|
15
|
+
|
16
|
+
Horse: (name) ->
|
17
|
+
@name: name
|
18
|
+
this
|
19
|
+
|
20
|
+
Horse extends Animal
|
21
|
+
|
22
|
+
Horse::move: ->
|
23
|
+
alert "Galloping..."
|
24
|
+
super 45
|
25
|
+
|
26
|
+
sam: new Snake "Sammy the Python"
|
27
|
+
tom: new Horse "Tommy the Palomino"
|
28
|
+
|
29
|
+
sam.move()
|
30
|
+
tom.move()
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
@@ -0,0 +1,213 @@
|
|
1
|
+
body {
|
2
|
+
font-size: 14px;
|
3
|
+
line-height: 20px;
|
4
|
+
color: #191933;
|
5
|
+
font-family: Arial, Helvetica, sans-serif;
|
6
|
+
}
|
7
|
+
div.container {
|
8
|
+
width: 950px;
|
9
|
+
margin: 100px 0 50px 50px;
|
10
|
+
}
|
11
|
+
p {
|
12
|
+
width: 625px;
|
13
|
+
}
|
14
|
+
a {
|
15
|
+
color: #000055;
|
16
|
+
}
|
17
|
+
h1, h2, h3, h4, h5, h6 {
|
18
|
+
margin-top: 40px;
|
19
|
+
}
|
20
|
+
br.clear {
|
21
|
+
height: 0;
|
22
|
+
clear: both;
|
23
|
+
}
|
24
|
+
ul {
|
25
|
+
padding-left: 20px;
|
26
|
+
}
|
27
|
+
b.header {
|
28
|
+
color: #000055;
|
29
|
+
display: block;
|
30
|
+
margin: 40px 0 5px 0;
|
31
|
+
font-size: 16px;
|
32
|
+
}
|
33
|
+
li {
|
34
|
+
margin-bottom: 10px;
|
35
|
+
}
|
36
|
+
table {
|
37
|
+
margin: 16px 0 0 13px; padding: 0;
|
38
|
+
width: 625px;
|
39
|
+
}
|
40
|
+
tr, td {
|
41
|
+
margin: 0; padding: 0;
|
42
|
+
}
|
43
|
+
td {
|
44
|
+
padding: 9px 15px 9px 0;
|
45
|
+
}
|
46
|
+
code, pre, tt, textarea {
|
47
|
+
font-family: Monaco, Consolas, "Lucida Console", monospace;
|
48
|
+
font-size: 12px;
|
49
|
+
line-height: 18px;
|
50
|
+
color: #191955;
|
51
|
+
white-space: pre-wrap;
|
52
|
+
word-wrap: break-word;
|
53
|
+
}
|
54
|
+
tt {
|
55
|
+
background: #f8f8ff;
|
56
|
+
border: 1px solid #dedede;
|
57
|
+
font-size: 85%;
|
58
|
+
padding: 0px 0.2em;
|
59
|
+
}
|
60
|
+
pre {
|
61
|
+
border-left: 6px solid #222255;
|
62
|
+
margin-left: 13px;
|
63
|
+
padding: 3px 0 3px 12px;
|
64
|
+
font-size: 12px;
|
65
|
+
}
|
66
|
+
pre.no_bar {
|
67
|
+
border-left: 0;
|
68
|
+
margin-left: 0;
|
69
|
+
padding-left: 0;
|
70
|
+
}
|
71
|
+
div.code {
|
72
|
+
position: relative;
|
73
|
+
border: 1px solid #cacaca;
|
74
|
+
background: #fafaff;
|
75
|
+
padding: 7px 0 10px 0;
|
76
|
+
-moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;
|
77
|
+
-webkit-box-shadow: 0px 0px 7px #cacaca;
|
78
|
+
}
|
79
|
+
div.code button {
|
80
|
+
position: absolute;
|
81
|
+
right: 8px; bottom: 8px;
|
82
|
+
}
|
83
|
+
div.code pre, div.code textarea {
|
84
|
+
float: left;
|
85
|
+
width: 450px;
|
86
|
+
background: #fafaff;
|
87
|
+
border-left: 1px dotted #559;
|
88
|
+
padding: 0 0 0 12px;
|
89
|
+
margin: 0;
|
90
|
+
}
|
91
|
+
div.code pre:first-child {
|
92
|
+
border-left: 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
#fadeout {
|
96
|
+
z-index: 50;
|
97
|
+
position: fixed;
|
98
|
+
left: 0; top: 0; right: 0;
|
99
|
+
height: 100px;
|
100
|
+
background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 255)), to(rgba(255, 255, 255, 0)));
|
101
|
+
background: -moz-linear-gradient(top, rgba(255, 255, 255, 255), rgba(255, 255, 255, 0));
|
102
|
+
}
|
103
|
+
|
104
|
+
#flybar {
|
105
|
+
position: fixed;
|
106
|
+
z-index: 100;
|
107
|
+
height: 50px;
|
108
|
+
left: 40px; right: 40px; top: 25px;
|
109
|
+
background: #ddd;
|
110
|
+
padding-left: 235px;
|
111
|
+
background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#d0d0d0));
|
112
|
+
background: -moz-linear-gradient(top, #f5f5f5, #d0d0d0);
|
113
|
+
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#F5F5F5', EndColorStr='#D0D0D0');
|
114
|
+
-webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px;
|
115
|
+
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
|
116
|
+
}
|
117
|
+
#logo {
|
118
|
+
display: block;
|
119
|
+
width: 215px; height: 50px;
|
120
|
+
background: url('logo.png');
|
121
|
+
position: absolute;
|
122
|
+
top: 0px; left: 10px;
|
123
|
+
}
|
124
|
+
.navigation {
|
125
|
+
height: 50px;
|
126
|
+
font: bold 11px/50px Arial;
|
127
|
+
text-transform: uppercase;
|
128
|
+
position: relative;
|
129
|
+
float: left;
|
130
|
+
padding: 0 20px;
|
131
|
+
border: 1px solid #bbb;
|
132
|
+
border-top: 0; border-bottom: 0;
|
133
|
+
cursor: pointer;
|
134
|
+
}
|
135
|
+
.navigation.try {
|
136
|
+
border-left: 0;
|
137
|
+
}
|
138
|
+
.navigation:hover,
|
139
|
+
.navigation.active {
|
140
|
+
background: #d0d0d0;
|
141
|
+
background: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0), to(#c0c0c0));
|
142
|
+
background: -moz-linear-gradient(top, #f0f0f0, #c0c0c0);
|
143
|
+
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#F0F0F0', EndColorStr='#C0C0C0');
|
144
|
+
}
|
145
|
+
.navigation .contents {
|
146
|
+
display: none;
|
147
|
+
position: absolute;
|
148
|
+
background: #fff;
|
149
|
+
top: 50px; left: 0;
|
150
|
+
padding: 5px 0;
|
151
|
+
-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;
|
152
|
+
-webkit-border-top-left-radius: 0; -moz-border-radius-topleft: 0;
|
153
|
+
-webkit-border-top-right-radius: 0; -moz-border-radius-topright: 0;
|
154
|
+
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
|
155
|
+
}
|
156
|
+
.navigation.active .contents {
|
157
|
+
display: block;
|
158
|
+
}
|
159
|
+
.navigation .contents.repl_wrapper {
|
160
|
+
left: -162px;
|
161
|
+
width: 700px;
|
162
|
+
padding: 0;
|
163
|
+
}
|
164
|
+
.navigation .contents.repl_wrapper .code {
|
165
|
+
-webkit-box-shadow: none; -moz-box-shadow: none;
|
166
|
+
background: transparent;
|
167
|
+
border: 0;
|
168
|
+
}
|
169
|
+
.navigation .code button {
|
170
|
+
bottom: 10px;
|
171
|
+
}
|
172
|
+
.navigation .compile {
|
173
|
+
left: 240px; right: auto;
|
174
|
+
}
|
175
|
+
.navigation .contents a {
|
176
|
+
display: block;
|
177
|
+
width: 300px;
|
178
|
+
text-transform: none;
|
179
|
+
text-decoration: none;
|
180
|
+
font-weight: normal;
|
181
|
+
height: 12px;
|
182
|
+
line-height: 12px;
|
183
|
+
padding: 4px 10px;
|
184
|
+
}
|
185
|
+
.navigation .contents a:hover {
|
186
|
+
background: #f0f0f0;
|
187
|
+
}
|
188
|
+
|
189
|
+
.bookmark {
|
190
|
+
display: block;
|
191
|
+
width: 0; height: 0;
|
192
|
+
position: relative;
|
193
|
+
top: -90px;
|
194
|
+
}
|
195
|
+
|
196
|
+
#repl_source, #repl_results {
|
197
|
+
background: transparent;
|
198
|
+
}
|
199
|
+
#repl_source {
|
200
|
+
border: 0;
|
201
|
+
padding: 5px 7px;
|
202
|
+
margin-left: 5px;
|
203
|
+
min-height: 250px;
|
204
|
+
resize: none;
|
205
|
+
width: 295px;
|
206
|
+
}
|
207
|
+
#repl_results {
|
208
|
+
font-family: Monaco, Consolas, "Lucida Console", monospace;
|
209
|
+
text-transform: none;
|
210
|
+
font-weight: normal;
|
211
|
+
min-height: 260px;
|
212
|
+
width: 355px;
|
213
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
pre.idle .InheritedClass {
|
2
|
+
}
|
3
|
+
pre.idle .TypeName {
|
4
|
+
color: #21439C;
|
5
|
+
}
|
6
|
+
pre.idle .Number {
|
7
|
+
}
|
8
|
+
pre.idle .LibraryVariable {
|
9
|
+
color: #A535AE;
|
10
|
+
}
|
11
|
+
pre.idle .Storage {
|
12
|
+
color: #FF5600;
|
13
|
+
}
|
14
|
+
pre.idle .line-numbers {
|
15
|
+
background-color: #BAD6FD;
|
16
|
+
color: #000000;
|
17
|
+
}
|
18
|
+
pre.idle {
|
19
|
+
background-color: #FFFFFF;
|
20
|
+
color: #000000;
|
21
|
+
}
|
22
|
+
pre.idle .StringInterpolation {
|
23
|
+
color: #990000;
|
24
|
+
}
|
25
|
+
pre.idle .TagName {
|
26
|
+
}
|
27
|
+
pre.idle .LibraryConstant {
|
28
|
+
color: #A535AE;
|
29
|
+
}
|
30
|
+
pre.idle .FunctionArgument {
|
31
|
+
color: #0076ad;
|
32
|
+
}
|
33
|
+
pre.idle .BuiltInConstant {
|
34
|
+
color: #A535AE;
|
35
|
+
}
|
36
|
+
pre.idle .Invalid {
|
37
|
+
background-color: #990000;
|
38
|
+
color: #FFFFFF;
|
39
|
+
}
|
40
|
+
pre.idle .LibraryClassType {
|
41
|
+
color: #A535AE;
|
42
|
+
}
|
43
|
+
pre.idle .LibraryFunction {
|
44
|
+
color: #A535AE;
|
45
|
+
}
|
46
|
+
pre.idle .TagAttribute {
|
47
|
+
}
|
48
|
+
pre.idle .Keyword {
|
49
|
+
color: #FF5600;
|
50
|
+
}
|
51
|
+
pre.idle .UserDefinedConstant {
|
52
|
+
}
|
53
|
+
pre.idle .String {
|
54
|
+
color: #00A33F;
|
55
|
+
}
|
56
|
+
pre.idle .FunctionName {
|
57
|
+
color: #21439C;
|
58
|
+
}
|
59
|
+
pre.idle .Variable {
|
60
|
+
}
|
61
|
+
pre.idle .Comment {
|
62
|
+
color: #919191;
|
63
|
+
}
|
Binary file
|