jekyll-theme-charcoal 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8965ca5c83b22a9d32d141305dd489ba9a06808f
4
- data.tar.gz: 53d48d44c867bfd18d57c4169954d4e1d7c4a704
3
+ metadata.gz: 454f31bc1fedb12781c32c49b4baefb8a64d5e87
4
+ data.tar.gz: c60343bbfafcfc7d7c4a4ca81c4008ed20371afb
5
5
  SHA512:
6
- metadata.gz: 56e4160304f965a685d392ce69fa7c39eff795d370e084acaf463a46900e0beaed0acb9398788a4be40228309cf03be751a3cfc625ab7697389b5d450f5d2e46
7
- data.tar.gz: 8d799f0d1818fa3e6e9640952914c6dfc0d60badadce2f3c41b67ec33e749880700a0c79cd74b5bc9126afb7f0c125b7d04c08e01c6b197942a8349a4413b717
6
+ metadata.gz: b1ac40efca154fd993aaf23ed685620feee4c5c320a8cdea8f0b5fe69d13c3d3e7753a37ea583988e39cd4795e97aa23d5b5de2fb4ce3bd13786f58595e0774c
7
+ data.tar.gz: 670e28a70d3501d7579b7d6facec44e0101f452fef72e7ff74d83b397a6538cbea4b7457eb02c35d76d8a2a1f8736beb209212484e1cd74f60d27c0158b9b563
data/README.md CHANGED
@@ -67,6 +67,7 @@ Ours is configured to display in the most friendly manner.
67
67
  You can configure a default author for pages and posts in your `_config.yml`:
68
68
 
69
69
  ```yaml
70
+ image: /images/image.jpg # Adds a small thumbnail image to the site header (a picture or logo)
70
71
  toc: true # Sets whether to adds a table of contents to the left sidebar of the page by default
71
72
  author_name: Greg Gibeling # Sets the name of the default author, which can be overriden on each page
72
73
  author_url: https://github.com/gdgib/ # An optional link to a page specific to the default author, can be overriden on each page
@@ -134,15 +135,16 @@ user@localhost ~/charcoal
134
135
  $ bundle install
135
136
  ```
136
137
 
137
- In order to test your changes locally you will
138
- After that you can see your handiwork by viewing this page with any modifications you've made.
139
- Please note that you will need to reload the page after changes as is normal with jekyll.
138
+ In order to test your changes locally run:
140
139
 
141
140
  ```
142
141
  user@localhost ~/charcoal
143
142
  $ bundle exec jekyll serve
144
143
  ```
145
144
 
145
+ After that you can see your handiwork by viewing this page with any modifications you've made.
146
+ Please note that you will need to reload the page after changes as is normal with jekyll.
147
+
146
148
  ## Build
147
149
 
148
150
  To build the gem and install it for local development testing run:
@@ -3,7 +3,7 @@
3
3
  <div id="title">
4
4
  <h1><a class="site-title" rel="project" href="{{ "/" | relative_url }}">
5
5
  {% if site.image %}
6
- <img class="site-image" src="{{ site.image }}"/>
6
+ <img class="site-image" src="{{ site.image | prepend:site.baseurl }}"/>
7
7
  {% endif %}
8
8
  {{ site.title | default: site.github.repository_name | escape }}
9
9
  </a></h1>
@@ -27,17 +27,13 @@ p, table, pre, ul, ol, dl {
27
27
  margin: 0 0 20px;
28
28
  }
29
29
  ul, ol, dl {
30
- ul, ol, dl {
31
- margin: 0;
32
- }
30
+ ul, ol, dl {
31
+ margin: 0;
32
+ }
33
33
  }
34
34
 
35
35
  h1, h2, h3, h4, h5, h6 {
36
- position: relative;
37
- z-index: -1;
38
36
  color: lighten($charcoal-color-text, 20%);
39
- padding-top: $charcoal-header-height + 10px;
40
- margin: -$charcoal-header-height - 10px 0 10px;
41
37
  font-family: 'OpenSansRegular', "Helvetica Neue", Helvetica, Arial, sans-serif;
42
38
  font-weight: normal;
43
39
  }
@@ -161,6 +157,13 @@ dt {
161
157
  font-weight: normal;
162
158
  }
163
159
 
160
+ @mixin header_padding {
161
+ position: relative;
162
+ z-index: 0;
163
+ padding-top: $charcoal-header-height + 10px;
164
+ margin: -$charcoal-header-height - 10px 0 10px;
165
+ }
166
+
164
167
  #header {
165
168
  z-index: 100;
166
169
  position: fixed;
@@ -173,18 +176,22 @@ dt {
173
176
  border-bottom: 4px solid lighten($charcoal-color-background, 20%);
174
177
  box-shadow: 0px 1px 3px rgba(0,0,0,.25);
175
178
 
179
+ h1, h2, h3, h4, h5, h6 {
180
+ @include header_padding
181
+ }
182
+
176
183
  #title {
177
184
  margin: 0 0 0 0;
178
185
 
179
- h1 {
180
- position: relative;
181
- z-index: 100;
186
+ h1 {
187
+ position: relative;
188
+ z-index: 100;
182
189
  text-align: left;
183
190
  line-height: 40px;
184
- }
185
-
186
- p { text-align: left; }
187
- .site-image {
191
+ }
192
+
193
+ p { text-align: left; }
194
+ .site-image {
188
195
  width: 40px;
189
196
  border-radius: 2px;
190
197
  vertical-align: middle;
@@ -247,9 +254,14 @@ section {
247
254
  margin-top: $charcoal-header-height + 10px;
248
255
 
249
256
  img { max-width: 100%; }
250
-
251
- .content { display: flex; }
257
+ .content {
258
+ display: flex;
259
+ .post-list h2 {
260
+ margin: 0;
261
+ }
262
+ }
252
263
  .sidebar { flex: 20%; }
264
+ .main { flex: 80%; }
253
265
  }
254
266
 
255
267
  #title {
@@ -258,6 +270,9 @@ section {
258
270
  margin: 0 0 15px 0;
259
271
  padding: 0 0 5px 0;
260
272
 
273
+ h1, h2, h3, h4, h5, h6 {
274
+ @include header_padding
275
+ }
261
276
  h1 {
262
277
  font-family: 'OpenSansLight', "Helvetica Neue", Helvetica, Arial, sans-serif;
263
278
  font-weight: normal;
@@ -295,7 +310,7 @@ footer {
295
310
  border-top: 4px solid lighten($charcoal-color-background, 20%);
296
311
 
297
312
  .wrapper {
298
- display: flex;
313
+ display: flex;
299
314
  .footer-col-1 {
300
315
  width: -webkit-calc(20% - (#{$spacing-unit} / 2));
301
316
  width: calc(20% - (#{$spacing-unit} / 2));
@@ -325,18 +340,56 @@ footer {
325
340
 
326
341
  @media print, screen and (max-width: 480px) {
327
342
  #header {
328
- height: $charcoal-header-height - 65px;
329
- #title {
330
- p { display: none; }
331
- .credits { display: none; }
343
+ position: static;
344
+ height: $charcoal-header-height - 10px;
345
+ width: 100%;
346
+
347
+ h1, h2, h3, h4, h5, h6 {
348
+ position: static;
349
+ z-index: 0;
350
+ padding-top: 0;
351
+ margin: 0;
352
+ }
353
+
354
+ #title {
355
+ margin: 0 0 0 0;
356
+ h1 {
357
+ position: static;
358
+ text-align: left;
359
+ line-height: 40px;
360
+ }
361
+ .credits { display: none; }
362
+ p { display: none; }
363
+ nav { display: none; }
332
364
  }
333
365
  }
334
- section { margin-top: $charcoal-header-height - 65px; }
335
- nav { display: none; }
366
+ section {
367
+ max-width: none;
368
+ margin-top: 0;
369
+ .content { display: block; }
370
+ .sidebar { display: none; }
371
+ }
336
372
  footer {
337
373
  .wrapper {
338
- flex-wrap: wrap;
374
+ flex-wrap: wrap;
339
375
  .footer-col { width: 100%; }
340
376
  }
341
377
  }
378
+ .wrapper {
379
+ max-width: none;
380
+ }
381
+
382
+ .about_image {
383
+ display: block;
384
+ align-items: stretch;
385
+
386
+ .about_image_col { float: none; }
387
+ .about_image_content { margin-left: auto; }
388
+ .about_image_image {
389
+ margin-left: 10%;
390
+ margin-right: 10%;
391
+ width: 80%;
392
+ border-radius: 15px;
393
+ }
394
+ }
342
395
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-charcoal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Gibeling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-10 00:00:00.000000000 Z
11
+ date: 2018-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll