gravid 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/_includes/footer.html +0 -0
- data/_includes/head.html +15 -0
- data/_includes/header.html +10 -0
- data/_layouts/archive.html +21 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +28 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +8 -0
- data/_sass/gravid.scss +9 -0
- data/_sass/gravid/_base.scss +27 -0
- data/_sass/gravid/_layout.scss +86 -0
- data/_sass/gravid/_syntax-highlighting.scss +86 -0
- data/_sass/sofish/_typo.scss +369 -0
- data/assets/avatar.jpg +0 -0
- data/assets/gravid_blog_preview.png +0 -0
- data/assets/main.scss +5 -0
- metadata +105 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 334bf065c8586d736cb6b678d3f17de25c1e9235
|
4
|
+
data.tar.gz: 9cea0979836d29692d33a30b7091c33b03769cc9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 940dff9c9e8d95acfe3f0dc594d08b8a87a2305b0083536ea09d86ad688111fdeb092b15ced927c458f162abc2c1dc8c29fa9a36cf8c551a2573de3c0fad386d
|
7
|
+
data.tar.gz: b675ebf8698ee7390a53845141fba8900a3b9e0711e3bbb9758c315e209897fe99a4ae6280b8c494baa78593db5035a806318071d6ecfc3a9d096154ec84b774
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 zddhub
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# gravid
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme - gravid!
|
4
|
+
|
5
|
+
Being talented just like being gravid, must be known with a long time past. I think I need more time to be talented, so I choose an easy one and named 'gravid'. 😊
|
6
|
+
|
7
|
+
[Theme preview](https://zddhub.github.io)
|
8
|
+
|
9
|
+
![Screenshot](/assets/gravid_blog_preview.png)
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your Jekyll site's `Gemfile`:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem "gravid"
|
17
|
+
```
|
18
|
+
|
19
|
+
And add this line to your Jekyll site's `_config.yml`:
|
20
|
+
|
21
|
+
```yaml
|
22
|
+
theme: gravid
|
23
|
+
```
|
24
|
+
|
25
|
+
And then execute:
|
26
|
+
|
27
|
+
$ bundle
|
28
|
+
|
29
|
+
Or install it yourself as:
|
30
|
+
|
31
|
+
$ gem install gravid
|
32
|
+
|
33
|
+
## Development
|
34
|
+
|
35
|
+
Gravid has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration.
|
36
|
+
|
37
|
+
To set up your environment to develop this theme, run `bundle install`.
|
38
|
+
|
39
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
40
|
+
|
41
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
42
|
+
|
43
|
+
## Contributing
|
44
|
+
|
45
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/zddhub/gravid. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
46
|
+
|
47
|
+
## Thanks
|
48
|
+
|
49
|
+
Inspiration from [Sofish's personal blog](https://github.com/sofish/sofi.sh), Thanks.
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
54
|
+
|
File without changes
|
data/_includes/head.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
|
6
|
+
<title>
|
7
|
+
{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}
|
8
|
+
{% if site.slogan and page.url == '/' %} | {{ site.slogan | escape }}{% endif %}
|
9
|
+
</title>
|
10
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
11
|
+
|
12
|
+
<link rel="stylesheet" href="/assets/main.css">
|
13
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
14
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
15
|
+
</head>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<header class="site-header" role="banner">
|
2
|
+
<a class="title" href="/"><strong>{{ site.title }}</strong></a>
|
3
|
+
<a class="logo" href="/">
|
4
|
+
<img src="/assets/avatar.jpg" class="avatar" alt="{{ site.title }}">
|
5
|
+
</a>
|
6
|
+
<nav class="site-nav">
|
7
|
+
<a class="sidebar-nav-item" href="/Archive">Archive</a>
|
8
|
+
<a class="sidebar-nav-item" href="/About">About</a>
|
9
|
+
</nav>
|
10
|
+
</header>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="container typo">
|
6
|
+
|
7
|
+
<h1 class="post-title">{{ page.title }}</h1>
|
8
|
+
|
9
|
+
<section class="posts">
|
10
|
+
<ul class="post-list">
|
11
|
+
{% for post in site.posts %}
|
12
|
+
<li>
|
13
|
+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
14
|
+
{% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
|
15
|
+
<small class="post-meta archive">{{ post.date | date: date_format }}</small>
|
16
|
+
</li>
|
17
|
+
{% endfor %}
|
18
|
+
</ul>
|
19
|
+
</section>
|
20
|
+
|
21
|
+
</article>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{% include header.html %}
|
9
|
+
|
10
|
+
<main class="page-content" aria-label="Content">
|
11
|
+
<div class="wrapper">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</main>
|
15
|
+
|
16
|
+
{% include footer.html %}
|
17
|
+
|
18
|
+
</body>
|
19
|
+
|
20
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="container typo">
|
6
|
+
|
7
|
+
<section class="info">
|
8
|
+
|
9
|
+
{{ content }}
|
10
|
+
|
11
|
+
</section>
|
12
|
+
|
13
|
+
<hr>
|
14
|
+
|
15
|
+
<section class="posts">
|
16
|
+
<ul class="post-list">
|
17
|
+
{% for post in site.posts %}
|
18
|
+
<li>
|
19
|
+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
20
|
+
{% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
|
21
|
+
<small class="post-meta">{{ post.date | date: date_format }}</small>
|
22
|
+
<p class="typo-small">{{ post.content | split:"<!-- more -->" | first | strip_html }}</p>
|
23
|
+
</li>
|
24
|
+
{% endfor %}
|
25
|
+
</ul>
|
26
|
+
</section>
|
27
|
+
|
28
|
+
</article>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
data/_sass/gravid.scss
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
html, body {
|
3
|
+
margin: 0;
|
4
|
+
padding: 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
padding-top: 60px;
|
9
|
+
font-size: 1.1em;
|
10
|
+
}
|
11
|
+
|
12
|
+
hr {
|
13
|
+
border-bottom: 1px solid #eaecef;
|
14
|
+
}
|
15
|
+
|
16
|
+
.typo ul {
|
17
|
+
margin-left: 0;
|
18
|
+
list-style-type: decimal;
|
19
|
+
list-style-position: inside;
|
20
|
+
}
|
21
|
+
|
22
|
+
pre {
|
23
|
+
border: none;
|
24
|
+
white-space: pre-wrap;
|
25
|
+
word-break: break-all;
|
26
|
+
word-wrap: break-word;
|
27
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
/**
|
2
|
+
* Header
|
3
|
+
*/
|
4
|
+
|
5
|
+
.site-header {
|
6
|
+
position: fixed;
|
7
|
+
height: 50px;
|
8
|
+
width: 100%;
|
9
|
+
top: 0;
|
10
|
+
left: 0;
|
11
|
+
padding: 0 20px;
|
12
|
+
border-bottom: 1px solid #eee;
|
13
|
+
background: #fff;
|
14
|
+
z-index: 1;
|
15
|
+
line-height: 50px;
|
16
|
+
font-size: 20px;
|
17
|
+
box-sizing: border-box;
|
18
|
+
|
19
|
+
text-align: center;
|
20
|
+
|
21
|
+
a {
|
22
|
+
text-decoration: none;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.title {
|
27
|
+
float: left;
|
28
|
+
}
|
29
|
+
|
30
|
+
@media only screen and ( max-width: 480px ) {
|
31
|
+
.logo {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.site-nav {
|
37
|
+
float: right;
|
38
|
+
display: inline-block;
|
39
|
+
font-size: 18px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.sidebar-nav-item {
|
43
|
+
color: black;
|
44
|
+
}
|
45
|
+
|
46
|
+
.sidebar-nav-item {
|
47
|
+
padding: 0 10px;
|
48
|
+
}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Home
|
52
|
+
*/
|
53
|
+
|
54
|
+
.info h1 {
|
55
|
+
font-weight: 400;
|
56
|
+
}
|
57
|
+
|
58
|
+
.avatar {
|
59
|
+
height: 48px;
|
60
|
+
border-radius: 48px;
|
61
|
+
}
|
62
|
+
|
63
|
+
.container {
|
64
|
+
max-width: 800px;
|
65
|
+
padding: 0 20px;
|
66
|
+
margin: 0 auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
.post-list {
|
70
|
+
list-style: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Post
|
75
|
+
*/
|
76
|
+
.post-title {
|
77
|
+
font-size: 40px;
|
78
|
+
font-weight: 400;
|
79
|
+
}
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Archive
|
83
|
+
*/
|
84
|
+
.archive {
|
85
|
+
float: right;
|
86
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
/* Solarized Light
|
2
|
+
|
3
|
+
For use with Jekyll and Pygments
|
4
|
+
http://ethanschoonover.com/solarized
|
5
|
+
SOLARIZED HEX ROLE
|
6
|
+
--------- -------- ------------------------------------------
|
7
|
+
base01 #586e75 body text / default code / primary content
|
8
|
+
base1 #93a1a1 comments / secondary content
|
9
|
+
base3 #fdf6e3 background
|
10
|
+
orange #cb4b16 constants
|
11
|
+
red #dc322f regex, special keywords
|
12
|
+
blue #268bd2 reserved keywords
|
13
|
+
cyan #2aa198 strings, numbers
|
14
|
+
green #859900 operators, other keywords
|
15
|
+
*/
|
16
|
+
|
17
|
+
.highlight { background-color: #f6f8fa; color: #333 }
|
18
|
+
.highlight .lineno { color: #93a1a1 } /* Line Numbers */
|
19
|
+
.highlight .c { color: #93a1a1 } /* Comment */
|
20
|
+
.highlight .err { color: #586e75 } /* Error */
|
21
|
+
.highlight .g { color: #586e75 } /* Generic */
|
22
|
+
.highlight .k { color: #859900 } /* Keyword */
|
23
|
+
.highlight .l { color: #586e75 } /* Literal */
|
24
|
+
.highlight .n { color: #586e75 } /* Name */
|
25
|
+
.highlight .o { color: #859900 } /* Operator */
|
26
|
+
.highlight .x { color: #cb4b16 } /* Other */
|
27
|
+
.highlight .p { color: #586e75 } /* Punctuation */
|
28
|
+
.highlight .cm { color: #93a1a1 } /* Comment.Multiline */
|
29
|
+
.highlight .cp { color: #859900 } /* Comment.Preproc */
|
30
|
+
.highlight .c1 { color: #93a1a1 } /* Comment.Single */
|
31
|
+
.highlight .cs { color: #859900 } /* Comment.Special */
|
32
|
+
.highlight .gd { color: #2aa198 } /* Generic.Deleted */
|
33
|
+
.highlight .ge { color: #586e75; font-style: italic } /* Generic.Emph */
|
34
|
+
.highlight .gr { color: #dc322f } /* Generic.Error */
|
35
|
+
.highlight .gh { color: #cb4b16 } /* Generic.Heading */
|
36
|
+
.highlight .gi { color: #859900 } /* Generic.Inserted */
|
37
|
+
.highlight .go { color: #586e75 } /* Generic.Output */
|
38
|
+
.highlight .gp { color: #586e75 } /* Generic.Prompt */
|
39
|
+
.highlight .gs { color: #586e75; font-weight: bold } /* Generic.Strong */
|
40
|
+
.highlight .gu { color: #cb4b16 } /* Generic.Subheading */
|
41
|
+
.highlight .gt { color: #586e75 } /* Generic.Traceback */
|
42
|
+
.highlight .kc { color: #cb4b16 } /* Keyword.Constant */
|
43
|
+
.highlight .kd { color: #268bd2 } /* Keyword.Declaration */
|
44
|
+
.highlight .kn { color: #859900 } /* Keyword.Namespace */
|
45
|
+
.highlight .kp { color: #859900 } /* Keyword.Pseudo */
|
46
|
+
.highlight .kr { color: #268bd2 } /* Keyword.Reserved */
|
47
|
+
.highlight .kt { color: #dc322f } /* Keyword.Type */
|
48
|
+
.highlight .ld { color: #586e75 } /* Literal.Date */
|
49
|
+
.highlight .m { color: #2aa198 } /* Literal.Number */
|
50
|
+
.highlight .s { color: #2aa198 } /* Literal.String */
|
51
|
+
.highlight .na { color: #586e75 } /* Name.Attribute */
|
52
|
+
.highlight .nb { color: #B58900 } /* Name.Builtin */
|
53
|
+
.highlight .nc { color: #268bd2 } /* Name.Class */
|
54
|
+
.highlight .no { color: #cb4b16 } /* Name.Constant */
|
55
|
+
.highlight .nd { color: #268bd2 } /* Name.Decorator */
|
56
|
+
.highlight .ni { color: #cb4b16 } /* Name.Entity */
|
57
|
+
.highlight .ne { color: #cb4b16 } /* Name.Exception */
|
58
|
+
.highlight .nf { color: #268bd2 } /* Name.Function */
|
59
|
+
.highlight .nl { color: #586e75 } /* Name.Label */
|
60
|
+
.highlight .nn { color: #586e75 } /* Name.Namespace */
|
61
|
+
.highlight .nx { color: #586e75 } /* Name.Other */
|
62
|
+
.highlight .py { color: #586e75 } /* Name.Property */
|
63
|
+
.highlight .nt { color: #268bd2 } /* Name.Tag */
|
64
|
+
.highlight .nv { color: #268bd2 } /* Name.Variable */
|
65
|
+
.highlight .ow { color: #859900 } /* Operator.Word */
|
66
|
+
.highlight .w { color: #586e75 } /* Text.Whitespace */
|
67
|
+
.highlight .mf { color: #2aa198 } /* Literal.Number.Float */
|
68
|
+
.highlight .mh { color: #2aa198 } /* Literal.Number.Hex */
|
69
|
+
.highlight .mi { color: #2aa198 } /* Literal.Number.Integer */
|
70
|
+
.highlight .mo { color: #2aa198 } /* Literal.Number.Oct */
|
71
|
+
.highlight .sb { color: #93a1a1 } /* Literal.String.Backtick */
|
72
|
+
.highlight .sc { color: #2aa198 } /* Literal.String.Char */
|
73
|
+
.highlight .sd { color: #586e75 } /* Literal.String.Doc */
|
74
|
+
.highlight .s2 { color: #2aa198 } /* Literal.String.Double */
|
75
|
+
.highlight .se { color: #cb4b16 } /* Literal.String.Escape */
|
76
|
+
.highlight .sh { color: #586e75 } /* Literal.String.Heredoc */
|
77
|
+
.highlight .si { color: #2aa198 } /* Literal.String.Interpol */
|
78
|
+
.highlight .sx { color: #2aa198 } /* Literal.String.Other */
|
79
|
+
.highlight .sr { color: #dc322f } /* Literal.String.Regex */
|
80
|
+
.highlight .s1 { color: #2aa198 } /* Literal.String.Single */
|
81
|
+
.highlight .ss { color: #2aa198 } /* Literal.String.Symbol */
|
82
|
+
.highlight .bp { color: #268bd2 } /* Name.Builtin.Pseudo */
|
83
|
+
.highlight .vc { color: #268bd2 } /* Name.Variable.Class */
|
84
|
+
.highlight .vg { color: #268bd2 } /* Name.Variable.Global */
|
85
|
+
.highlight .vi { color: #268bd2 } /* Name.Variable.Instance */
|
86
|
+
.highlight .il { color: #2aa198 } /* Literal.Number.Integer.Long */
|
@@ -0,0 +1,369 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
/*
|
4
|
+
TYPO.CSS - a better way to manage the typography of your Chinese-lang-base site.
|
5
|
+
|
6
|
+
Copyright (C) 2012 Sofish Lin http://sofish.de
|
7
|
+
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
9
|
+
this software and associated documentation files (the "Software"), to deal in
|
10
|
+
the Software without restriction, including without limitation the rights to
|
11
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
12
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
13
|
+
so, subject to the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
16
|
+
copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
24
|
+
SOFTWARE.
|
25
|
+
*/
|
26
|
+
|
27
|
+
/* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */
|
28
|
+
html {
|
29
|
+
color: #333;
|
30
|
+
background: #fff;
|
31
|
+
-webkit-text-size-adjust: 100%;
|
32
|
+
-ms-text-size-adjust: 100%;
|
33
|
+
text-rendering: optimizelegibility;
|
34
|
+
}
|
35
|
+
|
36
|
+
/* 如果你的项目仅支持 IE9+ | Chrome | Firefox 等,推荐在 <html> 中添加 .borderbox 这个 class */
|
37
|
+
html.borderbox *, html.borderbox *:before, html.borderbox *:after {
|
38
|
+
-moz-box-sizing: border-box;
|
39
|
+
-webkit-box-sizing: border-box;
|
40
|
+
box-sizing: border-box;
|
41
|
+
}
|
42
|
+
|
43
|
+
/* 内外边距通常让各个浏览器样式的表现位置不同 */
|
44
|
+
body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, menu, nav, section {
|
45
|
+
margin: 0;
|
46
|
+
padding: 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
|
50
|
+
article, aside, details, figcaption, figure, footer, header, menu, nav, section {
|
51
|
+
display: block;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* HTML5 媒体文件跟 img 保持一致 */
|
55
|
+
audio, canvas, video {
|
56
|
+
display: inline-block;
|
57
|
+
}
|
58
|
+
|
59
|
+
/* 要注意表单元素并不继承父级 font 的问题 */
|
60
|
+
body, button, input, select, textarea {
|
61
|
+
font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
62
|
+
}
|
63
|
+
|
64
|
+
button::-moz-focus-inner,
|
65
|
+
input::-moz-focus-inner {
|
66
|
+
padding: 0;
|
67
|
+
border: 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
/* 去掉各Table cell 的边距并让其边重合 */
|
71
|
+
table {
|
72
|
+
border-collapse: collapse;
|
73
|
+
border-spacing: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
/* 去除默认边框 */
|
77
|
+
fieldset, img {
|
78
|
+
border: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
/* 块/段落引用 */
|
82
|
+
blockquote {
|
83
|
+
position: relative;
|
84
|
+
color: #999;
|
85
|
+
font-weight: 400;
|
86
|
+
border-left: 1px solid #1abc9c;
|
87
|
+
padding-left: 1em;
|
88
|
+
margin: 1em 3em 1em 2em;
|
89
|
+
}
|
90
|
+
|
91
|
+
@media only screen and ( max-width: 640px ) {
|
92
|
+
blockquote {
|
93
|
+
margin: 1em 0;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
/* Firefox 以外,元素没有下划线,需添加 */
|
98
|
+
acronym, abbr {
|
99
|
+
border-bottom: 1px dotted;
|
100
|
+
font-variant: normal;
|
101
|
+
}
|
102
|
+
|
103
|
+
/* 添加鼠标问号,进一步确保应用的语义是正确的(要知道,交互他们也有洁癖,如果你不去掉,那得多花点口舌) */
|
104
|
+
abbr {
|
105
|
+
cursor: help;
|
106
|
+
}
|
107
|
+
|
108
|
+
/* 一致的 del 样式 */
|
109
|
+
del {
|
110
|
+
text-decoration: line-through;
|
111
|
+
}
|
112
|
+
|
113
|
+
address, caption, cite, code, dfn, em, th, var {
|
114
|
+
font-style: normal;
|
115
|
+
font-weight: 400;
|
116
|
+
}
|
117
|
+
|
118
|
+
/* 去掉列表前的标识, li 会继承,大部分网站通常用列表来很多内容,所以应该当去 */
|
119
|
+
ul, ol {
|
120
|
+
list-style: none;
|
121
|
+
}
|
122
|
+
|
123
|
+
/* 对齐是排版最重要的因素, 别让什么都居中 */
|
124
|
+
caption, th {
|
125
|
+
text-align: left;
|
126
|
+
}
|
127
|
+
|
128
|
+
q:before, q:after {
|
129
|
+
content: '';
|
130
|
+
}
|
131
|
+
|
132
|
+
/* 统一上标和下标 */
|
133
|
+
sub, sup {
|
134
|
+
font-size: 75%;
|
135
|
+
line-height: 0;
|
136
|
+
position: relative;
|
137
|
+
}
|
138
|
+
|
139
|
+
:root sub, :root sup {
|
140
|
+
vertical-align: baseline; /* for ie9 and other modern browsers */
|
141
|
+
}
|
142
|
+
|
143
|
+
sup {
|
144
|
+
top: -0.5em;
|
145
|
+
}
|
146
|
+
|
147
|
+
sub {
|
148
|
+
bottom: -0.25em;
|
149
|
+
}
|
150
|
+
|
151
|
+
/* 让链接在 hover 状态下显示下划线 */
|
152
|
+
a {
|
153
|
+
color: #1abc9c;
|
154
|
+
}
|
155
|
+
|
156
|
+
a:hover {
|
157
|
+
text-decoration: underline;
|
158
|
+
}
|
159
|
+
|
160
|
+
.typo a {
|
161
|
+
border-bottom: 1px solid #1abc9c;
|
162
|
+
}
|
163
|
+
|
164
|
+
.typo a:hover {
|
165
|
+
border-bottom-color: #555;
|
166
|
+
color: #555;
|
167
|
+
text-decoration: none;
|
168
|
+
}
|
169
|
+
|
170
|
+
/* 默认不显示下划线,保持页面简洁 */
|
171
|
+
ins, a {
|
172
|
+
text-decoration: none;
|
173
|
+
}
|
174
|
+
|
175
|
+
/* 专名号:虽然 u 已经重回 html5 Draft,但在所有浏览器中都是可以使用的,
|
176
|
+
* 要做到更好,向后兼容的话,添加 class="typo-u" 来显示专名号
|
177
|
+
* 关于 <u> 标签:http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-u-element
|
178
|
+
* 被放弃的是 4,之前一直搞错 http://www.w3.org/TR/html401/appendix/changes.html#idx-deprecated
|
179
|
+
* 一篇关于 <u> 标签的很好文章:http://html5doctor.com/u-element/
|
180
|
+
*/
|
181
|
+
u, .typo-u {
|
182
|
+
text-decoration: underline;
|
183
|
+
}
|
184
|
+
|
185
|
+
/* 标记,类似于手写的荧光笔的作用 */
|
186
|
+
mark {
|
187
|
+
background: #fffdd1;
|
188
|
+
border-bottom: 1px solid #ffedce;
|
189
|
+
padding: 2px;
|
190
|
+
margin: 0 5px;
|
191
|
+
}
|
192
|
+
|
193
|
+
/* 代码片断 */
|
194
|
+
pre, code, pre tt {
|
195
|
+
font-family: Courier, 'Courier New', monospace;
|
196
|
+
}
|
197
|
+
|
198
|
+
pre {
|
199
|
+
background: #f8f8f8;
|
200
|
+
border: 1px solid #ddd;
|
201
|
+
padding: 1em 1.5em;
|
202
|
+
display: block;
|
203
|
+
-webkit-overflow-scrolling: touch;
|
204
|
+
}
|
205
|
+
|
206
|
+
/* 一致化 horizontal rule */
|
207
|
+
hr {
|
208
|
+
border: none;
|
209
|
+
border-bottom: 1px solid #cfcfcf;
|
210
|
+
margin-bottom: 0.8em;
|
211
|
+
height: 10px;
|
212
|
+
}
|
213
|
+
|
214
|
+
/* 底部印刷体、版本等标记 */
|
215
|
+
small, .typo-small,
|
216
|
+
/* 图片说明 */
|
217
|
+
figcaption {
|
218
|
+
font-size: 0.9em;
|
219
|
+
color: #888;
|
220
|
+
}
|
221
|
+
|
222
|
+
strong, b {
|
223
|
+
font-weight: bold;
|
224
|
+
color: #000;
|
225
|
+
}
|
226
|
+
|
227
|
+
/* 可拖动文件添加拖动手势 */
|
228
|
+
[draggable] {
|
229
|
+
cursor: move;
|
230
|
+
}
|
231
|
+
|
232
|
+
.clearfix:before, .clearfix:after {
|
233
|
+
content: "";
|
234
|
+
display: table;
|
235
|
+
}
|
236
|
+
|
237
|
+
.clearfix:after {
|
238
|
+
clear: both;
|
239
|
+
}
|
240
|
+
|
241
|
+
.clearfix {
|
242
|
+
zoom: 1;
|
243
|
+
}
|
244
|
+
|
245
|
+
/* 强制文本换行 */
|
246
|
+
.textwrap, .textwrap td, .textwrap th {
|
247
|
+
word-wrap: break-word;
|
248
|
+
word-break: break-all;
|
249
|
+
}
|
250
|
+
|
251
|
+
.textwrap-table {
|
252
|
+
table-layout: fixed;
|
253
|
+
}
|
254
|
+
|
255
|
+
/* 提供 serif 版本的字体设置: iOS 下中文自动 fallback 到 sans-serif */
|
256
|
+
.serif {
|
257
|
+
font-family: Palatino, Optima, Georgia, serif;
|
258
|
+
}
|
259
|
+
|
260
|
+
/* 保证块/段落之间的空白隔行 */
|
261
|
+
.typo p, .typo pre, .typo ul, .typo ol, .typo dl, .typo form, .typo hr, .typo table,
|
262
|
+
.typo-p, .typo-pre, .typo-ul, .typo-ol, .typo-dl, .typo-form, .typo-hr, .typo-table, blockquote {
|
263
|
+
margin-bottom: 1.2em
|
264
|
+
}
|
265
|
+
|
266
|
+
h1, h2, h3, h4, h5, h6 {
|
267
|
+
font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
268
|
+
font-weight: 100;
|
269
|
+
color: #000;
|
270
|
+
line-height: 1.35;
|
271
|
+
}
|
272
|
+
|
273
|
+
/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
|
274
|
+
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6,
|
275
|
+
.typo-h1, .typo-h2, .typo-h3, .typo-h4, .typo-h5, .typo-h6 {
|
276
|
+
margin-top: 1.2em;
|
277
|
+
margin-bottom: 0.6em;
|
278
|
+
line-height: 1.35;
|
279
|
+
}
|
280
|
+
|
281
|
+
.typo h1, .typo-h1 {
|
282
|
+
font-size: 2em;
|
283
|
+
}
|
284
|
+
|
285
|
+
.typo h2, .typo-h2 {
|
286
|
+
font-size: 1.8em;
|
287
|
+
}
|
288
|
+
|
289
|
+
.typo h3, .typo-h3 {
|
290
|
+
font-size: 1.6em;
|
291
|
+
}
|
292
|
+
|
293
|
+
.typo h4, .typo-h4 {
|
294
|
+
font-size: 1.4em;
|
295
|
+
}
|
296
|
+
|
297
|
+
.typo h5, .typo h6, .typo-h5, .typo-h6 {
|
298
|
+
font-size: 1.2em;
|
299
|
+
}
|
300
|
+
|
301
|
+
/* 在文章中,应该还原 ul 和 ol 的样式 */
|
302
|
+
.typo ul, .typo-ul {
|
303
|
+
margin-left: 1.3em;
|
304
|
+
list-style: disc;
|
305
|
+
}
|
306
|
+
|
307
|
+
.typo ol, .typo-ol {
|
308
|
+
list-style: decimal;
|
309
|
+
margin-left: 1.9em;
|
310
|
+
}
|
311
|
+
|
312
|
+
.typo li ul, .typo li ol, .typo-ul ul, .typo-ul ol, .typo-ol ul, .typo-ol ol {
|
313
|
+
margin-bottom: 0.8em;
|
314
|
+
margin-left: 2em;
|
315
|
+
}
|
316
|
+
|
317
|
+
.typo li ul, .typo-ul ul, .typo-ol ul {
|
318
|
+
list-style: circle;
|
319
|
+
}
|
320
|
+
|
321
|
+
/* 同 ul/ol,在文章中应用 table 基本格式 */
|
322
|
+
.typo table th, .typo table td, .typo-table th, .typo-table td, .typo table caption {
|
323
|
+
border: 1px solid #ddd;
|
324
|
+
padding: 0.5em 1em;
|
325
|
+
color: #666;
|
326
|
+
}
|
327
|
+
|
328
|
+
.typo table th, .typo-table th {
|
329
|
+
background: #fbfbfb;
|
330
|
+
}
|
331
|
+
|
332
|
+
.typo table thead th, .typo-table thead th {
|
333
|
+
background: #f1f1f1;
|
334
|
+
}
|
335
|
+
|
336
|
+
.typo table caption {
|
337
|
+
border-bottom: none;
|
338
|
+
}
|
339
|
+
|
340
|
+
/* 去除 webkit 中 input 和 textarea 的默认样式 */
|
341
|
+
.typo-input, .typo-textarea {
|
342
|
+
-webkit-appearance: none;
|
343
|
+
border-radius: 0;
|
344
|
+
}
|
345
|
+
|
346
|
+
.typo-em, .typo em, legend, caption {
|
347
|
+
color: #000;
|
348
|
+
font-weight: inherit;
|
349
|
+
}
|
350
|
+
|
351
|
+
/* 着重号,只能在少量(少于100个字符)且全是全角字符的情况下使用 */
|
352
|
+
.typo-em {
|
353
|
+
position: relative;
|
354
|
+
}
|
355
|
+
|
356
|
+
.typo-em:after {
|
357
|
+
position: absolute;
|
358
|
+
top: 0.65em;
|
359
|
+
left: 0;
|
360
|
+
width: 100%;
|
361
|
+
overflow: hidden;
|
362
|
+
white-space: nowrap;
|
363
|
+
content: "・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・";
|
364
|
+
}
|
365
|
+
|
366
|
+
/* Responsive images */
|
367
|
+
.typo img {
|
368
|
+
max-width: 100%;
|
369
|
+
}
|
data/assets/avatar.jpg
ADDED
Binary file
|
Binary file
|
data/assets/main.scss
ADDED
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gravid
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- zddhub
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- zddhub@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _includes/footer.html
|
65
|
+
- _includes/head.html
|
66
|
+
- _includes/header.html
|
67
|
+
- _layouts/archive.html
|
68
|
+
- _layouts/default.html
|
69
|
+
- _layouts/home.html
|
70
|
+
- _layouts/page.html
|
71
|
+
- _layouts/post.html
|
72
|
+
- _sass/gravid.scss
|
73
|
+
- _sass/gravid/_base.scss
|
74
|
+
- _sass/gravid/_layout.scss
|
75
|
+
- _sass/gravid/_syntax-highlighting.scss
|
76
|
+
- _sass/sofish/_typo.scss
|
77
|
+
- assets/avatar.jpg
|
78
|
+
- assets/gravid_blog_preview.png
|
79
|
+
- assets/main.scss
|
80
|
+
homepage: https://github.com/zddhub/gravid
|
81
|
+
licenses:
|
82
|
+
- MIT
|
83
|
+
metadata:
|
84
|
+
plugin_type: theme
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
requirements: []
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 2.4.5
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: A simple and beautiful jekyll theme.
|
105
|
+
test_files: []
|