├── .bowerrc ├── .gitignore ├── Gemfile ├── Gemfile.lock ├── README.md ├── bower.json ├── config.rb ├── package.json ├── source ├── doc │ ├── annex-b.slim │ ├── annex_b │ │ ├── _01_hoisted_block_level_function_declaration.slim │ │ ├── _02_proto_in_object_literals.slim │ │ ├── _03_oject_prototype_proto.slim │ │ ├── _04_string_prototype_HTML_methods.slim │ │ └── _05_regExp_prototype_compile.slim │ ├── bindings.slim │ ├── bindings │ │ ├── _01_const.slim │ │ ├── _02_let.slim │ │ └── _03_function_declaration.slim │ ├── built-in-extensions.slim │ ├── built-ins.slim │ ├── built_in_extensions │ │ ├── _01_object_static_methods.slim │ │ ├── _02_function_name_property.slim │ │ ├── _03_string_static_methods.slim │ │ ├── _04_string_prototype_methods.slim │ │ ├── _05_regExp_prototype_properties.slim │ │ ├── _06_array_static_methods.slim │ │ ├── _07_array_prototype_methods.slim │ │ ├── _08_number_properties.slim │ │ └── _09_math_methods.slim │ ├── built_ins │ │ ├── _01_typed_arrays.slim │ │ ├── _02_map.slim │ │ ├── _03_set.slim │ │ ├── _04_weak_map.slim │ │ ├── _05_weak_set.slim │ │ ├── _06_proxy.slim │ │ ├── _07_reflect.slim │ │ ├── _08_promise.slim │ │ ├── _09_symbol.slim │ │ └── _10_well_known_symbols.slim │ ├── functions.slim │ ├── functions │ │ ├── _01_arrow_functions.slim │ │ ├── _02_class.slim │ │ ├── _03_super.slim │ │ └── _04_generators.slim │ ├── misc.slim │ ├── optimisation.slim │ ├── start.slim │ ├── subclassing.slim │ ├── syntax.slim │ └── syntax │ │ ├── _01_default_para.slim │ │ ├── _02_rest_para.slim │ │ ├── _03_spread_opera.slim │ │ ├── _04_literal_ext.slim │ │ ├── _05_for_of.slim │ │ ├── _06_octal_binary.slim │ │ ├── _07_template_string.slim │ │ ├── _08_regExp_y_u.slim │ │ ├── _09_destructuring.slim │ │ ├── _10_unicode_point.slim │ │ └── _11_new_target.slim ├── examples │ ├── index.slim │ └── promise.slim ├── images │ ├── babel.png │ ├── background.png │ ├── compat_table.png │ ├── droste_effect.jpg │ ├── ecmascript_history.png │ ├── function_call.png │ ├── function_call_stack.png │ ├── loading.gif │ ├── middleman.png │ ├── scratch.png │ ├── tail_stack.png │ └── traceur.png ├── index.html.slim ├── javascripts │ ├── app.js │ ├── enumerator.js │ ├── es6-promise.js │ ├── extract.js │ ├── followers.js │ └── promise.js ├── layouts │ ├── layout.slim │ └── sub_nav_js.slim ├── public │ └── data.json └── stylesheets │ ├── app.scss │ ├── home.scss │ ├── main.scss │ └── nav.scss └── vendor └── assets ├── javascripts ├── highlight.pack.js └── vendor.js └── stylesheets ├── highlight ├── CHANGES.md ├── LICENSE ├── README.md ├── README.ru.md └── styles │ ├── agate.css │ ├── androidstudio.css │ ├── arta.css │ ├── ascetic.css │ ├── atelier-dune.dark.css │ ├── atelier-dune.light.css │ ├── atelier-forest.dark.css │ ├── atelier-forest.light.css │ ├── atelier-heath.dark.css │ ├── atelier-heath.light.css │ ├── atelier-lakeside.dark.css │ ├── atelier-lakeside.light.css │ ├── atelier-seaside.dark.css │ ├── atelier-seaside.light.css │ ├── atelier-sulphurpool.dark.css │ ├── atelier-sulphurpool.light.css │ ├── brown_paper.css │ ├── brown_papersq.png │ ├── codepen-embed.css │ ├── color-brewer.css │ ├── dark.css │ ├── darkula.css │ ├── default.css │ ├── docco.css │ ├── far.css │ ├── foundation.css │ ├── github.css │ ├── googlecode.css │ ├── hybrid.css │ ├── idea.css │ ├── ir_black.css │ ├── kimbie.dark.css │ ├── kimbie.light.css │ ├── magula.css │ ├── mono-blue.css │ ├── monokai.css │ ├── monokai_sublime.css │ ├── obsidian.css │ ├── paraiso.dark.css │ ├── paraiso.light.css │ ├── pojoaque.css │ ├── pojoaque.jpg │ ├── railscasts.css │ ├── rainbow.css │ ├── school_book.css │ ├── school_book.png │ ├── solarized_dark.css │ ├── solarized_light.css │ ├── sunburst.css │ ├── tomorrow-night-blue.css │ ├── tomorrow-night-bright.css │ ├── tomorrow-night-eighties.css │ ├── tomorrow-night.css │ ├── tomorrow.css │ ├── vs.css │ ├── xcode.css │ └── zenburn.css └── vendor.css /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "vendor/assets/components" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | # Ignore bundler config 8 | /.bundle 9 | 10 | # Ignore the build directory 11 | /build 12 | 13 | # Ignore cache 14 | /.sass-cache 15 | /.cache 16 | 17 | # Ignore .DS_store file 18 | .DS_Store 19 | 20 | /vendor/assets/components 21 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | # If you do not have OpenSSL installed, update 2 | # the following line to use "http://" instead 3 | source 'https://rubygems.org' 4 | 5 | gem "middleman", "~>3.3.11" 6 | gem "slim", ">= 2.0" 7 | 8 | # Live-reloading plugin 9 | gem "middleman-livereload", "~> 3.1.0" 10 | 11 | # for faster file watcher updates on windows: 12 | gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] 13 | 14 | # windows does not come with time zone data 15 | gem "tzinfo-data", platforms: [:mswin, :mingw] 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # es6tutorial 2 | 3 | 这里列出了 ES6 的所有特性,并附以实例。你可以直接访问 [es6turorial](http://es6.larklearning.com), 或者克隆这个项目,然后在本地运行。 4 | 5 | ## 依赖 6 | 7 | * [middleman](https://github.com/middleman/middleman) 8 | * [bower](https://github.com/bower/bower) 9 | 10 | ## 运行 11 | 12 | ``` sh 13 | $ cd es6tutorial 14 | $ bower install 15 | $ middleman server 16 | ``` 17 | 18 | 然后打开浏览器,输入:http://localhost:4567。 19 | 20 | 如果你想为这个项目贡献代码,欢迎 fork。 21 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "es6turorial", 3 | "version": "0.0.0", 4 | "authors": [ 5 | "wendy " 6 | ], 7 | "description": "es6turorial", 8 | "license": "MIT", 9 | "private": true, 10 | "dependencies": { 11 | "foundation": "~5.4.7", 12 | "jquery": "~2.1.3", 13 | "underscore": "~1.8.3", 14 | "springy": "~2.7.1" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /config.rb: -------------------------------------------------------------------------------- 1 | activate :sprockets 2 | after_configuration do 3 | sprockets.append_path(File.join(root, 'vendor/assets/javascripts')) 4 | sprockets.append_path(File.join(root, 'vendor/assets/stylesheets')) 5 | sprockets.append_path(File.join(root, 'vendor/assets/components')) 6 | end 7 | 8 | require "slim" 9 | 10 | ### 11 | # Compass 12 | ### 13 | 14 | # Change Compass configuration 15 | # compass_config do |config| 16 | # config.output_style = :compact 17 | # end 18 | 19 | ### 20 | # Page options, layouts, aliases and proxies 21 | ### 22 | 23 | # Per-page layout changes: 24 | # 25 | # With no layout 26 | # page "/path/to/file.html", :layout => false 27 | # 28 | # With alternative layout 29 | # page "/path/to/file.html", :layout => :otherlayout 30 | # 31 | # A path which all have the same layout 32 | # with_layout :admin do 33 | # page "/admin/*" 34 | # end 35 | 36 | # Proxy pages (http://middlemanapp.com/basics/dynamic-pages/) 37 | # proxy "/this-page-has-no-template.html", "/template-file.html", :locals => { 38 | # :which_fake_page => "Rendering a fake page with a local variable" } 39 | 40 | ### 41 | # Helpers 42 | ### 43 | 44 | # Automatic image dimensions on image_tag helper 45 | # activate :automatic_image_sizes 46 | 47 | # Reload the browser automatically whenever files change 48 | # configure :development do 49 | # activate :livereload 50 | # end 51 | 52 | # Methods defined in the helpers block are available in templates 53 | # helpers do 54 | # def some_helper 55 | # "Helping" 56 | # end 57 | # end 58 | 59 | set :css_dir, 'stylesheets' 60 | 61 | set :js_dir, 'javascripts' 62 | 63 | set :images_dir, 'images' 64 | 65 | # Build-specific configuration 66 | configure :build do 67 | # For example, change the Compass output style for deployment 68 | # activate :minify_css 69 | 70 | # Minify Javascript on build 71 | # activate :minify_javascript 72 | 73 | # Enable cache buster 74 | # activate :asset_hash 75 | 76 | # Use relative URLs 77 | # activate :relative_assets 78 | 79 | # Or use a different image path 80 | # set :http_prefix, "/Content/images/" 81 | end 82 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "es6tutorial", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "middleman server", 8 | "test": "npm run-script test-unit", 9 | "test-unit": "./node_modules/.bin/karma start karma.conf.js", 10 | "test-functional": "./node_modules/.bin/casperjs test test/functional/" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "git+https://github.com/wendycan/es6tutorial.git" 15 | }, 16 | "author": "", 17 | "license": "ISC", 18 | "bugs": { 19 | "url": "https://github.com/wendycan/es6tutorial/issues" 20 | }, 21 | "homepage": "https://github.com/wendycan/es6tutorial#readme" 22 | } 23 | -------------------------------------------------------------------------------- /source/doc/annex-b.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 附录 3 | --- 4 | 5 | .row 6 | .large-3.columns.show-for-large-up 7 | table.pos-fixed.scroll-nav 8 | .large-9.columns 9 | .feature 10 | == partial 'doc/annex_b/_01_hoisted_block_level_function_declaration' 11 | .feature 12 | == partial 'doc/annex_b/_02_proto_in_object_literals' 13 | .feature 14 | == partial 'doc/annex_b/_03_oject_prototype_proto' 15 | .feature 16 | == partial 'doc/annex_b/_04_string_prototype_HTML_methods' 17 | .feature 18 | == partial 'doc/annex_b/_05_regExp_prototype_compile' 19 | 20 | == partial 'layouts/sub_nav_js' 21 | javascript: 22 | $("#annex-b").addClass('active'); 23 | -------------------------------------------------------------------------------- /source/doc/annex_b/_01_hoisted_block_level_function_declaration.slim: -------------------------------------------------------------------------------- 1 | h4 一、块级函数声明 2 | h5.subheader hoisted block-level function declaration 3 | .feature-content 4 | pre 5 | code.javascript 6 | | // Note: only available outside of strict mode. 7 | { function f() { return 1; } } 8 | function g() { return 1; } 9 | { function g() { return 2; } } 10 | { function h() { return 1; } } 11 | function h() { return 2; } 12 | console.log(f() === 1 && g() === 2 && h() === 1); 13 | p 结果为 true。 14 | -------------------------------------------------------------------------------- /source/doc/annex_b/_02_proto_in_object_literals.slim: -------------------------------------------------------------------------------- 1 | h4 二、_proto_ 对象字面量 2 | h5.subheader __proto__ in object literals 3 | .feature-content 4 | h5 1.基本支持 5 | h5.subheader basic support 6 | pre 7 | code.javascript 8 | | console.log({ __proto__ : [] } instanceof Array 9 | && !({ __proto__ : null } instanceof Object)); 10 | p 结果为 true。 11 | h5 2.多个 _proto_ 会报错 12 | h5.subheader multiple __proto__ is an error 13 | pre 14 | code.javascript 15 | | try { 16 | eval("({ __proto__ : [], __proto__: {} })"); 17 | } 18 | catch(e) { 19 | console.log(true); 20 | } 21 | p 结果为 true。 22 | h5 3.不是一个可计算的属性 23 | h5.subheader not a computed property 24 | pre 25 | code.javascript 26 | | if (!({ __proto__ : [] } instanceof Array)) { 27 | console.log(false); 28 | } 29 | var a = "__proto__"; 30 | console.log(!({ [a] : [] } instanceof Array)); 31 | p 结果为 true。 32 | h5 4.不是一个简写的属性 33 | h5.subheader not a shorthand property 34 | pre 35 | code.javascript 36 | | if (!({ __proto__ : [] } instanceof Array)) { 37 | console.log(false); 38 | } 39 | var __proto__ = []; 40 | console.log(!({ __proto__ } instanceof Array)); 41 | p 结果为 true。 42 | h5 5.不是一个简写的方法 43 | h5.subheader not a shorthand method 44 | pre 45 | code.javascript 46 | | if (!({ __proto__ : [] } instanceof Array)) { 47 | console.log(false); 48 | } 49 | console.log(!({ __proto__(){} } instanceof Function)); 50 | p 结果为 true。 51 | -------------------------------------------------------------------------------- /source/doc/annex_b/_03_oject_prototype_proto.slim: -------------------------------------------------------------------------------- 1 | h4 三、对象原型 _proto_ 2 | h5.subheader Object.prototype.__proto__ 3 | .feature-content 4 | h5 1.获取原型 5 | h5.subheader get prototype 6 | pre 7 | code.javascript 8 | | var A = function(){}; 9 | console.log((new A()).__proto__ === A.prototype); 10 | p 结果为 true。 11 | h5 2.设定原型 12 | h5.subheader set prototype 13 | pre 14 | code.javascript 15 | | var o = {}; 16 | o.__proto__ = Array.prototype; 17 | console.log(o instanceof Array); 18 | p 结果为 true。 19 | h5 3.Object.create 20 | h5.subheader absent from Object.create(null) 21 | pre 22 | code.javascript 23 | | var o = Object.create(null), p = {}; 24 | o.__proto__ = p; 25 | console.log(Object.getPrototypeOf(o) !== p); 26 | p 结果为 true。 27 | h5 4.hasOwnProperty 28 | h5.subheader present in hasOwnProperty() 29 | pre 30 | code.javascript 31 | | console.log(Object.prototype.hasOwnProperty('__proto__')); 32 | p 结果为 true。 33 | h5 5.正确的属性描述 34 | h5.subheader correct property descriptor 35 | pre 36 | code.javascript 37 | | var desc = Object.getOwnPropertyDescriptor(Object.prototype,"__proto__"); 38 | var A = function(){}; 39 | console.log(desc 40 | && "get" in desc 41 | && "set" in desc 42 | && desc.configurable 43 | && !desc.enumerable); 44 | p 结果为 true。 45 | h5 6.getOwnPropertyNames 46 | h5.subheader present in Object.getOwnPropertyNames() 47 | pre 48 | code.javascript 49 | | console.log(Object.getOwnPropertyNames(Object.prototype).indexOf('__proto__') > -1); 50 | p 结果为 true。 51 | -------------------------------------------------------------------------------- /source/doc/annex_b/_04_string_prototype_HTML_methods.slim: -------------------------------------------------------------------------------- 1 | h4 四、字符串原型 HTML 方法 2 | h5.subheader String.prototype HTML methods 3 | .feature-content 4 | h5 1.存在 5 | h5.subheader existence 6 | pre 7 | code.javascript 8 | | var i, names = ["anchor", "big", "bold", "fixed", "fontcolor", "fontsize", 9 | "italics", "link", "small", "strike", "sub", "sup"]; 10 | for (i = 0; i < names.length; i++) { 11 | if (typeof String.prototype[names[i]] !== 'function') { 12 | console.log(false); 13 | } 14 | } 15 | console.log(true); 16 | p 结果为 true。 17 | h5 2.tag name 是小写 18 | h5.subheader tags' names are lowercase 19 | pre 20 | code.javascript 21 | | var i, names = ["anchor", "big", "bold", "fixed", "fontcolor", "fontsize", 22 | "italics", "link", "small", "strike", "sub", "sup"]; 23 | for (i = 0; i < names.length; i++) { 24 | if (""[names[i]]().toLowerCase() !== ""[names[i]]()) { 25 | console.log(false); 26 | } 27 | } 28 | console.log(true); 29 | p 结果为 true。 30 | h5 3.参数里的引号会被转义 31 | h5.subheader quotes in arguments are escaped 32 | pre 33 | code.javascript 34 | | var i, names = ["anchor", "fontcolor", "fontsize", "link"]; 35 | for (i = 0; i < names.length; i++) { 36 | if (""[names[i]]('"') !== ""[names[i]]('&' + 'quot;')) { 37 | console.log(false); 38 | } 39 | } 40 | console.log(true); 41 | p 结果为 true。 42 | -------------------------------------------------------------------------------- /source/doc/annex_b/_05_regExp_prototype_compile.slim: -------------------------------------------------------------------------------- 1 | h4 五、正则表达式 compile 2 | h5.subheader RegExp.prototype.compile 3 | .feature-content 4 | pre 5 | code.javascript 6 | | console.log(typeof RegExp.prototype.compile === 'function'); 7 | p 结果为 true。 8 | -------------------------------------------------------------------------------- /source/doc/bindings.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 绑定 3 | --- 4 | 5 | .row 6 | .large-3.columns.show-for-large-up 7 | table.pos-fixed.scroll-nav 8 | .large-9.columns 9 | .feature 10 | == partial 'doc/bindings/_01_const' 11 | .feature 12 | == partial 'doc/bindings/_02_let' 13 | .feature 14 | == partial 'doc/bindings/_03_function_declaration' 15 | 16 | == partial 'layouts/sub_nav_js' 17 | javascript: 18 | $("#bindings").addClass('active'); 19 | -------------------------------------------------------------------------------- /source/doc/bindings/_01_const.slim: -------------------------------------------------------------------------------- 1 | h4 一、常量 2 | h5.subheader const 3 | .feature-content 4 | h5 1.基本支持 5 | h5.subheader basic support 6 | pre 7 | code.javascript 8 | | const foo = 123; 9 | console.log((foo === 123)); 10 | p 结果为 true。 11 | h5 2.块级作用域 12 | h5.subheader is block-scoped 13 | pre 14 | code.javascript 15 | | const bar = 123; 16 | { const bar = 456; } 17 | console.log(bar === 123); 18 | p 结果为 true。 19 | h5 3.重复定义一个 const 会报错 20 | h5.subheader redefining a const is an error 21 | pre 22 | code.javascript 23 | | const baz = 1; 24 | baz = 2; 25 | h5 4.暂时性死区 26 | h5.subheader temporal dead zone 27 | pre 28 | code.javascript 29 | | var passed = (function(){ 30 | qux = 2; 31 | }()) 32 | const qux = 3; 33 | console.log(qux); 34 | p 会报错,因为 qux 处于暂时性死区。 35 | h5 5.严格模式的基本支持 36 | h5.subheader basic support (strict mode) 37 | pre 38 | code.javascript 39 | | "use strict"; 40 | const foo = 123; 41 | console.log((foo === 123)); 42 | p 结果为 true。 43 | h5 6.严格模式的块级作用域 44 | h5.subheader is block-scoped (strict mode) 45 | pre 46 | code.javascript 47 | | 'use strict'; 48 | const bar = 123; 49 | { const bar = 456; } 50 | console.log(bar === 123); 51 | p 结果为 true。 52 | h5 7.严格模式重复定义一个 const。 53 | h5.subheader redefining a const (strict mode) 54 | pre 55 | code.javascript 56 | | 'use strict'; 57 | const baz = 1; 58 | try { 59 | Function("'use strict'; const foo = 1; foo = 2;")(); 60 | } catch(e) { 61 | console.log(true); 62 | } 63 | p 结果为 true。 64 | h5 8.严格模式的暂时性死区。 65 | h5.subheader temporal dead zone (strict mode) 66 | pre 67 | code.javascript 68 | | 'use strict'; 69 | var passed = (function(){ try { qux; } catch(e) { return true; }}()); 70 | const qux = 456; 71 | console.log(passed); 72 | -------------------------------------------------------------------------------- /source/doc/bindings/_02_let.slim: -------------------------------------------------------------------------------- 1 | h4 二、let 2 | h5.subheader let 3 | p ES6 新增了 let 命令,用来声明变量。它的用法与 var 类似,但有以下几个区别。 4 | .feature-content 5 | h5 1.基本支持 6 | h5.subheader basic support 7 | pre 8 | code.javascript 9 | | let foo = 123; 10 | console.log((foo === 123)); 11 | p 结果为 true。 12 | h5 2.块级作用域 13 | h5.subheader is block-scoped 14 | pre 15 | code.javascript 16 | | let bar = 123; 17 | { let bar = 456; } 18 | console.log(bar === 123); 19 | p 结果为 true。 20 | h5 3.for-loop 声明作用域 21 | h5.subheader for-loop statement scope 22 | pre 23 | code.javascript 24 | | let baz = 1; 25 | for(let baz = 0; false; false) {} 26 | console.log(baz === 1); 27 | p 结果为 true。 28 | h5 4.暂时性死区 29 | h5.subheader temporal dead zone 30 | pre 31 | code.javascript 32 | | var passed = (function(){ try { qux; } catch(e) { return true; }}()); 33 | let qux = 456; 34 | console.log(passed); 35 | h5 5.for-loop 迭代器作用域 36 | h5.subheader for-loop iteration scope 37 | pre 38 | code.javascript 39 | | let scopes = []; 40 | for(let i = 0; i < 2; i++) { 41 | scopes.push(function(){ return i; }); 42 | } 43 | let passed = (scopes[0]() === 0 && scopes[1]() === 1); 44 | scopes = []; 45 | for(let i in { a:1, b:1 }) { 46 | scopes.push(function(){ return i; }); 47 | } 48 | passed = passed && (scopes[0]() === "a" && scopes[1]() === "b"); 49 | console.log(passed); 50 | p 结果为 true。 51 | h5 6.基本支持(严格模式) 52 | h5.subheader basic support (strict mode) 53 | pre 54 | code.javascript 55 | | 'use strict'; 56 | let foo = 123; 57 | console.log((foo === 123)); 58 | p 结果为 true。 59 | h5 7.块级作用域(严格模式) 60 | h5.subheader is block-scoped (strict mode) 61 | pre 62 | code.javascript 63 | | 'use strict'; 64 | let bar = 123; 65 | { let bar = 456; } 66 | console.log(bar === 123); 67 | p 结果为 true。 68 | h5 8.for-loop 声明作用域(严格模式) 69 | h5.subheader for-loop statement scope (strict mode) 70 | pre 71 | code.javascript 72 | | 'use strict'; 73 | let baz = 1; 74 | for(let baz = 0; false; false) {} 75 | console.log(baz === 1); 76 | p 结果为 true。 77 | h5 9.暂时性死区(严格模式) 78 | h5.subheader temporal dead zone (strict mode) 79 | pre 80 | code.javascript 81 | | 'use strict'; 82 | var passed = (function(){ try { qux; } catch(e) { return true; }}()); 83 | let qux = 456; 84 | console.log(passed); 85 | //- p 结果为 true。 86 | h5 10.for-loop 迭代器作用域(严格模式) 87 | h5.subheader for-loop iteration scope (strict mode) 88 | pre 89 | code.javascript 90 | | 'use strict'; 91 | let scopes = []; 92 | for(let i = 0; i < 2; i++) { 93 | scopes.push(function(){ return i; }); 94 | } 95 | let passed = (scopes[0]() === 0 && scopes[1]() === 1); 96 | scopes = []; 97 | for(let i in { a:1, b:1 }) { 98 | scopes.push(function(){ return i; }); 99 | } 100 | passed = passed && p (scopes[0]() === "a" && scopes[1]() === "b"); 101 | console.log(passed); 102 | p 结果为 true。 103 | -------------------------------------------------------------------------------- /source/doc/bindings/_03_function_declaration.slim: -------------------------------------------------------------------------------- 1 | h4 二、块级的函数声明 2 | h5.subheader block-level function declaration 3 | .feature-content 4 | pre 5 | code.javascript 6 | | function f() { return 1; } 7 | { 8 | function f() { return 2; } 9 | } 10 | console.log(f() === 1); 11 | p 结果为 true。 12 | -------------------------------------------------------------------------------- /source/doc/built-in-extensions.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 内建扩展 3 | --- 4 | 5 | .row 6 | .large-3.columns.show-for-large-up 7 | table.pos-fixed.scroll-nav 8 | .large-9.columns 9 | .feature 10 | == partial 'doc/built_in_extensions/_01_object_static_methods' 11 | .feature 12 | == partial 'doc/built_in_extensions/_02_function_name_property' 13 | .feature 14 | == partial 'doc/built_in_extensions/_03_string_static_methods' 15 | .feature 16 | == partial 'doc/built_in_extensions/_04_string_prototype_methods' 17 | .feature 18 | == partial 'doc/built_in_extensions/_05_regExp_prototype_properties' 19 | .feature 20 | == partial 'doc/built_in_extensions/_06_array_static_methods' 21 | .feature 22 | == partial 'doc/built_in_extensions/_07_array_prototype_methods' 23 | .feature 24 | == partial 'doc/built_in_extensions/_08_number_properties' 25 | .feature 26 | == partial 'doc/built_in_extensions/_09_math_methods' 27 | 28 | == partial 'layouts/sub_nav_js' 29 | javascript: 30 | $("#built-in-extensions").addClass('active'); 31 | -------------------------------------------------------------------------------- /source/doc/built-ins.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 内建 3 | --- 4 | 5 | .row 6 | .large-3.columns.show-for-large-up 7 | table.pos-fixed.scroll-nav 8 | .large-9.columns 9 | .feature 10 | == partial 'doc/built_ins/_01_typed_arrays' 11 | .feature 12 | == partial 'doc/built_ins/_02_map' 13 | .feature 14 | == partial 'doc/built_ins/_03_set' 15 | .feature 16 | == partial 'doc/built_ins/_04_weak_map' 17 | .feature 18 | == partial 'doc/built_ins/_05_weak_set' 19 | .feature 20 | == partial 'doc/built_ins/_06_proxy' 21 | .feature 22 | == partial 'doc/built_ins/_07_reflect' 23 | .feature 24 | == partial 'doc/built_ins/_08_promise' 25 | .feature 26 | == partial 'doc/built_ins/_09_symbol' 27 | .feature 28 | == partial 'doc/built_ins/_10_well_known_symbols' 29 | 30 | == partial 'layouts/sub_nav_js' 31 | javascript: 32 | $("#built-ins").addClass('active'); 33 | 34 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_01_object_static_methods.slim: -------------------------------------------------------------------------------- 1 | h4 一、对象的静态方法 2 | h5.subheader Object static methods 3 | .feature-content 4 | h5 1.assign 5 | h5.subheader Object.assign 6 | pre 7 | code.javascript 8 | | var o = Object.assign({a:true}, {b:true}, {c:true}); 9 | console.log("a" in o && "b" in o && "c" in o); 10 | p 结果为 true。 11 | h5 2.is 12 | h5.subheader Object.is 13 | pre 14 | code.javascript 15 | | console.log(typeof Object.is === 'function' && 16 | Object.is(NaN, NaN) && 17 | !Object.is(-0, 0)); 18 | p 结果为 true。 19 | h5 3.getOwnPropertySymbols 20 | h5.subheader Object.getOwnPropertySymbols 21 | pre 22 | code.javascript 23 | | var o = {}; 24 | var sym = Symbol(), sym2 = Symbol(), sym3 = Symbol(); 25 | o[sym] = true; 26 | o[sym2] = true; 27 | o[sym3] = true; 28 | var result = Object.getOwnPropertySymbols(o); 29 | console.log(result[0] === sym 30 | && result[1] === sym2 31 | && result[2] === sym3); 32 | p 结果为 true。 33 | h5 4.setPrototypeOf 34 | h5.subheader Object.setPrototypeOf 35 | pre 36 | code.javascript 37 | | console.log(Object.setPrototypeOf({}, Array.prototype) instanceof Array); 38 | p 结果为 true。 39 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_03_string_static_methods.slim: -------------------------------------------------------------------------------- 1 | h4 三、字符串静态方法 2 | h5.subheader String static methods 3 | .feature-content 4 | h5 1.raw 5 | h5.subheader String.raw 6 | pre 7 | code.javascript 8 | | console.log(typeof String.raw === 'function'); 9 | p 结果为 true。 10 | h5 2.fromCodePoint 11 | h5.subheader String.fromCodePoint 12 | pre 13 | code.javascript 14 | | console.log(typeof String.fromCodePoint === 'function'); 15 | p 结果为 true。 16 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_04_string_prototype_methods.slim: -------------------------------------------------------------------------------- 1 | h4 四、字符串原型方法 2 | h5.subheader String.prototype methods 3 | .feature-content 4 | h5 1.codePointAt 5 | h5.subheader String.prototype.codePointAt 6 | pre 7 | code.javascript 8 | | console.log(typeof String.prototype.codePointAt === 'function'); 9 | p 结果为 true。 10 | h5 2.normalize 11 | h5.subheader String.prototype.normalize 12 | pre 13 | code.javascript 14 | | console.log(typeof String.prototype.normalize === "function" 15 | && "c\u0327\u0301".normalize("NFC") === "\u1e09" 16 | && "\u1e09".normalize("NFD") === "c\u0327\u0301"); 17 | p 结果为 true。 18 | h5 3.repeat 19 | h5.subheader String.prototype.repeat 20 | pre 21 | code.javascript 22 | | console.log(typeof String.prototype.repeat === 'function' 23 | && "foo".repeat(3) === "foofoofoo"); 24 | p 结果为 true。 25 | h5 4.startsWith 26 | h5.subheader String.prototype.startsWith 27 | pre 28 | code.javascript 29 | | console.log(typeof String.prototype.startsWith === 'function' 30 | && "foobar".startsWith("foo")); 31 | p 结果为 true。 32 | h5 5.endsWith 33 | h5.subheader String.prototype.endsWith 34 | pre 35 | code.javascript 36 | | console.log(typeof String.prototype.endsWith === 'function' 37 | && "foobar".endsWith("bar")); 38 | p 结果为 true。 39 | h5 6.includes 40 | h5.subheader String.prototype.includes 41 | pre 42 | code.javascript 43 | | console.log(typeof String.prototype.includes === 'function' 44 | && "foobar".includes("oba")); 45 | p 结果为 true。 46 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_05_regExp_prototype_properties.slim: -------------------------------------------------------------------------------- 1 | h4 五、正则表达式属性 2 | h5.subheader RegExp.prototype properties 3 | .feature-content 4 | h5 1.flags 5 | h5.subheader RegExp.prototype.flags 6 | pre 7 | code.javascript 8 | | console.log(/./igm.flags === "gim" && /./.flags === ""); 9 | p 结果为 true。 10 | h5 2.Symbol.match 11 | h5.subheader RegExp.prototype[Symbol.match] 12 | pre 13 | code.javascript 14 | | console.log(typeof RegExp.prototype[Symbol.match] === 'function'); 15 | span.label.radius.warning 待测试 16 | h5 3.Symbol.replace 17 | h5.subheader RegExp.prototype[Symbol.replace] 18 | pre 19 | code.javascript 20 | | console.log(typeof RegExp.prototype[Symbol.replace] === 'function'); 21 | span.label.radius.warning 待测试 22 | h5 4.Symbol.split 23 | h5.subheader RegExp.prototype[Symbol.split] 24 | pre 25 | code.javascript 26 | | console.log(typeof RegExp.prototype[Symbol.split] === 'function'); 27 | span.label.radius.warning 待测试 28 | h5 5.Symbol.search 29 | h5.subheader RegExp.prototype[Symbol.search] 30 | pre 31 | code.javascript 32 | | console.log(typeof RegExp.prototype[Symbol.search] === 'function'); 33 | span.label.radius.warning 待测试 34 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_06_array_static_methods.slim: -------------------------------------------------------------------------------- 1 | h4 六、数组静态方法 2 | h5.subheader Array static methods 3 | .feature-content 4 | h5 1.类数组对象 5 | h5.subheader Array.from, array-like objects 6 | pre 7 | code.javascript 8 | | console.log(Array.from({ 0: "foo", 1: "bar", length: 2 }) + '' === "foo,bar"); 9 | p 结果为 true。 10 | h5 2.通用迭代 11 | h5.subheader Array.from, generic iterables 12 | p 首先定义一个通用的迭代器函数: 13 | pre 14 | code.javascript 15 | | function __createIterableObject(a, b, c) { 16 | if (typeof Symbol === "function" && Symbol.iterator) { 17 | var arr = [a, b, c, ,]; 18 | var iterable = { 19 | next: function() { 20 | return { value: arr.shift(), done: arr.length <= 0 }; 21 | }, 22 | }; 23 | iterable[Symbol.iterator] = function(){ return iterable; } 24 | return iterable; 25 | } 26 | else { 27 | return eval("(function*() { yield a; yield b; yield c; }())"); 28 | } 29 | } 30 | p 通过调用这个迭代器函数,生成一个迭代器。 31 | pre 32 | code.javascript 33 | | var iterable = __createIterableObject(1, 2, 3); 34 | console.log(Array.from(iterable) + '' === "1,2,3"); 35 | p 结果为 true。 36 | h5 3.通用迭代实例 37 | h5.subheader Array.from, instances of generic iterables 38 | pre 39 | code.javascript 40 | | var iterable = __createIterableObject(1, 2, 3); 41 | console.log(Array.from(Object.create(iterable)) + '' === "1,2,3"); 42 | p 结果为 true。 43 | h5 4.类数组对象(map) 44 | h5.subheader Array.from map function, array-like objects 45 | pre 46 | code.javascript 47 | | console.log(Array.from({ 0: "foo", 1: "bar", length: 2 }, function(e, i) { 48 | return e + this.baz + i; 49 | }, { baz: "d" }) + '' === "food0,bard1"); 50 | p 结果为 true。 51 | h5 5.通用迭代(map) 52 | h5.subheader Array.from map function, generic iterables 53 | pre 54 | code.javascript 55 | | var iterable = __createIterableObject("foo", "bar", "bal"); 56 | console.log(Array.from(iterable, function(e, i) { 57 | return e + this.baz + i; 58 | }, { baz: "d" }) + '' === "food0,bard1,bald2"); 59 | p 结果为 true。 60 | h5 6.通用迭代实例(map) 61 | h5.subheader Array.from map function, instances of iterables 62 | pre 63 | code.javascript 64 | | var iterable = __createIterableObject("foo", "bar", "bal"); 65 | console.log(Array.from(Object.create(iterable), function(e, i) { 66 | return e + this.baz + i; 67 | }, { baz: "d" }) + '' === "food0,bard1,bald2"); 68 | p 结果为 true。 69 | h5 7.迭代关闭 70 | h5.subheader Array.from, iterator closing 71 | pre 72 | code.javascript 73 | | var closed = false; 74 | var iter = __createIterableObject(1, 2, 3); 75 | iter['return'] = function(){ closed = true; return {}; } 76 | try { 77 | Array.from(iter, function() { throw 42 }); 78 | } catch(e){} 79 | console.log(closed); 80 | span.label.radius.warning 待测试 81 | h5 8.of 82 | h5.subheader Array.of 83 | pre 84 | code.javascript 85 | | console.log(typeof Array.of === 'function' && 86 | Array.of(2)[0] === 2); 87 | p 结果为 true。 88 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_07_array_prototype_methods.slim: -------------------------------------------------------------------------------- 1 | h4 七、数组原型方法 2 | h5.subheader Array.prototype methods 3 | .feature-content 4 | h5 1.copyWithin 5 | h5.subheader Array.prototype.copyWithin 6 | pre 7 | code.javascript 8 | | console.log(typeof Array.prototype.copyWithin === 'function'); 9 | p 结果为 true。 10 | h5 2.find 11 | h5.subheader Array.prototype.find 12 | pre 13 | code.javascript 14 | | console.log(typeof Array.prototype.find === 'function'); 15 | p 结果为 true。 16 | h5 3.findIndex 17 | h5.subheader Array.prototype.findIndex 18 | pre 19 | code.javascript 20 | | console.log(typeof Array.prototype.findIndex === 'function'); 21 | p 结果为 true。 22 | h5 4.fill 23 | h5.subheader Array.prototype.fill 24 | pre 25 | code.javascript 26 | | console.log(typeof Array.prototype.fill === 'function'); 27 | p 结果为 true。 28 | h5 5.keys 29 | h5.subheader Array.prototype.keys 30 | pre 31 | code.javascript 32 | | console.log(typeof Array.prototype.keys === 'function'); 33 | p 结果为 true。 34 | h5 6.values 35 | h5.subheader Array.prototype.values 36 | pre 37 | code.javascript 38 | | console.log(typeof Array.prototype.values === 'function'); 39 | span.label.radius.warning 待测试 40 | h5 7.entries 41 | h5.subheader Array.prototype.entries 42 | pre 43 | code.javascript 44 | | console.log(typeof Array.prototype.entries === 'function'); 45 | p 结果为 true。 46 | h5 8.Symbol.unscopables 47 | h5.subheader Array.prototype[Symbol.unscopables] 48 | pre 49 | code.javascript 50 | | var unscopables = Array.prototype[Symbol.unscopables]; 51 | if (!unscopables) { 52 | console.log(false); 53 | } 54 | var ns = "find,findIndex,fill,copyWithin,entries,keys,values".split(","); 55 | for (var i = 0; i < ns.length; i++) { 56 | if (Array.prototype[ns[i]] && !unscopables[ns[i]]) console.log(false); 57 | } 58 | console.log(true); 59 | p 结果为 true。 60 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_08_number_properties.slim: -------------------------------------------------------------------------------- 1 | h4 一、Number 属性 2 | h5.subheader Number properties 3 | .feature-content 4 | h5 1.isFinite 5 | h5.subheader Number.isFinite 6 | pre 7 | code.javascript 8 | | console.log(typeof Number.isFinite === 'function'); 9 | p 结果为 true。 10 | h5 2.isInteger 11 | h5.subheader Number.isInteger 12 | pre 13 | code.javascript 14 | | console.log(typeof Number.isInteger === 'function'); 15 | p 结果为 true。 16 | h5 3.isSafeInteger 17 | h5.subheader Number.isSafeInteger 18 | pre 19 | code.javascript 20 | | console.log(typeof Number.isSafeInteger === 'function'); 21 | p 结果为 true。 22 | h5 4.isNaN 23 | h5.subheader Number.isNaN 24 | pre 25 | code.javascript 26 | | console.log(typeof Number.isNaN === 'function'); 27 | p 结果为 true。 28 | h5 5.EPSILON 29 | h5.subheader Number.EPSILON 30 | pre 31 | code.javascript 32 | | console.log(typeof Number.EPSILON === 'number'); 33 | p 结果为 true。 34 | h5 6.MIN_SAFE_INTEGER 35 | h5.subheader Number.MIN_SAFE_INTEGER 36 | pre 37 | code.javascript 38 | | console.log(typeof Number.MIN_SAFE_INTEGER === 'number'); 39 | p 结果为 true。 40 | h5 7.MAX_SAFE_INTEGER 41 | h5.subheader Number.MAX_SAFE_INTEGER 42 | pre 43 | code.javascript 44 | | console.log(typeof Number.MAX_SAFE_INTEGER === 'number'); 45 | p 结果为 true。 46 | -------------------------------------------------------------------------------- /source/doc/built_in_extensions/_09_math_methods.slim: -------------------------------------------------------------------------------- 1 | h4 九、Math 方法 2 | h5.subheader Math methods 3 | .feature-content 4 | h5 1.clz32 5 | h5.subheader Math.clz32 6 | pre 7 | code.javascript 8 | | console.log(typeof Math.clz32 === "function"); 9 | p 结果为 true。 10 | h5 2.imul 11 | h5.subheader Math.imul 12 | pre 13 | code.javascript 14 | | console.log(typeof Math.imul === "function"); 15 | p 结果为 true。 16 | h5 3.sign 17 | h5.subheader Math.sign 18 | pre 19 | code.javascript 20 | | console.log(typeof Math.sign === "function"); 21 | p 结果为 true。 22 | h5 4.log10 23 | h5.subheader Math.log10 24 | pre 25 | code.javascript 26 | | console.log(typeof Math.log10 === "function"); 27 | p 结果为 true。 28 | h5 5.log2 29 | h5.subheader Math.log2 30 | pre 31 | code.javascript 32 | | console.log(typeof Math.log2 === "function"); 33 | p 结果为 true。 34 | h5 6.log1p 35 | h5.subheader Math.log1p 36 | pre 37 | code.javascript 38 | | console.log(typeof Math.log1p === "function"); 39 | p 结果为 true。 40 | h5 7.expm1 41 | h5.subheader Math.expm1 42 | pre 43 | code.javascript 44 | | console.log(typeof Math.expm1 === "function"); 45 | p 结果为 true。 46 | h5 8.cosh 47 | h5.subheader Math.cosh 48 | pre 49 | code.javascript 50 | | console.log(typeof Math.cosh === "function"); 51 | p 结果为 true。 52 | h5 9.sinh 53 | h5.subheader Math.sinh 54 | pre 55 | code.javascript 56 | | console.log(typeof Math.sinh === "function"); 57 | p 结果为 true。 58 | h5 10.tanh 59 | h5.subheader Math.tanh 60 | pre 61 | code.javascript 62 | | console.log(typeof Math.tanh === "function"); 63 | p 结果为 true。 64 | h5 11.acosh 65 | h5.subheader Math.acosh 66 | pre 67 | code.javascript 68 | | console.log(typeof Math.acosh === "function"); 69 | p 结果为 true。 70 | h5 12.asinh 71 | h5.subheader Math.asinh 72 | pre 73 | code.javascript 74 | | console.log(typeof Math.asinh === "function"); 75 | p 结果为 true。 76 | h5 13.atanh 77 | h5.subheader Math.atanh 78 | pre 79 | code.javascript 80 | | console.log(typeof Math.atanh === "function"); 81 | p 结果为 true。 82 | h5 14.trun 83 | h5.subheader Math.trunc 84 | pre 85 | code.javascript 86 | | console.log(typeof Math.trunc === "function"); 87 | p 结果为 true。 88 | h5 15.fround 89 | h5.subheader Math.fround 90 | pre 91 | code.javascript 92 | | console.log(typeof Math.fround === "function"); 93 | p 结果为 true。 94 | h5 16.cbrt 95 | h5.subheader Math.cbrt 96 | pre 97 | code.javascript 98 | | console.log(typeof Math.cbrt === "function"); 99 | p 结果为 true。 100 | h5 17.hypot 101 | h5.subheader Math.hypot 102 | pre 103 | code.javascript 104 | | console.log(typeof Math.hypot === "function"); 105 | p 结果为 true。 106 | -------------------------------------------------------------------------------- /source/doc/built_ins/_04_weak_map.slim: -------------------------------------------------------------------------------- 1 | h4 四、weakMap 2 | h5.subheader weakMap 3 | p WeakMap 与 Map 类似,唯一的区别是它只接受对象作为键名(null 除外),不接受原始类型的值作为键名,而且键名所指向的对象,不计入垃圾回收机制。WeakMap 适用于,键所对应的对象可能会在将来消失,WeakMap 自动移除对应的键值对。WeakMap 结构有助于防止内存泄漏。 4 | .feature-content 5 | h5 1.基本功能 6 | h5.subheader basic functionality 7 | pre 8 | code.javascript 9 | | var key = {}; 10 | var weakmap = new WeakMap(); 11 | weakmap.set(key, 123); 12 | console.log(weakmap.has(key) && weakmap.get(key) === 123); 13 | p 结果为 true。 14 | h5 2.构造函数传入参数 15 | h5.subheader constructor arguments 16 | pre 17 | code.javascript 18 | | var key1 = {}; 19 | var key2 = {}; 20 | var weakmap = new WeakMap([[key1, 123], [key2, 456]]); 21 | console.log(weakmap.has(key1) && weakmap.get(key1) === 123 && 22 | weakmap.has(key2) && weakmap.get(key2) === 456); 23 | p 结果为 true。 24 | h5 3.迭代关闭 25 | h5.subheader iterator closing 26 | pre 27 | code.javascript 28 | | function __createIterableObject(a, b, c) { 29 | if (typeof Symbol === "function" && Symbol.iterator) { 30 | var arr = [a, b, c, ,]; 31 | var iterable = { 32 | next: function() { 33 | return { value: arr.shift(), done: arr.length <= 0 }; 34 | }, 35 | }; 36 | iterable[Symbol.iterator] = function(){ return iterable; } 37 | return iterable; 38 | } 39 | else { 40 | return eval("(function*() { yield a; yield b; yield c; }())"); 41 | } 42 | } 43 | 44 | var closed = false; 45 | var iter = __createIterableObject(1, 2, 3); 46 | iter['return'] = function(){ closed = true; return {}; } 47 | try { 48 | new WeakMap(iter); 49 | } catch(e){} 50 | console.log(closed); 51 | span.label.radius.warning 待测试 52 | h5 4.set 方法返回 this 53 | h5.subheader WeakMap.prototype.set returns this 54 | pre 55 | code.javascript 56 | | var weakmap = new WeakMap(); 57 | var key = {}; 58 | console.log(weakmap.set(key, 0) === weakmap); 59 | p 结果为 true。 60 | h5 5.delete 方法 61 | h5.subheader WeakMap.prototype.delete 62 | pre 63 | code.javascript 64 | | var key = {}; 65 | var weakmap = new WeakMap(); 66 | weakmap.set(key, 123); 67 | weakmap.delete(key); 68 | console.log(weakmap); //WeakMap {} 69 | h5 6.支持对象作为键 70 | h5.subheader Support frozen objects as keys 71 | pre 72 | code.javascript 73 | | var f = Object.freeze({}); 74 | var m = new WeakMap; 75 | m.set(f, 42); 76 | console.log(m.get(f) === 42); 77 | p 结果为 true。 78 | -------------------------------------------------------------------------------- /source/doc/built_ins/_05_weak_set.slim: -------------------------------------------------------------------------------- 1 | h4 五、weakSet 2 | h5.subheader weakSet 3 | p WeakSet 的成员只能是对象,而不能是其他原始类型类型的值。其次,WeakSet 中的对象都是弱引用,即垃圾回收机制不考虑 WeakSet 对该对象的引用,也就是说,如果其他对象都不再引用该对象,那么垃圾回收机制会自动回收该对象所占用的内存,不考虑该对象还存在于 WeakSet 之中。这个特点意味着,无法引用 WeakSet 的成员,因此 WeakSet 是不可遍历的。 4 | .feature-content 5 | h5 1.基本功能 6 | h5.subheader basic functionality 7 | pre 8 | code.javascript 9 | | var obj1 = {}; 10 | var weakset = new WeakSet(); 11 | weakset.add(obj1); 12 | weakset.add(obj1); 13 | console.log(weakset.has(obj1)); 14 | p 结果为 true。 15 | h5 2.构造函数传入参数 16 | h5.subheader constructor arguments 17 | pre 18 | code.javascript 19 | | var obj1 = {}, obj2 = {}; 20 | var weakset = new WeakSet([obj1, obj2]); 21 | console.log(weakset.has(obj1) && weakset.has(obj2)); 22 | p 结果为 true。 23 | h5 3.迭代关闭 24 | h5.subheader iterator closing 25 | pre 26 | code.javascript 27 | | function __createIterableObject(a, b, c) { 28 | if (typeof Symbol === "function" && Symbol.iterator) { 29 | var arr = [a, b, c, ,]; 30 | var iterable = { 31 | next: function() { 32 | return { value: arr.shift(), done: arr.length <= 0 }; 33 | }, 34 | }; 35 | iterable[Symbol.iterator] = function(){ return iterable; } 36 | return iterable; 37 | } 38 | else { 39 | return eval("(function*() { yield a; yield b; yield c; }())"); 40 | } 41 | } 42 | 43 | var closed = false; 44 | var iter = __createIterableObject(1, 2, 3); 45 | iter['return'] = function(){ closed = true; return {}; } 46 | try { 47 | new WeakSet(iter); 48 | } catch(e){} 49 | console.log(closed); 50 | span.label.radius.warning 待测试 51 | h5 4.add 方法返回 this 52 | h5.subheader WeakSet.prototype.set returns this 53 | pre 54 | code.javascript 55 | | var weakset = new WeakSet(); 56 | var obj = {}; 57 | console.log(weakset.add(obj) === weakset); 58 | p 结果为 true。 59 | h5 5.delete 方法 60 | h5.subheader WeakSet.prototype.delete 61 | pre 62 | code.javascript 63 | | var key = {}; 64 | var weakset = new WeakSet(); 65 | weakset.add(key, 123); 66 | weakset.delete(key); 67 | console.log(weakset); //WeakSet {} 68 | -------------------------------------------------------------------------------- /source/doc/built_ins/_06_proxy.slim: -------------------------------------------------------------------------------- 1 | h4 六、Proxy 2 | h5.subheader Proxy 3 | .feature-content 4 | / h5 . 5 | / h5.subheader 6 | / pre 7 | / code.javascript 8 | / p 结果为 true。 9 | -------------------------------------------------------------------------------- /source/doc/built_ins/_07_reflect.slim: -------------------------------------------------------------------------------- 1 | h4 七、Reflect 2 | h5.subheader Reflect 3 | .feature-content 4 | / h5 . 5 | / h5.subheader 6 | / pre 7 | / code.javascript 8 | / p 结果为 true。 9 | -------------------------------------------------------------------------------- /source/doc/built_ins/_08_promise.slim: -------------------------------------------------------------------------------- 1 | h4 八、Promise 2 | h5.subheader Promise、 3 | p Promise 对象,代表了未来某个将要发生的事件(通常是一个异步操作)。 4 | .feature-content 5 | h5 1.basic functionality 6 | h5.subheader 基本功能 7 | pre 8 | code.javascript 9 | | var p1 = new Promise(function(resolve, reject) { resolve("foo"); }); 10 | var p2 = new Promise(function(resolve, reject) { reject("quux"); }); 11 | var score = 0; 12 | 13 | function thenFn(result) { score += (result === "foo"); check(); } 14 | function catchFn(result) { score += (result === "quux"); check(); } 15 | function shouldNotRun(result) { score = -Infinity; } 16 | 17 | p1.then(thenFn, shouldNotRun); 18 | p2.then(shouldNotRun, catchFn); 19 | p1.catch(shouldNotRun); 20 | p2.catch(catchFn); 21 | 22 | p1.then(function() { 23 | // Promise.prototype.then() should return a new Promise 24 | score += p1.then() !== p1; 25 | check(); 26 | }); 27 | 28 | function check() { 29 | if (score === 4) asyncTestPassed(); 30 | } 31 | h5 2.Promise.all 32 | h5.subheader Promise.all 33 | p p1、p2的状态都变成 fulfilled,p 的状态才会变成 fulfilled,p1、p2 的返回值组成一个数组,传给 p 的回调函数。p1、p2 有一个被rejected,p的状态就变成 rejected,第一个被 reject 的实例的返回值,传给 p 的回调函数。 34 | pre 35 | code.javascript 36 | | var fulfills = Promise.all([ //p 37 | new Promise(function(resolve) { setTimeout(resolve,200,"foo"); }), //p1 38 | new Promise(function(resolve) { setTimeout(resolve,100,"bar"); }), //p2 39 | ]); 40 | var rejects = Promise.all([ 41 | new Promise(function(_, reject) { setTimeout(reject, 200,"baz"); }), 42 | new Promise(function(_, reject) { setTimeout(reject, 100,"qux"); }), 43 | ]); 44 | var score = 0; 45 | fulfills.then(function(result) { score += (result + "" === "foo,bar"); check(); }); 46 | rejects.catch(function(result) { score += (result === "qux"); check(); }); 47 | 48 | function check() { 49 | if (score === 2) asyncTestPassed(); 50 | } 51 | h5 3.Promise.race 52 | h5.subheader Promise.race 53 | p 只要 p1、p2 之中有一个实例率先改变状态,p 的状态就跟着改变。那个率先改变的 Promise 实例的返回值,就传递给 p 的返回值。 54 | pre 55 | code.javascript 56 | | var fulfills = Promise.race([ //p 57 | new Promise(function(resolve) { setTimeout(resolve,200,"foo"); }), //p1 58 | new Promise(function(_, reject) { setTimeout(reject, 300,"bar"); }), //p2 59 | ]); 60 | var rejects = Promise.race([ 61 | new Promise(function(_, reject) { setTimeout(reject, 200,"baz"); }), 62 | new Promise(function(resolve) { setTimeout(resolve,300,"qux"); }), 63 | ]); 64 | var score = 0; 65 | fulfills.then(function(result) { score += (result === "foo"); check(); }); 66 | rejects.catch(function(result) { score += (result === "baz"); check(); }); 67 | 68 | function check() { 69 | if (score === 2) asyncTestPassed(); 70 | } 71 | -------------------------------------------------------------------------------- /source/doc/built_ins/_09_symbol.slim: -------------------------------------------------------------------------------- 1 | h4 九、Symbol 2 | h5.subheader Symbol 3 | p Symbol 是一种新的原始数据类型,表示独一无二的 ID。通过 Symbol 函数生成。Symbol 类型对象和字符串一样,可以作为属性名。 4 | .feature-content 5 | h5 1.基本功能 6 | h5.subheader basic functionality 7 | pre 8 | code.javascript 9 | | var object = {}; 10 | var symbol = Symbol(); 11 | var value = {}; 12 | object[symbol] = value; 13 | console.log(object[symbol] === value); 14 | p 结果为 true。 15 | h5 2.typeof 支持 16 | h5.subheader typeof support 17 | pre 18 | code.javascript 19 | | console.log(typeof Symbol() === "symbol"); 20 | p 结果为 true。 21 | h5 3.symbol 键在 pre-ES6 里是隐藏的 22 | h5.subheader symbol keys are hidden to pre-ES6 code 23 | p Symbol作为属性名,该属性不会出现在for...in循环中,也不会被Object.keys()、Object.getOwnPropertyNames()返回。Object.getOwnPropertySymbols 可以获得对象的 symbol 键值对。 24 | pre 25 | code.javascript 26 | | var object = {}; 27 | var symbol = Symbol(); 28 | object[symbol] = 1; 29 | 30 | for (var x in object){} 31 | var passed = !x; 32 | 33 | if (Object.keys && Object.getOwnPropertyNames) { 34 | passed = passed && Object.keys(object).length === 0 35 | && Object.getOwnPropertyNames(object).length === 0; 36 | } 37 | console.log(passed); 38 | p 结果为 true。 39 | h5 4.Object.defineProperty 支持 40 | h5.subheader Object.defineProperty support 41 | pre 42 | code.javascript 43 | | var object = {}; 44 | var symbol = Symbol(); 45 | var value = {}; 46 | 47 | if (Object.defineProperty) { 48 | Object.defineProperty(object, symbol, { value: value }); 49 | console.log(object[symbol] === value); 50 | } 51 | p 结果为 true。 52 | h5 5.不能强制转换为字符串或数字 53 | h5.subheader cannot coerce to string or number 54 | p Symbol 类型的值与其他类型的值进行运算会报错。 55 | pre 56 | code.javascript 57 | | var symbol = Symbol(); 58 | var passed; 59 | try { 60 | symbol + ""; 61 | passed = false; 62 | } 63 | catch(e) {} 64 | try { 65 | symbol + 0; 66 | passed = false; 67 | } catch(e) {} 68 | 69 | console.log(true); 70 | p 结果为 true。 71 | h5 6.可以通过 String() 转换为字符串 72 | h5.subheader can convert with String() 73 | pre 74 | code.javascript 75 | | console.log(String(Symbol("foo")) === "Symbol(foo)"); 76 | p 结果为 true。 77 | h5 7.new Symbol() 会抛出异常 78 | h5.subheader new Symbol() throws 79 | p symbol 类型为原始数据类型,不是对象,所以不能用 new Symbol() 实例化。 80 | pre 81 | code.javascript 82 | | var symbol = Symbol(); 83 | try { 84 | new Symbol(); 85 | } catch(e) { 86 | console.log(true); 87 | } 88 | p 结果为 true。 89 | h5 8.Object(symbol) 90 | h5.subheader Object(symbol) 91 | pre 92 | code.javascript 93 | | var symbol = Symbol(); 94 | var symbolObject = Object(symbol); 95 | 96 | console.log(typeof symbolObject === "object" && 97 | symbolObject == symbol && 98 | symbolObject !== symbol && 99 | symbolObject.valueOf() === symbol); 100 | p 结果为 true。 101 | h5 9.全局 symbol 注册 102 | h5.subheader global symbol registry 103 | pre 104 | code.javascript 105 | | var symbol = Symbol.for('foo'); 106 | console.log(Symbol.for('foo') === symbol && 107 | Symbol.keyFor(symbol) === 'foo'); 108 | p 结果为 true。 109 | -------------------------------------------------------------------------------- /source/doc/built_ins/_10_well_known_symbols.slim: -------------------------------------------------------------------------------- 1 | h4 十、常用的 symbols 2 | h5.subheader well known symbols 3 | .feature-content 4 | h5 1.Symbol.hasInstance 5 | h5.subheader Symbol.hasInstance 6 | pre 7 | code.javascript 8 | | var passed = false; 9 | var obj = { foo: true }; 10 | var C = function(){}; 11 | Object.defineProperty(C, Symbol.hasInstance, { 12 | value: function(inst) { passed = inst.foo; return false; } 13 | }); 14 | obj instanceof C; 15 | console.log(passed); 16 | span.label.radius.warning 待测试 17 | h5 2.Symbol.isConcatSpreadable 18 | h5.subheader Symbol.isConcatSpreadable 19 | pre 20 | code.javascript 21 | | var a = [], b = []; 22 | b[Symbol.isConcatSpreadable] = false; 23 | a = a.concat(b); 24 | console.log(a[0] === b); 25 | span.label.radius.warning 待测试 26 | h5 3.Symbol.iterator 27 | h5.subheader Symbol.iterator 28 | pre 29 | code.javascript 30 | | var a = 0, b = {}; 31 | b[Symbol.iterator] = function() { 32 | return { 33 | next: function() { 34 | return { 35 | done: a++ === 1, 36 | value: "foo" 37 | }; 38 | } 39 | }; 40 | }; 41 | var c; 42 | for (c of b) {} 43 | console.log(c === "foo"); 44 | p 结果为 true。 45 | h5 4.Symbol.species 46 | h5.subheader Symbol.species 47 | pre 48 | code.javascript 49 | | console.log(RegExp[Symbol.species] === RegExp 50 | && Array[Symbol.species] === Array 51 | && !(Symbol.species in Object)); 52 | 53 | span.label.radius.warning 待测试 54 | h5 5.Symbol.toPrimitive 55 | h5.subheader Symbol.toPrimitive 56 | pre 57 | code.javascript 58 | | var a = {}, b = {}, c = {}; 59 | var passed = 0; 60 | a[Symbol.toPrimitive] = function(hint) { passed += hint === "number"; return 0; }; 61 | b[Symbol.toPrimitive] = function(hint) { passed += hint === "string"; return 0; }; 62 | c[Symbol.toPrimitive] = function(hint) { passed += hint === "default"; return 0; }; 63 | 64 | a >= 0; 65 | b in {}; 66 | c == 0; 67 | console.log(passed === 3); 68 | span.label.radius.warning 待测试 69 | h5 6.Symbol.toStringTag 70 | h5.subheader Symbol.toStringTag 71 | pre 72 | code.javascript 73 | | var a = {}; 74 | a[Symbol.toStringTag] = "foo"; 75 | console.log((a + "") === "[object foo]"); 76 | span.label.radius.warning 待测试 77 | h5 7.Symbol.unscopables 78 | h5.subheader Symbol.unscopables 79 | pre 80 | code.javascript 81 | | var a = { foo: 1, bar: 2 }; 82 | a[Symbol.unscopables] = { bar: true }; 83 | with (a) { 84 | console.log(foo === 1 && typeof bar === "undefined"); 85 | } 86 | span.label.radius.warning 待测试 87 | -------------------------------------------------------------------------------- /source/doc/functions.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 函数 3 | --- 4 | 5 | .row 6 | .large-3.columns.show-for-large-up 7 | table.pos-fixed.scroll-nav 8 | .large-9.columns 9 | .feature 10 | == partial "functions/_01_arrow_functions" 11 | .feature 12 | == partial "functions/_02_class" 13 | .feature 14 | == partial "functions/_03_super" 15 | .feature 16 | == partial "functions/_04_generators" 17 | 18 | == partial 'layouts/sub_nav_js' 19 | javascript: 20 | $("#functions").addClass('active'); 21 | -------------------------------------------------------------------------------- /source/doc/functions/_03_super.slim: -------------------------------------------------------------------------------- 1 | h4 三、super 2 | h5.subheader super 3 | .feature-content 4 | h5 1.构造函数中的 super 声明 5 | h5.subheader statement in constructors 6 | p ES6 要求子类必须在 constructor 方法中调用 super 方法,否则新建实例时会报错。而且,在子类的构造函数中,只有调用 super 之后,才可以使用 this 关键字,否则会报错。 7 | pre 8 | code.javascript 9 | | var passed = false; 10 | class B { 11 | constructor(a) { passed = (a === "barbaz"); } 12 | } 13 | class C extends B { 14 | constructor(a) { super("bar" + a); } 15 | } 16 | new C("baz"); 17 | console.log(passed); 18 | p 结果为 true。 19 | h5 2.构造函数中的 super 表达式 20 | h5.subheader expression in constructors 21 | pre 22 | code.javascript 23 | | class B { 24 | constructor(a) { return ["foo" + a]; } 25 | } 26 | class C extends B { 27 | constructor(a) { return super("bar" + a); } 28 | } 29 | console.log(new C("baz")[0] === "foobarbaz"); 30 | p 结果为 true。 31 | h5 3.方法中用 super 访问属性 32 | h5.subheader in methods, property access 33 | pre 34 | code.javascript 35 | | class B {} 36 | B.prototype.qux = "foo"; 37 | B.prototype.corge = "baz"; 38 | class C extends B { 39 | quux(a) { return super.qux + a + super["corge"]; } 40 | } 41 | C.prototype.qux = "garply"; 42 | console.log(new C().quux("bar") === "foobarbaz"); 43 | p 结果为 true。 44 | h5 4.方法中用 super 调用方法 45 | h5.subheader in methods, method calls 46 | pre 47 | code.javascript 48 | | class B { 49 | qux(a) { return "foo" + a; } 50 | } 51 | class C extends B { 52 | qux(a) { return super.qux("bar" + a); } 53 | } 54 | console.log(new C().qux("baz") === "foobarbaz"); 55 | p 结果为 true。 56 | h5 5.方法调用使用正确的 this 绑定 57 | h5.subheader method calls use correct "this" binding 58 | pre 59 | code.javascript 60 | | class B { 61 | qux(a) { return this.foo + a; } 62 | } 63 | class C extends B { 64 | qux(a) { return super.qux("bar" + a); } 65 | } 66 | var obj = new C(); 67 | obj.foo = "foo"; 68 | console.log(obj.qux("baz") === "foobarbaz"); 69 | p 结果为 true。 70 | h5 6.构造函数调用使用正确的 new.target 绑定 71 | h5.subheader constructor calls use correct "new.target" binding 72 | pre 73 | code.javascript 74 | | var passed; 75 | class B { 76 | constructor() { passed = (new.target === C); } 77 | } 78 | class C extends B { 79 | constructor() { super(); } 80 | } 81 | new C(); 82 | console.log(passed); 83 | span.label.radius.warning 待测试 84 | h5 7.静态绑定 85 | h5.subheader is statically bound 86 | pre 87 | code.javascript 88 | | class B { 89 | qux() { return "bar"; } 90 | } 91 | class C extends B { 92 | qux() { return super.qux() + this.corge; } 93 | } 94 | var obj = { 95 | qux: C.prototype.qux, 96 | corge: "ley" 97 | }; 98 | console.log(obj.qux() === "barley"); 99 | p 结果为 true。 100 | -------------------------------------------------------------------------------- /source/doc/misc.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 混杂 3 | --- 4 | 5 | .row 6 | .large-12.columns 7 | h4 Misc 8 | 9 | javascript: 10 | $("#misc").addClass('active'); 11 | -------------------------------------------------------------------------------- /source/doc/start.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 前言 3 | --- 4 | 5 | .row 6 | .large-12.columns 7 | h4 一、ECMAScript 简介 8 | p 9 | |ECMAScript 6 是JavaScript语言的下一代标准,正处在快速开发之中,大部分已经完成了,预计将在2015年正式发布。 10 | p 11 | |在1997年发布的 12 | a href="http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262, 1st edition, June 1997.pdf" target="_blank" ECMAScript 1 13 | |中介绍了关于 ECMAScript 是什么以及由什么组成等问题。 14 | p.panel 15 | |ECMAScript: A general purpose,cross-platform programming language. 16 | br 17 | |This ECMA Standard is based on several originating technologies, the most well known being JavaScript™ (NetscapeCommunications) and JScript™ (Microsoft Corporation). The development of this Standard has started in November 1996.The ECMA Standard is submitted to ISO/IEC JTC 1 for adoption under the fast-track procedure. 18 | p ECMAScript 的发布历史如下图: 19 | img src="/images/ecmascript_history.png" 20 | 21 | .row 22 | .large-12.columns 23 | h4 二、工具 24 | ul 25 | li Traceur 26 | li Babel 27 | p 这两个编译器可以用来将下一代的 ECMAScript 代码编译为现在使用的 ECMAScript 代码。对现在而言,也就是将 ECMAScritp 6 的代码编译为 ECMAScript 5 的代码。使用时可以加载对应的 javascript 库到客户端的 javascript 代码中,也可以通过命令行将某个文件或某个目录里的文件转为 ECMAScript 5 的代码。 28 | .large-7.columns 29 | img.has-border src="/images/traceur.png" 30 | .large-5.columns 31 | img.has-border src="/images/babel.png" 32 | .large-12.columns 33 | p 34 | |Chrome 浏览器下有一款插件(Scratch JS),你可以输入 ES6 的代码,然后 Scratch 会自动生成 ES5 的代码,然后点击 35 | kbd Run It 36 | |或者输入 37 | kbd Command 38 | |+ 39 | kbd Enter 40 | |,即可在 Chrome 的 Console 里看到运行结果。在设置里面可以更改编译器,如 traceur,babel等。 41 | img.has-border src="/images/scratch.png" 42 | h3 三、兼容性 43 | p 44 | |可以到 45 | a href="http://kangax.github.io/compat-table/es6/#ie11tp" target="_blank" ECMAScript compatibility table 46 | |查看各平台对 ES6 新特性的兼容性。 47 | img.has-border src="/images/compat_table.png" 48 | 49 | javascript: 50 | $("#tool").addClass('active'); 51 | -------------------------------------------------------------------------------- /source/doc/subclassing.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 子类 3 | --- 4 | 5 | .row 6 | .large-12.columns 7 | h4 Subclassing 8 | 9 | javascript: 10 | $("#subclassing").addClass('active'); 11 | -------------------------------------------------------------------------------- /source/doc/syntax.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ES6 - 语法 3 | --- 4 | 5 | .row 6 | .large-3.columns.show-for-large-up 7 | table.pos-fixed.scroll-nav 8 | .large-9.columns 9 | .feature 10 | == partial "doc/syntax/_01_default_para" 11 | .feature 12 | == partial "doc/syntax/_02_rest_para" 13 | .feature 14 | == partial "doc/syntax/_03_spread_opera" 15 | .feature 16 | == partial "doc/syntax/_04_literal_ext" 17 | .feature 18 | == partial "doc/syntax/_05_for_of" 19 | .feature 20 | == partial "doc/syntax/_06_octal_binary" 21 | .feature 22 | == partial "doc/syntax/_07_template_string" 23 | .feature 24 | == partial "doc/syntax/_08_regExp_y_u" 25 | .feature 26 | == partial "doc/syntax/_09_destructuring" 27 | .feature 28 | == partial "doc/syntax/_10_unicode_point" 29 | .feature 30 | == partial "doc/syntax/_11_new_target" 31 | 32 | == partial 'layouts/sub_nav_js' 33 | javascript: 34 | $("#syntax").addClass('active'); 35 | -------------------------------------------------------------------------------- /source/doc/syntax/_01_default_para.slim: -------------------------------------------------------------------------------- 1 | h4 一、函数的默认参数 2 | h5.subheader Default function parameters 3 | .feature-content 4 | h5 1.基本特性 5 | h5.subheader Basic functionality 6 | p 在 ES6 之前,如果函数的某个参数有默认参数,你可能会这样写: 7 | pre 8 | code.javascript 9 | | let r = (function (a,b) { 10 | a= a||1; 11 | b=b||2; 12 | return a === 3 && b === 2; 13 | }(3)); 14 | p 但是 ES6 里你可以如下设置默认参数,简洁且优美: 15 | pre 16 | code.javascript 17 | | let r = (function (a = 1, b = 2) { 18 | return a === 3 && b === 2; 19 | }(3)); 20 | p 上述两段代码返回值均为 true。 21 | p 参数指定了默认值以后,函数的 length 属性返回的参数个数将不包括默认参数,如下。 22 | pre 23 | code.javascript 24 | | let r = (function (a, b = 2) { 25 | console.log(a,b); 26 | }).length; 27 | console.log(r); 28 | p 结果为 1。 29 | h5 2.undefined 将触发该参数等于默认参数 30 | h5.subheader Explicit undefined defers to the default 31 | p 这就意味着当函数声明某个参数有默认参数,且函数调用传入 undefined 给对应参数时,undefined 就有了特殊意义,那就是使用这个参数的默认值,null 则没有这个效果。 32 | pre 33 | code.javascript 34 | | let r = (function (a = 1, b = 2) { 35 | return a === 1 && b === 3; 36 | }(undefined, 3)); 37 | console.log(r); 38 | p 结果为 true。 39 | h5 3.默认参数可以设为前一个传入的参数 40 | h5.subheader Defaults can refer to previous params 41 | pre 42 | code.javascript 43 | | let r = (function (a, b = a) { 44 | return b === 5; 45 | }(5)); 46 | console.log(r); 47 | p 结果为 true。 48 | p 49 | | 但是默认参数不能设为后一个传入的参数,这是一个比较隐蔽的‘死区’,因为执行 50 | kbd 51 | |a=b 52 | | 时,b 还没有声明。 53 | pre 54 | code.javascript 55 | | let r = (function (a=b, b) { 56 | return a === 3; 57 | }(undefined,3)); 58 | console.log(r); 59 | h5 4.暂时性死区 60 | h5.subheader Temporal dead zone 61 | pre 62 | code.javascript 63 | | let x; 64 | let y; 65 | try { 66 | (function(a=a){}()); 67 | x = false 68 | } catch(e) { 69 | console.log(e); 70 | x = true 71 | } 72 | try { 73 | (function(a=b,b){}()); 74 | y = false; 75 | } catch(e) { 76 | console.log(e); 77 | y = true; 78 | } 79 | console.log('x', x); 80 | console.log('y', y); 81 | p 结果为 true, true。 82 | p 在 let 声明变量前使用这个变量,会报错,因为此时这个变量虽然存在但不可得。 83 | pre 84 | code.javascript 85 | | let condition = true 86 | if (condition) { 87 | console.log(typeof value); // ReferenceError! 88 | let value = "blue"; 89 | } 90 | p 由上可知 typeof 不再是一个绝对安全的操作。 91 | h5 5.独立作用域 92 | h5.subheader Separate scope 93 | pre 94 | code.javascript 95 | | let r = (function(a=function(){return typeof b === 'undefined';}){ 96 | var b = 1; 97 | return a(); 98 | }()); 99 | console.log(r); 100 | p 结果为 true。 101 | h5 6.新的 Function() 支持 102 | h5.subheader New Function() support 103 | pre 104 | code.javascript 105 | | let r = new Function("a = 1", "b = 2", 106 | "return a === 3 && b === 2;" 107 | )(3); 108 | p 结果为 true。 109 | -------------------------------------------------------------------------------- /source/doc/syntax/_02_rest_para.slim: -------------------------------------------------------------------------------- 1 | h4 二、函数的剩余参数 2 | h5.subheader rest parameters 3 | .feature-content 4 | h5 1.基本特性 5 | h5.subheader basic functionality 6 | p 在 ES6 之前,如果你想取得函数的剩余参数,你可能使用 arguments 这个实参对象。 7 | pre 8 | code.javascirpt 9 | | let r = (function () { 10 | return arguments; 11 | }("foo", "bar", "baz")); 12 | console.log(r); 13 | p 结果为 ["foo", "bar", "baz"]。虽然函数没有形参,但是 arguments 这个实参对象可获得传递给函数的所有实参。我们可以通过 ES6 的 rest 参数也可以来获取函数的剩余参数,如下,因为 rest 参数是函数的第二个形参,所有第二个以及第二个以后的所有实参都会被放到 args 里面,args 是一个数组。 14 | pre 15 | code.javascript 16 | | let r = (function (foo, ...args) { 17 | return args instanceof Array && args + "" === "bar,baz"; 18 | }("foo", "bar", "baz")); 19 | p 函数返回值为 true。 20 | h5 2.函数的 length 属性 21 | h5.subheader function 'length' property 22 | p 函数的 length 属性返回的参数个数将不包括 rest 参数。 23 | pre 24 | code.javascript 25 | |let r = function(a, ...b){}.length === 1 && function(...c){}.length === 0; 26 | p 函数返回值为 true。 27 | h5 3.参数对象 28 | h5.subheader arguments object interaction 29 | pre 30 | code.javascript 31 | | let r = (function (foo, ...args) { 32 | foo = "qux"; 33 | // The arguments object is not mapped to the 34 | // parameters, even outside of strict mode. 35 | return arguments.length === 3 36 | && arguments[0] === "foo" 37 | && arguments[1] === "bar" 38 | && arguments[2] === "baz"; 39 | }("foo", "bar", "baz")); 40 | p 41 | | Chrome 42 里的测试结果为:函数返回值为 false。arguments 为 ["qux", "bar", "baz"],Chrome 还不支持这条。按照文档,此处的返回值应该为 true。 42 | span.label.radius.warning 待测试 43 | h5 4.不能在 setters 里使用 44 | h5.subheader can't be used in setters 45 | pre 46 | code.javascript 47 | | let r = (function (...args) { 48 | try { 49 | eval("({set e(...args){}})"); 50 | } catch(e) { 51 | return true; 52 | } 53 | }()); 54 | console.log(r); 55 | p 结果为 true。 56 | h5 4.新的 Function() 支持 57 | h5.subheader new Function() support 58 | pre 59 | code.javascript 60 | | let r = new Function("a", "...b", 61 | "return b instanceof Array && a+b === 'foobar,baz';" 62 | )('foo','bar','baz'); 63 | p 结果为 true。 64 | 65 | -------------------------------------------------------------------------------- /source/doc/syntax/_03_spread_opera.slim: -------------------------------------------------------------------------------- 1 | h4 三、扩展操作符 2 | h5.subheader spread (...) operator 3 | .feature-content 4 | h5 1.函数调用传入数组 5 | h5.subheader with arrays, in function calls 6 | pre 7 | code.javascript 8 | |let r = Math.max(...[1, 2, 3]) === 3 9 | p 函数返回值为 true。 10 | h5 2.数组字面量中使用数组 11 | h5.subheader with arrays, in array literals 12 | pre 13 | code.javascript 14 | |let r = [...[1, 2, 3]][2] === 3; 15 | p 函数返回值为 true。 16 | h5 3.函数调用传入字符串 17 | h5.subheader with strings, in function calls 18 | pre 19 | code.javascript 20 | |let r = Math.max(..."1234") === 4; 21 | p 函数返回值为 true。 22 | h5 4.数组字面量中使用字符串 23 | h5.subheader with strings, in array literals 24 | pre 25 | code.javascript 26 | |let r = ["a", ..."bcd", "e"][3] === "d"; 27 | p 函数返回值为 true。 28 | h5 5.函数调用中使用特殊字符串 29 | h5.subheader with astral plane strings, in function calls 30 | pre 31 | code.javascript 32 | |let r = Array(..."𠮷𠮶")[0] === "𠮷"; 33 | p 函数返回值为 true。 34 | h5 6.数组字面量中使用特殊字符串 35 | h5.subheader with astral plane strings, in array literals 36 | pre 37 | code.javascript 38 | |let r = [..."𠮷𠮶"][0] === "𠮷"; 39 | p 函数返回值为 true。 40 | h5 7.函数调用中使用通用迭代 41 | h5.subheader with generic iterables, in calls 42 | p 首先定义一个通用的迭代器函数: 43 | pre 44 | code.javascript 45 | | function __createIterableObject(a, b, c) { 46 | if (typeof Symbol === "function" && Symbol.iterator) { 47 | var arr = [a, b, c, ,]; 48 | var iterable = { 49 | next: function() { 50 | return { value: arr.shift(), done: arr.length <= 0 }; 51 | }, 52 | }; 53 | iterable[Symbol.iterator] = function(){ return iterable; } 54 | return iterable; 55 | } 56 | else { 57 | return eval("(function*() { yield a; yield b; yield c; }())"); 58 | } 59 | } 60 | p 61 | | 调用这个迭代器函数会生成一个迭代器(iterator),迭代器拥有 Symbol.iterator 属性。一个数据结构只要具有 Symbol.iterator 属性,就认为是“可遍历的”(iterable),就可以对其使用扩展运算符。 62 | pre 63 | code.javascript 64 | | var iterable = __createIterableObject(1, 2, 3); 65 | let r = Math.max(...iterable) === 3; 66 | console.log(r); 67 | p 结果为 true。 68 | h5 8.数组中使用通用迭代 69 | h5.subheader with generic iterables, in arrays 70 | pre 71 | code.javascript 72 | | var iterable = __createIterableObject("b", "c", "d"); 73 | let r = ["a", ...iterable, "e"][3] === "d"; 74 | console.log(r); 75 | p 结果为 true。 76 | h5 9.函数调用中使用迭代实例 77 | h5.subheader with instances of iterables, in calls 78 | pre 79 | code.javascript 80 | | var iterable = __createIterableObject(1, 2, 3); 81 | let r = Math.max(...Object.create(iterable)) === 3; 82 | p 结果为 true。 83 | h5 10.数组中使用迭代实例 84 | h5.subheader with instances of iterables, in arrays 85 | pre 86 | code.javascript 87 | | var iterable = __createIterableObject("b", "c", "d"); 88 | let r = ["a", ...Object.create(iterable), "e"][3] === "d"; 89 | 90 | -------------------------------------------------------------------------------- /source/doc/syntax/_04_literal_ext.slim: -------------------------------------------------------------------------------- 1 | h4 四、对象字面量扩展 2 | h5.subheader object literal extensions 3 | .feature-content 4 | h5 1.计算属性 5 | h5.subheader computed properties 6 | p javascipt 中定义对象的属性有两种方法: 7 | pre 8 | code.javascirpt 9 | | obj.foo = 'hello'; 10 | obj['fo'+'o'] = 'hello'; 11 | p 但是在用大括号定义对象时,只能使用第一种方式,如下: 12 | pre 13 | code.javascript 14 | | var obj = { 15 | foo: 'hello' 16 | } 17 | p ES6 中两种方法都可以。 18 | pre 19 | code.javascript 20 | | var x = 'y'; 21 | var obj = { 22 | x: 2, 23 | [x]: 1 24 | }; 25 | console.log(obj.x == 2 && obj.y == 1); 26 | p 结果为 true。 27 | h5 2.属性简写 28 | h5.subheader shorthand properties 29 | pre 30 | code.javascript 31 | | var c = { 32 | a: 7, 33 | b: 8 34 | }; 35 | p ES6允许直接写入变量和函数,作为对象的属性和方法。对于如上的对象定义可以用下面的简写方式: 36 | pre 37 | code.javascript 38 | | var a = 7, b = 8, c = {a,b}; 39 | console.log(c.a === 7 && c.b === 8); 40 | p 结果为 true。 41 | h5 3.方法简写 42 | h5.subheader shorthand methods 43 | pre 44 | code.javascript 45 | | var obj = { 46 | y: function y() { 47 | return 2; 48 | } 49 | }; 50 | p 对于如上的对象定义可以用下面的简写方式: 51 | pre 52 | code.javascript 53 | |console.log({ y() { return 2; } }.y() === 2); 54 | p 结果为 true。 55 | h5 4.特殊字符的方法简写 56 | h5.subheader string-keyed shorthand methods 57 | pre 58 | code.javascript 59 | |console.log(({ "foo bar"() { return 4; } })["foo bar"]() === 4); 60 | p 结果为 true。 61 | h5 5.简写的计算方法 62 | h5.subheader computed shorthand methods 63 | pre 64 | code.javascript 65 | | var x = 'y'; 66 | console.log(({ [x](){ return 1 } }).y() === 1); 67 | p 结果为 true。 68 | h5 6.访问 69 | h5.subheader computed accessors 70 | p 简写的计算方法同样也可以用在 getter 和 setter 中。 71 | pre 72 | code.javascript 73 | | var x = 'y', 74 | valueSet, 75 | obj = { 76 | get [x] () { return 1 }, 77 | set [x] (value) { valueSet = value } 78 | }; 79 | obj.y = 'foo'; 80 | console.log(obj.y === 1 && valueSet === 'foo'); 81 | p 结果为 true。 82 | -------------------------------------------------------------------------------- /source/doc/syntax/_05_for_of.slim: -------------------------------------------------------------------------------- 1 | h4 五、for...of 循环 2 | h5.subheader for..of loops 3 | p for...of 循环内部调用的是数据结构的 Symbol.iterator 方法。只要这个数据结构部署了 Symbol.iterator 方法就可以使用 for...of 循环。ES6 中有一些数据结构原生具备 iterator 接口,如数组、字符串、Set 和 Map 结构、某些类似数组的对象(arguments 对象、DOM NodeList对象等)、Generator 对象等,对于这些数据类型,我们就可以直接使用 for...of;对于那些没有 Symbol.iterator 的类型,比如普通对象,如果想使用 for...of,我们就需要手动添加 Symbol.iterator 方法。 4 | .feature-content 5 | h5 1.数组 6 | h5.subheader with arrays 7 | pre 8 | code.javascript 9 | | var arr = [5]; 10 | for (var item of arr) 11 | console.log(item === 5); 12 | p 结果为 true。 13 | h5 2.字符串 14 | h5.subheader with strings 15 | pre 16 | code.javascript 17 | | var str = ""; 18 | for (var item of "foo") 19 | str += item; 20 | console.log(str === "foo"); 21 | p 结果为 true。 22 | h5 3.特殊字符串 23 | h5.subheader with astral plane strings 24 | pre 25 | code.javascript 26 | | var str = ""; 27 | for (var item of "𠮷𠮶") 28 | str += item + " "; 29 | console.log(str === "𠮷 𠮶 "); 30 | p 结果为 true。 31 | h5 4.通用迭代器 32 | h5.subheader with generic iterables 33 | p 首先定义一个通用的迭代器函数: 34 | pre 35 | code.javascript 36 | | function __createIterableObject(a, b, c) { 37 | if (typeof Symbol === "function" && Symbol.iterator) { 38 | var arr = [a, b, c, ,]; 39 | var iterable = { 40 | next: function() { 41 | return { value: arr.shift(), done: arr.length <= 0 }; 42 | }, 43 | }; 44 | iterable[Symbol.iterator] = function(){ return iterable; } 45 | return iterable; 46 | } 47 | else { 48 | return eval("(function*() { yield a; yield b; yield c; }())"); 49 | } 50 | } 51 | p 通过调用这个迭代器函数,生成一个迭代器,就可以对其使用 for...of 循环。 52 | pre 53 | code.javascript 54 | | var result = ""; 55 | var iterable = __createIterableObject(1, 2, 3); 56 | for (var item of iterable) { 57 | result += item; 58 | } 59 | console.log(result === "123"); 60 | p 结果为 true。 61 | h5 5.通用迭代的实例 62 | h5.subheader with instances of generic iterables 63 | pre 64 | code.javascript 65 | | var result = ""; 66 | var iterable = __createIterableObject(1, 2, 3); 67 | for (var item of Object.create(iterable)) { 68 | result += item; 69 | } 70 | console.log(result === "123"); 71 | p 结果为 true。 72 | h5 6.迭代关闭,break 73 | h5.subheader iterator closing, break 74 | pre 75 | code.javascript 76 | | var closed = false; 77 | var iter = __createIterableObject(1, 2, 3); 78 | iter['return'] = function(){ closed = true; return {}; } 79 | for (var it of iter) break; 80 | console.log(closed); 81 | p 82 | | Chrome 42 里的测试结果为:false。Chrome 等其他浏览器还不支持这条。 83 | span.label.radius.warning 待测试 84 | h5 7.迭代关闭,throw 85 | h5.subheader iterator closing, throw 86 | pre 87 | code.javascript 88 | | var closed = false; 89 | var iter = __createIterableObject(1, 2, 3); 90 | iter['return'] = function(){ closed = true; return {}; } 91 | try { 92 | for (var it of iter) throw 0; 93 | } catch(e){} 94 | console.log(closed); 95 | p 96 | | Chrome 42 里的测试结果为:false。Chrome 等其他浏览器还不支持这条。待测试。 97 | span.label.radius.warning 待测试 98 | -------------------------------------------------------------------------------- /source/doc/syntax/_06_octal_binary.slim: -------------------------------------------------------------------------------- 1 | h4 六、八进制和二进制 2 | h5.subheader octal and binary literals 3 | p ES6 增加了二进制和八进制数值的新写法,分别用前缀 0b 和 0o 表示。 4 | .feature-content 5 | h5 1.八进制 6 | h5.subheader octal literals 7 | pre 8 | code.javascript 9 | |console.log(0o10 === 8 && 0O10 === 8); 10 | p 结果为 true。 11 | h5 2.二进制 12 | h5.subheader binary literals 13 | pre 14 | code.javascript 15 | |console.log(0b10 === 2 && 0B10 === 2); 16 | p 结果为 true。 17 | h5 3.Number() 支持八进制 18 | h5.subheader octal supported by Number() 19 | pre 20 | code.javascript 21 | |console.log(Number('0o1') === 1); 22 | p 结果为 true。 23 | h5 4.Number() 支持二进制 24 | h5.subheader binary supported by Number() 25 | pre 26 | code.javascript 27 | |console.log(Number('0b1') === 1); 28 | p 结果为 true。 29 | -------------------------------------------------------------------------------- /source/doc/syntax/_07_template_string.slim: -------------------------------------------------------------------------------- 1 | h4 七、模板字符串 2 | h5.subheader template strings 3 | .feature-content 4 | h5 1.基本功能 5 | h5.subheader basic functionality 6 | p 在 ES6 之前如果在字符串包含变量,你可能会这样写: 7 | pre 8 | code.javascript 9 | | var a = "ba", b = "QUX"; 10 | var r = "foo bar\n" + a + 'z ' + b.toLowerCase(); 11 | console.log(r); 12 | p 当然你可以使用第三方库,如 coffeescript: 13 | pre 14 | code.javascript 15 | | a = "ba";b = "QUX";r = "foo bar\n\#{a}z \#{b.toLowerCase()}" 16 | p 17 | | ES6 也增加了对模板字符串的支持。你需要把它们写到反引号里面,就像 coffeescript 的模板字符串需要写在双引号里面一样,表达式写到 18 | kbd ${} 19 | |中即可。 20 | pre 21 | code.javascript 22 | | var a = "ba", b = "QUX"; 23 | console.log(`foo bar 24 | ${a + "z"} ${b.toLowerCase()}` === "foo bar\nbaz qux"); 25 | p 结果为 true。 26 | h5 2.标签模板字符串 27 | h5.subheader tagged template strings 28 | p 标签模板字符串, 可以通过函数的输出修改模板字符串。只需要将模板字符串紧跟在一个函数名后面,如下。函数 fn 依次接收三个参数。第一个参数是数组,该数组的成员是模板字符串中那些没有变量替换的部分。第一个参数之后的参数,都是模板字符串各个变量被替换后对应的值。 29 | pre 30 | code.javascript 31 | | function fn(parts, a, b) { 32 | console.log(parts); //["foo", "bar\n", "", raw: ["foo", "bar\n", ""]] 33 | console.log(a); //123 34 | console.log(b); //456 35 | } 36 | fn `foo${123}bar\n${456}`; 37 | p 当输入的字符串只是一个变量替换时,结果如下;而且这种写法里, fn 后面紧跟的必须是反引号引起来的字符串;String.raw 方法,往往用来处理模板字符串,返回字符串被转义前的原始格式。 38 | pre 39 | code.javascript 40 | | function fn() { 41 | console.log(arguments); //[["",""], 123] 42 | } 43 | fn `${123}`; 44 | 45 | String.raw({ raw: 'test' }, 0, 1, 2); // 't0e1s2t' 46 | p 结果为 true。 47 | -------------------------------------------------------------------------------- /source/doc/syntax/_08_regExp_y_u.slim: -------------------------------------------------------------------------------- 1 | h4 八、正则表达式 'y' 和 'u' 修饰符 2 | h5.subheader RegExp "y" and "u" flags 3 | .feature-content 4 | h5 1.y 修饰符 5 | h5.subheader "y" flag 6 | p y 修饰符确保匹配必须从剩余的第一个位置开始,且要求匹配必须从头部开始。 7 | pre 8 | code.javascript 9 | | var re = new RegExp('\\w'); 10 | var re2 = new RegExp('\\w', 'y'); 11 | re.exec('xy'); 12 | re2.exec('xy'); 13 | console.log((re.exec('xy')[0] === 'x' && re2.exec('xy')[0] === 'y')); 14 | p 结果为 true。 15 | pre 16 | code.javascript 17 | | var s = "aaa_aa_a"; 18 | var r = /a+/y; 19 | console.log(r.exec(s)); // ['aaa'] 20 | console.log(r.exec(s)); // null 21 | h5 2.u 修饰符 22 | h5.subheader "u" flag 23 | pre 24 | code.javascript 25 | |console.log("𠮷".match(/^.$/u)[0].length === 2); 26 | p 结果为 true。 27 | -------------------------------------------------------------------------------- /source/doc/syntax/_10_unicode_point.slim: -------------------------------------------------------------------------------- 1 | h4 十、Unicode 点 2 | h5.subheader Unicode code point escapes 3 | .feature-content 4 | h5 1.字符串 5 | h5.subheader in strings 6 | pre 7 | code.javascript 8 | |console.log('\u{1d306}' == '\ud834\udf06'); 9 | p 结果为 true。 10 | h5 2.y 修饰符 11 | h5.subheader in identifiers 12 | pre 13 | code.javascript 14 | | var \u{102C0} = { \u{102C0} : 2 }; 15 | console.log(\u{102C0}['\ud800\udec0'] === 2); 16 | span.label.radius.warning 待测试 17 | -------------------------------------------------------------------------------- /source/doc/syntax/_11_new_target.slim: -------------------------------------------------------------------------------- 1 | h4 十一、new.target 2 | h5.subheader new.target 3 | .feature-content 4 | h5 1.字符串 5 | h5.subheader in constructors 6 | pre 7 | code.javascript 8 | | var passed = false; 9 | new (function f() { 10 | passed = (new.target === f); 11 | }()); 12 | (function() { 13 | passed &= (new.target === undefined); 14 | }()); 15 | console.log(passed); 16 | span.label.radius.warning 待测试 17 | h5 2.不能被赋值 18 | h5.subheader can't be assigned to 19 | pre 20 | code.javascript 21 | | var passed = false; 22 | new (function f() { 23 | passed = (new.target === f); 24 | }()); 25 | try { 26 | (function() { 27 | new.target = function(){}; 28 | }()); 29 | } catch(e) { 30 | console.log(passed); 31 | } 32 | span.label.radius.warning 待测试 33 | -------------------------------------------------------------------------------- /source/examples/index.slim: -------------------------------------------------------------------------------- 1 | .row 2 | .columns.large-12 3 | h4 实例详解 4 | h5 1.Promise 5 | a href="/examples/promise.html" DEMO 6 | 7 | javascript: 8 | $("#examples").addClass('active'); 9 | -------------------------------------------------------------------------------- /source/examples/promise.slim: -------------------------------------------------------------------------------- 1 | .row.promise-example 2 | .columns.large-12 3 | h4 4 | a href="https://github.com/wendycan" target="_target" wendycan 5 | br 6 | .meta 7 | .text-center 8 | img src="/images/loading.gif" 9 | br 10 | br 11 | .columns.large-12 12 | h5.title 13 | |谁关注了我 14 | img src="/images/loading.gif" 15 | table.followers-table 16 | thead 17 | tr 18 | th 图像 19 | th 用户名 20 | th 被关注 21 | th 关注中 22 | th 公开项目 23 | th 公开 Gist 24 | th 公司 25 | th 位置 26 | th 加入时间 27 | tbody 28 | h5.title 29 | |我关注了谁 30 | img src="/images/loading.gif" 31 | table.followings-table 32 | thead 33 | tr 34 | th 图像 35 | th 用户名 36 | th 被关注 37 | th 关注中 38 | th 公开项目 39 | th 公开 Gist 40 | th 公司 41 | th 位置 42 | th 加入时间 43 | tbody 44 | 45 | script src="/javascripts/enumerator.js" type="text/javascript" 46 | script src="/javascripts/promise.js" type="text/javascript" 47 | script src="/javascripts/followers.js" type="text/javascript" 48 | 49 | javascript: 50 | $("#examples").addClass('active'); 51 | 52 | -------------------------------------------------------------------------------- /source/images/babel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/babel.png -------------------------------------------------------------------------------- /source/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/background.png -------------------------------------------------------------------------------- /source/images/compat_table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/compat_table.png -------------------------------------------------------------------------------- /source/images/droste_effect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/droste_effect.jpg -------------------------------------------------------------------------------- /source/images/ecmascript_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/ecmascript_history.png -------------------------------------------------------------------------------- /source/images/function_call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/function_call.png -------------------------------------------------------------------------------- /source/images/function_call_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/function_call_stack.png -------------------------------------------------------------------------------- /source/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/loading.gif -------------------------------------------------------------------------------- /source/images/middleman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/middleman.png -------------------------------------------------------------------------------- /source/images/scratch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/scratch.png -------------------------------------------------------------------------------- /source/images/tail_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/tail_stack.png -------------------------------------------------------------------------------- /source/images/traceur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/source/images/traceur.png -------------------------------------------------------------------------------- /source/index.html.slim: -------------------------------------------------------------------------------- 1 | --- 2 | title: ECMAScript6 新特性 3 | --- 4 | 5 | .row 6 | .large-12.columns.text-center 7 | h4 ECMAScript6 新特性 8 | br/ 9 | .row 10 | .large-3.columns.show-for-large-up 11 | table.pos-fixed.scroll-nav 12 | tr 13 | td.active 14 | a href="#c-Optimisation" 优化 15 | td 16 | a href="#c-Syntax" 语法 17 | tr 18 | td 19 | a href="#c-Bindings" 绑定 20 | td 21 | a href="#c-Functions" 函数 22 | tr 23 | td 24 | a href="#c-Built-ins" 内建 25 | td 26 | a href="#c-Built-in-extensions" 内建扩展 27 | tr 28 | td 29 | a href="#c-Subclassing" 子类 30 | td 31 | a href="#c-Misc" 混杂 32 | tr 33 | td 34 | a href="#c-Annex-b" 附录 35 | td 36 | a href="#c-Annex-b" 37 | 38 | .large-9.columns.medium-12 39 | #container.container 40 | 41 | script#t-table type="text/template" 42 | h4 id="c-<%= category %>" 43 | <%= category %> 44 | table id="table-<%= table_index %>" 45 | thead 46 | tr 47 | th 序号 48 | th 特性 49 | tbody 50 | 51 | script#t-tr type="text/template" 52 | tr 53 | td <%= index %> 54 | td <%= text %> 55 | 56 | javascript: 57 | $(document).ready(function() { 58 | var animate = false; 59 | var active_nav = function(){ 60 | $('.container h4').each(function(i, el){ 61 | if (animate) return; 62 | if (Math.abs($(window).scrollTop() - $(el).offset().top) < 60) { 63 | $('.scroll-nav td').removeClass('active'); 64 | $($('.scroll-nav td')[i]).addClass('active'); 65 | } 66 | }); 67 | }; 68 | active_nav(); 69 | $('.scroll-nav td').width($('.scroll-nav').parent('.large-3').width()/2-40); 70 | $.get('/public/data.json').done(function (data) { 71 | data.forEach(function(t, index){ 72 | var html = _.template($('#t-table').html())({category: t.category.replace(' ', '-').replace('\n',''),table_index: index}); 73 | $('#container').append(html); 74 | t.data.forEach(function(item, i){ 75 | var tr = _.template($('#t-tr').html())({text: item,index: i + 1}); 76 | $('#table-' + index).find('tbody').append(tr); 77 | }); 78 | }) 79 | }) 80 | 81 | $('.scroll-nav td').on('click', function(e){ 82 | e.preventDefault(); 83 | var target = $( $(this).find('a').attr('href') ); 84 | $('.scroll-nav td').removeClass('active'); 85 | $(this).addClass('active'); 86 | animate = true; 87 | $('html, body').animate({ 88 | scrollTop: target.offset().top - 50 89 | }, 1000, 90 | function(){ 91 | animate = false; 92 | } 93 | ); 94 | }); 95 | $(document).scroll(function(){ 96 | active_nav(); 97 | }); 98 | }); 99 | -------------------------------------------------------------------------------- /source/javascripts/app.js: -------------------------------------------------------------------------------- 1 | //= require vendor 2 | -------------------------------------------------------------------------------- /source/javascripts/enumerator.js: -------------------------------------------------------------------------------- 1 | function Enumerator(Constructor, input) { 2 | this._instanceConstructor = Constructor; 3 | this.promise = new Constructor(_noop); 4 | this._input = input; 5 | this.length = input.length; 6 | this._remaining = input.length; 7 | this._result = new Array(this.length); 8 | 9 | this._enumerate(); 10 | if (this._remaining === 0) { 11 | _fulfill(this.promise, this._result); 12 | } 13 | } 14 | 15 | Enumerator.prototype._enumerate = function() { 16 | var length = this.length; 17 | var promise = this.promise; 18 | var input = this._input; 19 | 20 | for (var i = 0; promise._state === PENDING && i < length; i++) { 21 | this._eachEntry(input[i], i); 22 | } 23 | }; 24 | 25 | Enumerator.prototype._eachEntry = function(entry, i) { 26 | var c = this._instanceConstructor; 27 | if (entry.constructor === c && entry._state !== PENDING) { 28 | entry._onerror = null; 29 | this._settledAt(entry._state, i, entry._result); 30 | } else { 31 | this._willSettleAt(c.resolve(entry), i); 32 | } 33 | }; 34 | 35 | Enumerator.prototype._settledAt = function(state, i, value) { 36 | var promise = this.promise; 37 | 38 | if (promise._state === PENDING) { 39 | this._remaining--; 40 | 41 | if (state === REJECTED) { 42 | _reject(promise, value); 43 | } else { 44 | this._result[i] = value; 45 | } 46 | } 47 | 48 | if (this._remaining === 0) { 49 | _fulfill(promise, this._result); 50 | } 51 | }; 52 | 53 | Enumerator.prototype._willSettleAt = function(promise, i) { 54 | var _this = this; 55 | 56 | _subscribe(promise, undefined, function(value) { 57 | _this._settledAt(FULFILLED, i, value); 58 | }, function(reason) { 59 | _this._settledAt(REJECTED, i, reason); 60 | }); 61 | }; 62 | -------------------------------------------------------------------------------- /source/javascripts/extract.js: -------------------------------------------------------------------------------- 1 | // http://kangax.github.io/compat-table/es6/#ie11tp 2 | let trs = $('#table-wrapper tbody tr'); 3 | let data = []; 4 | 5 | trs.each(function(index, tr){ 6 | tr = $(tr); 7 | if(tr.hasClass('category')){ 8 | data.push({category: tr.text(), data: []}) 9 | } else { 10 | window.lasttr = tr; 11 | if(tr.find('td span')[0].childNodes && !tr.hasClass('subtest')){ 12 | data[data.length-1].data.push($(Array.from(tr.find('td span')[0].childNodes)[1]).text()); 13 | } 14 | } 15 | }); 16 | window.data = data; 17 | console.log(data); 18 | copy(data); 19 | -------------------------------------------------------------------------------- /source/layouts/layout.slim: -------------------------------------------------------------------------------- 1 | doctype html 2 | html 3 | head 4 | meta charset="utf-8" / 5 | title = data.page.title || "ECMAScript6 特性" 6 | == stylesheet_link_tag "app" 7 | == javascript_include_tag "app" 8 | body 9 | .sticky 10 | nav.top-bar data-options=("sticky_on: large") data-topbar="" role="navigation" 11 | ul.title-area 12 | li.name 13 | h1 14 | a href="/" ECMAScript6 Tutorial 15 | lwi.toggle-topbar.menu-icon 16 | a href="#" 17 | span Menu 18 | section.top-bar-section 19 | ul.right 20 | li#tool 21 | a href="/doc/start.html" 前言 22 | li#optimisation 23 | a href="/doc/optimisation.html" 优化 24 | li#syntax 25 | a href="/doc/syntax.html" 语法 26 | li#bindings 27 | a href="/doc/bindings.html" 绑定 28 | li#functions 29 | a href="/doc/functions.html" 函数 30 | li#built-ins 31 | a href="/doc/built-ins.html" 内建 32 | li#built-in-extensions 33 | a href="/doc/built-in-extensions.html" 内建扩展 34 | li#subclassing 35 | a href="/doc/subclassing.html" 子类 36 | li#misc 37 | a href="/doc/misc.html" 混杂 38 | li#annex-b 39 | a href="/doc/annex-b.html" 附录 40 | li#examples 41 | a href="/examples" 实例 42 | li 43 | a href="http://kangax.github.io/compat-table/es6/#ie11tp" target="_blank" 兼容性 44 | .wrap 45 | == yield 46 | .footer.wrap 47 | .row 48 | .large-8.large-centered.small-10.small-centered 49 | p 50 | |项目托管在 51 | a href="https://github.com/wendycan/es6tutorial" target="_blank" 52 | i.fa.fa-ok 53 | |GitHub 54 | p 55 | |作者 56 | a href="https://github.com/wendycan" target="_blank" wendy 57 | p 58 | |友情链接 59 | a href="http://wendy.larklearning.com" target="_blank" wendy的小站 60 | a href="http://yuetai.larklearning.com" target="_blank" 阅台 61 | javascript: 62 | $(document).foundation(); 63 | hljs.initHighlightingOnLoad(); 64 | -------------------------------------------------------------------------------- /source/layouts/sub_nav_js.slim: -------------------------------------------------------------------------------- 1 | javascript: 2 | $(document).ready(function() { 3 | var animate = false; 4 | var active_nav = function(){ 5 | $('.feature h4').each(function(i, el){ 6 | if (animate) return; 7 | if (Math.abs($(window).scrollTop() - $(el).offset().top) < 60) { 8 | $('.scroll-nav td').removeClass('active'); 9 | $($('.scroll-nav td')[i]).addClass('active'); 10 | } 11 | }); 12 | }; 13 | active_nav(); 14 | $('.scroll-nav').width($('.scroll-nav').parent('.large-3').width()-20); 15 | $('.feature h4').each(function(i, el){ 16 | $(this).attr('data-text', $(el).text().split('、')[1]); 17 | if(i == 0){ 18 | $('.scroll-nav').append('' + $(el).text().split('、')[1] + ''); 19 | } else { 20 | $('.scroll-nav').append('' + $(el).text().split('、')[1] + ''); 21 | } 22 | }); 23 | $('.scroll-nav td').on('click', function(e){ 24 | e.preventDefault(); 25 | if($(this).find('a').length > 0){ 26 | var target = $( $(this).find('a').attr('href') ); 27 | } else { 28 | var target = $('.feature').find('[data-text="' + $(this).text() + '"]'); 29 | } 30 | $('.scroll-nav td').removeClass('active'); 31 | $(this).addClass('active'); 32 | animate = true; 33 | $('html, body').animate({ 34 | scrollTop: target.offset().top - 48 35 | }, 1000, 36 | function(){ 37 | animate = false; 38 | }); 39 | }); 40 | $(document).scroll(function(){ 41 | active_nav(); 42 | }); 43 | }); 44 | -------------------------------------------------------------------------------- /source/public/data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "category": "Optimisation\n", 4 | "data": [ 5 | "proper tail calls (tail call optimisation)" 6 | ] 7 | }, 8 | { 9 | "category": "Syntax\n", 10 | "data": [ 11 | "default function parameters", 12 | "rest parameters", 13 | "spread (...) operator", 14 | "object literal extensions", 15 | "for..of loops", 16 | "octal and binary literals", 17 | "template strings", 18 | "RegExp \"y\" and \"u\" flags", 19 | "destructuring", 20 | "Unicode code point escapes" 21 | ] 22 | }, 23 | { 24 | "category": "Bindings\n", 25 | "data": [ 26 | "const", 27 | "let", 28 | "block-level function declaration" 29 | ] 30 | }, 31 | { 32 | "category": "Functions\n", 33 | "data": [ 34 | "arrow functions", 35 | "class", 36 | "super", 37 | "generators" 38 | ] 39 | }, 40 | { 41 | "category": "Built-ins\n", 42 | "data": [ 43 | "typed arrays", 44 | "Map", 45 | "Set", 46 | "WeakMap", 47 | "WeakSet", 48 | "Proxy", 49 | "Reflect", 50 | "Promise", 51 | "Symbol", 52 | "well-known symbols" 53 | ] 54 | }, 55 | { 56 | "category": "Built-in extensions\n", 57 | "data": [ 58 | "Object static methods", 59 | "function \"name\" property", 60 | "String static methods", 61 | "String.prototype methods", 62 | "RegExp.prototype properties", 63 | "Array static methods", 64 | "Array.prototype methods", 65 | "Number properties", 66 | "Math methods" 67 | ] 68 | }, 69 | { 70 | "category": "Subclassing\n", 71 | "data": [ 72 | "Array is subclassable", 73 | "RegExp is subclassable", 74 | "Function is subclassable", 75 | "Promise is subclassable", 76 | "miscellaneous subclassables" 77 | ] 78 | }, 79 | { 80 | "category": "Misc\n", 81 | "data": [ 82 | "Object static methods accept primitives", 83 | "own property order", 84 | "miscellaneous" 85 | ] 86 | }, 87 | { 88 | "category": "Annex b\n", 89 | "data": [ 90 | "hoisted block-level function declaration", 91 | "__proto__ in object literals", 92 | "Object.prototype.__proto__", 93 | "String.prototype HTML methods", 94 | "RegExp.prototype.compile" 95 | ] 96 | } 97 | ] 98 | -------------------------------------------------------------------------------- /source/stylesheets/app.scss: -------------------------------------------------------------------------------- 1 | @import "main"; 2 | 3 | @import "home"; 4 | @import "nav"; 5 | 6 | @import "vendor"; 7 | -------------------------------------------------------------------------------- /source/stylesheets/home.scss: -------------------------------------------------------------------------------- 1 | .container { 2 | table th:first-child { 3 | width: 10%; 4 | text-align: center; 5 | } 6 | table td:first-child { 7 | text-align: center; 8 | } 9 | table th:nth-child(2) { 10 | // width: 20%; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/stylesheets/main.scss: -------------------------------------------------------------------------------- 1 | .wrap { 2 | padding: 20px 0; 3 | } 4 | 5 | .pos-fixed { 6 | position: fixed; 7 | } 8 | 9 | td.active { 10 | background-color: #ffebbd; 11 | } 12 | 13 | .reference { 14 | background-color: #f8f8f8; 15 | padding: 3px 10px; 16 | margin-top: 20px; 17 | 18 | ul { 19 | // list-style: none; 20 | } 21 | } 22 | 23 | p { 24 | margin-bottom: 3px; 25 | margin-top: 3px; 26 | } 27 | 28 | .has-border { 29 | border: solid 1px #d8d8d8; 30 | } 31 | 32 | .feature h4 { 33 | // padding-top: 5px; 34 | } 35 | 36 | .footer { 37 | background-color: #efefef; 38 | 39 | p { 40 | color: #666; 41 | font-size: 14px; 42 | } 43 | 44 | p > a { 45 | padding-left: 10px; 46 | } 47 | } 48 | 49 | .followers-table, .followings-table { 50 | width: 100%; 51 | img { 52 | width: 60px; 53 | } 54 | th, td { 55 | text-align: center; 56 | } 57 | th:first-child { 58 | width: 10%; 59 | } 60 | th:nth-child(2) { 61 | width: 12%; 62 | } 63 | th:nth-child(3) { 64 | width: 10%; 65 | } 66 | th:nth-child(4) { 67 | width: 10%; 68 | } 69 | th:nth-child(5) { 70 | width: 10%; 71 | } 72 | th:nth-child(6) { 73 | width: 10%; 74 | } 75 | th:nth-child(7) { 76 | width: 12%; 77 | } 78 | th:nth-child(8) { 79 | width: 15%; 80 | } 81 | th:nth-child(9) { 82 | width: 11%; 83 | } 84 | 85 | } 86 | .emph { 87 | font-size: 19px; 88 | padding-left: 6px; 89 | padding-right: 6px; 90 | color: #b07c00; 91 | } 92 | 93 | .meta { 94 | p { 95 | font-size: 14px; 96 | } 97 | } 98 | 99 | .highlight { 100 | border-color: #ffe8ad; 101 | border-style: solid; 102 | } 103 | .promise-example { 104 | .meta img { 105 | width: 200px; 106 | } 107 | h5 img { 108 | width: 50px; 109 | padding-left: 10px; 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /source/stylesheets/nav.scss: -------------------------------------------------------------------------------- 1 | .nav-copy { 2 | height: 45px; 3 | } 4 | -------------------------------------------------------------------------------- /vendor/assets/javascripts/vendor.js: -------------------------------------------------------------------------------- 1 | //= require "jquery/dist/jquery" 2 | //= require "foundation/js/foundation" 3 | //= require "underscore/underscore" 4 | //= require "highlight.pack" 5 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Ivan Sagalaev 2 | All rights reserved. 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of highlight.js nor the names of its contributors 12 | may be used to endorse or promote products derived from this software 13 | without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY 16 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/agate.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Agate by Taufik Nurrohman 3 | * ---------------------------------------------------- 4 | * 5 | * #ade5fc 6 | * #a2fca2 7 | * #c6b4f0 8 | * #d36363 9 | * #fcc28c 10 | * #fc9b9b 11 | * #ffa 12 | * #fff 13 | * #333 14 | * #62c8f3 15 | * #888 16 | * 17 | */ 18 | 19 | .hljs { 20 | display: block; 21 | overflow-x: auto; 22 | padding: .5em; 23 | background: #333; 24 | color: white; 25 | -webkit-text-size-adjust: none; 26 | } 27 | 28 | .asciidoc .hljs-title, 29 | .hljs-label, 30 | .hljs-tag .hljs-title, 31 | .hljs-prompt, 32 | .http .hljs-request { 33 | font-weight: bold; 34 | } 35 | 36 | .hljs-change, 37 | .hljs-code { 38 | font-style: italic; 39 | } 40 | 41 | .hljs-tag, 42 | .ini .hljs-title { 43 | color: #62c8f3; 44 | } 45 | 46 | .hljs-id, 47 | .hljs-cbracket, 48 | .hljs-tag .hljs-value { 49 | color: #ade5fc; 50 | } 51 | 52 | .hljs-string, 53 | .hljs-bullet { 54 | color: #a2fca2; 55 | } 56 | 57 | .hljs-type, 58 | .hljs-variable, 59 | .hljs-name, 60 | .actionscript .hljs-title, 61 | .aspectj .hljs-annotation, 62 | .aspectj .hljs-title, 63 | .hljs-attribute, 64 | .hljs-change, 65 | .hljs-blockquote, 66 | .hljs-built_in { 67 | color: #ffa; 68 | } 69 | 70 | .hljs-number, 71 | .hljs-hexcolor, 72 | .hljs-link_label, 73 | .hljs-link_reference { 74 | color: #d36363; 75 | } 76 | 77 | .hljs-keyword, 78 | .hljs-literal, 79 | .hljs-constant, 80 | .css .hljs-tag, 81 | .hljs-typename, 82 | .hljs-winutils { 83 | color: #fcc28c; 84 | } 85 | 86 | .hljs-comment, 87 | .hljs-cdata, 88 | .hljs-preprocessor, 89 | .hljs-annotation, 90 | .hljs-decorator, 91 | .hljs-doctype, 92 | .hljs-deletion, 93 | .hljs-shebang, 94 | .apache .hljs-sqbracket, 95 | .tex .hljs-formula, 96 | .hljs-header, 97 | .hljs-horizontal_rule, 98 | .hljs-code, 99 | .hljs-javadoc { 100 | color: #888; 101 | } 102 | 103 | .hljs-regexp, 104 | .hljs-attr_selector { 105 | color: #c6b4f0; 106 | } 107 | 108 | .hljs-important, 109 | .hljs-doctype, 110 | .hljs-pi, 111 | .hljs-chunk, 112 | .actionscript .hljs-type, 113 | .hljs-shebang, 114 | .hljs-pragma, 115 | .http .hljs-attribute { 116 | color: #fc9b9b; 117 | } 118 | 119 | .hljs-deletion { 120 | background-color: #fc9b9b; 121 | color: #333; 122 | } 123 | 124 | .hljs-addition { 125 | background-color: #a2fca2; 126 | color: #333; 127 | } 128 | 129 | .hljs a, 130 | .hljs-tag .hljs-attribute { 131 | color: inherit; 132 | } 133 | 134 | .hljs a:focus, 135 | .hljs a:hover { 136 | color: inherit; 137 | text-decoration: underline; 138 | } 139 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/androidstudio.css: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 24 Fev 2015 3 | Author: Pedro Oliveira 4 | */ 5 | 6 | .hljs 7 | { 8 | color: #A9B7C6; 9 | background: #282b2e; 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | webkit-text-size-adjust: none; 14 | } 15 | .hljs-number 16 | { 17 | color: #6897BB; 18 | } 19 | 20 | .hljs-keyword, .hljs-deletion 21 | { 22 | color: #CC7832; 23 | } 24 | .hljs-javadoc 25 | { 26 | color: #629755; 27 | } 28 | .hljs-comment 29 | { 30 | color: #808080; 31 | } 32 | .hljs-annotation 33 | { 34 | color: #BBB529; 35 | } 36 | .hljs-string, .hljs-addition 37 | { 38 | color: #6A8759; 39 | } 40 | .hljs-function .hljs-title, .hljs-change 41 | { 42 | color: #FFC66D; 43 | } 44 | .hljs-tag .hljs-title, .hljs-doctype 45 | { 46 | color: #E8BF6A; 47 | } 48 | .hljs-tag .hljs-attribute 49 | { 50 | color: #BABABA; 51 | } 52 | .hljs-tag .hljs-value 53 | { 54 | color: #A5C261; 55 | } 56 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/arta.css: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 17.V.2011 3 | Author: pumbur 4 | */ 5 | 6 | .hljs { 7 | display: block; 8 | overflow-x: auto; 9 | padding: 0.5em; 10 | background: #222; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .profile .hljs-header *, 15 | .ini .hljs-title, 16 | .nginx .hljs-title { 17 | color: #fff; 18 | } 19 | 20 | .hljs-comment, 21 | .hljs-javadoc, 22 | .hljs-preprocessor, 23 | .hljs-preprocessor .hljs-title, 24 | .hljs-pragma, 25 | .hljs-shebang, 26 | .profile .hljs-summary, 27 | .diff, 28 | .hljs-pi, 29 | .hljs-doctype, 30 | .hljs-tag, 31 | .css .hljs-rule, 32 | .tex .hljs-special { 33 | color: #444; 34 | } 35 | 36 | .hljs-string, 37 | .hljs-symbol, 38 | .diff .hljs-change, 39 | .hljs-regexp, 40 | .xml .hljs-attribute, 41 | .smalltalk .hljs-char, 42 | .xml .hljs-value, 43 | .ini .hljs-value, 44 | .clojure .hljs-attribute, 45 | .coffeescript .hljs-attribute { 46 | color: #ffcc33; 47 | } 48 | 49 | .hljs-number, 50 | .hljs-addition { 51 | color: #00cc66; 52 | } 53 | 54 | .hljs-built_in, 55 | .hljs-literal, 56 | .hljs-type, 57 | .hljs-typename, 58 | .go .hljs-constant, 59 | .ini .hljs-keyword, 60 | .lua .hljs-title, 61 | .perl .hljs-variable, 62 | .php .hljs-variable, 63 | .mel .hljs-variable, 64 | .django .hljs-variable, 65 | .css .funtion, 66 | .smalltalk .method, 67 | .hljs-hexcolor, 68 | .hljs-important, 69 | .hljs-flow, 70 | .hljs-inheritance, 71 | .hljs-name, 72 | .parser3 .hljs-variable { 73 | color: #32aaee; 74 | } 75 | 76 | .hljs-keyword, 77 | .hljs-tag .hljs-title, 78 | .css .hljs-tag, 79 | .css .hljs-class, 80 | .css .hljs-id, 81 | .css .hljs-pseudo, 82 | .css .hljs-attr_selector, 83 | .hljs-winutils, 84 | .tex .hljs-command, 85 | .hljs-request, 86 | .hljs-status { 87 | color: #6644aa; 88 | } 89 | 90 | .hljs-title, 91 | .ruby .hljs-constant, 92 | .vala .hljs-constant, 93 | .hljs-parent, 94 | .hljs-deletion, 95 | .hljs-template_tag, 96 | .css .hljs-keyword, 97 | .objectivec .hljs-class .hljs-id, 98 | .smalltalk .hljs-class, 99 | .lisp .hljs-keyword, 100 | .apache .hljs-tag, 101 | .nginx .hljs-variable, 102 | .hljs-envvar, 103 | .bash .hljs-variable, 104 | .go .hljs-built_in, 105 | .vbscript .hljs-built_in, 106 | .lua .hljs-built_in, 107 | .rsl .hljs-built_in, 108 | .tail, 109 | .avrasm .hljs-label, 110 | .tex .hljs-formula, 111 | .tex .hljs-formula * { 112 | color: #bb1166; 113 | } 114 | 115 | .hljs-yardoctag, 116 | .hljs-phpdoc, 117 | .hljs-dartdoc, 118 | .profile .hljs-header, 119 | .ini .hljs-title, 120 | .apache .hljs-tag, 121 | .parser3 .hljs-title { 122 | font-weight: bold; 123 | } 124 | 125 | .coffeescript .javascript, 126 | .javascript .xml, 127 | .tex .hljs-formula, 128 | .xml .javascript, 129 | .xml .vbscript, 130 | .xml .css, 131 | .xml .hljs-cdata { 132 | opacity: 0.6; 133 | } 134 | 135 | .hljs, 136 | .hljs-subst, 137 | .diff .hljs-chunk, 138 | .css .hljs-value, 139 | .css .hljs-attribute { 140 | color: #aaa; 141 | } 142 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/ascetic.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: white; 12 | color: black; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-string, 17 | .hljs-tag .hljs-value, 18 | .hljs-filter .hljs-argument, 19 | .hljs-addition, 20 | .hljs-change, 21 | .hljs-name, 22 | .apache .hljs-tag, 23 | .apache .hljs-cbracket, 24 | .nginx .hljs-built_in, 25 | .tex .hljs-formula { 26 | color: #888; 27 | } 28 | 29 | .hljs-comment, 30 | .hljs-shebang, 31 | .hljs-doctype, 32 | .hljs-pi, 33 | .hljs-javadoc, 34 | .hljs-deletion, 35 | .apache .hljs-sqbracket { 36 | color: #ccc; 37 | } 38 | 39 | .hljs-keyword, 40 | .hljs-tag .hljs-title, 41 | .ini .hljs-title, 42 | .lisp .hljs-title, 43 | .http .hljs-title, 44 | .nginx .hljs-title, 45 | .css .hljs-tag, 46 | .hljs-winutils, 47 | .hljs-flow, 48 | .apache .hljs-tag, 49 | .tex .hljs-command, 50 | .hljs-request, 51 | .hljs-status { 52 | font-weight: bold; 53 | } 54 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-dune.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Dune Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Dune Comment */ 6 | .hljs-comment { 7 | color: #999580; 8 | } 9 | 10 | /* Atelier-Dune Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d73737; 25 | } 26 | 27 | /* Atelier-Dune Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #b65611; 35 | } 36 | 37 | /* Atelier-Dune Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #ae9513; 41 | } 42 | 43 | /* Atelier-Dune Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #60ac39; 51 | } 52 | 53 | /* Atelier-Dune Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1fad83; 57 | } 58 | 59 | /* Atelier-Dune Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #6684e1; 69 | } 70 | 71 | /* Atelier-Dune Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #b854d4; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #20201d; 81 | color: #a6a28c; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-dune.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Dune Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Dune Comment */ 6 | .hljs-comment { 7 | color: #7d7a68; 8 | } 9 | 10 | /* Atelier-Dune Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d73737; 25 | } 26 | 27 | /* Atelier-Dune Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #b65611; 35 | } 36 | 37 | /* Atelier-Dune Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #ae9513; 41 | } 42 | 43 | /* Atelier-Dune Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #60ac39; 51 | } 52 | 53 | /* Atelier-Dune Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1fad83; 57 | } 58 | 59 | /* Atelier-Dune Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #6684e1; 69 | } 70 | 71 | /* Atelier-Dune Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #b854d4; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #fefbec; 81 | color: #6e6b5e; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-forest.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Forest Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Forest Comment */ 6 | .hljs-comment { 7 | color: #9c9491; 8 | } 9 | 10 | /* Atelier-Forest Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #f22c40; 25 | } 26 | 27 | /* Atelier-Forest Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #df5320; 35 | } 36 | 37 | /* Atelier-Forest Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c38418; 41 | } 42 | 43 | /* Atelier-Forest Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #7b9726; 51 | } 52 | 53 | /* Atelier-Forest Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #3d97b8; 57 | } 58 | 59 | /* Atelier-Forest Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #407ee7; 69 | } 70 | 71 | /* Atelier-Forest Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6666ea; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #1b1918; 81 | color: #a8a19f; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-forest.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Forest Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Forest Comment */ 6 | .hljs-comment { 7 | color: #766e6b; 8 | } 9 | 10 | /* Atelier-Forest Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #f22c40; 25 | } 26 | 27 | /* Atelier-Forest Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #df5320; 35 | } 36 | 37 | /* Atelier-Forest Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c38418; 41 | } 42 | 43 | /* Atelier-Forest Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #7b9726; 51 | } 52 | 53 | /* Atelier-Forest Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #3d97b8; 57 | } 58 | 59 | /* Atelier-Forest Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #407ee7; 69 | } 70 | 71 | /* Atelier-Forest Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6666ea; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f1efee; 81 | color: #68615e; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-heath.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Heath Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Heath Comment */ 6 | .hljs-comment { 7 | color: #9e8f9e; 8 | } 9 | 10 | /* Atelier-Heath Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #ca402b; 25 | } 26 | 27 | /* Atelier-Heath Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #a65926; 35 | } 36 | 37 | /* Atelier-Heath Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #bb8a35; 41 | } 42 | 43 | /* Atelier-Heath Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #918b3b; 51 | } 52 | 53 | /* Atelier-Heath Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #159393; 57 | } 58 | 59 | /* Atelier-Heath Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #516aec; 69 | } 70 | 71 | /* Atelier-Heath Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #7b59c0; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #1b181b; 81 | color: #ab9bab; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-heath.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Heath Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Heath Comment */ 6 | .hljs-comment { 7 | color: #776977; 8 | } 9 | 10 | /* Atelier-Heath Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #ca402b; 25 | } 26 | 27 | /* Atelier-Heath Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #a65926; 35 | } 36 | 37 | /* Atelier-Heath Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #bb8a35; 41 | } 42 | 43 | /* Atelier-Heath Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #918b3b; 51 | } 52 | 53 | /* Atelier-Heath Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #159393; 57 | } 58 | 59 | /* Atelier-Heath Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #516aec; 69 | } 70 | 71 | /* Atelier-Heath Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #7b59c0; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f7f3f7; 81 | color: #695d69; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-lakeside.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Lakeside Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Lakeside Comment */ 6 | .hljs-comment { 7 | color: #7195a8; 8 | } 9 | 10 | /* Atelier-Lakeside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d22d72; 25 | } 26 | 27 | /* Atelier-Lakeside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #935c25; 35 | } 36 | 37 | /* Atelier-Lakeside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #8a8a0f; 41 | } 42 | 43 | /* Atelier-Lakeside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #568c3b; 51 | } 52 | 53 | /* Atelier-Lakeside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #2d8f6f; 57 | } 58 | 59 | /* Atelier-Lakeside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #257fad; 69 | } 70 | 71 | /* Atelier-Lakeside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6b6bb8; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #161b1d; 81 | color: #7ea2b4; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-lakeside.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Lakeside Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Lakeside Comment */ 6 | .hljs-comment { 7 | color: #5a7b8c; 8 | } 9 | 10 | /* Atelier-Lakeside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d22d72; 25 | } 26 | 27 | /* Atelier-Lakeside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #935c25; 35 | } 36 | 37 | /* Atelier-Lakeside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #8a8a0f; 41 | } 42 | 43 | /* Atelier-Lakeside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #568c3b; 51 | } 52 | 53 | /* Atelier-Lakeside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #2d8f6f; 57 | } 58 | 59 | /* Atelier-Lakeside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #257fad; 69 | } 70 | 71 | /* Atelier-Lakeside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6b6bb8; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #ebf8ff; 81 | color: #516d7b; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-seaside.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Seaside Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Seaside Comment */ 6 | .hljs-comment { 7 | color: #809980; 8 | } 9 | 10 | /* Atelier-Seaside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #e6193c; 25 | } 26 | 27 | /* Atelier-Seaside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #87711d; 35 | } 36 | 37 | /* Atelier-Seaside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #98981b; 41 | } 42 | 43 | /* Atelier-Seaside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #29a329; 51 | } 52 | 53 | /* Atelier-Seaside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1999b3; 57 | } 58 | 59 | /* Atelier-Seaside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d62f5; 69 | } 70 | 71 | /* Atelier-Seaside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #ad2bee; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #131513; 81 | color: #8ca68c; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-seaside.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Seaside Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Seaside Comment */ 6 | .hljs-comment { 7 | color: #687d68; 8 | } 9 | 10 | /* Atelier-Seaside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #e6193c; 25 | } 26 | 27 | /* Atelier-Seaside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #87711d; 35 | } 36 | 37 | /* Atelier-Seaside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #98981b; 41 | } 42 | 43 | /* Atelier-Seaside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #29a329; 51 | } 52 | 53 | /* Atelier-Seaside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1999b3; 57 | } 58 | 59 | /* Atelier-Seaside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d62f5; 69 | } 70 | 71 | /* Atelier-Seaside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #ad2bee; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f4fbf4; 81 | color: #5e6e5e; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-sulphurpool.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Sulphurpool Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Sulphurpool Comment */ 6 | .hljs-comment { 7 | color: #898ea4; 8 | } 9 | 10 | /* Atelier-Sulphurpool Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #c94922; 25 | } 26 | 27 | /* Atelier-Sulphurpool Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #c76b29; 35 | } 36 | 37 | /* Atelier-Sulphurpool Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c08b30; 41 | } 42 | 43 | /* Atelier-Sulphurpool Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #ac9739; 51 | } 52 | 53 | /* Atelier-Sulphurpool Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #22a2c9; 57 | } 58 | 59 | /* Atelier-Sulphurpool Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d8fd1; 69 | } 70 | 71 | /* Atelier-Sulphurpool Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6679cc; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #202746; 81 | color: #979db4; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/atelier-sulphurpool.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Sulphurpool Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Sulphurpool Comment */ 6 | .hljs-comment { 7 | color: #6b7394; 8 | } 9 | 10 | /* Atelier-Sulphurpool Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #c94922; 25 | } 26 | 27 | /* Atelier-Sulphurpool Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #c76b29; 35 | } 36 | 37 | /* Atelier-Sulphurpool Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c08b30; 41 | } 42 | 43 | /* Atelier-Sulphurpool Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #ac9739; 51 | } 52 | 53 | /* Atelier-Sulphurpool Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #22a2c9; 57 | } 58 | 59 | /* Atelier-Sulphurpool Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d8fd1; 69 | } 70 | 71 | /* Atelier-Sulphurpool Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6679cc; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f5f7ff; 81 | color: #5e6687; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/brown_paper.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Brown Paper style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background:#b7a68e url(./brown_papersq.png); 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs-keyword, 16 | .hljs-literal, 17 | .hljs-change, 18 | .hljs-winutils, 19 | .hljs-flow, 20 | .nginx .hljs-title, 21 | .tex .hljs-special, 22 | .hljs-request, 23 | .hljs-status { 24 | color:#005599; 25 | font-weight:bold; 26 | } 27 | 28 | .hljs, 29 | .hljs-subst, 30 | .hljs-tag .hljs-keyword { 31 | color: #363c69; 32 | } 33 | 34 | .hljs-string, 35 | .hljs-title, 36 | .hljs-type, 37 | .hljs-tag .hljs-value, 38 | .css .hljs-rule .hljs-value, 39 | .hljs-preprocessor, 40 | .hljs-pragma, 41 | .ruby .hljs-symbol, 42 | .ruby .hljs-symbol .hljs-string, 43 | .ruby .hljs-class .hljs-parent, 44 | .hljs-built_in, 45 | .django .hljs-template_tag, 46 | .django .hljs-variable, 47 | .smalltalk .hljs-class, 48 | .hljs-javadoc, 49 | .ruby .hljs-string, 50 | .django .hljs-filter .hljs-argument, 51 | .smalltalk .hljs-localvars, 52 | .smalltalk .hljs-array, 53 | .hljs-attr_selector, 54 | .hljs-pseudo, 55 | .hljs-addition, 56 | .hljs-stream, 57 | .hljs-envvar, 58 | .apache .hljs-tag, 59 | .apache .hljs-cbracket, 60 | .tex .hljs-number, 61 | .hljs-name { 62 | color: #2c009f; 63 | } 64 | 65 | .hljs-comment, 66 | .hljs-annotation, 67 | .hljs-decorator, 68 | .hljs-pi, 69 | .hljs-doctype, 70 | .hljs-deletion, 71 | .hljs-shebang, 72 | .apache .hljs-sqbracket, 73 | .nginx .hljs-built_in, 74 | .tex .hljs-formula { 75 | color: #802022; 76 | } 77 | 78 | .hljs-keyword, 79 | .hljs-literal, 80 | .css .hljs-id, 81 | .hljs-phpdoc, 82 | .hljs-dartdoc, 83 | .hljs-title, 84 | .hljs-type, 85 | .vbscript .hljs-built_in, 86 | .rsl .hljs-built_in, 87 | .smalltalk .hljs-class, 88 | .diff .hljs-header, 89 | .hljs-chunk, 90 | .hljs-winutils, 91 | .bash .hljs-variable, 92 | .apache .hljs-tag, 93 | .tex .hljs-command { 94 | font-weight: bold; 95 | } 96 | 97 | .coffeescript .javascript, 98 | .javascript .xml, 99 | .tex .hljs-formula, 100 | .xml .javascript, 101 | .xml .vbscript, 102 | .xml .css, 103 | .xml .hljs-cdata { 104 | opacity: 0.8; 105 | } 106 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/brown_papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/vendor/assets/stylesheets/highlight/styles/brown_papersq.png -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/codepen-embed.css: -------------------------------------------------------------------------------- 1 | /* 2 | codepen.io Embed Theme 3 | Author: Justin Perry 4 | Original theme - https://github.com/chriskempson/tomorrow-theme 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #222; 12 | color: #fff; 13 | font-family: Menlo, Monaco, 'Andale Mono', 'Lucida Console', 'Courier New', monospace; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs-comment, 18 | .hljs-title { 19 | color: #777; 20 | } 21 | 22 | .hljs-variable, 23 | .hljs-attribute, 24 | .hljs-tag, 25 | .hljs-regexp, 26 | .hljs-name, 27 | .ruby .constant, 28 | .xml .tag .title, 29 | .xml .pi, 30 | .xml .doctype, 31 | .html .doctype { 32 | color: #ab875d; 33 | } 34 | 35 | .css .value { 36 | color: #cd6a51; 37 | } 38 | 39 | .css .value .function, 40 | .css .value .string { 41 | color: #a67f59; 42 | } 43 | 44 | .css .value .number { 45 | color: #9b869c; 46 | } 47 | 48 | .css .id, 49 | .css .class, 50 | .css-pseudo, 51 | .css .selector, 52 | .css .tag { 53 | color: #dfc48c; 54 | } 55 | 56 | .hljs-number, 57 | .hljs-preprocessor, 58 | .hljs-built_in, 59 | .hljs-literal, 60 | .hljs-params, 61 | .hljs-constant { 62 | color: #ab875d; 63 | } 64 | 65 | .ruby .class .title, 66 | .css .rules .attribute { 67 | color: #9b869b; 68 | } 69 | 70 | .hljs-string, 71 | .hljs-value, 72 | .hljs-inheritance, 73 | .hljs-header, 74 | .ruby .symbol, 75 | .xml .cdata { 76 | color: #8f9c6c; 77 | } 78 | 79 | .css .hexcolor { 80 | color: #cd6a51; 81 | } 82 | 83 | .function, 84 | .python .decorator, 85 | .python .title, 86 | .ruby .function .title, 87 | .ruby .title .keyword, 88 | .perl .sub, 89 | .javascript .title, 90 | .coffeescript .title { 91 | color: #fff; 92 | } 93 | 94 | .hljs-keyword, 95 | .javascript .function { 96 | color: #8f9c6c; 97 | } 98 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Dark style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #444; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs-keyword, 16 | .hljs-literal, 17 | .hljs-change, 18 | .hljs-winutils, 19 | .hljs-flow, 20 | .nginx .hljs-title, 21 | .tex .hljs-special { 22 | color: white; 23 | } 24 | 25 | .hljs, 26 | .hljs-subst { 27 | color: #ddd; 28 | } 29 | 30 | .hljs-string, 31 | .hljs-title, 32 | .hljs-type, 33 | .ini .hljs-title, 34 | .hljs-tag .hljs-value, 35 | .css .hljs-rule .hljs-value, 36 | .hljs-preprocessor, 37 | .hljs-pragma, 38 | .ruby .hljs-symbol, 39 | .ruby .hljs-symbol .hljs-string, 40 | .ruby .hljs-class .hljs-parent, 41 | .hljs-built_in, 42 | .django .hljs-template_tag, 43 | .django .hljs-variable, 44 | .smalltalk .hljs-class, 45 | .hljs-javadoc, 46 | .ruby .hljs-string, 47 | .django .hljs-filter .hljs-argument, 48 | .smalltalk .hljs-localvars, 49 | .smalltalk .hljs-array, 50 | .hljs-attr_selector, 51 | .hljs-pseudo, 52 | .hljs-addition, 53 | .hljs-stream, 54 | .hljs-envvar, 55 | .apache .hljs-tag, 56 | .apache .hljs-cbracket, 57 | .tex .hljs-command, 58 | .hljs-prompt, 59 | .coffeescript .hljs-attribute, 60 | .hljs-name { 61 | color: #d88; 62 | } 63 | 64 | .hljs-comment, 65 | .hljs-annotation, 66 | .hljs-decorator, 67 | .hljs-pi, 68 | .hljs-doctype, 69 | .hljs-deletion, 70 | .hljs-shebang, 71 | .apache .hljs-sqbracket, 72 | .tex .hljs-formula { 73 | color: #777; 74 | } 75 | 76 | .hljs-keyword, 77 | .hljs-literal, 78 | .hljs-title, 79 | .css .hljs-id, 80 | .hljs-phpdoc, 81 | .hljs-dartdoc, 82 | .hljs-type, 83 | .vbscript .hljs-built_in, 84 | .rsl .hljs-built_in, 85 | .smalltalk .hljs-class, 86 | .diff .hljs-header, 87 | .hljs-chunk, 88 | .hljs-winutils, 89 | .bash .hljs-variable, 90 | .apache .hljs-tag, 91 | .tex .hljs-special, 92 | .hljs-request, 93 | .hljs-status { 94 | font-weight: bold; 95 | } 96 | 97 | .coffeescript .javascript, 98 | .javascript .xml, 99 | .tex .hljs-formula, 100 | .xml .javascript, 101 | .xml .vbscript, 102 | .xml .css, 103 | .xml .hljs-cdata { 104 | opacity: 0.5; 105 | } 106 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/darkula.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Darkula color scheme from the JetBrains family of IDEs 4 | 5 | */ 6 | 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #2b2b2b; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs, 17 | .hljs-tag, 18 | .hljs-title, 19 | .css .hljs-rule, 20 | .css .hljs-value, 21 | .aspectj .hljs-function, 22 | .css .hljs-function .hljs-preprocessor, 23 | .hljs-pragma { 24 | color: #bababa; 25 | } 26 | 27 | .hljs-strongemphasis, 28 | .hljs-strong, 29 | .hljs-emphasis { 30 | color: #a8a8a2; 31 | } 32 | 33 | .hljs-bullet, 34 | .hljs-blockquote, 35 | .hljs-horizontal_rule, 36 | .hljs-number, 37 | .hljs-regexp, 38 | .alias .hljs-keyword, 39 | .hljs-literal, 40 | .hljs-hexcolor { 41 | color: #6896ba; 42 | } 43 | 44 | .hljs-tag .hljs-value, 45 | .hljs-code, 46 | .css .hljs-class, 47 | .hljs-class .hljs-title:last-child { 48 | color: #a6e22e; 49 | } 50 | 51 | .hljs-link_url { 52 | font-size: 80%; 53 | } 54 | 55 | .hljs-emphasis, 56 | .hljs-strongemphasis, 57 | .hljs-class .hljs-title:last-child, 58 | .hljs-typename { 59 | font-style: italic; 60 | } 61 | 62 | .hljs-keyword, 63 | .ruby .hljs-class .hljs-keyword:first-child, 64 | .ruby .hljs-function .hljs-keyword, 65 | .hljs-function, 66 | .hljs-change, 67 | .hljs-winutils, 68 | .hljs-flow, 69 | .nginx .hljs-title, 70 | .tex .hljs-special, 71 | .hljs-header, 72 | .hljs-attribute, 73 | .hljs-symbol, 74 | .hljs-symbol .hljs-string, 75 | .hljs-tag .hljs-title, 76 | .hljs-value, 77 | .alias .hljs-keyword:first-child, 78 | .css .hljs-tag, 79 | .css .unit, 80 | .css .hljs-important { 81 | color: #cb7832; 82 | } 83 | 84 | .hljs-function .hljs-keyword, 85 | .hljs-class .hljs-keyword:first-child, 86 | .hljs-aspect .hljs-keyword:first-child, 87 | .hljs-constant, 88 | .hljs-typename, 89 | .css .hljs-attribute { 90 | color: #cb7832; 91 | } 92 | 93 | .hljs-variable, 94 | .hljs-params, 95 | .hljs-class .hljs-title, 96 | .hljs-aspect .hljs-title { 97 | color: #b9b9b9; 98 | } 99 | 100 | .hljs-string, 101 | .css .hljs-id, 102 | .hljs-subst, 103 | .hljs-type, 104 | .ruby .hljs-class .hljs-parent, 105 | .hljs-built_in, 106 | .django .hljs-template_tag, 107 | .django .hljs-variable, 108 | .smalltalk .hljs-class, 109 | .django .hljs-filter .hljs-argument, 110 | .smalltalk .hljs-localvars, 111 | .smalltalk .hljs-array, 112 | .hljs-attr_selector, 113 | .hljs-pseudo, 114 | .hljs-addition, 115 | .hljs-stream, 116 | .hljs-envvar, 117 | .apache .hljs-tag, 118 | .apache .hljs-cbracket, 119 | .tex .hljs-command, 120 | .hljs-prompt, 121 | .hljs-link_label, 122 | .hljs-link_url, 123 | .hljs-name { 124 | color: #e0c46c; 125 | } 126 | 127 | .hljs-comment, 128 | .hljs-javadoc, 129 | .hljs-annotation, 130 | .hljs-pi, 131 | .hljs-doctype, 132 | .hljs-deletion, 133 | .hljs-shebang, 134 | .apache .hljs-sqbracket, 135 | .tex .hljs-formula { 136 | color: #7f7f7f; 137 | } 138 | 139 | .hljs-decorator { 140 | color: #bab429; 141 | } 142 | 143 | .coffeescript .javascript, 144 | .javascript .xml, 145 | .tex .hljs-formula, 146 | .xml .javascript, 147 | .xml .vbscript, 148 | .xml .css, 149 | .xml .hljs-cdata, 150 | .xml .php, 151 | .php .xml { 152 | opacity: 0.5; 153 | } 154 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/default.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #f0f0f0; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-subst, 17 | .hljs-tag .hljs-title, 18 | .nginx .hljs-title { 19 | color: black; 20 | } 21 | 22 | .hljs-string, 23 | .hljs-title, 24 | .hljs-constant, 25 | .hljs-parent, 26 | .hljs-tag .hljs-value, 27 | .hljs-rule .hljs-value, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .hljs-name, 31 | .haml .hljs-symbol, 32 | .ruby .hljs-symbol, 33 | .ruby .hljs-symbol .hljs-string, 34 | .hljs-template_tag, 35 | .django .hljs-variable, 36 | .smalltalk .hljs-class, 37 | .hljs-addition, 38 | .hljs-flow, 39 | .hljs-stream, 40 | .bash .hljs-variable, 41 | .pf .hljs-variable, 42 | .apache .hljs-tag, 43 | .apache .hljs-cbracket, 44 | .tex .hljs-command, 45 | .tex .hljs-special, 46 | .erlang_repl .hljs-function_or_atom, 47 | .asciidoc .hljs-header, 48 | .markdown .hljs-header, 49 | .coffeescript .hljs-attribute { 50 | color: #800; 51 | } 52 | 53 | .smartquote, 54 | .hljs-comment, 55 | .hljs-annotation, 56 | .diff .hljs-header, 57 | .hljs-chunk, 58 | .asciidoc .hljs-blockquote, 59 | .markdown .hljs-blockquote { 60 | color: #888; 61 | } 62 | 63 | .hljs-number, 64 | .hljs-date, 65 | .hljs-regexp, 66 | .hljs-literal, 67 | .hljs-hexcolor, 68 | .smalltalk .hljs-symbol, 69 | .smalltalk .hljs-char, 70 | .go .hljs-constant, 71 | .hljs-change, 72 | .lasso .hljs-variable, 73 | .makefile .hljs-variable, 74 | .asciidoc .hljs-bullet, 75 | .markdown .hljs-bullet, 76 | .asciidoc .hljs-link_url, 77 | .markdown .hljs-link_url { 78 | color: #080; 79 | } 80 | 81 | .hljs-label, 82 | .hljs-javadoc, 83 | .ruby .hljs-string, 84 | .hljs-decorator, 85 | .hljs-filter .hljs-argument, 86 | .hljs-localvars, 87 | .hljs-array, 88 | .hljs-attr_selector, 89 | .hljs-important, 90 | .hljs-pseudo, 91 | .hljs-pi, 92 | .haml .hljs-bullet, 93 | .hljs-doctype, 94 | .hljs-deletion, 95 | .hljs-envvar, 96 | .hljs-shebang, 97 | .apache .hljs-sqbracket, 98 | .nginx .hljs-built_in, 99 | .tex .hljs-formula, 100 | .erlang_repl .hljs-reserved, 101 | .hljs-prompt, 102 | .asciidoc .hljs-link_label, 103 | .markdown .hljs-link_label, 104 | .vhdl .hljs-attribute, 105 | .clojure .hljs-attribute, 106 | .asciidoc .hljs-attribute, 107 | .lasso .hljs-attribute, 108 | .coffeescript .hljs-property, 109 | .hljs-phony { 110 | color: #88f; 111 | } 112 | 113 | .hljs-keyword, 114 | .hljs-id, 115 | .hljs-title, 116 | .hljs-built_in, 117 | .css .hljs-tag, 118 | .hljs-javadoctag, 119 | .hljs-phpdoc, 120 | .hljs-dartdoc, 121 | .hljs-yardoctag, 122 | .smalltalk .hljs-class, 123 | .hljs-winutils, 124 | .bash .hljs-variable, 125 | .pf .hljs-variable, 126 | .apache .hljs-tag, 127 | .hljs-type, 128 | .hljs-typename, 129 | .tex .hljs-command, 130 | .asciidoc .hljs-strong, 131 | .markdown .hljs-strong, 132 | .hljs-request, 133 | .hljs-status { 134 | font-weight: bold; 135 | } 136 | 137 | .asciidoc .hljs-emphasis, 138 | .markdown .hljs-emphasis { 139 | font-style: italic; 140 | } 141 | 142 | .nginx .hljs-built_in { 143 | font-weight: normal; 144 | } 145 | 146 | .coffeescript .javascript, 147 | .javascript .xml, 148 | .lasso .markup, 149 | .tex .hljs-formula, 150 | .xml .javascript, 151 | .xml .vbscript, 152 | .xml .css, 153 | .xml .hljs-cdata { 154 | opacity: 0.5; 155 | } 156 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/docco.css: -------------------------------------------------------------------------------- 1 | /* 2 | Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars) 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | color: #000; 10 | background: #f8f8ff; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .hljs-comment, 15 | .diff .hljs-header, 16 | .hljs-javadoc { 17 | color: #408080; 18 | font-style: italic; 19 | } 20 | 21 | .hljs-keyword, 22 | .assignment, 23 | .hljs-literal, 24 | .css .rule .hljs-keyword, 25 | .hljs-winutils, 26 | .javascript .hljs-title, 27 | .lisp .hljs-title, 28 | .hljs-subst { 29 | color: #954121; 30 | } 31 | 32 | .hljs-number, 33 | .hljs-hexcolor { 34 | color: #40a070; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-tag .hljs-value, 39 | .hljs-phpdoc, 40 | .hljs-dartdoc, 41 | .tex .hljs-formula, 42 | .hljs-name { 43 | color: #219161; 44 | } 45 | 46 | .hljs-title, 47 | .hljs-id { 48 | color: #19469d; 49 | } 50 | .hljs-params { 51 | color: #00f; 52 | } 53 | 54 | .javascript .hljs-title, 55 | .lisp .hljs-title, 56 | .hljs-subst { 57 | font-weight: normal; 58 | } 59 | 60 | .hljs-class .hljs-title, 61 | .haskell .hljs-label, 62 | .tex .hljs-command { 63 | color: #458; 64 | font-weight: bold; 65 | } 66 | 67 | .hljs-tag, 68 | .hljs-tag .hljs-title, 69 | .hljs-rule .hljs-property, 70 | .django .hljs-tag .hljs-keyword { 71 | color: #000080; 72 | font-weight: normal; 73 | } 74 | 75 | .hljs-attribute, 76 | .hljs-variable, 77 | .instancevar, 78 | .lisp .hljs-body { 79 | color: #008080; 80 | } 81 | 82 | .hljs-regexp { 83 | color: #b68; 84 | } 85 | 86 | .hljs-class { 87 | color: #458; 88 | font-weight: bold; 89 | } 90 | 91 | .hljs-symbol, 92 | .ruby .hljs-symbol .hljs-string, 93 | .ruby .hljs-symbol .hljs-keyword, 94 | .ruby .hljs-symbol .keymethods, 95 | .lisp .hljs-keyword, 96 | .tex .hljs-special, 97 | .input_number { 98 | color: #990073; 99 | } 100 | 101 | .builtin, 102 | .constructor, 103 | .hljs-built_in, 104 | .lisp .hljs-title { 105 | color: #0086b3; 106 | } 107 | 108 | .hljs-preprocessor, 109 | .hljs-pragma, 110 | .hljs-pi, 111 | .hljs-doctype, 112 | .hljs-shebang, 113 | .hljs-cdata { 114 | color: #999; 115 | font-weight: bold; 116 | } 117 | 118 | .hljs-deletion { 119 | background: #fdd; 120 | } 121 | 122 | .hljs-addition { 123 | background: #dfd; 124 | } 125 | 126 | .diff .hljs-change { 127 | background: #0086b3; 128 | } 129 | 130 | .hljs-chunk { 131 | color: #aaa; 132 | } 133 | 134 | .tex .hljs-formula { 135 | opacity: 0.5; 136 | } 137 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/far.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | FAR Style (c) MajestiC 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #000080; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-subst { 17 | color: #0ff; 18 | } 19 | 20 | .hljs-string, 21 | .ruby .hljs-string, 22 | .haskell .hljs-type, 23 | .hljs-tag .hljs-value, 24 | .hljs-rule .hljs-value, 25 | .hljs-rule .hljs-value .hljs-number, 26 | .hljs-preprocessor, 27 | .hljs-pragma, 28 | .ruby .hljs-symbol, 29 | .ruby .hljs-symbol .hljs-string, 30 | .hljs-built_in, 31 | .django .hljs-template_tag, 32 | .django .hljs-variable, 33 | .smalltalk .hljs-class, 34 | .hljs-addition, 35 | .apache .hljs-tag, 36 | .apache .hljs-cbracket, 37 | .tex .hljs-command, 38 | .coffeescript .hljs-attribute { 39 | color: #ff0; 40 | } 41 | 42 | .hljs-keyword, 43 | .css .hljs-id, 44 | .hljs-title, 45 | .hljs-type, 46 | .vbscript .hljs-built_in, 47 | .rsl .hljs-built_in, 48 | .smalltalk .hljs-class, 49 | .xml .hljs-tag .hljs-title, 50 | .hljs-winutils, 51 | .hljs-flow, 52 | .hljs-change, 53 | .hljs-envvar, 54 | .bash .hljs-variable, 55 | .tex .hljs-special, 56 | .hljs-name { 57 | color: #fff; 58 | } 59 | 60 | .hljs-comment, 61 | .hljs-phpdoc, 62 | .hljs-dartdoc, 63 | .hljs-javadoc, 64 | .hljs-annotation, 65 | .hljs-deletion, 66 | .apache .hljs-sqbracket, 67 | .tex .hljs-formula { 68 | color: #888; 69 | } 70 | 71 | .hljs-number, 72 | .hljs-date, 73 | .hljs-regexp, 74 | .hljs-literal, 75 | .smalltalk .hljs-symbol, 76 | .smalltalk .hljs-char, 77 | .clojure .hljs-attribute { 78 | color: #0f0; 79 | } 80 | 81 | .hljs-decorator, 82 | .django .hljs-filter .hljs-argument, 83 | .smalltalk .hljs-localvars, 84 | .smalltalk .hljs-array, 85 | .hljs-attr_selector, 86 | .hljs-pseudo, 87 | .xml .hljs-pi, 88 | .diff .hljs-header, 89 | .hljs-chunk, 90 | .hljs-shebang, 91 | .nginx .hljs-built_in, 92 | .hljs-prompt { 93 | color: #008080; 94 | } 95 | 96 | .hljs-keyword, 97 | .css .hljs-id, 98 | .hljs-title, 99 | .hljs-type, 100 | .vbscript .hljs-built_in, 101 | .rsl .hljs-built_in, 102 | .smalltalk .hljs-class, 103 | .hljs-winutils, 104 | .hljs-flow, 105 | .apache .hljs-tag, 106 | .nginx .hljs-built_in, 107 | .tex .hljs-command, 108 | .tex .hljs-special, 109 | .hljs-request, 110 | .hljs-status { 111 | font-weight: bold; 112 | } 113 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/foundation.css: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Foundation 4 docs style for highlight.js 3 | Author: Dan Allen 4 | Website: http://foundation.zurb.com/docs/ 5 | Version: 1.0 6 | Date: 2013-04-02 7 | */ 8 | 9 | .hljs { 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | background: #eee; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs-header, 18 | .hljs-decorator, 19 | .hljs-annotation { 20 | color: #000077; 21 | } 22 | 23 | .hljs-horizontal_rule, 24 | .hljs-link_url, 25 | .hljs-emphasis, 26 | .hljs-attribute { 27 | color: #070; 28 | } 29 | 30 | .hljs-emphasis { 31 | font-style: italic; 32 | } 33 | 34 | .hljs-link_label, 35 | .hljs-strong, 36 | .hljs-value, 37 | .hljs-string, 38 | .scss .hljs-value .hljs-string { 39 | color: #d14; 40 | } 41 | 42 | .hljs-strong { 43 | font-weight: bold; 44 | } 45 | 46 | .hljs-blockquote, 47 | .hljs-comment { 48 | color: #998; 49 | font-style: italic; 50 | } 51 | 52 | .asciidoc .hljs-title, 53 | .hljs-function .hljs-title { 54 | color: #900; 55 | } 56 | 57 | .hljs-class { 58 | color: #458; 59 | } 60 | 61 | .hljs-id, 62 | .hljs-pseudo, 63 | .hljs-constant, 64 | .hljs-hexcolor { 65 | color: teal; 66 | } 67 | 68 | .hljs-variable { 69 | color: #336699; 70 | } 71 | 72 | .hljs-bullet, 73 | .hljs-javadoc { 74 | color: #997700; 75 | } 76 | 77 | .hljs-pi, 78 | .hljs-doctype { 79 | color: #3344bb; 80 | } 81 | 82 | .hljs-code, 83 | .hljs-number { 84 | color: #099; 85 | } 86 | 87 | .hljs-important { 88 | color: #f00; 89 | } 90 | 91 | .smartquote, 92 | .hljs-label { 93 | color: #970; 94 | } 95 | 96 | .hljs-preprocessor, 97 | .hljs-pragma { 98 | color: #579; 99 | } 100 | 101 | .hljs-reserved, 102 | .hljs-keyword, 103 | .scss .hljs-value { 104 | color: #000; 105 | } 106 | 107 | .hljs-regexp { 108 | background-color: #fff0ff; 109 | color: #880088; 110 | } 111 | 112 | .hljs-symbol { 113 | color: #990073; 114 | } 115 | 116 | .hljs-symbol .hljs-string { 117 | color: #a60; 118 | } 119 | 120 | .hljs-tag { 121 | color: #007700; 122 | } 123 | 124 | .hljs-at_rule, 125 | .hljs-at_rule .hljs-keyword { 126 | color: #088; 127 | } 128 | 129 | .hljs-at_rule .hljs-preprocessor { 130 | color: #808; 131 | } 132 | 133 | .scss .hljs-tag, 134 | .scss .hljs-attribute { 135 | color: #339; 136 | } 137 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/github.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | github.com style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | color: #333; 12 | background: #f8f8f8; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .diff .hljs-header, 18 | .hljs-javadoc { 19 | color: #998; 20 | font-style: italic; 21 | } 22 | 23 | .hljs-keyword, 24 | .css .rule .hljs-keyword, 25 | .hljs-winutils, 26 | .nginx .hljs-title, 27 | .hljs-subst, 28 | .hljs-request, 29 | .hljs-status { 30 | color: #333; 31 | font-weight: bold; 32 | } 33 | 34 | .hljs-number, 35 | .hljs-hexcolor, 36 | .ruby .hljs-constant { 37 | color: #008080; 38 | } 39 | 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-phpdoc, 43 | .hljs-dartdoc, 44 | .tex .hljs-formula { 45 | color: #d14; 46 | } 47 | 48 | .hljs-title, 49 | .hljs-id, 50 | .scss .hljs-preprocessor { 51 | color: #900; 52 | font-weight: bold; 53 | } 54 | 55 | .hljs-list .hljs-keyword, 56 | .hljs-subst { 57 | font-weight: normal; 58 | } 59 | 60 | .hljs-class .hljs-title, 61 | .hljs-type, 62 | .vhdl .hljs-literal, 63 | .tex .hljs-command { 64 | color: #458; 65 | font-weight: bold; 66 | } 67 | 68 | .hljs-tag, 69 | .hljs-tag .hljs-title, 70 | .hljs-rule .hljs-property, 71 | .django .hljs-tag .hljs-keyword { 72 | color: #000080; 73 | font-weight: normal; 74 | } 75 | 76 | .hljs-attribute, 77 | .hljs-variable, 78 | .lisp .hljs-body, 79 | .hljs-name { 80 | color: #008080; 81 | } 82 | 83 | .hljs-regexp { 84 | color: #009926; 85 | } 86 | 87 | .hljs-symbol, 88 | .ruby .hljs-symbol .hljs-string, 89 | .lisp .hljs-keyword, 90 | .clojure .hljs-keyword, 91 | .scheme .hljs-keyword, 92 | .tex .hljs-special, 93 | .hljs-prompt { 94 | color: #990073; 95 | } 96 | 97 | .hljs-built_in { 98 | color: #0086b3; 99 | } 100 | 101 | .hljs-preprocessor, 102 | .hljs-pragma, 103 | .hljs-pi, 104 | .hljs-doctype, 105 | .hljs-shebang, 106 | .hljs-cdata { 107 | color: #999; 108 | font-weight: bold; 109 | } 110 | 111 | .hljs-deletion { 112 | background: #fdd; 113 | } 114 | 115 | .hljs-addition { 116 | background: #dfd; 117 | } 118 | 119 | .diff .hljs-change { 120 | background: #0086b3; 121 | } 122 | 123 | .hljs-chunk { 124 | color: #aaa; 125 | } 126 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/googlecode.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Google Code style (c) Aahan Krish 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: white; 12 | color: black; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc { 18 | color: #800; 19 | } 20 | 21 | .hljs-keyword, 22 | .method, 23 | .hljs-list .hljs-keyword, 24 | .nginx .hljs-title, 25 | .hljs-tag .hljs-title, 26 | .setting .hljs-value, 27 | .hljs-winutils, 28 | .tex .hljs-command, 29 | .http .hljs-title, 30 | .hljs-request, 31 | .hljs-status { 32 | color: #008; 33 | } 34 | 35 | .hljs-envvar, 36 | .tex .hljs-special { 37 | color: #660; 38 | } 39 | 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-cdata, 43 | .hljs-filter .hljs-argument, 44 | .hljs-attr_selector, 45 | .apache .hljs-cbracket, 46 | .hljs-date, 47 | .hljs-regexp, 48 | .coffeescript .hljs-attribute { 49 | color: #080; 50 | } 51 | 52 | .hljs-sub .hljs-identifier, 53 | .hljs-pi, 54 | .hljs-tag, 55 | .hljs-tag .hljs-keyword, 56 | .hljs-decorator, 57 | .ini .hljs-title, 58 | .hljs-shebang, 59 | .hljs-prompt, 60 | .hljs-hexcolor, 61 | .hljs-rule .hljs-value, 62 | .hljs-literal, 63 | .hljs-symbol, 64 | .ruby .hljs-symbol .hljs-string, 65 | .hljs-number, 66 | .css .hljs-function, 67 | .clojure .hljs-attribute { 68 | color: #066; 69 | } 70 | 71 | .hljs-class .hljs-title, 72 | .smalltalk .hljs-class, 73 | .hljs-javadoctag, 74 | .hljs-yardoctag, 75 | .hljs-phpdoc, 76 | .hljs-dartdoc, 77 | .hljs-type, 78 | .hljs-typename, 79 | .hljs-tag .hljs-attribute, 80 | .hljs-doctype, 81 | .hljs-class .hljs-id, 82 | .hljs-built_in, 83 | .setting, 84 | .hljs-params, 85 | .hljs-variable, 86 | .hljs-name { 87 | color: #606; 88 | } 89 | 90 | .css .hljs-tag, 91 | .hljs-rule .hljs-property, 92 | .hljs-pseudo, 93 | .hljs-subst { 94 | color: #000; 95 | } 96 | 97 | .css .hljs-class, 98 | .css .hljs-id { 99 | color: #9b703f; 100 | } 101 | 102 | .hljs-value .hljs-important { 103 | color: #ff7700; 104 | font-weight: bold; 105 | } 106 | 107 | .hljs-rule .hljs-keyword { 108 | color: #c5af75; 109 | } 110 | 111 | .hljs-annotation, 112 | .apache .hljs-sqbracket, 113 | .nginx .hljs-built_in { 114 | color: #9b859d; 115 | } 116 | 117 | .hljs-preprocessor, 118 | .hljs-preprocessor *, 119 | .hljs-pragma { 120 | color: #444; 121 | } 122 | 123 | .tex .hljs-formula { 124 | background-color: #eee; 125 | font-style: italic; 126 | } 127 | 128 | .diff .hljs-header, 129 | .hljs-chunk { 130 | color: #808080; 131 | font-weight: bold; 132 | } 133 | 134 | .diff .hljs-change { 135 | background-color: #bccff9; 136 | } 137 | 138 | .hljs-addition { 139 | background-color: #baeeba; 140 | } 141 | 142 | .hljs-deletion { 143 | background-color: #ffc8bd; 144 | } 145 | 146 | .hljs-comment .hljs-yardoctag { 147 | font-weight: bold; 148 | } 149 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/hybrid.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid) 4 | 5 | */ 6 | 7 | /*background color*/ 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #1d1f21; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | /*selection color*/ 17 | .hljs::selection, 18 | .hljs span::selection { 19 | background: #373b41; 20 | } 21 | .hljs::-moz-selection, 22 | .hljs span::-moz-selection { 23 | background: #373b41; 24 | } 25 | 26 | /*foreground color*/ 27 | .hljs, 28 | .hljs-setting .hljs-value, 29 | .hljs-expression .hljs-variable, 30 | .hljs-expression .hljs-begin-block, 31 | .hljs-expression .hljs-end-block, 32 | .hljs-class .hljs-params, 33 | .hljs-function .hljs-params, 34 | .hljs-at_rule .hljs-preprocessor { 35 | color: #c5c8c6; 36 | } 37 | 38 | /*color: fg_yellow*/ 39 | .hljs-title, 40 | .hljs-function .hljs-title, 41 | .hljs-keyword .hljs-common, 42 | .hljs-class .hljs-title, 43 | .hljs-decorator, 44 | .hljs-tag .hljs-title, 45 | .hljs-header, 46 | .hljs-sub, 47 | .hljs-function { 48 | color: #f0c674; 49 | } 50 | 51 | /*color: fg_comment*/ 52 | .hljs-comment, 53 | .hljs-javadoc, 54 | .hljs-output .hljs-value, 55 | .hljs-pi, 56 | .hljs-shebang, 57 | .hljs-doctype { 58 | color: #707880; 59 | } 60 | 61 | /*color: fg_red*/ 62 | .hljs-number, 63 | .hljs-symbol, 64 | .hljs-literal, 65 | .hljs-deletion, 66 | .hljs-link_url, 67 | .hljs-symbol .hljs-string, 68 | .hljs-argument, 69 | .hljs-hexcolor, 70 | .hljs-input .hljs-prompt, 71 | .hljs-char { 72 | color: #cc6666 73 | } 74 | 75 | /*color: fg_green*/ 76 | .hljs-string, 77 | .hljs-special, 78 | .hljs-javadoctag, 79 | .hljs-addition, 80 | .hljs-important, 81 | .hljs-tag .hljs-value, 82 | .hljs-at.rule .hljs-keyword, 83 | .hljs-regexp, 84 | .hljs-attr_selector { 85 | color: #b5bd68; 86 | } 87 | 88 | /*color: fg_purple*/ 89 | .hljs-variable, 90 | .hljs-property, 91 | .hljs-envar, 92 | .hljs-code, 93 | .hljs-expression, 94 | .hljs-localvars, 95 | .hljs-id, 96 | .hljs-variable .hljs-filter, 97 | .hljs-variable .hljs-filter .hljs-keyword, 98 | .hljs-template_tag .hljs-filter .hljs-keyword, 99 | .hljs-name { 100 | color: #b294bb; 101 | } 102 | 103 | /*color: fg_blue*/ 104 | .hljs-statement, 105 | .hljs-label, 106 | .hljs-keyword, 107 | .hljs-xmlDocTag, 108 | .hljs-function .hljs-keyword, 109 | .hljs-chunk, 110 | .hljs-cdata, 111 | .hljs-link_label, 112 | .hljs-bullet, 113 | .hljs-class .hljs-keyword, 114 | .hljs-smartquote, 115 | .hljs-method, 116 | .hljs-list .hljs-title, 117 | .hljs-tag { 118 | color: #81a2be; 119 | } 120 | 121 | /*color: fg_aqua*/ 122 | .hljs-pseudo, 123 | .hljs-exception, 124 | .hljs-annotation, 125 | .hljs-subst, 126 | .hljs-change, 127 | .hljs-cbracket, 128 | .hljs-operator, 129 | .hljs-horizontal_rule, 130 | .hljs-preprocessor .hljs-keyword, 131 | .hljs-typedef, 132 | .hljs-template_tag, 133 | .hljs-variable, 134 | .hljs-variable .hljs-filter .hljs-argument, 135 | .hljs-at_rule, 136 | .hljs-at_rule .hljs-string, 137 | .hljs-at_rule .hljs-keyword { 138 | color: #8abeb7; 139 | } 140 | 141 | 142 | /*color: fg_orange*/ 143 | .hljs-type, 144 | .hljs-typename, 145 | .hljs-inheritance .hljs-parent, 146 | .hljs-constant, 147 | .hljs-built_in, 148 | .hljs-setting, 149 | .hljs-structure, 150 | .hljs-link_reference, 151 | .hljs-attribute, 152 | .hljs-blockquote, 153 | .hljs-quoted, 154 | .hljs-class, 155 | .hljs-header { 156 | color: #de935f; 157 | } 158 | 159 | .hljs-emphasis 160 | { 161 | font-style: italic; 162 | } 163 | 164 | .hljs-strong 165 | { 166 | font-weight: bold; 167 | } 168 | 169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/idea.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Intellij Idea-like styling (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | color: #000; 12 | background: #fff; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-subst, 17 | .hljs-title, 18 | .json .hljs-value { 19 | font-weight: normal; 20 | color: #000; 21 | } 22 | 23 | .hljs-comment, 24 | .hljs-javadoc, 25 | .diff .hljs-header { 26 | color: #808080; 27 | font-style: italic; 28 | } 29 | 30 | .hljs-annotation, 31 | .hljs-decorator, 32 | .hljs-preprocessor, 33 | .hljs-pragma, 34 | .hljs-doctype, 35 | .hljs-pi, 36 | .hljs-chunk, 37 | .hljs-shebang, 38 | .apache .hljs-cbracket, 39 | .hljs-prompt, 40 | .http .hljs-title { 41 | color: #808000; 42 | } 43 | 44 | .hljs-tag, 45 | .hljs-pi { 46 | background: #efefef; 47 | } 48 | 49 | .hljs-tag .hljs-title, 50 | .hljs-id, 51 | .hljs-attr_selector, 52 | .hljs-pseudo, 53 | .hljs-literal, 54 | .hljs-keyword, 55 | .hljs-hexcolor, 56 | .css .hljs-function, 57 | .ini .hljs-title, 58 | .css .hljs-class, 59 | .hljs-list .hljs-keyword, 60 | .nginx .hljs-title, 61 | .tex .hljs-command, 62 | .hljs-request, 63 | .hljs-status { 64 | font-weight: bold; 65 | color: #000080; 66 | } 67 | 68 | .hljs-attribute, 69 | .hljs-rule .hljs-keyword, 70 | .hljs-number, 71 | .hljs-date, 72 | .hljs-regexp, 73 | .tex .hljs-special { 74 | font-weight: bold; 75 | color: #0000ff; 76 | } 77 | 78 | .hljs-number, 79 | .hljs-regexp { 80 | font-weight: normal; 81 | } 82 | 83 | .hljs-string, 84 | .hljs-value, 85 | .hljs-filter .hljs-argument, 86 | .css .hljs-function .hljs-params, 87 | .apache .hljs-tag { 88 | color: #008000; 89 | font-weight: bold; 90 | } 91 | 92 | .hljs-symbol, 93 | .ruby .hljs-symbol .hljs-string, 94 | .hljs-char, 95 | .tex .hljs-formula { 96 | color: #000; 97 | background: #d0eded; 98 | font-style: italic; 99 | } 100 | 101 | .hljs-phpdoc, 102 | .hljs-dartdoc, 103 | .hljs-yardoctag, 104 | .hljs-javadoctag { 105 | text-decoration: underline; 106 | } 107 | 108 | .hljs-variable, 109 | .hljs-envvar, 110 | .apache .hljs-sqbracket, 111 | .nginx .hljs-built_in, 112 | .hljs-name { 113 | color: #660e7a; 114 | } 115 | 116 | .hljs-addition { 117 | background: #baeeba; 118 | } 119 | 120 | .hljs-deletion { 121 | background: #ffc8bd; 122 | } 123 | 124 | .diff .hljs-change { 125 | background: #bccff9; 126 | } 127 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/ir_black.css: -------------------------------------------------------------------------------- 1 | /* 2 | IR_Black style (c) Vasily Mikhailitchenko 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #000; 10 | color: #f8f8f8; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .hljs-shebang, 15 | .hljs-comment, 16 | .hljs-javadoc { 17 | color: #7c7c7c; 18 | } 19 | 20 | .hljs-keyword, 21 | .hljs-tag, 22 | .tex .hljs-command, 23 | .hljs-request, 24 | .hljs-status, 25 | .clojure .hljs-attribute { 26 | color: #96cbfe; 27 | } 28 | 29 | .hljs-sub .hljs-keyword, 30 | .method, 31 | .hljs-list .hljs-title, 32 | .nginx .hljs-title { 33 | color: #ffffb6; 34 | } 35 | 36 | .hljs-string, 37 | .hljs-tag .hljs-value, 38 | .hljs-cdata, 39 | .hljs-filter .hljs-argument, 40 | .hljs-attr_selector, 41 | .apache .hljs-cbracket, 42 | .hljs-date, 43 | .coffeescript .hljs-attribute { 44 | color: #a8ff60; 45 | } 46 | 47 | .hljs-subst { 48 | color: #daefa3; 49 | } 50 | 51 | .hljs-regexp { 52 | color: #e9c062; 53 | } 54 | 55 | .hljs-title, 56 | .hljs-sub .hljs-identifier, 57 | .hljs-pi, 58 | .hljs-decorator, 59 | .tex .hljs-special, 60 | .hljs-type, 61 | .hljs-constant, 62 | .smalltalk .hljs-class, 63 | .hljs-javadoctag, 64 | .hljs-yardoctag, 65 | .hljs-phpdoc, 66 | .hljs-dartdoc, 67 | .nginx .hljs-built_in { 68 | color: #ffffb6; 69 | } 70 | 71 | .hljs-symbol, 72 | .ruby .hljs-symbol .hljs-string, 73 | .hljs-number, 74 | .hljs-variable, 75 | .vbscript, 76 | .hljs-literal, 77 | .hljs-name { 78 | color: #c6c5fe; 79 | } 80 | 81 | .css .hljs-tag { 82 | color: #96cbfe; 83 | } 84 | 85 | .css .hljs-rule .hljs-property, 86 | .css .hljs-id { 87 | color: #ffffb6; 88 | } 89 | 90 | .css .hljs-class { 91 | color: #fff; 92 | } 93 | 94 | .hljs-hexcolor { 95 | color: #c6c5fe; 96 | } 97 | 98 | .hljs-number { 99 | color:#ff73fd; 100 | } 101 | 102 | .coffeescript .javascript, 103 | .javascript .xml, 104 | .tex .hljs-formula, 105 | .xml .javascript, 106 | .xml .vbscript, 107 | .xml .css, 108 | .xml .hljs-cdata { 109 | opacity: 0.7; 110 | } 111 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/kimbie.dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Kimbie (dark) 3 | Author: Jan T. Sott 4 | License: Creative Commons Attribution-ShareAlike 4.0 Unported License 5 | URL: https://github.com/idleberg/Kimbie-highlight.js 6 | */ 7 | 8 | /* Kimbie Comment */ 9 | .hljs-comment, 10 | .hljs-title { 11 | color: #d6baad; 12 | } 13 | 14 | /* Kimbie Red */ 15 | .hljs-variable, 16 | .hljs-attribute, 17 | .hljs-tag, 18 | .hljs-regexp, 19 | .hljs-name, 20 | .ruby .hljs-constant, 21 | .xml .hljs-tag .hljs-title, 22 | .xml .hljs-pi, 23 | .xml .hljs-doctype, 24 | .html .hljs-doctype, 25 | .css .hljs-id, 26 | .css .hljs-class, 27 | .css .hljs-pseudo { 28 | color: #dc3958; 29 | } 30 | 31 | /* Kimbie Orange */ 32 | .hljs-number, 33 | .hljs-preprocessor, 34 | .hljs-built_in, 35 | .hljs-literal, 36 | .hljs-params, 37 | .hljs-constant { 38 | color: #f79a32; 39 | } 40 | 41 | /* Kimbie Yellow */ 42 | .ruby .hljs-class .hljs-title, 43 | .css .hljs-rule .hljs-attribute { 44 | color: #f06431; 45 | } 46 | 47 | /* Kimbie Green */ 48 | .hljs-string, 49 | .hljs-value, 50 | .hljs-inheritance, 51 | .hljs-header, 52 | .ruby .hljs-symbol, 53 | .xml .hljs-cdata { 54 | color: #889b4a; 55 | } 56 | 57 | /* Kimbie Aqua */ 58 | .css .hljs-hexcolor { 59 | color: #088649; 60 | } 61 | 62 | /* Kimbie Blue */ 63 | .hljs-function, 64 | .python .hljs-decorator, 65 | .python .hljs-title, 66 | .ruby .hljs-function .hljs-title, 67 | .ruby .hljs-title .hljs-keyword, 68 | .perl .hljs-sub, 69 | .javascript .hljs-title, 70 | .coffeescript .hljs-title { 71 | color: #8ab1b0; 72 | } 73 | 74 | /* Kimbie Purple */ 75 | .hljs-keyword, 76 | .javascript .hljs-function { 77 | color: #98676a; 78 | } 79 | 80 | .hljs { 81 | display: block; 82 | overflow-x: auto; 83 | background: #221a0f; 84 | color: #d3af86; 85 | padding: 0.5em; 86 | -webkit-text-size-adjust: none; 87 | } 88 | 89 | .coffeescript .javascript, 90 | .javascript .xml, 91 | .tex .hljs-formula, 92 | .xml .javascript, 93 | .xml .vbscript, 94 | .xml .css, 95 | .xml .hljs-cdata { 96 | opacity: 0.5; 97 | } 98 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/kimbie.light.css: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Kimbie (light) 3 | Author: Jan T. Sott 4 | License: Creative Commons Attribution-ShareAlike 4.0 Unported License 5 | URL: https://github.com/idleberg/Kimbie-highlight.js 6 | */ 7 | 8 | /* Kimbie Comment */ 9 | .hljs-comment, 10 | .hljs-title { 11 | color: #a57a4c; 12 | } 13 | 14 | /* Kimbie Red */ 15 | .hljs-variable, 16 | .hljs-attribute, 17 | .hljs-tag, 18 | .hljs-regexp, 19 | .hljs-name, 20 | .ruby .hljs-constant, 21 | .xml .hljs-tag .hljs-title, 22 | .xml .hljs-pi, 23 | .xml .hljs-doctype, 24 | .html .hljs-doctype, 25 | .css .hljs-id, 26 | .css .hljs-class, 27 | .css .hljs-pseudo { 28 | color: #dc3958; 29 | } 30 | 31 | /* Kimbie Orange */ 32 | .hljs-number, 33 | .hljs-preprocessor, 34 | .hljs-built_in, 35 | .hljs-literal, 36 | .hljs-params, 37 | .hljs-constant { 38 | color: #f79a32; 39 | } 40 | 41 | /* Kimbie Yellow */ 42 | .ruby .hljs-class .hljs-title, 43 | .css .hljs-rule .hljs-attribute { 44 | color: #f06431; 45 | } 46 | 47 | /* Kimbie Green */ 48 | .hljs-string, 49 | .hljs-value, 50 | .hljs-inheritance, 51 | .hljs-header, 52 | .ruby .hljs-symbol, 53 | .xml .hljs-cdata { 54 | color: #889b4a; 55 | } 56 | 57 | /* Kimbie Aqua */ 58 | .css .hljs-hexcolor { 59 | color: #088649; 60 | } 61 | 62 | /* Kimbie Blue */ 63 | .hljs-function, 64 | .python .hljs-decorator, 65 | .python .hljs-title, 66 | .ruby .hljs-function .hljs-title, 67 | .ruby .hljs-title .hljs-keyword, 68 | .perl .hljs-sub, 69 | .javascript .hljs-title, 70 | .coffeescript .hljs-title { 71 | color: #8ab1b0; 72 | } 73 | 74 | /* Kimbie Purple */ 75 | .hljs-keyword, 76 | .javascript .hljs-function { 77 | color: #98676a; 78 | } 79 | 80 | .hljs { 81 | display: block; 82 | overflow-x: auto; 83 | background: #fbebd4; 84 | color: #84613d; 85 | padding: 0.5em; 86 | -webkit-text-size-adjust: none; 87 | } 88 | 89 | .coffeescript .javascript, 90 | .javascript .xml, 91 | .tex .hljs-formula, 92 | .xml .javascript, 93 | .xml .vbscript, 94 | .xml .css, 95 | .xml .hljs-cdata { 96 | opacity: 0.5; 97 | } 98 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/magula.css: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Magula style for highligh.js 3 | Author: Ruslan Keba 4 | Website: http://rukeba.com/ 5 | Version: 1.0 6 | Date: 2009-01-03 7 | Music: Aphex Twin / Xtal 8 | */ 9 | 10 | .hljs { 11 | display: block; 12 | overflow-x: auto; 13 | padding: 0.5em; 14 | background-color: #f4f4f4; 15 | -webkit-text-size-adjust: none; 16 | } 17 | 18 | .hljs, 19 | .hljs-subst { 20 | color: black; 21 | } 22 | 23 | .hljs-string, 24 | .hljs-title, 25 | .hljs-parent, 26 | .hljs-tag .hljs-value, 27 | .hljs-rule .hljs-value, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .ruby .hljs-symbol, 31 | .ruby .hljs-symbol .hljs-string, 32 | .hljs-template_tag, 33 | .django .hljs-variable, 34 | .smalltalk .hljs-class, 35 | .hljs-addition, 36 | .hljs-flow, 37 | .hljs-stream, 38 | .bash .hljs-variable, 39 | .apache .hljs-cbracket, 40 | .coffeescript .hljs-attribute { 41 | color: #050; 42 | } 43 | 44 | .hljs-comment, 45 | .hljs-annotation, 46 | .diff .hljs-header, 47 | .hljs-chunk { 48 | color: #777; 49 | } 50 | 51 | .hljs-number, 52 | .hljs-date, 53 | .hljs-regexp, 54 | .hljs-literal, 55 | .hljs-name, 56 | .smalltalk .hljs-symbol, 57 | .smalltalk .hljs-char, 58 | .hljs-change, 59 | .tex .hljs-special { 60 | color: #800; 61 | } 62 | 63 | .hljs-label, 64 | .hljs-javadoc, 65 | .ruby .hljs-string, 66 | .hljs-decorator, 67 | .hljs-filter .hljs-argument, 68 | .hljs-localvars, 69 | .hljs-array, 70 | .hljs-attr_selector, 71 | .hljs-pseudo, 72 | .hljs-pi, 73 | .hljs-doctype, 74 | .hljs-deletion, 75 | .hljs-envvar, 76 | .hljs-shebang, 77 | .apache .hljs-sqbracket, 78 | .nginx .hljs-built_in, 79 | .tex .hljs-formula, 80 | .hljs-prompt, 81 | .clojure .hljs-attribute { 82 | color: #00e; 83 | } 84 | 85 | .hljs-keyword, 86 | .hljs-id, 87 | .hljs-phpdoc, 88 | .hljs-dartdoc, 89 | .hljs-title, 90 | .hljs-built_in, 91 | .smalltalk .hljs-class, 92 | .hljs-winutils, 93 | .bash .hljs-variable, 94 | .apache .hljs-tag, 95 | .xml .hljs-tag, 96 | .tex .hljs-command, 97 | .hljs-request, 98 | .hljs-status { 99 | font-weight: bold; 100 | color: navy; 101 | } 102 | 103 | .nginx .hljs-built_in { 104 | font-weight: normal; 105 | } 106 | 107 | .coffeescript .javascript, 108 | .javascript .xml, 109 | .tex .hljs-formula, 110 | .xml .javascript, 111 | .xml .vbscript, 112 | .xml .css, 113 | .xml .hljs-cdata { 114 | opacity: 0.5; 115 | } 116 | 117 | /* --- */ 118 | .apache .hljs-tag { 119 | font-weight: bold; 120 | color: blue; 121 | } 122 | 123 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/mono-blue.css: -------------------------------------------------------------------------------- 1 | /* 2 | Five-color theme from a single blue hue. 3 | */ 4 | .hljs { 5 | display: block; 6 | overflow-x: auto; 7 | padding: 0.5em; 8 | background: #eaeef3; 9 | -webkit-text-size-adjust: none; 10 | } 11 | 12 | .hljs, 13 | .hljs-list .hljs-built_in { 14 | color: #00193a; 15 | } 16 | 17 | .hljs-keyword, 18 | .hljs-title, 19 | .hljs-important, 20 | .hljs-request, 21 | .hljs-header, 22 | .hljs-javadoctag { 23 | font-weight: bold; 24 | } 25 | 26 | .hljs-comment, 27 | .hljs-chunk { 28 | color: #738191; 29 | } 30 | 31 | .hljs-string, 32 | .hljs-title, 33 | .hljs-parent, 34 | .hljs-built_in, 35 | .hljs-literal, 36 | .hljs-filename, 37 | .hljs-value, 38 | .hljs-addition, 39 | .hljs-tag, 40 | .hljs-argument, 41 | .hljs-link_label, 42 | .hljs-blockquote, 43 | .hljs-header, 44 | .hljs-name { 45 | color: #0048ab; 46 | } 47 | 48 | .hljs-decorator, 49 | .hljs-prompt, 50 | .hljs-yardoctag, 51 | .hljs-subst, 52 | .hljs-symbol, 53 | .hljs-doctype, 54 | .hljs-regexp, 55 | .hljs-preprocessor, 56 | .hljs-pragma, 57 | .hljs-pi, 58 | .hljs-attribute, 59 | .hljs-attr_selector, 60 | .hljs-javadoc, 61 | .hljs-xmlDocTag, 62 | .hljs-deletion, 63 | .hljs-shebang, 64 | .hljs-string .hljs-variable, 65 | .hljs-link_url, 66 | .hljs-bullet, 67 | .hljs-sqbracket, 68 | .hljs-phony { 69 | color: #4c81c9; 70 | } 71 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #272822; 10 | -webkit-text-size-adjust: none; 11 | } 12 | 13 | .hljs-tag, 14 | .hljs-tag .hljs-title, 15 | .hljs-keyword, 16 | .hljs-literal, 17 | .hljs-strong, 18 | .hljs-change, 19 | .hljs-winutils, 20 | .hljs-flow, 21 | .nginx .hljs-title, 22 | .tex .hljs-special { 23 | color: #f92672; 24 | } 25 | 26 | .hljs { 27 | color: #ddd; 28 | } 29 | 30 | .hljs .hljs-constant, 31 | .asciidoc .hljs-code, 32 | .markdown .hljs-code { 33 | color: #66d9ef; 34 | } 35 | 36 | .hljs-code, 37 | .hljs-class .hljs-title, 38 | .hljs-header { 39 | color: white; 40 | } 41 | 42 | .hljs-link_label, 43 | .hljs-attribute, 44 | .hljs-symbol, 45 | .hljs-symbol .hljs-string, 46 | .hljs-value, 47 | .hljs-regexp { 48 | color: #bf79db; 49 | } 50 | 51 | .hljs-link_url, 52 | .hljs-tag .hljs-value, 53 | .hljs-string, 54 | .hljs-bullet, 55 | .hljs-subst, 56 | .hljs-title, 57 | .hljs-emphasis, 58 | .hljs-type, 59 | .hljs-preprocessor, 60 | .hljs-pragma, 61 | .ruby .hljs-class .hljs-parent, 62 | .hljs-built_in, 63 | .django .hljs-template_tag, 64 | .django .hljs-variable, 65 | .smalltalk .hljs-class, 66 | .hljs-javadoc, 67 | .django .hljs-filter .hljs-argument, 68 | .smalltalk .hljs-localvars, 69 | .smalltalk .hljs-array, 70 | .hljs-attr_selector, 71 | .hljs-pseudo, 72 | .hljs-addition, 73 | .hljs-stream, 74 | .hljs-envvar, 75 | .apache .hljs-tag, 76 | .apache .hljs-cbracket, 77 | .tex .hljs-command, 78 | .hljs-prompt, 79 | .hljs-name { 80 | color: #a6e22e; 81 | } 82 | 83 | .hljs-comment, 84 | .hljs-annotation, 85 | .smartquote, 86 | .hljs-blockquote, 87 | .hljs-horizontal_rule, 88 | .hljs-decorator, 89 | .hljs-pi, 90 | .hljs-doctype, 91 | .hljs-deletion, 92 | .hljs-shebang, 93 | .apache .hljs-sqbracket, 94 | .tex .hljs-formula { 95 | color: #75715e; 96 | } 97 | 98 | .hljs-keyword, 99 | .hljs-literal, 100 | .css .hljs-id, 101 | .hljs-phpdoc, 102 | .hljs-dartdoc, 103 | .hljs-title, 104 | .hljs-header, 105 | .hljs-type, 106 | .vbscript .hljs-built_in, 107 | .rsl .hljs-built_in, 108 | .smalltalk .hljs-class, 109 | .diff .hljs-header, 110 | .hljs-chunk, 111 | .hljs-winutils, 112 | .bash .hljs-variable, 113 | .apache .hljs-tag, 114 | .tex .hljs-special, 115 | .hljs-request, 116 | .hljs-status { 117 | font-weight: bold; 118 | } 119 | 120 | .coffeescript .javascript, 121 | .javascript .xml, 122 | .tex .hljs-formula, 123 | .xml .javascript, 124 | .xml .vbscript, 125 | .xml .css, 126 | .xml .hljs-cdata { 127 | opacity: 0.5; 128 | } 129 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/monokai_sublime.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #23241f; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-tag, 17 | .css .hljs-rule, 18 | .css .hljs-value, 19 | .aspectj .hljs-function, 20 | .css .hljs-function 21 | .hljs-preprocessor, 22 | .hljs-pragma { 23 | color: #f8f8f2; 24 | } 25 | 26 | .hljs-strongemphasis, 27 | .hljs-strong, 28 | .hljs-emphasis { 29 | color: #a8a8a2; 30 | } 31 | 32 | .hljs-bullet, 33 | .hljs-blockquote, 34 | .hljs-horizontal_rule, 35 | .hljs-number, 36 | .hljs-regexp, 37 | .alias .hljs-keyword, 38 | .hljs-literal, 39 | .hljs-hexcolor { 40 | color: #ae81ff; 41 | } 42 | 43 | .hljs-tag .hljs-value, 44 | .hljs-code, 45 | .hljs-title, 46 | .css .hljs-class, 47 | .hljs-class .hljs-title:last-child { 48 | color: #a6e22e; 49 | } 50 | 51 | .hljs-link_url { 52 | font-size: 80%; 53 | } 54 | 55 | .hljs-strong, 56 | .hljs-strongemphasis { 57 | font-weight: bold; 58 | } 59 | 60 | .hljs-emphasis, 61 | .hljs-strongemphasis, 62 | .hljs-class .hljs-title:last-child, 63 | .hljs-typename { 64 | font-style: italic; 65 | } 66 | 67 | .hljs-keyword, 68 | .ruby .hljs-class .hljs-keyword:first-child, 69 | .ruby .hljs-function .hljs-keyword, 70 | .hljs-function, 71 | .hljs-change, 72 | .hljs-winutils, 73 | .hljs-flow, 74 | .nginx .hljs-title, 75 | .tex .hljs-special, 76 | .hljs-header, 77 | .hljs-attribute, 78 | .hljs-symbol, 79 | .hljs-symbol .hljs-string, 80 | .hljs-tag .hljs-title, 81 | .hljs-value, 82 | .alias .hljs-keyword:first-child, 83 | .css .hljs-tag, 84 | .css .unit, 85 | .css .hljs-important { 86 | color: #f92672; 87 | } 88 | 89 | .hljs-function .hljs-keyword, 90 | .hljs-class .hljs-keyword:first-child, 91 | .hljs-aspect .hljs-keyword:first-child, 92 | .hljs-constant, 93 | .hljs-typename, 94 | .hljs-name, 95 | .css .hljs-attribute { 96 | color: #66d9ef; 97 | } 98 | 99 | .hljs-variable, 100 | .hljs-params, 101 | .hljs-class .hljs-title, 102 | .hljs-aspect .hljs-title { 103 | color: #f8f8f2; 104 | } 105 | 106 | .hljs-string, 107 | .css .hljs-id, 108 | .hljs-subst, 109 | .hljs-type, 110 | .ruby .hljs-class .hljs-parent, 111 | .hljs-built_in, 112 | .django .hljs-template_tag, 113 | .django .hljs-variable, 114 | .smalltalk .hljs-class, 115 | .django .hljs-filter .hljs-argument, 116 | .smalltalk .hljs-localvars, 117 | .smalltalk .hljs-array, 118 | .hljs-attr_selector, 119 | .hljs-pseudo, 120 | .hljs-addition, 121 | .hljs-stream, 122 | .hljs-envvar, 123 | .apache .hljs-tag, 124 | .apache .hljs-cbracket, 125 | .tex .hljs-command, 126 | .hljs-prompt, 127 | .hljs-link_label, 128 | .hljs-link_url { 129 | color: #e6db74; 130 | } 131 | 132 | .hljs-comment, 133 | .hljs-javadoc, 134 | .hljs-annotation, 135 | .hljs-decorator, 136 | .hljs-pi, 137 | .hljs-doctype, 138 | .hljs-deletion, 139 | .hljs-shebang, 140 | .apache .hljs-sqbracket, 141 | .tex .hljs-formula { 142 | color: #75715e; 143 | } 144 | 145 | .coffeescript .javascript, 146 | .javascript .xml, 147 | .tex .hljs-formula, 148 | .xml .javascript, 149 | .xml .vbscript, 150 | .xml .css, 151 | .xml .hljs-cdata, 152 | .xml .php, 153 | .php .xml { 154 | opacity: 0.5; 155 | } 156 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/obsidian.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Obsidian style 3 | * ported by Alexander Marenin (http://github.com/ioncreature) 4 | */ 5 | 6 | .hljs { 7 | display: block; 8 | overflow-x: auto; 9 | padding: 0.5em; 10 | background: #282b2e; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .hljs-keyword, 15 | .hljs-literal, 16 | .hljs-change, 17 | .hljs-winutils, 18 | .hljs-flow, 19 | .nginx .hljs-title, 20 | .css .hljs-id, 21 | .tex .hljs-special { 22 | color: #93c763; 23 | } 24 | 25 | .hljs-number { 26 | color: #ffcd22; 27 | } 28 | 29 | .hljs { 30 | color: #e0e2e4; 31 | } 32 | 33 | .css .hljs-tag, 34 | .css .hljs-pseudo { 35 | color: #d0d2b5; 36 | } 37 | 38 | .hljs-attribute, 39 | .hljs .hljs-constant { 40 | color: #668bb0; 41 | } 42 | 43 | .xml .hljs-attribute { 44 | color: #b3b689; 45 | } 46 | 47 | .xml .hljs-tag .hljs-value { 48 | color: #e8e2b7; 49 | } 50 | 51 | .hljs-code, 52 | .hljs-class .hljs-title, 53 | .hljs-header { 54 | color: white; 55 | } 56 | 57 | .hljs-class, 58 | .hljs-hexcolor { 59 | color: #93c763; 60 | } 61 | 62 | .hljs-regexp { 63 | color: #d39745; 64 | } 65 | 66 | .hljs-at_rule, 67 | .hljs-at_rule .hljs-keyword { 68 | color: #a082bd; 69 | } 70 | 71 | .hljs-doctype { 72 | color: #557182; 73 | } 74 | 75 | .hljs-link_url, 76 | .hljs-tag, 77 | .hljs-tag .hljs-title, 78 | .hljs-bullet, 79 | .hljs-subst, 80 | .hljs-emphasis, 81 | .hljs-type, 82 | .hljs-preprocessor, 83 | .hljs-pragma, 84 | .ruby .hljs-class .hljs-parent, 85 | .hljs-built_in, 86 | .django .hljs-template_tag, 87 | .django .hljs-variable, 88 | .smalltalk .hljs-class, 89 | .hljs-javadoc, 90 | .django .hljs-filter .hljs-argument, 91 | .smalltalk .hljs-localvars, 92 | .smalltalk .hljs-array, 93 | .hljs-attr_selector, 94 | .hljs-pseudo, 95 | .hljs-addition, 96 | .hljs-stream, 97 | .hljs-envvar, 98 | .apache .hljs-tag, 99 | .apache .hljs-cbracket, 100 | .tex .hljs-command, 101 | .hljs-prompt, 102 | .hljs-name { 103 | color: #8cbbad; 104 | } 105 | 106 | .hljs-string { 107 | color: #ec7600; 108 | } 109 | 110 | .hljs-comment, 111 | .hljs-annotation, 112 | .hljs-blockquote, 113 | .hljs-horizontal_rule, 114 | .hljs-decorator, 115 | .hljs-pi, 116 | .hljs-deletion, 117 | .hljs-shebang, 118 | .apache .hljs-sqbracket, 119 | .tex .hljs-formula { 120 | color: #818e96; 121 | } 122 | 123 | .hljs-keyword, 124 | .hljs-literal, 125 | .css .hljs-id, 126 | .hljs-phpdoc, 127 | .hljs-dartdoc, 128 | .hljs-title, 129 | .hljs-header, 130 | .hljs-type, 131 | .vbscript .hljs-built_in, 132 | .rsl .hljs-built_in, 133 | .smalltalk .hljs-class, 134 | .diff .hljs-header, 135 | .hljs-chunk, 136 | .hljs-winutils, 137 | .bash .hljs-variable, 138 | .apache .hljs-tag, 139 | .tex .hljs-special, 140 | .hljs-request, 141 | .hljs-at_rule .hljs-keyword, 142 | .hljs-status { 143 | font-weight: bold; 144 | } 145 | 146 | .coffeescript .javascript, 147 | .javascript .xml, 148 | .tex .hljs-formula, 149 | .xml .javascript, 150 | .xml .vbscript, 151 | .xml .css, 152 | .xml .hljs-cdata { 153 | opacity: 0.5; 154 | } 155 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/paraiso.dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | Paraíso (dark) 3 | Created by Jan T. Sott (http://github.com/idleberg) 4 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 5 | */ 6 | 7 | /* Paraíso Comment */ 8 | .hljs-comment, 9 | .hljs-title { 10 | color: #8d8687; 11 | } 12 | 13 | /* Paraíso Red */ 14 | .hljs-variable, 15 | .hljs-attribute, 16 | .hljs-tag, 17 | .hljs-regexp, 18 | .hljs-name, 19 | .ruby .hljs-constant, 20 | .xml .hljs-tag .hljs-title, 21 | .xml .hljs-pi, 22 | .xml .hljs-doctype, 23 | .html .hljs-doctype, 24 | .css .hljs-id, 25 | .css .hljs-class, 26 | .css .hljs-pseudo { 27 | color: #ef6155; 28 | } 29 | 30 | /* Paraíso Orange */ 31 | .hljs-number, 32 | .hljs-preprocessor, 33 | .hljs-built_in, 34 | .hljs-literal, 35 | .hljs-params, 36 | .hljs-constant { 37 | color: #f99b15; 38 | } 39 | 40 | /* Paraíso Yellow */ 41 | .ruby .hljs-class .hljs-title, 42 | .css .hljs-rule .hljs-attribute { 43 | color: #fec418; 44 | } 45 | 46 | /* Paraíso Green */ 47 | .hljs-string, 48 | .hljs-value, 49 | .hljs-inheritance, 50 | .hljs-header, 51 | .ruby .hljs-symbol, 52 | .xml .hljs-cdata { 53 | color: #48b685; 54 | } 55 | 56 | /* Paraíso Aqua */ 57 | .css .hljs-hexcolor { 58 | color: #5bc4bf; 59 | } 60 | 61 | /* Paraíso Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #06b6ef; 71 | } 72 | 73 | /* Paraíso Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #815ba4; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #2f1e2e; 83 | color: #a39e9b; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/paraiso.light.css: -------------------------------------------------------------------------------- 1 | /* 2 | Paraíso (light) 3 | Created by Jan T. Sott (http://github.com/idleberg) 4 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 5 | */ 6 | 7 | /* Paraíso Comment */ 8 | .hljs-comment, 9 | .hljs-title { 10 | color: #776e71; 11 | } 12 | 13 | /* Paraíso Red */ 14 | .hljs-variable, 15 | .hljs-attribute, 16 | .hljs-tag, 17 | .hljs-regexp, 18 | .hljs-name, 19 | .ruby .hljs-constant, 20 | .xml .hljs-tag .hljs-title, 21 | .xml .hljs-pi, 22 | .xml .hljs-doctype, 23 | .html .hljs-doctype, 24 | .css .hljs-id, 25 | .css .hljs-class, 26 | .css .hljs-pseudo { 27 | color: #ef6155; 28 | } 29 | 30 | /* Paraíso Orange */ 31 | .hljs-number, 32 | .hljs-preprocessor, 33 | .hljs-built_in, 34 | .hljs-literal, 35 | .hljs-params, 36 | .hljs-constant { 37 | color: #f99b15; 38 | } 39 | 40 | /* Paraíso Yellow */ 41 | .ruby .hljs-class .hljs-title, 42 | .css .hljs-rule .hljs-attribute { 43 | color: #fec418; 44 | } 45 | 46 | /* Paraíso Green */ 47 | .hljs-string, 48 | .hljs-value, 49 | .hljs-inheritance, 50 | .hljs-header, 51 | .ruby .hljs-symbol, 52 | .xml .hljs-cdata { 53 | color: #48b685; 54 | } 55 | 56 | /* Paraíso Aqua */ 57 | .css .hljs-hexcolor { 58 | color: #5bc4bf; 59 | } 60 | 61 | /* Paraíso Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #06b6ef; 71 | } 72 | 73 | /* Paraíso Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #815ba4; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #e7e9db; 83 | color: #4f424c; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/pojoaque.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Pojoaque Style by Jason Tate 4 | http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html 5 | Based on Solarized Style from http://ethanschoonover.com/solarized 6 | 7 | */ 8 | 9 | .hljs { 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | color: #dccf8f; 14 | background: url(./pojoaque.jpg) repeat scroll left top #181914; 15 | -webkit-text-size-adjust: none; 16 | } 17 | 18 | .hljs-comment, 19 | .diff .hljs-header, 20 | .hljs-doctype, 21 | .lisp .hljs-string, 22 | .hljs-javadoc { 23 | color: #586e75; 24 | font-style: italic; 25 | } 26 | 27 | .hljs-keyword, 28 | .css .rule .hljs-keyword, 29 | .hljs-winutils, 30 | .javascript .hljs-title, 31 | .method, 32 | .hljs-addition, 33 | .css .hljs-tag, 34 | .hljs-list .hljs-keyword, 35 | .nginx .hljs-title { 36 | color: #b64926; 37 | } 38 | 39 | .hljs-number, 40 | .hljs-command, 41 | .hljs-string, 42 | .hljs-tag .hljs-value, 43 | .hljs-phpdoc, 44 | .hljs-dartdoc, 45 | .tex .hljs-formula, 46 | .hljs-regexp, 47 | .hljs-hexcolor { 48 | color: #468966; 49 | } 50 | 51 | .hljs-title, 52 | .hljs-localvars, 53 | .hljs-function .hljs-title, 54 | .hljs-chunk, 55 | .hljs-decorator, 56 | .hljs-built_in, 57 | .hljs-identifier, 58 | .hljs-name, 59 | .hljs-id { 60 | color: #ffb03b; 61 | } 62 | 63 | .hljs-attribute, 64 | .hljs-variable, 65 | .lisp .hljs-body, 66 | .smalltalk .hljs-number, 67 | .hljs-constant, 68 | .hljs-class .hljs-title, 69 | .hljs-parent, 70 | .hljs-type { 71 | color: #b58900; 72 | } 73 | 74 | .css .hljs-attribute { 75 | color: #b89859; 76 | } 77 | 78 | .css .hljs-number, 79 | .css .hljs-hexcolor { 80 | color: #dccf8f; 81 | } 82 | 83 | .css .hljs-class { 84 | color: #d3a60c; 85 | } 86 | 87 | .hljs-preprocessor, 88 | .hljs-pragma, 89 | .hljs-pi, 90 | .hljs-shebang, 91 | .hljs-symbol, 92 | .hljs-symbol .hljs-string, 93 | .diff .hljs-change, 94 | .hljs-special, 95 | .hljs-attr_selector, 96 | .hljs-important, 97 | .hljs-subst, 98 | .hljs-cdata { 99 | color: #cb4b16; 100 | } 101 | 102 | .hljs-deletion { 103 | color: #dc322f; 104 | } 105 | 106 | .tex .hljs-formula { 107 | background: #073642; 108 | } 109 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/vendor/assets/stylesheets/highlight/styles/pojoaque.jpg -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/rainbow.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Style with support for rainbow parens 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #474949; 12 | color: #d1d9e1; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | 17 | .hljs-body, 18 | .hljs-collection { 19 | color: #d1d9e1; 20 | } 21 | 22 | .hljs-comment, 23 | .diff .hljs-header, 24 | .hljs-doctype, 25 | .lisp .hljs-string, 26 | .hljs-javadoc { 27 | color: #969896; 28 | font-style: italic; 29 | } 30 | 31 | .hljs-keyword, 32 | .clojure .hljs-attribute, 33 | .hljs-winutils, 34 | .javascript .hljs-title, 35 | .hljs-addition, 36 | .css .hljs-tag { 37 | color: #cc99cc; 38 | } 39 | 40 | .hljs-number { color: #f99157; } 41 | 42 | .hljs-command, 43 | .hljs-string, 44 | .hljs-tag .hljs-value, 45 | .hljs-phpdoc, 46 | .hljs-dartdoc, 47 | .tex .hljs-formula, 48 | .hljs-regexp, 49 | .hljs-hexcolor { 50 | color: #8abeb7; 51 | } 52 | 53 | .hljs-title, 54 | .hljs-localvars, 55 | .hljs-function .hljs-title, 56 | .hljs-chunk, 57 | .hljs-decorator, 58 | .hljs-built_in, 59 | .hljs-identifier { 60 | color: #b5bd68; 61 | } 62 | 63 | .hljs-class .hljs-keyword { 64 | color: #f2777a; 65 | } 66 | 67 | .hljs-variable, 68 | .smalltalk .hljs-number, 69 | .hljs-constant, 70 | .hljs-class .hljs-title, 71 | .hljs-parent, 72 | .haskell .hljs-label, 73 | .hljs-id, 74 | .hljs-name { 75 | color: #ffcc66; 76 | } 77 | 78 | .hljs-tag .hljs-title, 79 | .hljs-rule .hljs-property, 80 | .django .hljs-tag .hljs-keyword { 81 | font-weight: bold; 82 | } 83 | 84 | .hljs-attribute { 85 | color: #81a2be; 86 | } 87 | 88 | .hljs-preprocessor, 89 | .hljs-pragma, 90 | .hljs-pi, 91 | .hljs-shebang, 92 | .hljs-symbol, 93 | .hljs-symbol .hljs-string, 94 | .diff .hljs-change, 95 | .hljs-special, 96 | .hljs-attr_selector, 97 | .hljs-important, 98 | .hljs-subst, 99 | .hljs-cdata { 100 | color: #f99157; 101 | } 102 | 103 | .hljs-deletion { 104 | color: #dc322f; 105 | } 106 | 107 | .tex .hljs-formula { 108 | background: #eee8d5; 109 | } 110 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/school_book.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | School Book style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 15px 0.5em 0.5em 30px; 11 | font-size: 11px !important; 12 | line-height:16px !important; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | pre{ 17 | background:#f6f6ae url(./school_book.png); 18 | border-top: solid 2px #d2e8b9; 19 | border-bottom: solid 1px #d2e8b9; 20 | } 21 | 22 | .hljs-keyword, 23 | .hljs-literal, 24 | .hljs-change, 25 | .hljs-winutils, 26 | .hljs-flow, 27 | .nginx .hljs-title, 28 | .tex .hljs-special { 29 | color:#005599; 30 | font-weight:bold; 31 | } 32 | 33 | .hljs, 34 | .hljs-subst, 35 | .hljs-tag .hljs-keyword { 36 | color: #3e5915; 37 | } 38 | 39 | .hljs-string, 40 | .hljs-title, 41 | .hljs-type, 42 | .hljs-tag .hljs-value, 43 | .css .hljs-rule .hljs-value, 44 | .hljs-preprocessor, 45 | .hljs-pragma, 46 | .ruby .hljs-symbol, 47 | .ruby .hljs-symbol .hljs-string, 48 | .ruby .hljs-class .hljs-parent, 49 | .hljs-built_in, 50 | .django .hljs-template_tag, 51 | .django .hljs-variable, 52 | .smalltalk .hljs-class, 53 | .hljs-javadoc, 54 | .ruby .hljs-string, 55 | .django .hljs-filter .hljs-argument, 56 | .smalltalk .hljs-localvars, 57 | .smalltalk .hljs-array, 58 | .hljs-attr_selector, 59 | .hljs-pseudo, 60 | .hljs-addition, 61 | .hljs-stream, 62 | .hljs-envvar, 63 | .apache .hljs-tag, 64 | .apache .hljs-cbracket, 65 | .nginx .hljs-built_in, 66 | .tex .hljs-command, 67 | .coffeescript .hljs-attribute, 68 | .hljs-name { 69 | color: #2c009f; 70 | } 71 | 72 | .hljs-comment, 73 | .hljs-annotation, 74 | .hljs-decorator, 75 | .hljs-pi, 76 | .hljs-doctype, 77 | .hljs-deletion, 78 | .hljs-shebang, 79 | .apache .hljs-sqbracket { 80 | color: #e60415; 81 | } 82 | 83 | .hljs-keyword, 84 | .hljs-literal, 85 | .css .hljs-id, 86 | .hljs-phpdoc, 87 | .hljs-dartdoc, 88 | .hljs-title, 89 | .hljs-type, 90 | .vbscript .hljs-built_in, 91 | .rsl .hljs-built_in, 92 | .smalltalk .hljs-class, 93 | .xml .hljs-tag .hljs-title, 94 | .diff .hljs-header, 95 | .hljs-chunk, 96 | .hljs-winutils, 97 | .bash .hljs-variable, 98 | .apache .hljs-tag, 99 | .tex .hljs-command, 100 | .hljs-request, 101 | .hljs-status { 102 | font-weight: bold; 103 | } 104 | 105 | .coffeescript .javascript, 106 | .javascript .xml, 107 | .tex .hljs-formula, 108 | .xml .javascript, 109 | .xml .vbscript, 110 | .xml .css, 111 | .xml .hljs-cdata { 112 | opacity: 0.5; 113 | } 114 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/school_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wendycan/es6tutorial/1cdbd98e225a1afd178bedd32edd26ec94c88038/vendor/assets/stylesheets/highlight/styles/school_book.png -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/solarized_dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #002b36; 12 | color: #839496; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .diff .hljs-header, 18 | .hljs-doctype, 19 | .hljs-pi, 20 | .lisp .hljs-string, 21 | .hljs-javadoc { 22 | color: #586e75; 23 | } 24 | 25 | /* Solarized Green */ 26 | .hljs-keyword, 27 | .hljs-winutils, 28 | .method, 29 | .hljs-addition, 30 | .css .hljs-tag, 31 | .hljs-request, 32 | .hljs-status, 33 | .nginx .hljs-title { 34 | color: #859900; 35 | } 36 | 37 | /* Solarized Cyan */ 38 | .hljs-number, 39 | .hljs-command, 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-rule .hljs-value, 43 | .hljs-phpdoc, 44 | .hljs-dartdoc, 45 | .tex .hljs-formula, 46 | .hljs-regexp, 47 | .hljs-hexcolor, 48 | .hljs-link_url { 49 | color: #2aa198; 50 | } 51 | 52 | /* Solarized Blue */ 53 | .hljs-title, 54 | .hljs-localvars, 55 | .hljs-chunk, 56 | .hljs-decorator, 57 | .hljs-built_in, 58 | .hljs-identifier, 59 | .vhdl .hljs-literal, 60 | .hljs-id, 61 | .css .hljs-function, 62 | .hljs-name { 63 | color: #268bd2; 64 | } 65 | 66 | /* Solarized Yellow */ 67 | .hljs-attribute, 68 | .hljs-variable, 69 | .lisp .hljs-body, 70 | .smalltalk .hljs-number, 71 | .hljs-constant, 72 | .hljs-class .hljs-title, 73 | .hljs-parent, 74 | .hljs-type, 75 | .hljs-link_reference { 76 | color: #b58900; 77 | } 78 | 79 | /* Solarized Orange */ 80 | .hljs-preprocessor, 81 | .hljs-preprocessor .hljs-keyword, 82 | .hljs-pragma, 83 | .hljs-shebang, 84 | .hljs-symbol, 85 | .hljs-symbol .hljs-string, 86 | .diff .hljs-change, 87 | .hljs-special, 88 | .hljs-attr_selector, 89 | .hljs-subst, 90 | .hljs-cdata, 91 | .css .hljs-pseudo, 92 | .hljs-header { 93 | color: #cb4b16; 94 | } 95 | 96 | /* Solarized Red */ 97 | .hljs-deletion, 98 | .hljs-important { 99 | color: #dc322f; 100 | } 101 | 102 | /* Solarized Violet */ 103 | .hljs-link_label { 104 | color: #6c71c4; 105 | } 106 | 107 | .tex .hljs-formula { 108 | background: #073642; 109 | } 110 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/solarized_light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #fdf6e3; 12 | color: #657b83; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .diff .hljs-header, 18 | .hljs-doctype, 19 | .hljs-pi, 20 | .lisp .hljs-string, 21 | .hljs-javadoc { 22 | color: #93a1a1; 23 | } 24 | 25 | /* Solarized Green */ 26 | .hljs-keyword, 27 | .hljs-winutils, 28 | .method, 29 | .hljs-addition, 30 | .css .hljs-tag, 31 | .hljs-request, 32 | .hljs-status, 33 | .nginx .hljs-title { 34 | color: #859900; 35 | } 36 | 37 | /* Solarized Cyan */ 38 | .hljs-number, 39 | .hljs-command, 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-rule .hljs-value, 43 | .hljs-phpdoc, 44 | .hljs-dartdoc, 45 | .tex .hljs-formula, 46 | .hljs-regexp, 47 | .hljs-hexcolor, 48 | .hljs-link_url { 49 | color: #2aa198; 50 | } 51 | 52 | /* Solarized Blue */ 53 | .hljs-title, 54 | .hljs-localvars, 55 | .hljs-chunk, 56 | .hljs-decorator, 57 | .hljs-built_in, 58 | .hljs-identifier, 59 | .vhdl .hljs-literal, 60 | .hljs-id, 61 | .css .hljs-function, 62 | .hljs-name { 63 | color: #268bd2; 64 | } 65 | 66 | /* Solarized Yellow */ 67 | .hljs-attribute, 68 | .hljs-variable, 69 | .lisp .hljs-body, 70 | .smalltalk .hljs-number, 71 | .hljs-constant, 72 | .hljs-class .hljs-title, 73 | .hljs-parent, 74 | .hljs-type, 75 | .hljs-link_reference { 76 | color: #b58900; 77 | } 78 | 79 | /* Solarized Orange */ 80 | .hljs-preprocessor, 81 | .hljs-preprocessor .hljs-keyword, 82 | .hljs-pragma, 83 | .hljs-shebang, 84 | .hljs-symbol, 85 | .hljs-symbol .hljs-string, 86 | .diff .hljs-change, 87 | .hljs-special, 88 | .hljs-attr_selector, 89 | .hljs-subst, 90 | .hljs-cdata, 91 | .css .hljs-pseudo, 92 | .hljs-header { 93 | color: #cb4b16; 94 | } 95 | 96 | /* Solarized Red */ 97 | .hljs-deletion, 98 | .hljs-important { 99 | color: #dc322f; 100 | } 101 | 102 | /* Solarized Violet */ 103 | .hljs-link_label { 104 | color: #6c71c4; 105 | } 106 | 107 | .tex .hljs-formula { 108 | background: #eee8d5; 109 | } 110 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/sunburst.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Sunburst-like style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #000; 12 | color: #f8f8f8; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc { 18 | color: #aeaeae; 19 | font-style: italic; 20 | } 21 | 22 | .hljs-keyword, 23 | .ruby .hljs-function .hljs-keyword, 24 | .hljs-request, 25 | .hljs-status, 26 | .nginx .hljs-title { 27 | color: #e28964; 28 | } 29 | 30 | .hljs-function .hljs-keyword, 31 | .hljs-sub .hljs-keyword, 32 | .method, 33 | .hljs-list .hljs-title { 34 | color: #99cf50; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-tag .hljs-value, 39 | .hljs-cdata, 40 | .hljs-filter .hljs-argument, 41 | .hljs-attr_selector, 42 | .apache .hljs-cbracket, 43 | .hljs-date, 44 | .tex .hljs-command, 45 | .coffeescript .hljs-attribute, 46 | .hljs-name { 47 | color: #65b042; 48 | } 49 | 50 | .hljs-subst { 51 | color: #daefa3; 52 | } 53 | 54 | .hljs-regexp { 55 | color: #e9c062; 56 | } 57 | 58 | .hljs-title, 59 | .hljs-sub .hljs-identifier, 60 | .hljs-pi, 61 | .hljs-tag, 62 | .hljs-tag .hljs-keyword, 63 | .hljs-decorator, 64 | .hljs-shebang, 65 | .hljs-prompt { 66 | color: #89bdff; 67 | } 68 | 69 | .hljs-class .hljs-title, 70 | .hljs-type, 71 | .smalltalk .hljs-class, 72 | .hljs-javadoctag, 73 | .hljs-yardoctag, 74 | .hljs-phpdoc, 75 | .hljs-dartdoc { 76 | text-decoration: underline; 77 | } 78 | 79 | .hljs-symbol, 80 | .ruby .hljs-symbol .hljs-string, 81 | .hljs-number { 82 | color: #3387cc; 83 | } 84 | 85 | .hljs-params, 86 | .hljs-variable, 87 | .clojure .hljs-attribute { 88 | color: #3e87e3; 89 | } 90 | 91 | .css .hljs-tag, 92 | .hljs-rule .hljs-property, 93 | .hljs-pseudo, 94 | .tex .hljs-special { 95 | color: #cda869; 96 | } 97 | 98 | .css .hljs-class { 99 | color: #9b703f; 100 | } 101 | 102 | .hljs-rule .hljs-keyword { 103 | color: #c5af75; 104 | } 105 | 106 | .hljs-rule .hljs-value { 107 | color: #cf6a4c; 108 | } 109 | 110 | .css .hljs-id { 111 | color: #8b98ab; 112 | } 113 | 114 | .hljs-annotation, 115 | .apache .hljs-sqbracket, 116 | .nginx .hljs-built_in { 117 | color: #9b859d; 118 | } 119 | 120 | .hljs-preprocessor, 121 | .hljs-pragma { 122 | color: #8996a8; 123 | } 124 | 125 | .hljs-hexcolor, 126 | .css .hljs-value .hljs-number { 127 | color: #dd7b3b; 128 | } 129 | 130 | .css .hljs-function { 131 | color: #dad085; 132 | } 133 | 134 | .diff .hljs-header, 135 | .hljs-chunk, 136 | .tex .hljs-formula { 137 | background-color: #0e2231; 138 | color: #f8f8f8; 139 | font-style: italic; 140 | } 141 | 142 | .diff .hljs-change { 143 | background-color: #4a410d; 144 | color: #f8f8f8; 145 | } 146 | 147 | .hljs-addition { 148 | background-color: #253b22; 149 | color: #f8f8f8; 150 | } 151 | 152 | .hljs-deletion { 153 | background-color: #420e09; 154 | color: #f8f8f8; 155 | } 156 | 157 | .coffeescript .javascript, 158 | .javascript .xml, 159 | .tex .hljs-formula, 160 | .xml .javascript, 161 | .xml .vbscript, 162 | .xml .css, 163 | .xml .hljs-cdata { 164 | opacity: 0.5; 165 | } 166 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/tomorrow-night-blue.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Blue Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | 6 | /* Tomorrow Comment */ 7 | .hljs-comment { 8 | color: #7285b7; 9 | } 10 | 11 | /* Tomorrow Red */ 12 | .hljs-variable, 13 | .hljs-attribute, 14 | .hljs-tag, 15 | .hljs-regexp, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #ff9da4; 25 | } 26 | 27 | /* Tomorrow Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-pragma, 31 | .hljs-built_in, 32 | .hljs-literal, 33 | .hljs-params, 34 | .hljs-constant { 35 | color: #ffc58f; 36 | } 37 | 38 | /* Tomorrow Yellow */ 39 | .ruby .hljs-class .hljs-title, 40 | .css .hljs-rule .hljs-attribute { 41 | color: #ffeead; 42 | } 43 | 44 | /* Tomorrow Green */ 45 | .hljs-string, 46 | .hljs-value, 47 | .hljs-inheritance, 48 | .hljs-header, 49 | .hljs-name, 50 | .ruby .hljs-symbol, 51 | .xml .hljs-cdata { 52 | color: #d1f1a9; 53 | } 54 | 55 | /* Tomorrow Aqua */ 56 | .hljs-title, 57 | .css .hljs-hexcolor { 58 | color: #99ffff; 59 | } 60 | 61 | /* Tomorrow Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #bbdaff; 71 | } 72 | 73 | /* Tomorrow Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #ebbbff; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #002451; 83 | color: white; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/tomorrow-night-bright.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Bright Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | 5 | /* Tomorrow Comment */ 6 | .hljs-comment { 7 | color: #969896; 8 | } 9 | 10 | /* Tomorrow Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .ruby .hljs-constant, 16 | .xml .hljs-tag .hljs-title, 17 | .xml .hljs-pi, 18 | .xml .hljs-doctype, 19 | .html .hljs-doctype, 20 | .css .hljs-id, 21 | .css .hljs-class, 22 | .css .hljs-pseudo { 23 | color: #d54e53; 24 | } 25 | 26 | /* Tomorrow Orange */ 27 | .hljs-number, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #e78c45; 35 | } 36 | 37 | /* Tomorrow Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #e7c547; 41 | } 42 | 43 | /* Tomorrow Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .hljs-name, 49 | .ruby .hljs-symbol, 50 | .xml .hljs-cdata { 51 | color: #b9ca4a; 52 | } 53 | 54 | /* Tomorrow Aqua */ 55 | .hljs-title, 56 | .css .hljs-hexcolor { 57 | color: #70c0b1; 58 | } 59 | 60 | /* Tomorrow Blue */ 61 | .hljs-function, 62 | .python .hljs-decorator, 63 | .python .hljs-title, 64 | .ruby .hljs-function .hljs-title, 65 | .ruby .hljs-title .hljs-keyword, 66 | .perl .hljs-sub, 67 | .javascript .hljs-title, 68 | .coffeescript .hljs-title { 69 | color: #7aa6da; 70 | } 71 | 72 | /* Tomorrow Purple */ 73 | .hljs-keyword, 74 | .javascript .hljs-function { 75 | color: #c397d8; 76 | } 77 | 78 | .hljs { 79 | display: block; 80 | overflow-x: auto; 81 | background: black; 82 | color: #eaeaea; 83 | padding: 0.5em; 84 | -webkit-text-size-adjust: none; 85 | } 86 | 87 | .coffeescript .javascript, 88 | .javascript .xml, 89 | .tex .hljs-formula, 90 | .xml .javascript, 91 | .xml .vbscript, 92 | .xml .css, 93 | .xml .hljs-cdata { 94 | opacity: 0.5; 95 | } 96 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/tomorrow-night-eighties.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Eighties Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | 5 | /* Tomorrow Comment */ 6 | .hljs-comment { 7 | color: #999999; 8 | } 9 | 10 | /* Tomorrow Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .ruby .hljs-constant, 16 | .xml .hljs-tag .hljs-title, 17 | .xml .hljs-pi, 18 | .xml .hljs-doctype, 19 | .html .hljs-doctype, 20 | .css .hljs-id, 21 | .css .hljs-class, 22 | .css .hljs-pseudo { 23 | color: #f2777a; 24 | } 25 | 26 | /* Tomorrow Orange */ 27 | .hljs-number, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #f99157; 35 | } 36 | 37 | /* Tomorrow Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #ffcc66; 41 | } 42 | 43 | /* Tomorrow Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .hljs-name, 49 | .ruby .hljs-symbol, 50 | .xml .hljs-cdata { 51 | color: #99cc99; 52 | } 53 | 54 | /* Tomorrow Aqua */ 55 | .hljs-title, 56 | .css .hljs-hexcolor { 57 | color: #66cccc; 58 | } 59 | 60 | /* Tomorrow Blue */ 61 | .hljs-function, 62 | .python .hljs-decorator, 63 | .python .hljs-title, 64 | .ruby .hljs-function .hljs-title, 65 | .ruby .hljs-title .hljs-keyword, 66 | .perl .hljs-sub, 67 | .javascript .hljs-title, 68 | .coffeescript .hljs-title { 69 | color: #6699cc; 70 | } 71 | 72 | /* Tomorrow Purple */ 73 | .hljs-keyword, 74 | .javascript .hljs-function { 75 | color: #cc99cc; 76 | } 77 | 78 | .hljs { 79 | display: block; 80 | overflow-x: auto; 81 | background: #2d2d2d; 82 | color: #cccccc; 83 | padding: 0.5em; 84 | -webkit-text-size-adjust: none; 85 | } 86 | 87 | .coffeescript .javascript, 88 | .javascript .xml, 89 | .tex .hljs-formula, 90 | .xml .javascript, 91 | .xml .vbscript, 92 | .xml .css, 93 | .xml .hljs-cdata { 94 | opacity: 0.5; 95 | } 96 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/tomorrow-night.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | 6 | /* Tomorrow Comment */ 7 | .hljs-comment { 8 | color: #969896; 9 | } 10 | 11 | /* Tomorrow Red */ 12 | .hljs-variable, 13 | .hljs-attribute, 14 | .hljs-tag, 15 | .hljs-regexp, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #cc6666; 25 | } 26 | 27 | /* Tomorrow Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-pragma, 31 | .hljs-built_in, 32 | .hljs-literal, 33 | .hljs-params, 34 | .hljs-constant { 35 | color: #de935f; 36 | } 37 | 38 | /* Tomorrow Yellow */ 39 | .ruby .hljs-class .hljs-title, 40 | .css .hljs-rule .hljs-attribute { 41 | color: #f0c674; 42 | } 43 | 44 | /* Tomorrow Green */ 45 | .hljs-string, 46 | .hljs-value, 47 | .hljs-inheritance, 48 | .hljs-header, 49 | .hljs-name, 50 | .ruby .hljs-symbol, 51 | .xml .hljs-cdata { 52 | color: #b5bd68; 53 | } 54 | 55 | /* Tomorrow Aqua */ 56 | .hljs-title, 57 | .css .hljs-hexcolor { 58 | color: #8abeb7; 59 | } 60 | 61 | /* Tomorrow Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #81a2be; 71 | } 72 | 73 | /* Tomorrow Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #b294bb; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #1d1f21; 83 | color: #c5c8c6; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/tomorrow.css: -------------------------------------------------------------------------------- 1 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 2 | 3 | /* Tomorrow Comment */ 4 | .hljs-comment { 5 | color: #8e908c; 6 | } 7 | 8 | /* Tomorrow Red */ 9 | .hljs-variable, 10 | .hljs-attribute, 11 | .hljs-tag, 12 | .hljs-regexp, 13 | .ruby .hljs-constant, 14 | .xml .hljs-tag .hljs-title, 15 | .xml .hljs-pi, 16 | .xml .hljs-doctype, 17 | .html .hljs-doctype, 18 | .css .hljs-id, 19 | .css .hljs-class, 20 | .css .hljs-pseudo { 21 | color: #c82829; 22 | } 23 | 24 | /* Tomorrow Orange */ 25 | .hljs-number, 26 | .hljs-preprocessor, 27 | .hljs-pragma, 28 | .hljs-built_in, 29 | .hljs-literal, 30 | .hljs-params, 31 | .hljs-constant { 32 | color: #f5871f; 33 | } 34 | 35 | /* Tomorrow Yellow */ 36 | .ruby .hljs-class .hljs-title, 37 | .css .hljs-rule .hljs-attribute { 38 | color: #eab700; 39 | } 40 | 41 | /* Tomorrow Green */ 42 | .hljs-string, 43 | .hljs-value, 44 | .hljs-inheritance, 45 | .hljs-header, 46 | .hljs-name, 47 | .ruby .hljs-symbol, 48 | .xml .hljs-cdata { 49 | color: #718c00; 50 | } 51 | 52 | /* Tomorrow Aqua */ 53 | .hljs-title, 54 | .css .hljs-hexcolor { 55 | color: #3e999f; 56 | } 57 | 58 | /* Tomorrow Blue */ 59 | .hljs-function, 60 | .python .hljs-decorator, 61 | .python .hljs-title, 62 | .ruby .hljs-function .hljs-title, 63 | .ruby .hljs-title .hljs-keyword, 64 | .perl .hljs-sub, 65 | .javascript .hljs-title, 66 | .coffeescript .hljs-title { 67 | color: #4271ae; 68 | } 69 | 70 | /* Tomorrow Purple */ 71 | .hljs-keyword, 72 | .javascript .hljs-function { 73 | color: #8959a8; 74 | } 75 | 76 | .hljs { 77 | display: block; 78 | overflow-x: auto; 79 | background: white; 80 | color: #4d4d4c; 81 | padding: 0.5em; 82 | -webkit-text-size-adjust: none; 83 | } 84 | 85 | .coffeescript .javascript, 86 | .javascript .xml, 87 | .tex .hljs-formula, 88 | .xml .javascript, 89 | .xml .vbscript, 90 | .xml .css, 91 | .xml .hljs-cdata { 92 | opacity: 0.5; 93 | } 94 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/vs.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Visual Studio-like style based on original C# coloring by Jason Diamond 4 | 5 | */ 6 | .hljs { 7 | display: block; 8 | overflow-x: auto; 9 | padding: 0.5em; 10 | background: white; 11 | color: black; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs-comment, 16 | .hljs-annotation, 17 | .diff .hljs-header, 18 | .hljs-chunk, 19 | .apache .hljs-cbracket { 20 | color: #008000; 21 | } 22 | 23 | .hljs-keyword, 24 | .hljs-id, 25 | .hljs-built_in,.css 26 | .smalltalk .hljs-class, 27 | .hljs-winutils, 28 | .bash .hljs-variable, 29 | .tex .hljs-command, 30 | .hljs-request, 31 | .hljs-status, 32 | .nginx .hljs-title, 33 | .xml .hljs-tag, 34 | .xml .hljs-tag .hljs-value { 35 | color: #00f; 36 | } 37 | 38 | .hljs-string, 39 | .hljs-title, 40 | .hljs-parent, 41 | .hljs-tag .hljs-value, 42 | .hljs-rule .hljs-value, 43 | .ruby .hljs-symbol, 44 | .ruby .hljs-symbol .hljs-string, 45 | .hljs-template_tag, 46 | .django .hljs-variable, 47 | .hljs-addition, 48 | .hljs-flow, 49 | .hljs-stream, 50 | .apache .hljs-tag, 51 | .hljs-date, 52 | .tex .hljs-formula, 53 | .coffeescript .hljs-attribute, 54 | .hljs-name { 55 | color: #a31515; 56 | } 57 | 58 | .ruby .hljs-string, 59 | .hljs-decorator, 60 | .hljs-filter .hljs-argument, 61 | .hljs-localvars, 62 | .hljs-array, 63 | .hljs-attr_selector, 64 | .hljs-pseudo, 65 | .hljs-pi, 66 | .hljs-doctype, 67 | .hljs-deletion, 68 | .hljs-envvar, 69 | .hljs-shebang, 70 | .hljs-preprocessor, 71 | .hljs-pragma, 72 | .userType, 73 | .apache .hljs-sqbracket, 74 | .nginx .hljs-built_in, 75 | .tex .hljs-special, 76 | .hljs-prompt { 77 | color: #2b91af; 78 | } 79 | 80 | .hljs-phpdoc, 81 | .hljs-dartdoc, 82 | .hljs-javadoc, 83 | .hljs-xmlDocTag { 84 | color: #808080; 85 | } 86 | 87 | .hljs-type, 88 | .hljs-typename { font-weight: bold; } 89 | 90 | .vhdl .hljs-string { color: #666666; } 91 | .vhdl .hljs-literal { color: #a31515; } 92 | .vhdl .hljs-attribute { color: #00b0e8; } 93 | 94 | .xml .hljs-attribute { color: #f00; } 95 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/xcode.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | XCode style (c) Angel Garcia 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #fff; 12 | color: black; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc { 18 | color: #006a00; 19 | } 20 | 21 | .hljs-keyword, 22 | .hljs-literal, 23 | .nginx .hljs-title { 24 | color: #aa0d91; 25 | } 26 | .method, 27 | .hljs-list .hljs-title, 28 | .hljs-tag .hljs-title, 29 | .setting .hljs-value, 30 | .hljs-winutils, 31 | .tex .hljs-command, 32 | .http .hljs-title, 33 | .hljs-request, 34 | .hljs-status, 35 | .hljs-name { 36 | color: #008; 37 | } 38 | 39 | .hljs-envvar, 40 | .tex .hljs-special { 41 | color: #660; 42 | } 43 | 44 | .hljs-string { 45 | color: #c41a16; 46 | } 47 | .hljs-tag .hljs-value, 48 | .hljs-cdata, 49 | .hljs-filter .hljs-argument, 50 | .hljs-attr_selector, 51 | .apache .hljs-cbracket, 52 | .hljs-date, 53 | .hljs-regexp { 54 | color: #080; 55 | } 56 | 57 | .hljs-sub .hljs-identifier, 58 | .hljs-pi, 59 | .hljs-tag, 60 | .hljs-tag .hljs-keyword, 61 | .hljs-decorator, 62 | .ini .hljs-title, 63 | .hljs-shebang, 64 | .hljs-prompt, 65 | .hljs-hexcolor, 66 | .hljs-rule .hljs-value, 67 | .hljs-symbol, 68 | .hljs-symbol .hljs-string, 69 | .hljs-number, 70 | .css .hljs-function, 71 | .hljs-function .hljs-title, 72 | .coffeescript .hljs-attribute { 73 | color: #1c00cf; 74 | } 75 | 76 | .hljs-class .hljs-title, 77 | .smalltalk .hljs-class, 78 | .hljs-javadoctag, 79 | .hljs-yardoctag, 80 | .hljs-phpdoc, 81 | .hljs-dartdoc, 82 | .hljs-type, 83 | .hljs-typename, 84 | .hljs-tag .hljs-attribute, 85 | .hljs-doctype, 86 | .hljs-class .hljs-id, 87 | .hljs-built_in, 88 | .setting, 89 | .hljs-params, 90 | .clojure .hljs-attribute { 91 | color: #5c2699; 92 | } 93 | 94 | .hljs-variable { 95 | color: #3f6e74; 96 | } 97 | .css .hljs-tag, 98 | .hljs-rule .hljs-property, 99 | .hljs-pseudo, 100 | .hljs-subst { 101 | color: #000; 102 | } 103 | 104 | .css .hljs-class, 105 | .css .hljs-id { 106 | color: #9b703f; 107 | } 108 | 109 | .hljs-value .hljs-important { 110 | color: #ff7700; 111 | font-weight: bold; 112 | } 113 | 114 | .hljs-rule .hljs-keyword { 115 | color: #c5af75; 116 | } 117 | 118 | .hljs-annotation, 119 | .apache .hljs-sqbracket, 120 | .nginx .hljs-built_in { 121 | color: #9b859d; 122 | } 123 | 124 | .hljs-preprocessor, 125 | .hljs-preprocessor *, 126 | .hljs-pragma { 127 | color: #643820; 128 | } 129 | 130 | .tex .hljs-formula { 131 | background-color: #eee; 132 | font-style: italic; 133 | } 134 | 135 | .diff .hljs-header, 136 | .hljs-chunk { 137 | color: #808080; 138 | font-weight: bold; 139 | } 140 | 141 | .diff .hljs-change { 142 | background-color: #bccff9; 143 | } 144 | 145 | .hljs-addition { 146 | background-color: #baeeba; 147 | } 148 | 149 | .hljs-deletion { 150 | background-color: #ffc8bd; 151 | } 152 | 153 | .hljs-comment .hljs-yardoctag { 154 | font-weight: bold; 155 | } 156 | 157 | .method .hljs-id { 158 | color: #000; 159 | } 160 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/highlight/styles/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs-keyword, 18 | .hljs-tag, 19 | .css .hljs-class, 20 | .css .hljs-id, 21 | .lisp .hljs-title, 22 | .nginx .hljs-title, 23 | .hljs-request, 24 | .hljs-status, 25 | .clojure .hljs-attribute { 26 | color: #e3ceab; 27 | } 28 | 29 | .django .hljs-template_tag, 30 | .django .hljs-variable, 31 | .django .hljs-filter .hljs-argument { 32 | color: #dcdcdc; 33 | } 34 | 35 | .hljs-number, 36 | .hljs-date { 37 | color: #8cd0d3; 38 | } 39 | 40 | .dos .hljs-envvar, 41 | .dos .hljs-stream, 42 | .hljs-variable, 43 | .apache .hljs-sqbracket, 44 | .hljs-name { 45 | color: #efdcbc; 46 | } 47 | 48 | .dos .hljs-flow, 49 | .diff .hljs-change, 50 | .python .exception, 51 | .python .hljs-built_in, 52 | .hljs-literal, 53 | .tex .hljs-special { 54 | color: #efefaf; 55 | } 56 | 57 | .diff .hljs-chunk, 58 | .hljs-subst { 59 | color: #8f8f8f; 60 | } 61 | 62 | .dos .hljs-keyword, 63 | .hljs-decorator, 64 | .hljs-title, 65 | .hljs-type, 66 | .diff .hljs-header, 67 | .ruby .hljs-class .hljs-parent, 68 | .apache .hljs-tag, 69 | .nginx .hljs-built_in, 70 | .tex .hljs-command, 71 | .hljs-prompt { 72 | color: #efef8f; 73 | } 74 | 75 | .dos .hljs-winutils, 76 | .ruby .hljs-symbol, 77 | .ruby .hljs-symbol .hljs-string, 78 | .ruby .hljs-string { 79 | color: #dca3a3; 80 | } 81 | 82 | .diff .hljs-deletion, 83 | .hljs-string, 84 | .hljs-tag .hljs-value, 85 | .hljs-preprocessor, 86 | .hljs-pragma, 87 | .hljs-built_in, 88 | .hljs-javadoc, 89 | .smalltalk .hljs-class, 90 | .smalltalk .hljs-localvars, 91 | .smalltalk .hljs-array, 92 | .css .hljs-rule .hljs-value, 93 | .hljs-attr_selector, 94 | .hljs-pseudo, 95 | .apache .hljs-cbracket, 96 | .tex .hljs-formula, 97 | .coffeescript .hljs-attribute { 98 | color: #cc9393; 99 | } 100 | 101 | .hljs-shebang, 102 | .diff .hljs-addition, 103 | .hljs-comment, 104 | .hljs-annotation, 105 | .hljs-pi, 106 | .hljs-doctype { 107 | color: #7f9f7f; 108 | } 109 | 110 | .coffeescript .javascript, 111 | .javascript .xml, 112 | .tex .hljs-formula, 113 | .xml .javascript, 114 | .xml .vbscript, 115 | .xml .css, 116 | .xml .hljs-cdata { 117 | opacity: 0.5; 118 | } 119 | 120 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/vendor.css: -------------------------------------------------------------------------------- 1 | /* 2 | *= require foundation/css/foundation 3 | *= require foundation/css/normalize 4 | *= require highlight/styles/default.css 5 | */ 6 | --------------------------------------------------------------------------------