mix-buttons 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.editorconfig +13 -0
- data/.gitignore +21 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +84 -0
- data/LICENSE +21 -0
- data/README.md +52 -0
- data/Rakefile +41 -0
- data/_config.yml +21 -0
- data/bower.json +30 -0
- data/config.rb +8 -0
- data/doc/_includes/footer.html +5 -0
- data/doc/_includes/head.html +31 -0
- data/doc/_includes/header.html +13 -0
- data/doc/_includes/icon-github.svg +1 -0
- data/doc/_includes/icon-twitter.svg +1 -0
- data/doc/_layouts/compress.html +10 -0
- data/doc/_layouts/default.html +23 -0
- data/doc/_sass/_doc.scss +136 -0
- data/doc/_sass/_syntax.scss +83 -0
- data/doc/buttons.css +331 -0
- data/doc/css/main.scss +7 -0
- data/doc/index.html +149 -0
- data/doc/mix-buttons.jpg +0 -0
- data/sass/_mix-buttons.scss +166 -0
- data/sass/_mix-variables.scss +33 -0
- data/sass/buttons.scss +44 -0
- metadata +126 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5df0e199d1daf67223157f1c49970fed537f6366
|
4
|
+
data.tar.gz: 018f89249db246dc114430540a4f3b7ac89e6c1c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5b1f6807ea79500057897e9668b6d01f25582d928bafa37191fc492a5f738d5cedf1d29e7dbfc669165f19867bae6c0b7720b270e32c68101c16709da34e07cf
|
7
|
+
data.tar.gz: 782cae7e7e3b688ede5e1ecd7441737caf9e5600a1d9319c133ef15b2cac35eb23d39ffba0413d452e53dd852f86f1955c82c8f4e555f861d40229affb112aec
|
data/.editorconfig
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
_site/
|
2
|
+
.sass-cache
|
3
|
+
.jekyll-metadata
|
4
|
+
*.gem
|
5
|
+
*.rbc
|
6
|
+
.bundle
|
7
|
+
.config
|
8
|
+
.yardoc
|
9
|
+
.DS_Store
|
10
|
+
Gemfile.lock
|
11
|
+
InstalledFiles
|
12
|
+
_yardoc
|
13
|
+
coverage
|
14
|
+
doc/
|
15
|
+
lib/bundler/man
|
16
|
+
pkg
|
17
|
+
rdoc
|
18
|
+
spec/reports
|
19
|
+
test/tmp
|
20
|
+
test/version_tmp
|
21
|
+
tmp
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# If you have OpenSSL installed, we recommend updating
|
2
|
+
# the following line to use "https"
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
group :development do
|
6
|
+
# for doc
|
7
|
+
gem 'jekyll', '~> 3.0', '>= 3.0.1'
|
8
|
+
gem 'jekyll-gist', '~> 1.4'
|
9
|
+
gem 'jekyll-paginate', '~> 1.1'
|
10
|
+
gem 'pygments.rb', '~> 0.6.3'
|
11
|
+
end
|
12
|
+
|
13
|
+
# specify your gem's dependencies in mix-buttons.gemspec
|
14
|
+
gemspec
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mix-buttons (1.3.0)
|
5
|
+
compass (~> 1.0)
|
6
|
+
sass (~> 3.4)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
addressable (2.3.8)
|
12
|
+
chunky_png (1.3.5)
|
13
|
+
colorator (0.1)
|
14
|
+
compass (1.0.3)
|
15
|
+
chunky_png (~> 1.2)
|
16
|
+
compass-core (~> 1.0.2)
|
17
|
+
compass-import-once (~> 1.0.5)
|
18
|
+
rb-fsevent (>= 0.9.3)
|
19
|
+
rb-inotify (>= 0.9)
|
20
|
+
sass (>= 3.3.13, < 3.5)
|
21
|
+
compass-core (1.0.3)
|
22
|
+
multi_json (~> 1.0)
|
23
|
+
sass (>= 3.3.0, < 3.5)
|
24
|
+
compass-import-once (1.0.5)
|
25
|
+
sass (>= 3.2, < 3.5)
|
26
|
+
faraday (0.9.2)
|
27
|
+
multipart-post (>= 1.2, < 3)
|
28
|
+
ffi (1.9.10)
|
29
|
+
jekyll (3.0.1)
|
30
|
+
colorator (~> 0.1)
|
31
|
+
jekyll-sass-converter (~> 1.0)
|
32
|
+
jekyll-watch (~> 1.1)
|
33
|
+
kramdown (~> 1.3)
|
34
|
+
liquid (~> 3.0)
|
35
|
+
mercenary (~> 0.3.3)
|
36
|
+
rouge (~> 1.7)
|
37
|
+
safe_yaml (~> 1.0)
|
38
|
+
jekyll-gist (1.4.0)
|
39
|
+
octokit (~> 4.2)
|
40
|
+
jekyll-paginate (1.1.0)
|
41
|
+
jekyll-sass-converter (1.4.0)
|
42
|
+
sass (~> 3.4)
|
43
|
+
jekyll-watch (1.3.0)
|
44
|
+
listen (~> 3.0)
|
45
|
+
kramdown (1.9.0)
|
46
|
+
liquid (3.0.6)
|
47
|
+
listen (3.0.5)
|
48
|
+
rb-fsevent (>= 0.9.3)
|
49
|
+
rb-inotify (>= 0.9)
|
50
|
+
mercenary (0.3.5)
|
51
|
+
multi_json (1.11.2)
|
52
|
+
multipart-post (2.0.0)
|
53
|
+
octokit (4.2.0)
|
54
|
+
sawyer (~> 0.6.0, >= 0.5.3)
|
55
|
+
posix-spawn (0.3.11)
|
56
|
+
pygments.rb (0.6.3)
|
57
|
+
posix-spawn (~> 0.3.6)
|
58
|
+
yajl-ruby (~> 1.2.0)
|
59
|
+
rake (10.4.2)
|
60
|
+
rb-fsevent (0.9.7)
|
61
|
+
rb-inotify (0.9.5)
|
62
|
+
ffi (>= 0.5.0)
|
63
|
+
rouge (1.10.1)
|
64
|
+
safe_yaml (1.0.4)
|
65
|
+
sass (3.4.20)
|
66
|
+
sawyer (0.6.0)
|
67
|
+
addressable (~> 2.3.5)
|
68
|
+
faraday (~> 0.8, < 0.10)
|
69
|
+
yajl-ruby (1.2.1)
|
70
|
+
|
71
|
+
PLATFORMS
|
72
|
+
ruby
|
73
|
+
|
74
|
+
DEPENDENCIES
|
75
|
+
bundler (~> 1.11)
|
76
|
+
jekyll (~> 3.0, >= 3.0.1)
|
77
|
+
jekyll-gist (~> 1.4)
|
78
|
+
jekyll-paginate (~> 1.1)
|
79
|
+
mix-buttons!
|
80
|
+
pygments.rb (~> 0.6.3)
|
81
|
+
rake (~> 10.4)
|
82
|
+
|
83
|
+
BUNDLED WITH
|
84
|
+
1.11.2
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Fernando Moreira
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# Mix buttons #
|
2
|
+
|
3
|
+
> SASS Mixins for generate beautiful buttons
|
4
|
+
|
5
|
+
## Installation ##
|
6
|
+
|
7
|
+
* **bower**: `bower install mix-buttons`
|
8
|
+
|
9
|
+
## Usage ##
|
10
|
+
|
11
|
+
```
|
12
|
+
@import "mix-buttons";
|
13
|
+
|
14
|
+
.my-button {
|
15
|
+
|
16
|
+
@include mix-button(
|
17
|
+
$custom-font-color, /* default is #fff */
|
18
|
+
$custom-background-color, /* default is #8cd1a8 */
|
19
|
+
$custom-border-radius, /* default is 2px */
|
20
|
+
$custom-font-weight, /* default is 600 */
|
21
|
+
$custom-text-transform, /* default is capitalize */
|
22
|
+
$boolean-is-button-ghost /* default is false */
|
23
|
+
);
|
24
|
+
|
25
|
+
}
|
26
|
+
```
|
27
|
+
|
28
|
+
## Contributing ##
|
29
|
+
|
30
|
+
1. Fork it
|
31
|
+
2. Create your feature branch: `git checkout -b my-new-feature`
|
32
|
+
3. Commit your changes: `git commit -m 'Add some feature'`
|
33
|
+
4. Push to the branch: `git push origin my-new-feature`
|
34
|
+
5. Submit a pull request :D
|
35
|
+
|
36
|
+
---
|
37
|
+
|
38
|
+
#### [preview and doc](http://nandomoreira.me/mix-buttons)
|
39
|
+
|
40
|
+
<a href="http://nandomoreira.me/mix-buttons">
|
41
|
+
<img src="/doc/mix-buttons.jpg" alt="Mix buttons">
|
42
|
+
</a>
|
43
|
+
|
44
|
+
---
|
45
|
+
|
46
|
+
## License ##
|
47
|
+
|
48
|
+
It is free under the [open-source MIT license](/LICENSE).
|
49
|
+
|
50
|
+
Enjoy :yum:
|
51
|
+
|
52
|
+
by [nandomoreira.me](http://nandomoreira.me)
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require "rubygems"
|
3
|
+
require "tmpdir"
|
4
|
+
require "bundler/gem_tasks"
|
5
|
+
require "bundler/setup"
|
6
|
+
require "jekyll"
|
7
|
+
|
8
|
+
# Change your GitHub reponame
|
9
|
+
GITHUB_REPONAME = "nandomoreirame/mix-buttons"
|
10
|
+
GITHUB_REPO_BRANCH = "gh-pages"
|
11
|
+
|
12
|
+
task default: %w[publish]
|
13
|
+
|
14
|
+
desc "Generate blog files"
|
15
|
+
task :generate do
|
16
|
+
Jekyll::Site.new(Jekyll.configuration({
|
17
|
+
"source" => "doc/",
|
18
|
+
"destination" => "_site",
|
19
|
+
"config" => "_config.yml"
|
20
|
+
})).process
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Generate and publish blog to gh-pages"
|
24
|
+
task :publish => [:generate] do
|
25
|
+
Dir.mktmpdir do |tmp|
|
26
|
+
cp_r "_site/.", tmp
|
27
|
+
|
28
|
+
pwd = Dir.pwd
|
29
|
+
Dir.chdir tmp
|
30
|
+
|
31
|
+
system "git init"
|
32
|
+
system "git checkout --orphan #{GITHUB_REPO_BRANCH}"
|
33
|
+
system "git add ."
|
34
|
+
message = "Site updated at #{Time.now.utc}"
|
35
|
+
system "git commit -am #{message.inspect}"
|
36
|
+
system "git remote add origin git@github.com:#{GITHUB_REPONAME}.git"
|
37
|
+
system "git push origin #{GITHUB_REPO_BRANCH} --force"
|
38
|
+
|
39
|
+
Dir.chdir pwd
|
40
|
+
end
|
41
|
+
end
|
data/_config.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
# Site settings
|
3
|
+
title: Mix Buttons
|
4
|
+
baseurl: "/mix-buttons"
|
5
|
+
description: "SASS Mixins for generate beautiful buttons"
|
6
|
+
url: "http://nandomoreira.me"
|
7
|
+
image: "/mix-buttons.jpg"
|
8
|
+
|
9
|
+
# Build settings
|
10
|
+
markdown: kramdown
|
11
|
+
highlighter: pygments
|
12
|
+
|
13
|
+
gems:
|
14
|
+
- jekyll-paginate
|
15
|
+
- jekyll-gist
|
16
|
+
|
17
|
+
source: doc
|
18
|
+
destination: _site
|
19
|
+
sass:
|
20
|
+
sass_dir: _sass
|
21
|
+
style: compressed
|
data/bower.json
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"name": "mix-buttons",
|
3
|
+
"description": "SASS Mixins for generate beautiful buttons",
|
4
|
+
"homepage": "https://github.com/nandomoreirame/mix-buttons",
|
5
|
+
"author": "Fernando Moreira <nandomoreira.me@gmail.com>",
|
6
|
+
"license": "MIT",
|
7
|
+
"main": [
|
8
|
+
"sass/_variables.scss",
|
9
|
+
"sass/_mix-buttons.scss"
|
10
|
+
],
|
11
|
+
"ignore": [
|
12
|
+
"**/.*",
|
13
|
+
"node_modules",
|
14
|
+
"bower_components",
|
15
|
+
"sass/buttons.scss",
|
16
|
+
"Gemfile",
|
17
|
+
"Gemfile.lock",
|
18
|
+
"_config.yml",
|
19
|
+
"Rakefile",
|
20
|
+
"config.rb",
|
21
|
+
"doc"
|
22
|
+
],
|
23
|
+
"keywords": [
|
24
|
+
"sass",
|
25
|
+
"scss",
|
26
|
+
"mixins",
|
27
|
+
"mixin",
|
28
|
+
"buttons"
|
29
|
+
]
|
30
|
+
}
|
data/config.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
6
|
+
|
7
|
+
<title>{{ site.title }} | {{ site.description }}</title>
|
8
|
+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
|
11
|
+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway:400,300,500,700,600">
|
12
|
+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
|
13
|
+
<link rel="stylesheet" href="{{ "/buttons.css" | prepend: site.baseurl }}">
|
14
|
+
|
15
|
+
<link rel="canonical" href="{{ '/' | prepend: site.baseurl | prepend: site.url }}">
|
16
|
+
|
17
|
+
<meta property="fb:admins" content="100003797913346">
|
18
|
+
<meta property="fb:app_id" content="585852118228520">
|
19
|
+
<meta property="og:type" content="website">
|
20
|
+
<meta property="og:url" content="{{ '/' | prepend: site.baseurl | prepend: site.url }}">
|
21
|
+
<meta property="og:title" content="{{ site.title }}">
|
22
|
+
<meta property="og:image" content="{{ site.description }}">
|
23
|
+
<meta property="og:description" content="{{ site.image | prepend: site.baseurl | prepend: site.url }}">
|
24
|
+
<meta property="og:site_name" content="{{ site.title }}">
|
25
|
+
|
26
|
+
<meta name="twitter:card" content="summary_large_image">
|
27
|
+
<meta name="twitter:site" content="@nandomoreirame">
|
28
|
+
<meta name="twitter:title" content="{{ site.title }}">
|
29
|
+
<meta name="twitter:description" content="{{ site.description }}">
|
30
|
+
<meta name="twitter:image:src" content="{{ site.image | prepend: site.baseurl | prepend: site.url }}">
|
31
|
+
</head>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<header>
|
2
|
+
|
3
|
+
<h1>{{ site.title }}</h1>
|
4
|
+
<p class="lead">{{ site.description }}</p>
|
5
|
+
|
6
|
+
<iframe src="https://ghbtns.com/github-btn.html?user=nandomoreirame&repo=mix-buttons&type=star&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
7
|
+
<iframe src="https://ghbtns.com/github-btn.html?user=nandomoreirame&repo=mix-buttons&type=fork&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
8
|
+
|
9
|
+
<span class="fb-like" data-href="{{ "/" | prepend: site.baseurl | prepend: site.url }}" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></span>
|
10
|
+
|
11
|
+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{{ "/" | prepend: site.baseurl | prepend: site.url }}" data-text='{{ site.title }} - {{ site.description }}' data-via="nandomoreirame" data-hashtags="sass, scss, mixin, minxins, buttons">Tweet</a>
|
12
|
+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
13
|
+
</header>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.0.1
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% assign _lastchar = _pres.last | split: "" | last %}{% assign _outerloop = forloop %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if forloop.last and _lastchar == _LINE_FEED %}{% unless _outerloop.last %}{{ _LINE_FEED }}{% endunless %}{% continue %}{% endif %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
<html>
|
6
|
+
{% include head.html %}
|
7
|
+
<body>
|
8
|
+
<div id="fb-root"></div>
|
9
|
+
<script>(function(d, s, id) {
|
10
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
11
|
+
if (d.getElementById(id)) return;
|
12
|
+
js = d.createElement(s); js.id = id;
|
13
|
+
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.5&appId=585852118228520";
|
14
|
+
fjs.parentNode.insertBefore(js, fjs);
|
15
|
+
}(document, 'script', 'facebook-jssdk'));</script>
|
16
|
+
|
17
|
+
<main>
|
18
|
+
{% include header.html %}
|
19
|
+
{{ content }}
|
20
|
+
{% include footer.html %}
|
21
|
+
</main>
|
22
|
+
</body>
|
23
|
+
</html>
|
data/doc/_sass/_doc.scss
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
* {
|
2
|
+
&, &:before, &:after {
|
3
|
+
box-sizing: border-box;
|
4
|
+
}
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
font-family: 'Raleway', Helvetica, sans-serif;
|
9
|
+
font-feature-settings: "kern", "liga", "pnum";
|
10
|
+
-webkit-font-smoothing: antialiased;
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
12
|
+
letter-spacing: .01em;
|
13
|
+
font-size: 1rem;
|
14
|
+
color: rgba(0, 0, 0, .7);
|
15
|
+
}
|
16
|
+
|
17
|
+
main {
|
18
|
+
text-align: center;
|
19
|
+
}
|
20
|
+
|
21
|
+
input, button, select, textarea {
|
22
|
+
font-family: inherit;
|
23
|
+
font-size: inherit;
|
24
|
+
line-height: inherit;
|
25
|
+
}
|
26
|
+
|
27
|
+
h2 {
|
28
|
+
font-weight: 300;
|
29
|
+
}
|
30
|
+
|
31
|
+
header {
|
32
|
+
padding: 1.6em 1.2em;
|
33
|
+
background-color: #f1f1f1;
|
34
|
+
border-bottom: 1px solid #eee;
|
35
|
+
|
36
|
+
h1, p, iframe,
|
37
|
+
.twitter-share-button,
|
38
|
+
.fb-like {
|
39
|
+
animation-name: bounceInDown;
|
40
|
+
animation-fill-mode: both;
|
41
|
+
}
|
42
|
+
|
43
|
+
p {
|
44
|
+
animation-duration: 1.5s;
|
45
|
+
}
|
46
|
+
|
47
|
+
.twitter-share-button,
|
48
|
+
.fb-like,
|
49
|
+
iframe {
|
50
|
+
animation-duration: 1s;
|
51
|
+
}
|
52
|
+
|
53
|
+
h1 {
|
54
|
+
animation-duration: 2s;
|
55
|
+
font-weight: 500;
|
56
|
+
font-size: 2.6rem;
|
57
|
+
margin: 0 0 .8em;
|
58
|
+
}
|
59
|
+
|
60
|
+
.fb-like {
|
61
|
+
width: 190px;
|
62
|
+
text-align: left;
|
63
|
+
}
|
64
|
+
|
65
|
+
.fb-like span {
|
66
|
+
vertical-align: top !important;
|
67
|
+
top: -5px;
|
68
|
+
}
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
footer {
|
73
|
+
padding: 2em;
|
74
|
+
|
75
|
+
p, a {
|
76
|
+
color: #9b9b9b;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.lead {
|
81
|
+
font-size: 1.2rem;
|
82
|
+
font-weight: 300;
|
83
|
+
margin-bottom: 1em;
|
84
|
+
}
|
85
|
+
|
86
|
+
.bg-full {
|
87
|
+
width: 100%;
|
88
|
+
padding: 4em 1.2em;
|
89
|
+
}
|
90
|
+
|
91
|
+
.bg-gray,
|
92
|
+
.bg-blue {
|
93
|
+
h1, h2 {
|
94
|
+
color: #fff;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.bg-gray {
|
99
|
+
background-color: #424242;
|
100
|
+
}
|
101
|
+
|
102
|
+
.bg-silver {
|
103
|
+
background-color: #f1f1f1;
|
104
|
+
}
|
105
|
+
|
106
|
+
.bg-blue {
|
107
|
+
background-color: #4a98e5;
|
108
|
+
}
|
109
|
+
|
110
|
+
@keyframes bounceInDown {
|
111
|
+
from, 60%, 75%, 90%, to {
|
112
|
+
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
|
113
|
+
}
|
114
|
+
|
115
|
+
0% {
|
116
|
+
opacity: 0;
|
117
|
+
transform: translate3d(0, -3000px, 0);
|
118
|
+
}
|
119
|
+
|
120
|
+
60% {
|
121
|
+
opacity: 1;
|
122
|
+
transform: translate3d(0, 25px, 0);
|
123
|
+
}
|
124
|
+
|
125
|
+
75% {
|
126
|
+
transform: translate3d(0, -10px, 0);
|
127
|
+
}
|
128
|
+
|
129
|
+
90% {
|
130
|
+
transform: translate3d(0, 5px, 0);
|
131
|
+
}
|
132
|
+
|
133
|
+
to {
|
134
|
+
transform: none;
|
135
|
+
}
|
136
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
.highlight {
|
5
|
+
max-width: 760px;
|
6
|
+
margin-left: auto;
|
7
|
+
margin-right: auto;
|
8
|
+
background: #f9f9f9;
|
9
|
+
border: 1px solid #efefef;
|
10
|
+
text-align: left;
|
11
|
+
padding: 0;
|
12
|
+
margin-top: 1.4em;
|
13
|
+
margin-bottom: 1.4em;
|
14
|
+
|
15
|
+
.highlighter-rouge & {
|
16
|
+
background: #eef;
|
17
|
+
}
|
18
|
+
|
19
|
+
pre {
|
20
|
+
padding: 2em;
|
21
|
+
margin: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
.c { color: #998; font-style: italic } // Comment
|
25
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
26
|
+
.k { font-weight: bold } // Keyword
|
27
|
+
.o { font-weight: bold } // Operator
|
28
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
29
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
30
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
31
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
32
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
33
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
34
|
+
.ge { font-style: italic } // Generic.Emph
|
35
|
+
.gr { color: #a00 } // Generic.Error
|
36
|
+
.gh { color: #999 } // Generic.Heading
|
37
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
38
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
39
|
+
.go { color: #888 } // Generic.Output
|
40
|
+
.gp { color: #555 } // Generic.Prompt
|
41
|
+
.gs { font-weight: bold } // Generic.Strong
|
42
|
+
.gu { color: #aaa } // Generic.Subheading
|
43
|
+
.gt { color: #a00 } // Generic.Traceback
|
44
|
+
.kc { font-weight: bold } // Keyword.Constant
|
45
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
46
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
47
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
48
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
49
|
+
.m { color: #099 } // Literal.Number
|
50
|
+
.s { color: #d14 } // Literal.String
|
51
|
+
.na { color: #008080 } // Name.Attribute
|
52
|
+
.nb { color: #0086B3 } // Name.Builtin
|
53
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
54
|
+
.no { color: #008080 } // Name.Constant
|
55
|
+
.ni { color: #800080 } // Name.Entity
|
56
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
57
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
58
|
+
.nn { color: #555 } // Name.Namespace
|
59
|
+
.nt { color: #000080 } // Name.Tag
|
60
|
+
.nv { color: #008080 } // Name.Variable
|
61
|
+
.ow { font-weight: bold } // Operator.Word
|
62
|
+
.w { color: #bbb } // Text.Whitespace
|
63
|
+
.mf { color: #099 } // Literal.Number.Float
|
64
|
+
.mh { color: #099 } // Literal.Number.Hex
|
65
|
+
.mi { color: #099 } // Literal.Number.Integer
|
66
|
+
.mo { color: #099 } // Literal.Number.Oct
|
67
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
68
|
+
.sc { color: #d14 } // Literal.String.Char
|
69
|
+
.sd { color: #d14 } // Literal.String.Doc
|
70
|
+
.s2 { color: #d14 } // Literal.String.Double
|
71
|
+
.se { color: #d14 } // Literal.String.Escape
|
72
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
73
|
+
.si { color: #d14 } // Literal.String.Interpol
|
74
|
+
.sx { color: #d14 } // Literal.String.Other
|
75
|
+
.sr { color: #009926 } // Literal.String.Regex
|
76
|
+
.s1 { color: #d14 } // Literal.String.Single
|
77
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
78
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
79
|
+
.vc { color: #008080 } // Name.Variable.Class
|
80
|
+
.vg { color: #008080 } // Name.Variable.Global
|
81
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
82
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
83
|
+
}
|