├── .gitattributes ├── .github └── ISSUE_TEMPLATE.md ├── .gitignore ├── BlogContent ├── blog │ ├── 2013 │ │ ├── 11-08-hello-fsblog.md │ │ └── 11-09-getting-started.md │ └── index.cshtml └── index.cshtml ├── Code ├── .paket │ ├── Paket.Restore.targets │ ├── paket.bootstrapper.exe │ └── paket.targets ├── FsBlog.nuspec ├── FsBlog.sln ├── RELEASE_NOTES.md ├── build ├── build.cmd ├── build.fsx ├── config │ └── config.yml ├── content │ ├── favicon.png │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ ├── fsharp.formatting │ │ ├── tooltips.css │ │ └── tooltips.js │ ├── javascripts │ │ └── scale.fix.js │ ├── layouts │ │ ├── default.cshtml │ │ ├── page.cshtml │ │ └── post.cshtml │ └── stylesheets │ │ ├── pygment_trac.css │ │ └── styles.css ├── fake ├── fake.cmd ├── fsblog.fsx ├── paket.dependencies ├── paket.lock ├── tests │ └── FsBlogLib.Tests │ │ ├── BlogPostsTest.fs │ │ ├── BlogTests.fs │ │ ├── FsBlogLib.Tests.fsproj │ │ ├── app.config │ │ └── paket.references ├── themes │ ├── casper │ │ ├── css │ │ │ └── screen.css │ │ ├── fonts │ │ │ ├── casper-icons.eot │ │ │ ├── casper-icons.svg │ │ │ ├── casper-icons.ttf │ │ │ └── casper-icons.woff │ │ ├── fsharp.formatting │ │ │ ├── tooltips.css │ │ │ └── tooltips.js │ │ ├── js │ │ │ ├── index.js │ │ │ └── jquery.fitvids.js │ │ ├── layouts │ │ │ ├── default.cshtml │ │ │ ├── page.cshtml │ │ │ └── post.cshtml │ │ └── source │ │ │ └── index.cshtml │ ├── default │ │ ├── favicon.png │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ ├── fsharp.formatting │ │ │ ├── tooltips.css │ │ │ └── tooltips.js │ │ ├── javascripts │ │ │ └── scale.fix.js │ │ ├── layouts │ │ │ ├── default.cshtml │ │ │ ├── page.cshtml │ │ │ └── post.cshtml │ │ ├── source │ │ │ ├── blog │ │ │ │ └── index.cshtml │ │ │ └── index.cshtml │ │ └── stylesheets │ │ │ ├── pygment_trac.css │ │ │ └── styles.css │ └── singlepaged │ │ ├── css │ │ └── screen.css │ │ ├── fsharp.formatting │ │ ├── tooltips.css │ │ └── tooltips.js │ │ ├── js │ │ ├── index.js │ │ └── jquery.fitvids.js │ │ ├── layouts │ │ ├── default.cshtml │ │ ├── page.cshtml │ │ └── post.cshtml │ │ └── source │ │ └── index.cshtml └── tools │ ├── FsBlogLib │ ├── AssemblyInfo.fs │ ├── Blog.fs │ ├── BlogCustomizations.fs │ ├── BlogPosts.fs │ ├── FileHelpers.fs │ ├── FileHelpersOperators.fs │ ├── FsBlogLib.fsproj │ ├── Razor.fs │ ├── Template.fs │ └── paket.references │ ├── empty-template.html │ └── paket.references └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | *.sh text eol=lf 15 | 16 | ############################################################################### 17 | # Set the merge driver for project and solution files 18 | # 19 | # Merging from the command prompt will add diff markers to the files if there 20 | # are conflicts (Merging from VS is not affected by the settings below, in VS 21 | # the diff markers are never inserted). Diff markers may cause the following 22 | # file extensions to fail to load in VS. An alternative would be to treat 23 | # these files as binary and thus will always conflict and require user 24 | # intervention with every merge. To do so, just uncomment the entries below 25 | ############################################################################### 26 | #*.sln merge=binary 27 | #*.csproj merge=binary 28 | #*.vbproj merge=binary 29 | #*.vcxproj merge=binary 30 | #*.vcproj merge=binary 31 | #*.dbproj merge=binary 32 | #*.fsproj merge=binary 33 | #*.lsproj merge=binary 34 | #*.wixproj merge=binary 35 | #*.modelproj merge=binary 36 | #*.sqlproj merge=binary 37 | #*.wwaproj merge=binary 38 | 39 | ############################################################################### 40 | # behavior for image files 41 | # 42 | # image files are treated as binary by default. 43 | ############################################################################### 44 | #*.jpg binary 45 | #*.png binary 46 | #*.gif binary 47 | 48 | ############################################################################### 49 | # diff behavior for common document formats 50 | # 51 | # Convert binary document formats to text before diffing them. This feature 52 | # is only available from the command line. Turn it on by uncommenting the 53 | # entries below. 54 | ############################################################################### 55 | #*.doc diff=astextplain 56 | #*.DOC diff=astextplain 57 | #*.docx diff=astextplain 58 | #*.DOCX diff=astextplain 59 | #*.dot diff=astextplain 60 | #*.DOT diff=astextplain 61 | #*.pdf diff=astextplain 62 | #*.PDF diff=astextplain 63 | #*.rtf diff=astextplain 64 | #*.RTF diff=astextplain 65 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Description 2 | 3 | Please provide a succinct description of your issue. 4 | 5 | ### Repro steps 6 | 7 | Please provide the steps required to reproduce the problem 8 | 9 | 1. Step A 10 | 11 | 2. Step B 12 | 13 | ### Expected behavior 14 | 15 | Please provide a description of the behavior you expect. 16 | 17 | ### Actual behavior 18 | 19 | Please provide a description of the actual behavior you observe. 20 | 21 | ### Known workarounds 22 | 23 | Please provide a description of any known workarounds. 24 | 25 | ### Related information 26 | 27 | * Operating system 28 | * Branch 29 | * .NET Runtime, CoreCLR or Mono Version 30 | * Performance information, links to performance testing scripts 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # FsBlog-specifics 5 | [Oo]utput/ 6 | [Dd]eploy/ 7 | 8 | # User-specific files 9 | .vs 10 | *.suo 11 | *.user 12 | *.sln.docstates 13 | 14 | # Build results 15 | [Dd]ebug/ 16 | [Rr]elease/ 17 | x64/ 18 | build/ 19 | [Bb]in/ 20 | [Oo]bj/ 21 | 22 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 23 | !packages/*/build/ 24 | 25 | # MSTest test Results 26 | [Tt]est[Rr]esult*/ 27 | [Bb]uild[Ll]og.* 28 | tests/source/ 29 | 30 | # FAKE temp dir 31 | .fake/ 32 | 33 | # NUnit test 34 | TestResult.xml 35 | 36 | # Paket 37 | paket-files 38 | paket.exe 39 | .paket/paket.exe 40 | 41 | *_i.c 42 | *_p.c 43 | *.ilk 44 | *.meta 45 | *.obj 46 | *.pch 47 | *.pdb 48 | *.pgc 49 | *.pgd 50 | *.rsp 51 | *.sbr 52 | *.tlb 53 | *.tli 54 | *.tlh 55 | *.tmp 56 | *.tmp_proj 57 | *.log 58 | *.vspscc 59 | *.vssscc 60 | .builds 61 | *.pidb 62 | *.log 63 | *.scc 64 | 65 | # Visual C++ cache files 66 | ipch/ 67 | *.aps 68 | *.ncb 69 | *.opensdf 70 | *.sdf 71 | *.cachefile 72 | 73 | # Visual Studio profiler 74 | *.psess 75 | *.vsp 76 | *.vspx 77 | 78 | # Guidance Automation Toolkit 79 | *.gpState 80 | 81 | # ReSharper is a .NET coding add-in 82 | _ReSharper*/ 83 | *.[Rr]e[Ss]harper 84 | 85 | # TeamCity is a build add-in 86 | _TeamCity* 87 | 88 | # DotCover is a Code Coverage Tool 89 | *.dotCover 90 | 91 | # NCrunch 92 | *.ncrunch* 93 | .*crunch*.local.xml 94 | 95 | # Installshield output folder 96 | [Ee]xpress/ 97 | 98 | # DocProject is a documentation generator add-in 99 | DocProject/buildhelp/ 100 | DocProject/Help/*.HxT 101 | DocProject/Help/*.HxC 102 | DocProject/Help/*.hhc 103 | DocProject/Help/*.hhk 104 | DocProject/Help/*.hhp 105 | DocProject/Help/Html2 106 | DocProject/Help/html 107 | 108 | # Click-Once directory 109 | publish/ 110 | 111 | # Publish Web Output 112 | *.Publish.xml 113 | 114 | # NuGet Packages Directory 115 | packages/ 116 | 117 | # Generated documentation folder 118 | docs/output/ 119 | 120 | # Enable nuget.exe in the .nuget folder (though normally executables are not tracked) 121 | !.nuget/NuGet.exe 122 | 123 | # Windows Azure Build Output 124 | csx 125 | *.build.csdef 126 | 127 | # Windows Store app package directory 128 | AppPackages/ 129 | 130 | # Others 131 | sql/ 132 | *.Cache 133 | ClientBin/ 134 | [Ss]tyle[Cc]op.* 135 | ~$* 136 | *~ 137 | *.dbmdl 138 | *.[Pp]ublish.xml 139 | *.pfx 140 | *.publishsettings 141 | 142 | # RIA/Silverlight projects 143 | Generated_Code/ 144 | 145 | # Backup & report files from converting an old project file to a newer 146 | # Visual Studio version. Backup files are not needed, because we have git ;-) 147 | _UpgradeReport_Files/ 148 | Backup*/ 149 | UpgradeLog*.XML 150 | UpgradeLog*.htm 151 | 152 | # SQL Server files 153 | App_Data/*.mdf 154 | App_Data/*.ldf 155 | 156 | 157 | #LightSwitch generated files 158 | GeneratedArtifacts/ 159 | _Pvt_Extensions/ 160 | ModelManifest.xml 161 | 162 | # ========================= 163 | # Windows detritus 164 | # ========================= 165 | 166 | # Windows image file caches 167 | Thumbs.db 168 | ehthumbs.db 169 | 170 | # Folder config file 171 | Desktop.ini 172 | 173 | # Recycle Bin used on file shares 174 | $RECYCLE.BIN/ 175 | 176 | # Mac desktop service store files 177 | .DS_Store 178 | *.orig 179 | -------------------------------------------------------------------------------- /BlogContent/blog/2013/11-08-hello-fsblog.md: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "post"; 3 | Title = "Hello, FsBlog!"; 4 | Date = "2013-11-08T11:27:31"; 5 | Tags = ""; 6 | Description = "Introducing FsBlog - a blog-aware static site generator using F#."; 7 | } 8 | 9 | **FsBlog** aims to be a blog-aware static site generator, mostly built in `F#` for .NET and Mono developers. 10 | 11 | 12 | 13 | But don't worry, you won't even need to know any F# to get up and running. So long as you are comfortable using a command line or terminal, and have a degree of familiarity with Markdown and Razor syntax - you're already most of the way there! 14 | 15 | Inspired by the likes of **Jekyll** and **Octopress** - and greatly helped along the way by the scripts behind [@@tomaspetricek](https://twitter.com/tomaspetricek)'s personal website; FsBlog gives the average .NET or Mono dev the tools that they need to get a statically built website up and running quickly and hosted somewhere like [Github Pages](http://pages.github.com/). 16 | 17 | This set of tools have been pulled together using some of the following community projects: 18 | 19 | * [FAKE](http://fsharp.github.io/FAKE/) for automation and scripting of the different tasks. 20 | * [F# Formatting](http://tpetricek.github.io/FSharp.Formatting/) for Markdown and F# literate programming, processing and colorization. 21 | * [RazorEngine](https://github.com/Antaris/RazorEngine) which is used for the templating and embedded `C#` code. 22 | * Some of the code in **FsBlogLib** that calls the **RazorEngine** has been based on F# code in [Tilde](https://github.com/aktowns/tilde). 23 | * [Github Pages](http://pages.github.com/) for our default theme. 24 | 25 | ## Development 26 | 27 | It is very early days and we haven't yet reached anything vaguely resembling a version 1.0 of the software. 28 | 29 | You can track the progress of the development, outstanding issues and check what we're working towards by checking out the [Issues](https://github.com/fsprojects/FsBlog/issues) and [Milestones](https://github.com/fsprojects/FsBlog/milestones) sections of our repository. 30 | 31 | If you find a bug, or have a request or whatever - please raise a new issue there! or even better make the change and open a pull request. -------------------------------------------------------------------------------- /BlogContent/blog/2013/11-09-getting-started.md: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "post"; 3 | Title = "Getting Started"; 4 | Date = "2013-11-09T12:38:14"; 5 | Tags = ""; 6 | Description = ""; 7 | } 8 | 9 | If you've much experience with other static site generators like *Octopress* or *Jekyll* most of this should be fairly familiar, if not, hopefully it won't be too difficult to pick up. 10 | 11 | 12 | 13 | ## Command line 14 | 15 | FsBlog tends to rely on the fact that you're using the command line or terminal - almost all interaction with FsBlog and git are documented as such. 16 | 17 | ## Dependencies 18 | 19 | Although X-Platform is a goal for the [not-too-distant-future](https://github.com/fsprojects/FsBlog/issues?milestone=2&state=open) - at the moment you'll need: 20 | 21 | * .NET 4.5 22 | * F# 3.0 23 | * VS2012 or VS2013 24 | * A git client 25 | 26 | If you follow the instructions for [using F# on Windows](http://fsharp.org/use/windows/) you'll probably be good to go. 27 | 28 | ## 1. Setup FsBlog 29 | 30 | First you'll need to clone the repo. On your command line, using git: 31 | 32 | [lang=sh] 33 | git clone git://github.com/fsprojects/FsBlog.git FsBlog 34 | cd FsBlog 35 | 36 | Next, run the build: 37 | 38 | [lang=sh] 39 | ./build 40 | 41 | This should install a few [NuGet](http://www.nuget.org/) dependencies that FsBlog makes use of. 42 | 43 | ## 2. Configuration 44 | 45 | Using your favourite F# code editor, edit the following section of the `./fsblog.fsx` file in your repo: 46 | 47 | [lang=fsharp] 48 | // -------------------------------------------------------------------------------------- 49 | // Configuration. 50 | // -------------------------------------------------------------------------------------- 51 | Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ 52 | let root = "http://fsprojects.github.io/FsBlog" 53 | let title = "FsBlog - F# static site generation" 54 | let description = """ 55 | FsBlog aims to be a blog-aware static site generator, mostly built in F#. But don't worry, 56 | you won't even need to know any F# to get up and running. So long as you are comfortable 57 | using a command line or terminal, and have a degree of familiarity with Markdown and Razor 58 | syntax - you're good to go!""" 59 | 60 | There isn't a whole lot to change right now, but at some point you'll be able to configure a Twitter handle, GitHub account etc. 61 | 62 | ## 3. Create a post 63 | 64 | Again on your command line: 65 | 66 | [lang=sh] 67 | ./fake new post="post title" 68 | 69 | This will create a new file in the following location, ready for you to edit: `./source/blog/yyyy/MM-dd-title.md`. 70 | 71 | ## 4. Generate and preview 72 | 73 | You can generate your website at any time from the command line using the following command: 74 | 75 | [lang=sh] 76 | ./fake generate 77 | 78 | If you also want to preview your website, you can run the following command: 79 | 80 | [lang=sh] 81 | ./fake preview 82 | 83 | The `preview` command will also `generate` the website too. -------------------------------------------------------------------------------- /BlogContent/blog/index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "default"; 3 | Title = "FsBlog"; 4 | Description = "A blog aware static site generator in mostly F#"; 5 | } 6 | @using System.Linq 7 | 8 | @foreach (var post in Enumerable.Take(Model.Posts, 10)) 9 | { 10 | @post.Title 11 | } -------------------------------------------------------------------------------- /BlogContent/index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "default"; 3 | Title = "FsBlog"; 4 | Description = "A blog aware static site generator in mostly F#"; 5 | } 6 | 7 |
FsBlog aims to be a blog-aware static site generator, mostly built in F#
for .NET and Mono developers. But don't worry, you won't even need to know any F# to get up and running. So long as you are comfortable using a command line or terminal, and have a degree of familiarity with Markdown and Razor syntax - you're already most of the way there!
Inpired by the likes of Jekyll and Octopress - and greatly helped along the way by the scripts behind @@tomaspetricek's personal website; FsBlog gives the average .NET or Mono dev the tools that they need to get a statically built website up and running quickly and hosted somewhere like Github Pages.
12 | 13 |This set of tools have been pulled together using some of the following community projects:
14 | 15 |C#
code.It is very early days and we haven't yet reached anything vaguely resembling a version 1.0 of the software.
26 | 27 |You can track the progress of the development, outstanding issues and check what we're working towards by checking out the Issues and Milestones section of our repository.
28 | 29 |If you find a bug, or have a request or whatever - please raise a new issue there! or even better make the change and open a pull request.
30 | -------------------------------------------------------------------------------- /Code/.paket/Paket.Restore.targets: -------------------------------------------------------------------------------- 1 |@Model.SiteSubtitle
37 | 38 | 39 |@PostDate(post.Date)
@post.Abstract
Some text.
\r\n\r\n" 43 | 44 | 45 | [x
'; 27 | head.appendChild(div.childNodes[1]); 28 | } 29 | 30 | if ( options ) { 31 | $.extend( settings, options ); 32 | } 33 | 34 | return this.each(function(){ 35 | var selectors = [ 36 | "iframe[src*='player.vimeo.com']", 37 | "iframe[src*='youtube.com']", 38 | "iframe[src*='youtube-nocookie.com']", 39 | "iframe[src*='kickstarter.com'][src*='video.html']", 40 | "object", 41 | "embed" 42 | ]; 43 | 44 | if (settings.customSelector) { 45 | selectors.push(settings.customSelector); 46 | } 47 | 48 | var $allVideos = $(this).find(selectors.join(',')); 49 | $allVideos = $allVideos.not("object object"); // SwfObj conflict patch 50 | 51 | $allVideos.each(function(){ 52 | var $this = $(this); 53 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 54 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 55 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 56 | aspectRatio = height / width; 57 | if(!$this.attr('id')){ 58 | var videoID = 'fitvid' + Math.floor(Math.random()*999999); 59 | $this.attr('id', videoID); 60 | } 61 | $this.wrap('').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); 62 | $this.removeAttr('height').removeAttr('width'); 63 | }); 64 | }); 65 | }; 66 | // Works with either jQuery or Zepto 67 | })( window.jQuery || window.Zepto ); 68 | -------------------------------------------------------------------------------- /Code/themes/casper/layouts/default.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |@post.Abstract »
31 |@Model.SiteSubtitle
29 | 30 | 31 |@PostDate(post.Date)
@post.Abstract
FsBlog aims to be a blog-aware static site generator, mostly built in F#
for .NET and Mono developers. But don't worry, you won't even need to know any F# to get up and running. So long as you are comfortable using a command line or terminal, and have a degree of familiarity with Markdown and Razor syntax - you're already most of the way there!
Inpired by the likes of Jekyll and Octopress - and greatly helped along the way by the scripts behind @@tomaspetricek's personal website; FsBlog gives the average .NET or Mono dev the tools that they need to get a statically built website up and running quickly and hosted somewhere like Github Pages.
12 | 13 |This set of tools have been pulled together using some of the following community projects:
14 | 15 |C#
code.It is very early days and we haven't yet reached anything vaguely resembling a version 1.0 of the software.
26 | 27 |You can track the progress of the development, outstanding issues and check what we're working towards by checking out the Issues and Milestones sections of our repository.
28 | 29 |If you find a bug, or have a request or whatever - please raise a new issue there! or even better make the change and open a pull request.
30 | -------------------------------------------------------------------------------- /Code/themes/default/stylesheets/pygment_trac.css: -------------------------------------------------------------------------------- 1 | .highlight { background: #ffffff; } 2 | .highlight .c { color: #999988; font-style: italic } /* Comment */ 3 | .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ 4 | .highlight .k { font-weight: bold } /* Keyword */ 5 | .highlight .o { font-weight: bold } /* Operator */ 6 | .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ 7 | .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ 8 | .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ 9 | .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ 10 | .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ 11 | .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ 12 | .highlight .ge { font-style: italic } /* Generic.Emph */ 13 | .highlight .gr { color: #aa0000 } /* Generic.Error */ 14 | .highlight .gh { color: #999999 } /* Generic.Heading */ 15 | .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ 16 | .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ 17 | .highlight .go { color: #888888 } /* Generic.Output */ 18 | .highlight .gp { color: #555555 } /* Generic.Prompt */ 19 | .highlight .gs { font-weight: bold } /* Generic.Strong */ 20 | .highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ 21 | .highlight .gt { color: #aa0000 } /* Generic.Traceback */ 22 | .highlight .kc { font-weight: bold } /* Keyword.Constant */ 23 | .highlight .kd { font-weight: bold } /* Keyword.Declaration */ 24 | .highlight .kn { font-weight: bold } /* Keyword.Namespace */ 25 | .highlight .kp { font-weight: bold } /* Keyword.Pseudo */ 26 | .highlight .kr { font-weight: bold } /* Keyword.Reserved */ 27 | .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ 28 | .highlight .m { color: #009999 } /* Literal.Number */ 29 | .highlight .s { color: #d14 } /* Literal.String */ 30 | .highlight .na { color: #008080 } /* Name.Attribute */ 31 | .highlight .nb { color: #0086B3 } /* Name.Builtin */ 32 | .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ 33 | .highlight .no { color: #008080 } /* Name.Constant */ 34 | .highlight .ni { color: #800080 } /* Name.Entity */ 35 | .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ 36 | .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ 37 | .highlight .nn { color: #555555 } /* Name.Namespace */ 38 | .highlight .nt { color: #000080 } /* Name.Tag */ 39 | .highlight .nv { color: #008080 } /* Name.Variable */ 40 | .highlight .ow { font-weight: bold } /* Operator.Word */ 41 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ 42 | .highlight .mf { color: #009999 } /* Literal.Number.Float */ 43 | .highlight .mh { color: #009999 } /* Literal.Number.Hex */ 44 | .highlight .mi { color: #009999 } /* Literal.Number.Integer */ 45 | .highlight .mo { color: #009999 } /* Literal.Number.Oct */ 46 | .highlight .sb { color: #d14 } /* Literal.String.Backtick */ 47 | .highlight .sc { color: #d14 } /* Literal.String.Char */ 48 | .highlight .sd { color: #d14 } /* Literal.String.Doc */ 49 | .highlight .s2 { color: #d14 } /* Literal.String.Double */ 50 | .highlight .se { color: #d14 } /* Literal.String.Escape */ 51 | .highlight .sh { color: #d14 } /* Literal.String.Heredoc */ 52 | .highlight .si { color: #d14 } /* Literal.String.Interpol */ 53 | .highlight .sx { color: #d14 } /* Literal.String.Other */ 54 | .highlight .sr { color: #009926 } /* Literal.String.Regex */ 55 | .highlight .s1 { color: #d14 } /* Literal.String.Single */ 56 | .highlight .ss { color: #990073 } /* Literal.String.Symbol */ 57 | .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ 58 | .highlight .vc { color: #008080 } /* Name.Variable.Class */ 59 | .highlight .vg { color: #008080 } /* Name.Variable.Global */ 60 | .highlight .vi { color: #008080 } /* Name.Variable.Instance */ 61 | .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ 62 | 63 | .type-csharp .highlight .k { color: #0000FF } 64 | .type-csharp .highlight .kt { color: #0000FF } 65 | .type-csharp .highlight .nf { color: #000000; font-weight: normal } 66 | .type-csharp .highlight .nc { color: #2B91AF } 67 | .type-csharp .highlight .nn { color: #000000 } 68 | .type-csharp .highlight .s { color: #A31515 } 69 | .type-csharp .highlight .sc { color: #A31515 } 70 | -------------------------------------------------------------------------------- /Code/themes/default/stylesheets/styles.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700); 2 | 3 | body { 4 | padding:50px; 5 | font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; 6 | color:#777; 7 | font-weight:300; 8 | } 9 | 10 | h1, h2, h3, h4, h5, h6, .falseheader { 11 | color:#222; 12 | margin:0 0 20px; 13 | } 14 | 15 | p, ul, ol, table, pre, dl { 16 | margin:0 0 20px; 17 | } 18 | 19 | h1, h2, h3, .falseheader { 20 | line-height:1.1; 21 | } 22 | 23 | h1, .falseheader { 24 | font-size:28px; 25 | } 26 | 27 | h2 { 28 | color:#393939; 29 | } 30 | 31 | h3, h4, h5, h6 { 32 | color:#494949; 33 | } 34 | 35 | a { 36 | color:#39c; 37 | font-weight:400; 38 | text-decoration:none; 39 | } 40 | 41 | a small { 42 | font-size:11px; 43 | color:#777; 44 | margin-top:-0.6em; 45 | display:block; 46 | } 47 | 48 | .wrapper { 49 | width:860px; 50 | margin:0 auto; 51 | } 52 | 53 | blockquote { 54 | border-left:1px solid #e5e5e5; 55 | margin:0; 56 | padding:0 0 0 20px; 57 | font-style:italic; 58 | } 59 | 60 | code, pre { 61 | font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal; 62 | font-size:12px; 63 | } 64 | 65 | p code { 66 | font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal; 67 | font-size:12px; 68 | padding:2px 4px; 69 | color:#d14; 70 | background-color:#f7f7f9; 71 | border:1px solid #e1e1e8; 72 | -webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px; 73 | } 74 | 75 | pre { 76 | padding:8px 15px; 77 | background: #f8f8f8; 78 | border-radius:5px; 79 | border:1px solid #e5e5e5; 80 | overflow-x: auto; 81 | } 82 | 83 | table { 84 | width:100%; 85 | border-collapse:collapse; 86 | } 87 | 88 | th, td { 89 | text-align:left; 90 | padding:5px 10px; 91 | } 92 | 93 | dt { 94 | color:#444; 95 | font-weight:700; 96 | } 97 | 98 | th { 99 | color:#444; 100 | } 101 | 102 | img { 103 | max-width:100%; 104 | } 105 | 106 | header { 107 | width:270px; 108 | float:left; 109 | position:fixed; 110 | } 111 | 112 | header ul { 113 | list-style:none; 114 | height:40px; 115 | 116 | padding:0; 117 | 118 | background: #eee; 119 | background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%); 120 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd)); 121 | background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%); 122 | background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%); 123 | background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%); 124 | background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%); 125 | 126 | border-radius:5px; 127 | border:1px solid #d2d2d2; 128 | box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0; 129 | width:270px; 130 | } 131 | 132 | header li { 133 | width:89px; 134 | float:left; 135 | border-right:1px solid #d2d2d2; 136 | height:40px; 137 | } 138 | 139 | header ul a { 140 | line-height:1; 141 | font-size:11px; 142 | color:#999; 143 | display:block; 144 | text-align:center; 145 | padding-top:6px; 146 | height:40px; 147 | } 148 | 149 | strong { 150 | color:#222; 151 | font-weight:700; 152 | } 153 | 154 | header ul li + li { 155 | width:88px; 156 | border-left:1px solid #fff; 157 | } 158 | 159 | header ul li + li + li { 160 | border-right:none; 161 | width:89px; 162 | } 163 | 164 | header ul a strong { 165 | font-size:14px; 166 | display:block; 167 | color:#222; 168 | } 169 | 170 | section { 171 | width:500px; 172 | float:right; 173 | padding-bottom:50px; 174 | } 175 | 176 | small { 177 | font-size:11px; 178 | } 179 | 180 | hr { 181 | border:0; 182 | background:#e5e5e5; 183 | height:1px; 184 | margin:0 0 20px; 185 | } 186 | 187 | footer { 188 | width:270px; 189 | float:left; 190 | position:fixed; 191 | bottom:50px; 192 | } 193 | 194 | @media print, screen and (max-width: 960px) { 195 | 196 | div.wrapper { 197 | width:auto; 198 | margin:0; 199 | } 200 | 201 | header, section, footer { 202 | float:none; 203 | position:static; 204 | width:auto; 205 | } 206 | 207 | header { 208 | padding-right:320px; 209 | } 210 | 211 | section { 212 | border:1px solid #e5e5e5; 213 | border-width:1px 0; 214 | padding:20px 0; 215 | margin:0 0 20px; 216 | } 217 | 218 | header a small { 219 | display:inline; 220 | } 221 | 222 | header ul { 223 | position:absolute; 224 | right:50px; 225 | top:52px; 226 | } 227 | } 228 | 229 | @media print, screen and (max-width: 720px) { 230 | body { 231 | word-wrap:break-word; 232 | } 233 | 234 | header { 235 | padding:0; 236 | } 237 | 238 | header ul, header p.view { 239 | position:static; 240 | } 241 | 242 | pre, code { 243 | word-wrap:normal; 244 | } 245 | } 246 | 247 | @media print, screen and (max-width: 480px) { 248 | body { 249 | padding:15px; 250 | } 251 | 252 | header ul { 253 | display:none; 254 | } 255 | } 256 | 257 | @media print { 258 | body { 259 | padding:0.4in; 260 | font-size:12pt; 261 | color:#444; 262 | } 263 | } 264 | 265 | .h2link { 266 | margin: 0 0 8px; 267 | } -------------------------------------------------------------------------------- /Code/themes/singlepaged/css/screen.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton V1.2 3 | * Copyright 2011, Dave Gamache 4 | * www.getskeleton.com 5 | * Free to use under the MIT license. 6 | * http://www.opensource.org/licenses/mit-license.php 7 | * 6/20/2012 8 | */ 9 | 10 | 11 | /* Table of Content 12 | ================================================== 13 | #Reset & Basics 14 | #Basic Styles 15 | #Site Styles 16 | #Typography 17 | #Links 18 | #Lists 19 | #Images 20 | #Buttons 21 | #Forms 22 | #Misc */ 23 | 24 | 25 | /* #Reset & Basics (Inspired by E. Meyers) 26 | ================================================== */ 27 | html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { 28 | margin: 0; 29 | padding: 0; 30 | border: 0; 31 | font-size: 100%; 32 | font: inherit; 33 | vertical-align: baseline; } 34 | article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 35 | display: block; } 36 | body { 37 | line-height: 1; } 38 | ol, ul { 39 | list-style: none; } 40 | blockquote, q { 41 | quotes: none; } 42 | blockquote:before, blockquote:after, 43 | q:before, q:after { 44 | content: ''; 45 | content: none; } 46 | table { 47 | border-collapse: collapse; 48 | border-spacing: 0; } 49 | 50 | 51 | /* #Basic Styles 52 | ================================================== */ 53 | body { 54 | background: #fff; 55 | font: 14px/21px "Raleway", "HelveticaNeue-Light", Arial, sans-serif; 56 | color: #444; 57 | -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */ 58 | -webkit-text-size-adjust: 100%; 59 | } 60 | 61 | 62 | /* #Typography 63 | ================================================== */ 64 | h1, h2, h3, h4, h5, h6 { 65 | font-weight: 300; } 66 | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; } 67 | h1 { font-size: 46px; line-height: 50px; margin-bottom: 14px;} 68 | h2 { font-size: 35px; line-height: 40px; margin-bottom: 10px; } 69 | h3 { font-size: 28px; line-height: 34px; margin-bottom: 8px; } 70 | h4 { font-size: 21px; line-height: 30px; margin-bottom: 4px; } 71 | h5 { font-size: 17px; line-height: 24px; } 72 | h6 { font-size: 14px; line-height: 21px; } 73 | .subheader { color: #777; } 74 | 75 | p { margin: 0 0 20px 0; } 76 | p img { margin: 0; } 77 | p.lead { font-size: 21px; line-height: 27px; color: #777; } 78 | 79 | em { font-style: italic; } 80 | strong { font-weight: bold; } 81 | small { font-size: 80%; } 82 | 83 | /* Blockquotes */ 84 | blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; } 85 | blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; } 86 | blockquote cite { display: block; font-size: 12px; color: #555; } 87 | blockquote cite:before { content: "\2014 \0020"; } 88 | blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; } 89 | 90 | hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; } 91 | 92 | 93 | /* #Links 94 | ================================================== */ 95 | a, a:visited { text-decoration: underline; outline: 0; } 96 | a:hover, a:focus { } 97 | p a, p a:visited { line-height: inherit; } 98 | 99 | 100 | /* #Lists 101 | ================================================== */ 102 | ul, ol { margin-bottom: 20px; } 103 | ul { list-style: none outside; } 104 | ol { list-style: decimal; } 105 | ul, ul.square { list-style: square outside; } 106 | ul ul, ul.circle { list-style: circle outside; } 107 | ul ul ul, ul.disc { list-style: disc outside; } 108 | ul ul li, ul ol li, 109 | ol ol li, ol ul li { margin-bottom: 6px; } 110 | li { line-height: 18px; margin-bottom: 12px; } 111 | ul.large li { line-height: 21px; } 112 | li p { line-height: 21px; } 113 | 114 | /* #Images 115 | ================================================== */ 116 | 117 | img.scale-with-grid { 118 | max-width: 100%; 119 | height: auto; } 120 | 121 | 122 | /* #Buttons 123 | ================================================== */ 124 | 125 | .button, 126 | button, 127 | input[type="submit"], 128 | input[type="reset"], 129 | input[type="button"] { 130 | background: #eee; /* Old browsers */ 131 | background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */ 132 | background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */ 133 | background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */ 134 | background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */ 135 | background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */ 136 | background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */ 137 | border: 1px solid #aaa; 138 | border-top: 1px solid #ccc; 139 | border-left: 1px solid #ccc; 140 | -moz-border-radius: 3px; 141 | -webkit-border-radius: 3px; 142 | border-radius: 3px; 143 | color: #444; 144 | display: inline-block; 145 | font-size: 11px; 146 | font-weight: bold; 147 | text-decoration: none; 148 | text-shadow: 0 1px rgba(255, 255, 255, .75); 149 | cursor: pointer; 150 | margin-bottom: 20px; 151 | line-height: normal; 152 | padding: 8px 10px; 153 | font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; } 154 | 155 | .button:hover, 156 | button:hover, 157 | input[type="submit"]:hover, 158 | input[type="reset"]:hover, 159 | input[type="button"]:hover { 160 | color: #222; 161 | background: #ddd; /* Old browsers */ 162 | background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */ 163 | background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */ 164 | background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */ 165 | background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */ 166 | background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */ 167 | background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */ 168 | border: 1px solid #888; 169 | border-top: 1px solid #aaa; 170 | border-left: 1px solid #aaa; } 171 | 172 | .button:active, 173 | button:active, 174 | input[type="submit"]:active, 175 | input[type="reset"]:active, 176 | input[type="button"]:active { 177 | border: 1px solid #666; 178 | background: #ccc; /* Old browsers */ 179 | background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */ 180 | background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */ 181 | background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */ 182 | background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */ 183 | background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */ 184 | background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ } 185 | 186 | .button.full-width, 187 | button.full-width, 188 | input[type="submit"].full-width, 189 | input[type="reset"].full-width, 190 | input[type="button"].full-width { 191 | width: 100%; 192 | padding-left: 0 !important; 193 | padding-right: 0 !important; 194 | text-align: center; } 195 | 196 | /* Fix for odd Mozilla border & padding issues */ 197 | button::-moz-focus-inner, 198 | input::-moz-focus-inner { 199 | border: 0; 200 | padding: 0; 201 | } 202 | 203 | 204 | /* #Forms 205 | ================================================== */ 206 | 207 | form { 208 | margin-bottom: 20px; } 209 | fieldset { 210 | margin-bottom: 20px; } 211 | input[type="text"], 212 | input[type="password"], 213 | input[type="email"], 214 | textarea, 215 | select { 216 | border: 1px solid #ccc; 217 | padding: 6px 4px; 218 | outline: none; 219 | -moz-border-radius: 2px; 220 | -webkit-border-radius: 2px; 221 | border-radius: 2px; 222 | font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; 223 | color: #777; 224 | margin: 0; 225 | width: 210px; 226 | max-width: 100%; 227 | display: block; 228 | margin-bottom: 20px; 229 | background: #fff; } 230 | select { 231 | padding: 0; } 232 | input[type="text"]:focus, 233 | input[type="password"]:focus, 234 | input[type="email"]:focus, 235 | textarea:focus { 236 | border: 1px solid #aaa; 237 | color: #444; 238 | -moz-box-shadow: 0 0 3px rgba(0,0,0,.2); 239 | -webkit-box-shadow: 0 0 3px rgba(0,0,0,.2); 240 | box-shadow: 0 0 3px rgba(0,0,0,.2); } 241 | textarea { 242 | min-height: 60px; } 243 | label, 244 | legend { 245 | display: block; 246 | font-weight: bold; 247 | font-size: 13px; } 248 | select { 249 | width: 220px; } 250 | input[type="checkbox"] { 251 | display: inline; } 252 | label span, 253 | legend span { 254 | font-weight: normal; 255 | font-size: 13px; 256 | color: #444; } 257 | 258 | /* #Misc 259 | ================================================== */ 260 | .remove-bottom { margin-bottom: 0 !important; } 261 | .half-bottom { margin-bottom: 10px !important; } 262 | .add-bottom { margin-bottom: 20px !important; } 263 | 264 | 265 | 266 | /* #Syntax highlighting 267 | ================================================== */ 268 | 269 | 270 | .highlighttable { 271 | color: #f8f8f2; 272 | table-layout: fixed; 273 | white-space: nowrap; 274 | width:90%; 275 | } 276 | 277 | .highlighttable pre, .highlighttable code { display:block; margin:0; padding:0; background: none; overflow:auto; word-wrap: normal; } 278 | 279 | .highlight, .linenodiv { 280 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWPQ1dU1BgABzQC7XXMTYQAAAABJRU5ErkJggg==); 281 | display:block; 282 | padding: 10px; 283 | margin-bottom:20px; 284 | } 285 | .linenodiv, .lineno { color: #ccc; } 286 | 287 | td.linenos { width: 40px; } 288 | 289 | .linenodiv { 290 | border-right: none; 291 | padding: 10px; 292 | text-align: right; 293 | } 294 | span.lineno { 295 | display: block; 296 | float: left; 297 | width: 40px; 298 | padding-right: 8px; 299 | text-align: right; 300 | } 301 | 302 | 303 | .hll { background-color: #49483e } 304 | .c { color: #75715e } /* Comment */ 305 | .err { color: #960050; background-color: #1e0010 } /* Error */ 306 | .k { color: #66d9ef } /* Keyword */ 307 | .l { color: #ae81ff } /* Literal */ 308 | .n { color: #f8f8f2 } /* Name */ 309 | .o { color: #f92672 } /* Operator */ 310 | .p { color: #f8f8f2 } /* Punctuation */ 311 | .cm { color: #75715e } /* Comment.Multiline */ 312 | .cp { color: #75715e } /* Comment.Preproc */ 313 | .c1 { color: #75715e } /* Comment.Single */ 314 | .cs { color: #75715e } /* Comment.Special */ 315 | .ge { font-style: italic } /* Generic.Emph */ 316 | .gs { font-weight: bold } /* Generic.Strong */ 317 | .kc { color: #66d9ef } /* Keyword.Constant */ 318 | .kd { color: #66d9ef } /* Keyword.Declaration */ 319 | .kn { color: #f92672 } /* Keyword.Namespace */ 320 | .kp { color: #66d9ef } /* Keyword.Pseudo */ 321 | .kr { color: #66d9ef } /* Keyword.Reserved */ 322 | .kt { color: #66d9ef } /* Keyword.Type */ 323 | .ld { color: #e6db74 } /* Literal.Date */ 324 | .m { color: #ae81ff } /* Literal.Number */ 325 | .s { color: #e6db74 } /* Literal.String */ 326 | .na { color: #a6e22e } /* Name.Attribute */ 327 | .nb { color: #f8f8f2 } /* Name.Builtin */ 328 | .nc { color: #a6e22e } /* Name.Class */ 329 | .no { color: #66d9ef } /* Name.Constant */ 330 | .nd { color: #a6e22e } /* Name.Decorator */ 331 | .ni { color: #f8f8f2 } /* Name.Entity */ 332 | .ne { color: #a6e22e } /* Name.Exception */ 333 | .nf { color: #a6e22e } /* Name.Function */ 334 | .nl { color: #f8f8f2 } /* Name.Label */ 335 | .nn { color: #f8f8f2 } /* Name.Namespace */ 336 | .nx { color: #a6e22e } /* Name.Other */ 337 | .py { color: #f8f8f2 } /* Name.Property */ 338 | .nt { color: #f92672 } /* Name.Tag */ 339 | .nv { color: #f8f8f2 } /* Name.Variable */ 340 | .ow { color: #f92672 } /* Operator.Word */ 341 | .w { color: #f8f8f2 } /* Text.Whitespace */ 342 | .mf { color: #ae81ff } /* Literal.Number.Float */ 343 | .mh { color: #ae81ff } /* Literal.Number.Hex */ 344 | .mi { color: #ae81ff } /* Literal.Number.Integer */ 345 | .mo { color: #ae81ff } /* Literal.Number.Oct */ 346 | .sb { color: #e6db74 } /* Literal.String.Backtick */ 347 | .sc { color: #e6db74 } /* Literal.String.Char */ 348 | .sd { color: #e6db74 } /* Literal.String.Doc */ 349 | .s2 { color: #e6db74 } /* Literal.String.Double */ 350 | .se { color: #ae81ff } /* Literal.String.Escape */ 351 | .sh { color: #e6db74 } /* Literal.String.Heredoc */ 352 | .si { color: #e6db74 } /* Literal.String.Interpol */ 353 | .sx { color: #e6db74 } /* Literal.String.Other */ 354 | .sr { color: #e6db74 } /* Literal.String.Regex */ 355 | .s1 { color: #e6db74 } /* Literal.String.Single */ 356 | .ss { color: #e6db74 } /* Literal.String.Symbol */ 357 | .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ 358 | .vc { color: #f8f8f2 } /* Name.Variable.Class */ 359 | .vg { color: #f8f8f2 } /* Name.Variable.Global */ 360 | .vi { color: #f8f8f2 } /* Name.Variable.Instance */ 361 | .il { color: #ae81ff } /* Literal.Number.Integer.Long */ 362 | 363 | .gh { } /* Generic Heading & Diff Header */ 364 | .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */ 365 | .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */ 366 | .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */ 367 | 368 | /* --------------------------------------------------------------------------------- */ 369 | 370 | 371 | /* -----------------------------------*/ 372 | /* ----- 960px wide fancy grid! ----- */ 373 | /* -----------------------------------*/ 374 | 375 | /* by tim o'brien, t413.com 376 | * based on getskeleton.com 377 | */ 378 | 379 | 380 | /* ----- base grid----- */ 381 | 382 | .container { position: relative; width: 960px; margin: 0 auto; padding: 0; } 383 | .container .column { float: left; display: inline; margin-left: 10px; margin-right: 10px; } 384 | .row { margin-bottom: 20px; } 385 | 386 | .container .small.column { width: 300px; } 387 | .container .half.column { width: 460px; } 388 | .container .big.column { width: 620px; } 389 | .container .full.column { width: 940px; } 390 | 391 | 392 | /* ----- Tablet (Portrait) -- 768px ----- */ 393 | @media only screen and (min-width: 768px) and (max-width: 959px) { 394 | .container { width: 768px; } 395 | 396 | .container .small.column { width: 236px; } 397 | .container .half.column { width: 364px; } 398 | .container .big.column { width: 488px; } 399 | .container .full.column { width: 748px; } 400 | } 401 | 402 | 403 | /* ----- Mobile (Portrait) ----- */ 404 | @media only screen and (max-width: 767px) { 405 | .container { width: 96%; } 406 | .container .column { margin: 1%; } 407 | 408 | .container .small.column { width: 48%; } 409 | .container .half.column { width: 48%; } 410 | .container .big.column { width: 98%; } 411 | .container .full.column { width: 98%; } 412 | } 413 | 414 | 415 | /* ----- Mobile (Landscape) -- 480px ----- */ 416 | @media only screen and (min-width: 480px) and (max-width: 767px) { 417 | .container { width: 92%; } 418 | .container .column { margin: 2%; } 419 | 420 | .container .small.column { width: 46%; } 421 | .container .half.column { width: 46%; } 422 | .container .big.column { width: 96%; } 423 | .container .full.column { width: 96%; } 424 | } 425 | 426 | 427 | 428 | /* ----- Clearing ----- */ 429 | 430 | /* Self Clearing Goodness */ 431 | .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; } 432 | 433 | /* Use clearfix class on parent to clear nested columns, 434 | or wrap each row of columns in ax
'; 27 | head.appendChild(div.childNodes[1]); 28 | } 29 | 30 | if ( options ) { 31 | $.extend( settings, options ); 32 | } 33 | 34 | return this.each(function(){ 35 | var selectors = [ 36 | "iframe[src*='player.vimeo.com']", 37 | "iframe[src*='youtube.com']", 38 | "iframe[src*='youtube-nocookie.com']", 39 | "iframe[src*='kickstarter.com'][src*='video.html']", 40 | "object", 41 | "embed" 42 | ]; 43 | 44 | if (settings.customSelector) { 45 | selectors.push(settings.customSelector); 46 | } 47 | 48 | var $allVideos = $(this).find(selectors.join(',')); 49 | $allVideos = $allVideos.not("object object"); // SwfObj conflict patch 50 | 51 | $allVideos.each(function(){ 52 | var $this = $(this); 53 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 54 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 55 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 56 | aspectRatio = height / width; 57 | if(!$this.attr('id')){ 58 | var videoID = 'fitvid' + Math.floor(Math.random()*999999); 59 | $this.attr('id', videoID); 60 | } 61 | $this.wrap('').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); 62 | $this.removeAttr('height').removeAttr('width'); 63 | }); 64 | }); 65 | }; 66 | // Works with either jQuery or Zepto 67 | })( window.jQuery || window.Zepto ); 68 | -------------------------------------------------------------------------------- /Code/themes/singlepaged/layouts/default.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | int i = 0; 3 | } 4 | 5 | 6 | 7 | 8 | 9 | 10 |46 | 47 | 48 |
49 | 50 |…it’s focused on delivering information quickly, easily, configurably, and stylishly!
53 | 54 |Want to make a single-page site to show off something cool? Go fork me on github!
55 | 56 |57 | 58 | Fork me on GitHub 59 | 60 |
61 | 62 |