From 2f34c7ea168ae943f617c3773fe2e6079e9ec814 Mon Sep 17 00:00:00 2001 From: Dave Wu Date: Mon, 1 Sep 2014 00:53:43 +0800 Subject: [PATCH 1/2] Create gh-pages branch via GitHub --- images/code.png | Bin 0 -> 285 bytes images/pattern.png | Bin 0 -> 6070 bytes images/tar.png | Bin 0 -> 339 bytes images/top.png | Bin 0 -> 218 bytes images/zip.png | Bin 0 -> 337 bytes index.html | 69 +++ javascripts/script.js | 52 ++ params.json | 1 + stylesheets/pygment_trac.css | 69 +++ stylesheets/stylesheet.css | 966 +++++++++++++++++++++++++++++++++++ 10 files changed, 1157 insertions(+) create mode 100644 images/code.png create mode 100644 images/pattern.png create mode 100644 images/tar.png create mode 100644 images/top.png create mode 100644 images/zip.png create mode 100644 index.html create mode 100644 javascripts/script.js create mode 100644 params.json create mode 100644 stylesheets/pygment_trac.css create mode 100644 stylesheets/stylesheet.css diff --git a/images/code.png b/images/code.png new file mode 100644 index 0000000000000000000000000000000000000000..b414519861afcc3b11ab01d41f361e97a98c550b GIT binary patch literal 285 zcmV+&0pk9NP)8&L&h4+!ukE3=S4WG~P?FL>fm+^g3cOdsCs000+#Nkl^>KjjCuhG7=*)!0=iF^All*v$!~<*Q3h-4kT`Ei-2O=35p261lFS;ynx(cOwa}QE zC{0w-iDc%FKW1rVjU<^*XCKh4Nl`%-TDF^@eL^3t_J3!Ww)AthHgC+=9YG*LRD~)a zocYK>qJVh~cvl5kU9x*QdJ7@Ih|Oe%-zoedQRP%^uDnFkE)7Xz6A!a+xY4_#2BJ08poVvnTMS>Lzi&O#eguX2Cnw|YK+ zL;>R#kW9FoSxxnVRGMCy1d#c{*@20pksg6xi4aZrq4fmmi?A4ef1Pkf48?3XiDwp?lG}ZwlgLf2DNPha9>MKJw zSQ~&1C`fxgyd4eA1QtJW{UB_8VUpVSuevhLzRqiZ#sc=8724P7NWgFDoL$Ms+UH5A zQ^ZT&*gtdIw%FZ|NRWx{pBeMXc^KDWc<$o-X_{8Hqx;|O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b6;Xdt3Io6xQ4ld=Xq^LD@|akM-`-W0Jo zgdgZ2`LdTuX08Choy4@7U!i4}+>=6B*;)jxwLPtKT-=$36yrc_h#=M@v^5*jdnW7j zy0C%81cqa*d&@x-XAF9M8O-bSqpT-I5+jAc8r&nZzob2zeimh}%cnuG%XemgnbX_m zMl3O5rk0OH4}&@3@$HSO5*5hnfs+!7C zT7Tm=$@uK04+%mI2FK}|n+;ylYSN10`eG~v3?#TGRMzqVO_waynwc$`#aM~UJn!uI z`~v;!hq>q9fMXG(k zBK{mgrS2j$Y+bY-7R>e8i`Qa(U$pfW)-$a7$u=Hu4DGI`_LfbL%w+hHwVH~+6#$|3 zsFyD@<=r;=_hOc!q|Fkt z(%Y#)K#aXHzezghJDW}Ng%~$7HP3lr7XA(@W%_Y`o-1(0jnguq*M6n2IQ`e`(dN|; w8w~rT!psS5X!pZPnF9i6GOYTmp_H!w2SMbvvOdwE1VBl-#@=#ip2XcpyX~(7srr_xYBdpd50Z%ST3qbW|=JR5B|PC z$KgPc%1yn7)!P$R7p*qi`!(2VMZ(`Rev?g-<##aKa`%M)Kl9{X$k~5q&gJZS9-dd0 zd+1DE{2QGze(ORHuInqU&->iBJRGSMv~~Yh#rXE$7B^OM*sdtrz;OAXvRIw+lP_EE zvFI?edrz387PdAg>&ujz2hXQ+UShs}t}gPPfhS|>>Yg2i-+ejRS`_r>u*DW_n7bz2 nKkm!gq{qSfe)r$(ZT`>D-ooP)x}a|k&>IY%u6{1-oD!M&R?1Ie4mazR-jf4r-UZ*WBrpTXEv^r$+7nyFW_pIMlebAS)-MFu830A$Ereu{zhg SpVk8%%i!ti=d#Wzp$Pzml2(EM literal 0 HcmV?d00001 diff --git a/images/zip.png b/images/zip.png new file mode 100644 index 0000000000000000000000000000000000000000..6499b004cddc11f9e4fc273cc2608e712010aaa0 GIT binary patch literal 337 zcmeAS@N?(olHy`uVBq!ia0vp^azHG~!3-qRG}i?KDdPa25LY1mpG2^I>Z2y0Hi42L zzhH*_4GsqH=dbS%I4_V;a9=@fJ--1^Zm*|{V@O5Z)C=x?#}ouwF7h2oi1}{+_JV}r zwl`=0uZ^nWc9}S}^4SaPV>&gfnWanS1fwO^bm z+`P#CO8?=<$DFp?OzEgkUM@CqTh8m$m40{alido}DsV7-N}H(IsS>|G&4KArTG2l# z+p}l6gi=2|S}Nwu&OBA<(xbI(#TLt6eZT#f#W-HamA~ZW1JkVFh{?(U=NJww&#Jk! oo5_7Mv%G6VnD0H=IeLGXLu$EazufcZCD0=bp00i_>zopr0MtyQ!~g&Q literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..35dfdcd --- /dev/null +++ b/index.html @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + Elixir编程 + + + + + + + + +
+
+

Elixir编程

+
+
+

Elixir语言及函数式编程

+
+ +
+

+Elixir编程

+ +

翻译互联网上诸多Elixir资源,以期能够促进自己和他人学习Elixir编程。 +主要资料来源于Elixir网站。 +如果涉及知产问题,请联系我
logo

+ +

1-简介
2-基本类型

+
+
+
+ +
+ + + + + diff --git a/javascripts/script.js b/javascripts/script.js new file mode 100644 index 0000000..2f08550 --- /dev/null +++ b/javascripts/script.js @@ -0,0 +1,52 @@ +(function($) { +$(document).ready(function(){ + + // putting lines by the pre blocks + $("pre").each(function(){ + var pre = $(this).text().split("\n"); + var lines = new Array(pre.length+1); + for(var i = 0; i < pre.length; i++) { + var wrap = Math.floor(pre[i].split("").length / 70) + if (pre[i]==""&&i==pre.length-1) { + lines.splice(i, 1); + } else { + lines[i] = i+1; + for(var j = 0; j < wrap; j++) { + lines[i] += "\n"; + } + } + } + $(this).before("
" + lines.join("\n") + "
"); + }); + + var headings = []; + + var collectHeaders = function(){ + headings.push({"top":$(this).offset().top - 15,"text":$(this).text()}); + } + + if($(".markdown-body h1").length > 1) $(".markdown-body h1").each(collectHeaders) + else if($(".markdown-body h2").length > 1) $(".markdown-body h2").each(collectHeaders) + else if($(".markdown-body h3").length > 1) $(".markdown-body h3").each(collectHeaders) + + $(window).scroll(function(){ + if(headings.length==0) return true; + var scrolltop = $(window).scrollTop() || 0; + if(headings[0] && scrolltop < headings[0].top) { + $(".current-section").css({"opacity":0,"visibility":"hidden"}); + return false; + } + $(".current-section").css({"opacity":1,"visibility":"visible"}); + for(var i in headings) { + if(scrolltop >= headings[i].top) { + $(".current-section .name").text(headings[i].text); + } + } + }); + + $(".current-section a").click(function(){ + $(window).scrollTop(0); + return false; + }) +}); +})(jQuery) \ No newline at end of file diff --git a/params.json b/params.json new file mode 100644 index 0000000..89911ee --- /dev/null +++ b/params.json @@ -0,0 +1 @@ +{"name":"Elixir编程","tagline":"Elixir语言及函数式编程","body":"Elixir编程\r\n==========\r\n翻译互联网上诸多Elixir资源,以期能够促进自己和他人学习Elixir编程。\r\n主要资料来源于[Elixir网站](http://elixir-lang.com)。\r\n如果涉及知产问题,请[联系我](mailto:eyaswoo@163.com)。
\r\n![logo](http://elixir-lang.org/images/logo/logo.png)\r\n\r\n[1-简介](../master/1-intro.md)
\r\n[2-基本类型](../master/2-basic-types.md)
\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file diff --git a/stylesheets/pygment_trac.css b/stylesheets/pygment_trac.css new file mode 100644 index 0000000..c6a6452 --- /dev/null +++ b/stylesheets/pygment_trac.css @@ -0,0 +1,69 @@ +.highlight { background: #ffffff; } +.highlight .c { color: #999988; font-style: italic } /* Comment */ +.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.highlight .k { font-weight: bold } /* Keyword */ +.highlight .o { font-weight: bold } /* Operator */ +.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ +.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #aa0000 } /* Generic.Error */ +.highlight .gh { color: #999999 } /* Generic.Heading */ +.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #555555 } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ +.highlight .gt { color: #aa0000 } /* Generic.Traceback */ +.highlight .kc { font-weight: bold } /* Keyword.Constant */ +.highlight .kd { font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #009999 } /* Literal.Number */ +.highlight .s { color: #d14 } /* Literal.String */ +.highlight .na { color: #008080 } /* Name.Attribute */ +.highlight .nb { color: #0086B3 } /* Name.Builtin */ +.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ +.highlight .no { color: #008080 } /* Name.Constant */ +.highlight .ni { color: #800080 } /* Name.Entity */ +.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ +.highlight .nn { color: #555555 } /* Name.Namespace */ +.highlight .nt { color: #000080 } /* Name.Tag */ +.highlight .nv { color: #008080 } /* Name.Variable */ +.highlight .ow { font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mf { color: #009999 } /* Literal.Number.Float */ +.highlight .mh { color: #009999 } /* Literal.Number.Hex */ +.highlight .mi { color: #009999 } /* Literal.Number.Integer */ +.highlight .mo { color: #009999 } /* Literal.Number.Oct */ +.highlight .sb { color: #d14 } /* Literal.String.Backtick */ +.highlight .sc { color: #d14 } /* Literal.String.Char */ +.highlight .sd { color: #d14 } /* Literal.String.Doc */ +.highlight .s2 { color: #d14 } /* Literal.String.Double */ +.highlight .se { color: #d14 } /* Literal.String.Escape */ +.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ +.highlight .si { color: #d14 } /* Literal.String.Interpol */ +.highlight .sx { color: #d14 } /* Literal.String.Other */ +.highlight .sr { color: #009926 } /* Literal.String.Regex */ +.highlight .s1 { color: #d14 } /* Literal.String.Single */ +.highlight .ss { color: #990073 } /* Literal.String.Symbol */ +.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #008080 } /* Name.Variable.Class */ +.highlight .vg { color: #008080 } /* Name.Variable.Global */ +.highlight .vi { color: #008080 } /* Name.Variable.Instance */ +.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ + +.type-csharp .highlight .k { color: #0000FF } +.type-csharp .highlight .kt { color: #0000FF } +.type-csharp .highlight .nf { color: #000000; font-weight: normal } +.type-csharp .highlight .nc { color: #2B91AF } +.type-csharp .highlight .nn { color: #000000 } +.type-csharp .highlight .s { color: #A31515 } +.type-csharp .highlight .sc { color: #A31515 } diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css new file mode 100644 index 0000000..abf2d27 --- /dev/null +++ b/stylesheets/stylesheet.css @@ -0,0 +1,966 @@ +/*! normalize.css v3.0.0 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} + + +/* Style */ + +body { + font-size: 15px; + font-family: Arial, Arial, Helvetica, sans-serif; + line-height: 1.5; + background: #D1D1D1; +} + +a { + color: #63a52a; + text-decoration: none; + transition: opacity ease-in-out 0.3s; + -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ +} + +a:hover { + text-decoration: underline; + color: #90D355; +} + +h1.title { + margin: 30px 20px 10px; + font-size: 60px; + font-weight: bold; + font-style: italic; + font-family:Georgia, serif; + text-align: center; +} + +.wrapper { + width: 675px; + margin: 0 auto; +} + +#container { + border: 1px solid #2a2a2a; + background: #ddd url(../images/pattern.png); + box-shadow: 0 0 5px #b1b1b1; +} + +p.tagline { + padding: 20px 20px 0; + color: #fff; + font-size: 17px; +} + +#main { + margin-top: 20px; + padding: 0 20px 90px; + background-color: #fff; +} + +.download-bar { + background: #222; + border: 5px solid #444; + padding: 10px; + margin: 0 -35px 20px; + position: relative; +} + +.download-bar .inner { + overflow: hidden; +} + +.download-bar .watch-fork iframe { + display: block; + float: left; + border-right: 1px solid #ddd; + padding-right: 5px; +} +.download-bar .watch-fork iframe.last { + border-right: 0 none; + padding-right: 0; + padding-left: 5px; + border-left: 1px solid #fff; +} +.download-bar .watch-fork { + overflow: hidden; + float: right; + background-color: #eee; + padding: 5px; + border-radius: 3px; +} + +.download-bar .blc { + border: 10px solid black; + border-color: transparent transparent black; + width: 0; + height: 0; + display: block; + position: absolute; + bottom: -15px; + left: 0; + transform: rotate(45deg); + -ms-transform: rotate(45deg); /* IE9 */ + -webkit-transform: rotate(45deg); /* 2014 current */ +} + +.download-bar .trc { + border: 10px solid black; + border-color: black transparent transparent; + width: 0; + height: 0; + display: block; + position: absolute; + top: -15px; + right: 0; + transform: rotate(45deg); + -ms-transform: rotate(45deg); /* IE9 */ + -webkit-transform: rotate(45deg); /* 2014 current */ +} + +.download-bar .avatar { + border: 1px solid black; + display: block; + padding: 4px; + float: left; +} + +.download-bar .avatar img { + display: block; +} + +.download-bar a.code { + background: transparent url(../images/code.png) no-repeat 0 2px; + padding-left: 35px; + margin-top: 8px; + display: block; + float: left; + text-indent: 0; + width: auto; + height: auto; + opacity: 1; + filter:alpha(opacity=100); /* IE 5-7 */ +} + +.current-section { + position: fixed; + top: 0; + left: 50%; + width: 693px; + margin-left: -352px; + background: #222; + border: 5px solid #444; + color: #fff; + opacity: 0; + visibility: hidden; + transition: opacity ease-in-out 0.3s; + -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ +} + +.current-section p { + padding: 5px 27px; + font-size: 24px; + font-weight: bold; +} + +.current-section a { + float: right; + text-indent: -10000px; + background: transparent url(../images/top.png) no-repeat 0 0; + width: 20px; + height: 20px; + opacity: 0.8; + margin-right: 12px; + margin-top: 12px; + opacity: 0.8; + filter:alpha(opacity=80); /* IE 5-7 */ + transition: opacity ease-in-out 0.3s; + -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ +} + +.current-section a:hover { + opacity: 1; + filter:alpha(opacity=100); /* IE 5-7 */ +} + +.current-section a.zip { + margin-right: 8px; +} + +a.zip, +a.zip span { + background: transparent url(../images/zip.png) no-repeat 0 0; + width: 30px; + height: 21px; + display: inline-block; + text-indent: -10000px; + opacity: 0.8; + filter:alpha(opacity=80); /* IE 5-7 */ + transition: opacity ease-in-out 0.3s; + -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ +} + +a.tar, +a.tar span { + background: transparent url(../images/tar.png) no-repeat 0 0; + width: 30px; + height: 21px; + display: inline-block; + text-indent: -10000px; + opacity: 0.8; + filter:alpha(opacity=80); /* IE 5-7 */ + transition: opacity ease-in-out 0.3s; + -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ +} + +a.code { + background: transparent url(../images/code.png) no-repeat 0 2px; + width: 30px; + height: 21px; + display: block; + display: inline-block; + text-indent: -10000px; + opacity: 0.8; + filter:alpha(opacity=80); /* IE 5-7 */ + transition: opacity ease-in-out 0.3s; + -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ +} + +a.zip:hover, +a.tar:hover, +a.code:hover { + opacity: 1; + filter:alpha(opacity=100); +} + +a.download-button { + border: 1px solid black; + border-radius: 3px; + display: inline-block; + text-indent: 0!important; + width: auto; + float: right; + background: #999; /* for non-css3 browsers */ + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#37ADD4', endColorstr='#1B657E'); /* IE <= 9 */ + background: -webkit-gradient(linear, left top, left bottom, from(#37ADD4), to(#1B657E)); /* ancient webkit browsers */ + background: -webkit-linear-gradient(top, #37ADD4, #1B657E); /* Safari <=6.1, Android <= 4.3 */ + background: linear-gradient(to bottom, #37ADD4, #1B657E); + height: auto; + margin-left: 10px; +} + +a.download-button span { + background-position: 10px 5px; + width: auto; + height: auto; + padding: 5px 10px; + padding-left: 45px; + display: inline-block; + text-indent: 0!important; + color: #fff; +} + +footer { + margin-bottom: 60px; + padding-bottom: 60px; +} + +footer .owner { + background: #222; + border: 5px solid #444; + padding: 5px 15px; + margin: -67px -10px 35px; + color: #d6d6d6; +} + +footer .creds small { + float: right; + font-size: 10px; + text-align: right; + margin-left: 15px; +} + +footer .owner .avatar { + background-color: #666; + display: block; + margin: -19px 10px 0 0; + width: 60px; + float: left; +} + +footer .owner img { + display: block; + border: 1px solid #2a2a2a; + margin: 5px; +} + +footer .owner p { + font-family:Georgia, serif; +} + +footer .owner p a { + font-size: 16px; + font-style: italic; +} + +/* Markdown */ +.markdown-body h1, +.markdown-body h2, +.markdown-body h3, +.markdown-body h4, +.markdown-body h5, +.markdown-body h6, +.markdown-body p, +.markdown-body pre, +.markdown-body ul, +.markdown-body ol, +.markdown-body dl, +.markdown-body table, +.markdown-body blockquote { + margin-bottom: 20px; +} + +.markdown-body h1, +.markdown-body h2, +.markdown-body h3, +.markdown-body h4, +.markdown-body h5, +.markdown-body h6 { + font-weight: bold; +} + +.markdown-body h1 { + font-size: 28px; +} + +.markdown-body h2 { + font-size: 24px; + color: #557398; +} + +.markdown-body h3 { + font-size: 20px; +} + +.markdown-body h4 { + font-size: 18px; +} + +.markdown-body h5 { + font-size: 16px; +} + +.markdown-body pre { + padding: 10px 70px 10px 0; + margin-left: -20px; + margin-right: -20px; + font-family: 'Monaco', 'Lucida Console', monospace; + font-size: 13px; + line-height: 20px; + box-shadow: inset 0 0 5px #000; + word-wrap: break-word; + background-color:#3b3b3b; + color: #d6d6d6; +} + +.markdown-body pre.lines { + font-size: 12px; + margin:0 10px 0 -20px; + padding: 10px; + float: left; + display: block; + text-align: right; + box-shadow: none; + background-color:#2a2a2a; + color: #d6d6d6; +} + +.markdown-body ul, +.markdown-body ol { + padding-left: 30px; +} + +.markdown-body ul { + list-style-type: disc; +} + +.markdown-body ol { + list-style-type: decimal; +} + +.markdown-body li, +.markdown-body li p, +.markdown-body dd, +.markdown-body dd p { + margin-bottom: 10px; +} + +.markdown-body li pre, +.markdown-body li pre.lines, +.markdown-body dd pre, +.markdown-body dd pre.lines { + margin-left: -35px; +} + +.markdown-body dt { + font-weight: bold; + font-style: italic; +} + +.markdown-body dd { + margin-left: 15px; +} + +.markdown-body table { + width: 673px; + margin-left: -20px; + margin-right: -20px; +} + +.markdown-body tbody { + border-top: 2px solid #557398; + border-bottom: 2px solid #557398; + background-color: #EBEFF4; +} + +.markdown-body table td * { + margin: 0; +} + +.markdown-body td { + border-right: 1px solid #557398; + border-bottom: 1px solid #557398; + padding: 5px; +} + +.markdown-body td:first-child, +.markdown-body th:first-child { + width: 30%; + padding-left: 20px; +} + +.markdown-body td:last-child { + border-right: 0 none; +} + +.markdown-body th { + font-size: 18px; + font-weight: bold; + text-align: left; + padding: 5px; +} + +.markdown-body tt { + background-color:#3b3b3b; + color: #d6d6d6; + padding: 2px 3px; +} + +.markdown-body blockquote { + font-style: italic; + font-family:Georgia, serif; + font-size: 17px; + border-top: 3px solid #333; + border-bottom: 3px solid #333; + padding: 10px 20px; + padding-left: 50px; +} + +.markdown-body blockquote:before { + font-style: italic; + font-family: Georgia, serif; + font-size: 90px; + height: 90px; + margin-left: -60px; + margin-top: -25px; + content: "‟"; + display: block; + float: left; +} + +.markdown-body img { + max-width: 100%; + box-sizing: border-box; +} + +.highlight { background: #ffffff; } +.highlight .c { color: #999988; font-style: italic } /* Comment */ +.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.highlight .k { font-weight: bold } /* Keyword */ +.highlight .o { font-weight: bold } /* Operator */ +.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ +.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #aa0000 } /* Generic.Error */ +.highlight .gh { color: #999999 } /* Generic.Heading */ +.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #555555 } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ +.highlight .gt { color: #aa0000 } /* Generic.Traceback */ +.highlight .kc { font-weight: bold } /* Keyword.Constant */ +.highlight .kd { font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #009999 } /* Literal.Number */ +.highlight .s { color: #d14 } /* Literal.String */ +.highlight .na { color: #008080 } /* Name.Attribute */ +.highlight .nb { color: #0086B3 } /* Name.Builtin */ +.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ +.highlight .no { color: #008080 } /* Name.Constant */ +.highlight .ni { color: #800080 } /* Name.Entity */ +.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ +.highlight .nn { color: #555555 } /* Name.Namespace */ +.highlight .nt { color: #000080 } /* Name.Tag */ +.highlight .nv { color: #008080 } /* Name.Variable */ +.highlight .ow { font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mf { color: #009999 } /* Literal.Number.Float */ +.highlight .mh { color: #009999 } /* Literal.Number.Hex */ +.highlight .mi { color: #009999 } /* Literal.Number.Integer */ +.highlight .mo { color: #009999 } /* Literal.Number.Oct */ +.highlight .sb { color: #d14 } /* Literal.String.Backtick */ +.highlight .sc { color: #d14 } /* Literal.String.Char */ +.highlight .sd { color: #d14 } /* Literal.String.Doc */ +.highlight .s2 { color: #d14 } /* Literal.String.Double */ +.highlight .se { color: #d14 } /* Literal.String.Escape */ +.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ +.highlight .si { color: #d14 } /* Literal.String.Interpol */ +.highlight .sx { color: #d14 } /* Literal.String.Other */ +.highlight .sr { color: #009926 } /* Literal.String.Regex */ +.highlight .s1 { color: #d14 } /* Literal.String.Single */ +.highlight .ss { color: #990073 } /* Literal.String.Symbol */ +.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #008080 } /* Name.Variable.Class */ +.highlight .vg { color: #008080 } /* Name.Variable.Global */ +.highlight .vi { color: #008080 } /* Name.Variable.Instance */ +.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ \ No newline at end of file From eccbf9a8edc20db742127d57fe48cf875c67fd99 Mon Sep 17 00:00:00 2001 From: Dave Wu Date: Fri, 20 Nov 2015 10:02:49 +0800 Subject: [PATCH 2/2] Create gh-pages branch via GitHub --- index.html | 127 ++++++++------ javascripts/scale.fix.js | 17 ++ params.json | 2 +- stylesheets/github-light.css | 116 +++++++++++++ stylesheets/styles.css | 324 +++++++++++++++++++++++++++++++++++ 5 files changed, 528 insertions(+), 58 deletions(-) create mode 100644 javascripts/scale.fix.js create mode 100644 stylesheets/github-light.css create mode 100644 stylesheets/styles.css diff --git a/index.html b/index.html index 35dfdcd..380f4b7 100644 --- a/index.html +++ b/index.html @@ -1,69 +1,82 @@ - - - - - + + + + Elixir编程 by straightdave - - - - + + + + + + +
+
+

Elixir编程

+

Elixir语言入门

- Elixir编程 - +

View the Project on GitHub straightdave/programming_elixir

- - + +
+
+

+Elixir编程入门

- +

Elixir,[ɪ'lɪksər],意为灵丹妙药、圣水,logo是一枚紫色水滴:
+logo +
+Elixir是一门建立在Erlang虚拟机上的函数式语言,支持元编程,创始人Valim是ruby界的知名人士。私以为,可以把Elixir看作函数式的ruby语言,或者语法改良的Erlang。Elixir受瞩目的原因,是因为它结合了Erlang作为系统编程语言的各种优秀特点,以及类似ruby的语法(Erlang语法比较晦涩)。 +

-
-
-

Elixir编程

-
-
-

Elixir语言及函数式编程

-
- -
-

-Elixir编程

+

Elixir还是一门初出茅庐的语言:
+2014年8月31日,1.0.0发布
+2014年9月1日临晨,1.0.0rc1发布
+2014年9月7日晚,1.0.0rc2发布
+2014年9月10日,1.0.0正式发布
+2015年9月28日,1.1发布

-

翻译互联网上诸多Elixir资源,以期能够促进自己和他人学习Elixir编程。 -主要资料来源于Elixir网站。 -如果涉及知产问题,请联系我
logo

- -

1-简介
2-基本类型

-
-
-
- -
- - - - +

1-简介
+2-基本数据类型
+3-基本运算符
+4-模式匹配
+5-流程控制
+6-二进制-字符串-字符列表
+7-键值-图-字典
+8-模块
+9-递归
+10-枚举类型和流
+11-进程
+12-IO
+13-别名和程序导入
+14-模块属性
+15-结构体
+16-协议
+17-异常处理
+18-列表速构
+19-魔法印
+20-下一步

+
+ +
+ + + diff --git a/javascripts/scale.fix.js b/javascripts/scale.fix.js new file mode 100644 index 0000000..87a40ca --- /dev/null +++ b/javascripts/scale.fix.js @@ -0,0 +1,17 @@ +var metas = document.getElementsByTagName('meta'); +var i; +if (navigator.userAgent.match(/iPhone/i)) { + for (i=0; i\r\n![logo](http://elixir-lang.org/images/logo/logo.png)\r\n\r\n[1-简介](../master/1-intro.md)
\r\n[2-基本类型](../master/2-basic-types.md)
\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file +{"name":"Elixir编程","tagline":"Elixir语言入门","body":"Elixir编程入门\r\n=============\r\n\r\nElixir,[ɪ'lɪksər],意为灵丹妙药、圣水,logo是一枚紫色水滴:
\r\n![logo](http://elixir-lang.org/images/logo/logo.png)\r\n
\r\nElixir是一门建立在Erlang虚拟机上的[**函数式语言**](http://baike.baidu.com/view/3476448.htm?fr=aladdin),支持元编程,创始人Valim是ruby界的知名人士。私以为,可以把Elixir看作函数式的ruby语言,或者语法改良的Erlang。Elixir受瞩目的原因,是因为它结合了Erlang作为系统编程语言的各种优秀特点,以及类似ruby的语法(Erlang语法比较晦涩)。\r\n
\r\n\r\nElixir还是一门初出茅庐的语言:
\r\n2014年8月31日,1.0.0发布
\r\n2014年9月1日临晨,1.0.0rc1发布
\r\n2014年9月7日晚,1.0.0rc2发布
\r\n2014年9月10日,1.0.0正式发布
\r\n2015年9月28日,[1.1发布](http://elixir-lang.org/blog/2015/09/28/elixir-v1-1-0-released/)\r\n\r\n翻译互联网上诸多Elixir资源,以期能够促进自己和大家学习和推广Elixir编程 \r\n主要资料来源于[Elixir网站](http://elixir-lang.com) \r\n如有问题,请[联系我](mailto:eyaswoo@163.com)
\r\n\r\n**基本教程**\r\n\r\n[1-简介](../master/1-intro.md)
\r\n[2-基本数据类型](../master/2-basic-types.md)
\r\n[3-基本运算符](../master/3-basic-ops.md)
\r\n[4-模式匹配](../master/4-pattern-matching.md)
\r\n[5-流程控制](../master/5-case-cond-if.md)
\r\n[6-二进制-字符串-字符列表](../master/6-bin-str-charlist.md)
\r\n[7-键值-图-字典](../master/7-keywords-map-dict.md)
\r\n[8-模块](../master/8-modules.md)
\r\n[9-递归](../master/9-recursion.md)
\r\n[10-枚举类型和流](../master/10-enum-stream.md)
\r\n[11-进程](../master/11-process.md)
\r\n[12-IO](../master/12-io.md)
\r\n[13-别名和程序导入](../master/13-alias-req-imp.md)
\r\n[14-模块属性](../master/14-mod-attr.md)
\r\n[15-结构体](../master/15-structs.md)
\r\n[16-协议](../master/16-proto.md)
\r\n[17-异常处理](../master/17-try-catch.md)
\r\n[18-列表速构](../master/18-comprehensions.md)
\r\n[19-魔法印](../master/19-sigils.md)
\r\n[20-下一步](../master/20-next.md)
\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file diff --git a/stylesheets/github-light.css b/stylesheets/github-light.css new file mode 100644 index 0000000..872a6f4 --- /dev/null +++ b/stylesheets/github-light.css @@ -0,0 +1,116 @@ +/* + Copyright 2014 GitHub Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +.pl-c /* comment */ { + color: #969896; +} + +.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */, +.pl-s .pl-v /* string variable */ { + color: #0086b3; +} + +.pl-e /* entity */, +.pl-en /* entity.name */ { + color: #795da3; +} + +.pl-s .pl-s1 /* string source */, +.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ { + color: #333; +} + +.pl-ent /* entity.name.tag */ { + color: #63a35c; +} + +.pl-k /* keyword, storage, storage.type */ { + color: #a71d5d; +} + +.pl-pds /* punctuation.definition.string, string.regexp.character-class */, +.pl-s /* string */, +.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, +.pl-sr /* string.regexp */, +.pl-sr .pl-cce /* string.regexp constant.character.escape */, +.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */, +.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ { + color: #183691; +} + +.pl-v /* variable */ { + color: #ed6a43; +} + +.pl-id /* invalid.deprecated */ { + color: #b52a1d; +} + +.pl-ii /* invalid.illegal */ { + background-color: #b52a1d; + color: #f8f8f8; +} + +.pl-sr .pl-cce /* string.regexp constant.character.escape */ { + color: #63a35c; + font-weight: bold; +} + +.pl-ml /* markup.list */ { + color: #693a17; +} + +.pl-mh /* markup.heading */, +.pl-mh .pl-en /* markup.heading entity.name */, +.pl-ms /* meta.separator */ { + color: #1d3e81; + font-weight: bold; +} + +.pl-mq /* markup.quote */ { + color: #008080; +} + +.pl-mi /* markup.italic */ { + color: #333; + font-style: italic; +} + +.pl-mb /* markup.bold */ { + color: #333; + font-weight: bold; +} + +.pl-md /* markup.deleted, meta.diff.header.from-file */ { + background-color: #ffecec; + color: #bd2c00; +} + +.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { + background-color: #eaffea; + color: #55a532; +} + +.pl-mdr /* meta.diff.range */ { + color: #795da3; + font-weight: bold; +} + +.pl-mo /* meta.output */ { + color: #1d3e81; +} + diff --git a/stylesheets/styles.css b/stylesheets/styles.css new file mode 100644 index 0000000..2e1768e --- /dev/null +++ b/stylesheets/styles.css @@ -0,0 +1,324 @@ +@font-face { + font-family: 'Noto Sans'; + font-weight: 400; + font-style: normal; + src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot'); + src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix') format('embedded-opentype'), + local('Noto Sans'), + local('Noto-Sans-regular'), + url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2') format('woff2'), + url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff') format('woff'), + url('../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf') format('truetype'), + url('../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans') format('svg'); +} + +@font-face { + font-family: 'Noto Sans'; + font-weight: 700; + font-style: normal; + src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot'); + src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix') format('embedded-opentype'), + local('Noto Sans Bold'), + local('Noto-Sans-700'), + url('../fonts/Noto-Sans-700/Noto-Sans-700.woff2') format('woff2'), + url('../fonts/Noto-Sans-700/Noto-Sans-700.woff') format('woff'), + url('../fonts/Noto-Sans-700/Noto-Sans-700.ttf') format('truetype'), + url('../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans') format('svg'); +} + +@font-face { + font-family: 'Noto Sans'; + font-weight: 400; + font-style: italic; + src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot'); + src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix') format('embedded-opentype'), + local('Noto Sans Italic'), + local('Noto-Sans-italic'), + url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2') format('woff2'), + url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff') format('woff'), + url('../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf') format('truetype'), + url('../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans') format('svg'); +} + +@font-face { + font-family: 'Noto Sans'; + font-weight: 700; + font-style: italic; + src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot'); + src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix') format('embedded-opentype'), + local('Noto Sans Bold Italic'), + local('Noto-Sans-700italic'), + url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2') format('woff2'), + url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff') format('woff'), + url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf') format('truetype'), + url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans') format('svg'); +} + +body { + background-color: #fff; + padding:50px; + font: 14px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + color:#727272; + font-weight:400; +} + +h1, h2, h3, h4, h5, h6 { + color:#222; + margin:0 0 20px; +} + +p, ul, ol, table, pre, dl { + margin:0 0 20px; +} + +h1, h2, h3 { + line-height:1.1; +} + +h1 { + font-size:28px; +} + +h2 { + color:#393939; +} + +h3, h4, h5, h6 { + color:#494949; +} + +a { + color:#39c; + text-decoration:none; +} + +a:hover { + color:#069; +} + +a small { + font-size:11px; + color:#777; + margin-top:-0.3em; + display:block; +} + +a:hover small { + color:#777; +} + +.wrapper { + width:860px; + margin:0 auto; +} + +blockquote { + border-left:1px solid #e5e5e5; + margin:0; + padding:0 0 0 20px; + font-style:italic; +} + +code, pre { + font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace; + color:#333; + font-size:12px; +} + +pre { + padding:8px 15px; + background: #f8f8f8; + border-radius:5px; + border:1px solid #e5e5e5; + overflow-x: auto; +} + +table { + width:100%; + border-collapse:collapse; +} + +th, td { + text-align:left; + padding:5px 10px; + border-bottom:1px solid #e5e5e5; +} + +dt { + color:#444; + font-weight:700; +} + +th { + color:#444; +} + +img { + max-width:100%; +} + +header { + width:270px; + float:left; + position:fixed; + -webkit-font-smoothing:subpixel-antialiased; +} + +header ul { + list-style:none; + height:40px; + padding:0; + background: #f4f4f4; + border-radius:5px; + border:1px solid #e0e0e0; + width:270px; +} + +header li { + width:89px; + float:left; + border-right:1px solid #e0e0e0; + height:40px; +} + +header li:first-child a { + border-radius:5px 0 0 5px; +} + +header li:last-child a { + border-radius:0 5px 5px 0; +} + +header ul a { + line-height:1; + font-size:11px; + color:#999; + display:block; + text-align:center; + padding-top:6px; + height:34px; +} + +header ul a:hover { + color:#999; +} + +header ul a:active { + background-color:#f0f0f0; +} + +strong { + color:#222; + font-weight:700; +} + +header ul li + li + li { + border-right:none; + width:89px; +} + +header ul a strong { + font-size:14px; + display:block; + color:#222; +} + +section { + width:500px; + float:right; + padding-bottom:50px; +} + +small { + font-size:11px; +} + +hr { + border:0; + background:#e5e5e5; + height:1px; + margin:0 0 20px; +} + +footer { + width:270px; + float:left; + position:fixed; + bottom:50px; + -webkit-font-smoothing:subpixel-antialiased; +} + +@media print, screen and (max-width: 960px) { + + div.wrapper { + width:auto; + margin:0; + } + + header, section, footer { + float:none; + position:static; + width:auto; + } + + header { + padding-right:320px; + } + + section { + border:1px solid #e5e5e5; + border-width:1px 0; + padding:20px 0; + margin:0 0 20px; + } + + header a small { + display:inline; + } + + header ul { + position:absolute; + right:50px; + top:52px; + } +} + +@media print, screen and (max-width: 720px) { + body { + word-wrap:break-word; + } + + header { + padding:0; + } + + header ul, header p.view { + position:static; + } + + pre, code { + word-wrap:normal; + } +} + +@media print, screen and (max-width: 480px) { + body { + padding:15px; + } + + header ul { + width:99%; + } + + header li, header ul li + li + li { + width:33%; + } +} + +@media print { + body { + padding:0.4in; + font-size:12pt; + color:#444; + } +}