Add carbon
This commit is contained in:
parent
cf9d5f8737
commit
8986e7d2f6
|
@ -1,5 +1,5 @@
|
|||
{% assign description = "The ultimate cheatsheet for " | append: include.page.title | append: "." %}
|
||||
<ul class="social-list">
|
||||
<ul class="social-list {{ include.class }}">
|
||||
<li class="facebook hint--bottom" data-hint="Share on Facebook"><a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ include.page.url }}" target="share"><span class="text">Like</span></a></li>
|
||||
<li class="twitter hint--bottom" data-hint="Share on Twitter"><a href="https://twitter.com/intent/tweet?text={{ description }} {{ site.url }}{{ include.page.url }}" target="share"><span class="text">Tweet</span></a></li>
|
||||
<li class="googleplus hint--bottom" data-hint="Share on Google Plus"><a href="https://plus.google.com/share?url={{ site.url }}{{ include.page.url }}" target="share"><span class="text">+1</span></a></li>
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
type: article
|
||||
---
|
||||
{% include head.html %}
|
||||
{% include site-header.html %}
|
||||
|
||||
<div class='post-list -single -cheatsheet'>
|
||||
<div class='post-item'>
|
||||
{% include social-list.html page=page class="-collapse" %}
|
||||
|
||||
<div class='post-headline -cheatsheet'>
|
||||
<p class='prelude'><span></span></p>
|
||||
<h1><span>{{ page.title }}</span></h1>
|
||||
</div>
|
||||
|
||||
<div class='headline-ad'>
|
||||
<script async src='//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom' id="_carbonads_js"></script>
|
||||
</div>
|
||||
|
||||
<div class='post-content -cheatsheet'>
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
{% include social-list.html page=page %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include foot.html %}
|
|
@ -20,4 +20,8 @@ html_class: home
|
|||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class='side-ad'>
|
||||
<script async src='//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom' id="_carbonads_js"></script>
|
||||
</div>
|
||||
|
||||
{% include foot.html %}
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
}
|
||||
|
||||
.post-headline.-cheatsheet .prelude span:before {
|
||||
content: 'The great cheatsheet for';
|
||||
content: 'Cheatsheet for';
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
|
@ -191,3 +191,85 @@
|
|||
box-shadow: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Carbon: side
|
||||
*/
|
||||
|
||||
.side-ad {
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
right: 20px;
|
||||
width: 130px;
|
||||
display: block;
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
.side-ad a {
|
||||
text-decoration: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.side-ad .carbon-text {
|
||||
margin-top: 5px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.side-ad .carbon-poweredby {
|
||||
display: block;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
/*
|
||||
* Cardbon: headline
|
||||
*/
|
||||
|
||||
.headline-ad {
|
||||
width: 300px;
|
||||
min-height: 100px;
|
||||
font-size: .8em;
|
||||
margin: 0 auto 45px auto;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.headline-ad:after {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both;
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
.headline-ad a {
|
||||
text-decoration: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.headline-ad img {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.headline-ad .carbon-text {
|
||||
}
|
||||
|
||||
.headline-ad .carbon-poweredby {
|
||||
display: block;
|
||||
color: #aaa;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.social-list.-collapse {
|
||||
margin-top: 0;
|
||||
position: absolute;
|
||||
top: 40vh;
|
||||
left: 30px;
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.social-list.-collapse {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Awesome-redux
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### [redux-actions](https://www.npmjs.com/package/redux-actions)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: bluebird.js
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
Also see the [promise cheatsheet](promise.html) and [Bluebird.js API](https://github.com/petkaantonov/bluebird/blob/master/API.md) (github.com).
|
||||
|
|
1
chai.md
1
chai.md
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Chai.js
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Assert
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: CSS antialiasing
|
||||
category: CSS
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
* {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Docker CLI
|
||||
category: Devops
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
Manage images
|
||||
|
|
1
es6.md
1
es6.md
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: ES2015
|
||||
category: JavaScript
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
## Stable in io.js
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: FactoryGirl
|
||||
category: Ruby libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Paths
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: Homebrew
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Commands
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: httpie
|
||||
category: CLI
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
$ http POST example.com/posts/3 \
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Immutable.js
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
```js
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Jasmine
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
describe("A suite", function() {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: Parsley.js
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Enabling
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: React-router
|
||||
category: React
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Basic
|
||||
|
|
1
react.md
1
react.md
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: React.js
|
||||
category: React
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
{%raw%}
|
||||
|
|
1
riot.md
1
riot.md
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Riot.js
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
## Tags
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Sinon-chai
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
* [Sinon-chai](https://github.com/domenic/sinon-chai)
|
||||
|
|
1
sinon.md
1
sinon.md
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Sinon
|
||||
category: JavaScript libraries
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Creating spies
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Vim script
|
||||
category: Vim
|
||||
hljs_languages: [vim]
|
||||
layout: default-ad
|
||||
---
|
||||
|
||||
### Start hacking.
|
||||
|
|
Loading…
Reference in New Issue