eli-theme 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/head.html +3 -0
- data/_layouts/default.html +10 -1
- data/_sass/structure/structure.scss +51 -2
- data/_sass/typography/typography.scss +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5abb8ceebc9726744caa15f93621885ce443182e
|
4
|
+
data.tar.gz: de52d6d40dc9e26ff5c90249a3269b4d1cfd3c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '048ab074f5e129f3a417b0dabcbd76a209f8bd204d52512b3da923b06cf467e3746a5d5370d6c9e115b8ba526708082c8e0150618dcb1e810e59c0f14a8d41c0'
|
7
|
+
data.tar.gz: 64ac421bd4dcfd746e79833d3356049c4064056f9a5549e894c133913d507bf72bcc571765b6939a02c59c26b7704137623314301d95ecc6d56e8f6351b8b4fb
|
data/_includes/head.html
CHANGED
@@ -5,4 +5,7 @@
|
|
5
5
|
<link rel="stylesheet" href="assets/main.css">
|
6
6
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>
|
7
7
|
<script src="https://use.fontawesome.com/f2b29d30d8.js"></script>
|
8
|
+
|
9
|
+
<!-- Liquid variables -->
|
10
|
+
{% assign post_size = site.posts | size %}
|
8
11
|
</head>
|
data/_layouts/default.html
CHANGED
@@ -7,7 +7,16 @@
|
|
7
7
|
{% include mobile-nav.html %}
|
8
8
|
{% include header.html %}
|
9
9
|
<div class="container">
|
10
|
-
{
|
10
|
+
{% if page.post-index == true and post_size > 0 %}
|
11
|
+
<div class="post-index-box">
|
12
|
+
<div class="box">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
{% include post-index.html %}
|
16
|
+
</div>
|
17
|
+
{% else %}
|
18
|
+
{{content}}
|
19
|
+
{% endif %}
|
11
20
|
</div>
|
12
21
|
|
13
22
|
{% include footer.html %}
|
@@ -3,8 +3,7 @@ body {
|
|
3
3
|
}
|
4
4
|
|
5
5
|
.container {
|
6
|
-
padding: 0
|
7
|
-
content-align: center;
|
6
|
+
padding: 0 10%;
|
8
7
|
|
9
8
|
@media screen and (max-width: $screen_small) {
|
10
9
|
padding: 0 24px;
|
@@ -17,4 +16,54 @@ body {
|
|
17
16
|
@media screen and (max-width: $screen_small) {
|
18
17
|
display: block;
|
19
18
|
}
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
.post-index-box {
|
23
|
+
display: flex;
|
24
|
+
justify-content: space-around;
|
25
|
+
align-items: stretch;
|
26
|
+
|
27
|
+
& .box {
|
28
|
+
width: 70%;
|
29
|
+
}
|
30
|
+
|
31
|
+
@media screen and (max-width: $screen_small) {
|
32
|
+
display: block;
|
33
|
+
& .box {
|
34
|
+
width: 100%;
|
35
|
+
margin-bottom: 48px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.post-index {
|
41
|
+
width: 30%;
|
42
|
+
margin: 12px;
|
43
|
+
padding: 12px;
|
44
|
+
border: 1px solid red;
|
45
|
+
border: 1px solid #ddd;
|
46
|
+
border-radius: 5px;
|
47
|
+
|
48
|
+
& h5 {
|
49
|
+
margin: 0;
|
50
|
+
text-align: center;
|
51
|
+
}
|
52
|
+
|
53
|
+
& .post-index-entry {
|
54
|
+
color: #999;
|
55
|
+
}
|
56
|
+
|
57
|
+
& .post-index-entry p {
|
58
|
+
color: $color_1;
|
59
|
+
width: 100%;
|
60
|
+
margin-bottom: 0;
|
61
|
+
white-space: nowrap;
|
62
|
+
overflow: hidden;
|
63
|
+
text-overflow: ellipsis;
|
64
|
+
}
|
65
|
+
|
66
|
+
@media screen and (max-width: $screen_small) {
|
67
|
+
width: 100%;
|
68
|
+
}
|
20
69
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eli-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thegoobs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|