frogmore 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 272b2c0c124f0e48867025bbe2c744d3ad375b958b0870022b324d8c8f44e4a5
4
- data.tar.gz: 31c0aeddf6ab6feb1f3cd9ea328e28a9bbf7da300a435a1f8484dcdb6c882253
3
+ metadata.gz: '048091a6607ae56c6c59e0fd9f6fbe999007d49de1bccfb9a529fbfed8d56fbd'
4
+ data.tar.gz: 8b28dc7c5b0435f33770e7e1f6ebcd5063d4f54ad9cb12dd11d46f6550399c1c
5
5
  SHA512:
6
- metadata.gz: fdca49bcd6ce8267c3c76ee38ed862d274e2c23f3dcb2e3ad3de1ec92298aa6111a3faa697c24e6d67f150b5c1565bf60495e24f917bdb1b35816f4630228913
7
- data.tar.gz: a445d01a640710b0ff6e0254f9ae1d580f725ca8f763d78d25940890b47c2bdd405f941aad8cb8e9eccb1b1b0e827bc919faae6e7b0e50ead5a820dc1970b46a
6
+ metadata.gz: 80525425107b7a5104ab5040220b8b88b99a85914b4b74c6de6a874b0e7af94ed0994949dd525e19590a999098e36f9cb2714aa79027a7061afac3181f161d01
7
+ data.tar.gz: fdf1937073f867fac4c924dacd66b8181f18aa961a3418bd9c62b80b4f3145a40cebb2c06f7dae21abc28f1c0d90b8329e76a7a04a3bc82aa62760de6d0cd54b
@@ -1,2 +1,3 @@
1
1
  @import "reset";
2
2
  @import "main";
3
+ @import "listing";
@@ -2,6 +2,6 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <section class="listings">
5
+ <section class="listing">
6
6
  {{ content }}
7
7
  </section>
@@ -2,11 +2,11 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <section class="post">
5
+ <article class="post">
6
6
  <h2>{{ page.title }}</h2>
7
7
  {{ content }}
8
8
  <span class="meta">
9
9
  <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time>
10
10
  &middot; {% for tag in page.tags %}
11
11
  <a href="/tag/{{tag}}">{{tag}}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</span>
12
- </section>
12
+ </article>
@@ -0,0 +1,56 @@
1
+ .listing ul,
2
+ .listing ul li {
3
+ display: flex;
4
+ flex-direction: column;
5
+ padding-bottom: 0.75rem;
6
+ }
7
+
8
+ .listing .title {
9
+ text-decoration: underline;
10
+ }
11
+
12
+ .listing time {
13
+ white-space: nowrap;
14
+ font-variant-numeric: tabular-nums;
15
+ min-width: 6rem;
16
+ }
17
+
18
+ @media screen and (min-width: 40rem) {
19
+ .listing time {
20
+ margin-left: auto;
21
+ }
22
+
23
+ .listing .rating {
24
+ width: 4.5rem;
25
+ margin-left: 0.4rem;
26
+ }
27
+
28
+ .listing ul li {
29
+ flex-direction: row;
30
+ justify-content: flex-start;
31
+ }
32
+
33
+ .listing .title,
34
+ .listing .authors {
35
+ white-space: nowrap;
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ text-decoration: none;
39
+ }
40
+
41
+ .listing .title {
42
+ text-decoration: unset;
43
+ min-width: 13rem;
44
+ max-width: 15rem;
45
+ width: 100%;
46
+ margin-right: auto;
47
+ }
48
+
49
+ .listing {
50
+ min-width: 10rem;
51
+ }
52
+
53
+ .authors {
54
+ width: 10rem;
55
+ }
56
+ }
@@ -91,7 +91,7 @@ header a {
91
91
  }
92
92
 
93
93
  header ul,
94
- .listings,
94
+ .listing,
95
95
  .post {
96
96
  max-width: 43rem;
97
97
  }
@@ -134,7 +134,7 @@ h3,
134
134
  h4,
135
135
  h5 {
136
136
  line-height: 1;
137
- margin: 1rem 0;
137
+ margin: 0 0 1rem 0;
138
138
  font-weight: 600;
139
139
  }
140
140
 
@@ -149,67 +149,18 @@ main {
149
149
  padding: 2rem 0;
150
150
  }
151
151
 
152
- section {
152
+ section,
153
+ article {
153
154
  width: 100%;
154
- margin: 0 auto;
155
155
  padding: 2rem 2rem 0 2rem;
156
+ margin: 0 auto;
156
157
  }
157
158
 
158
- section h1:first-child {
159
+ section,
160
+ article h1:first-child {
159
161
  margin-top: 0;
160
162
  }
161
163
 
162
- .listings > div {
163
- margin-bottom: 0.5rem;
164
- }
165
-
166
- .listings {
167
- display: grid;
168
- grid-column-gap: 5px;
169
- grid-row-gap: 0;
170
- grid-template-columns: 1fr;
171
- }
172
-
173
- .listings > :nth-child(4n-3) {
174
- text-decoration: underline;
175
- }
176
-
177
- .listings > :nth-child(4n) {
178
- text-overflow: unset;
179
- padding-bottom: 1.5rem;
180
- }
181
-
182
- .listings span,
183
- .listings span a {
184
- white-space: nowrap;
185
- overflow: hidden;
186
- text-overflow: ellipsis;
187
- text-decoration: none;
188
- }
189
-
190
- .listings div time {
191
- padding-left: 1rem;
192
- white-space: nowrap;
193
- font-variant-numeric: tabular-nums;
194
- }
195
-
196
- @media screen and (min-width: 40rem) {
197
- .listings {
198
- grid-row-gap: 5px;
199
- grid-template-columns: 1fr 0.75fr min-content 75px;
200
- }
201
-
202
- .listings > :nth-child(4n-3) {
203
- text-decoration: unset;
204
- }
205
-
206
- .listings > span,
207
- .listings > div,
208
- .listings > time {
209
- height: 1.75rem;
210
- }
211
- }
212
-
213
164
  @media screen and (min-width: 64rem) {
214
165
  main {
215
166
  flex-direction: row;
@@ -229,7 +180,8 @@ section h1:first-child {
229
180
  padding: 1.3rem 2rem 2rem 2rem;
230
181
  }
231
182
 
232
- section {
183
+ section,
184
+ article {
233
185
  margin-left: auto;
234
186
  margin-right: auto;
235
187
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frogmore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huw Diprose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-07 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -84,6 +84,7 @@ files:
84
84
  - _layouts/default.html
85
85
  - _layouts/listing.html
86
86
  - _layouts/post.html
87
+ - _sass/_listing.scss
87
88
  - _sass/_main.scss
88
89
  - _sass/reset.scss
89
90
  homepage: https://frogmore.github.io