charlie-lee-theme 0.2.1 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 820506346cb846ddbb4fcdd9294073fc8bb476c3
4
- data.tar.gz: 7ad474a297ae550c0e6424c6ef88ca71dd157354
3
+ metadata.gz: feb4e92e591e011b358aaad0f8fe2e35114b9a75
4
+ data.tar.gz: dcbef87ac336876f0fcdb9344c8f413009acdd57
5
5
  SHA512:
6
- metadata.gz: 68e933e83b581475819dc5acdff912731351a4501e792bcd0c6a22c3fe00f526b5beb1cdbf967ceaac311cb91eea1c34308b5f773bd54abcfaa12ef8bf4fc6ab
7
- data.tar.gz: fe2378b6ae4771f0bc122001b58939b0634ef0c3726e817e8b73513155eb921c1464ddb6b648067ce29acf6e5793171e3111d5d54176a1bc33325cdfb0fb4f62
6
+ metadata.gz: c399eeef31e179946e43d519c763d1d6e028e7e4dde562f434f08dd3e8ccb3e2c0bbea8b8af886630daafc1e4df7afd310b01b24e2113f95166de8e897a71f91
7
+ data.tar.gz: 184857f0e2a87db11f26a7c3a2e93252718ba3dd08530fbae9b10ffbdcea9bb043e8bbd336ab757a8118741e32b2796fdeb522186426a6a7dc6d86a9ff2b959f
data/README.md CHANGED
@@ -30,7 +30,7 @@ Or install it yourself as:
30
30
 
31
31
  #### page
32
32
 
33
- The default layout.
33
+ The default layout. If an `img` is specified it will displayed behind the title.
34
34
 
35
35
  ```yaml
36
36
  ---
@@ -42,7 +42,7 @@ Page contents.
42
42
 
43
43
  #### post
44
44
 
45
- Creates a page with the page's author and date of creation displayed.
45
+ Creates a page with the page's author and date of creation displayed. If an `img` is specified it will displayed behind the title.
46
46
 
47
47
  ```yaml
48
48
  ---
@@ -57,22 +57,23 @@ Post contents.
57
57
 
58
58
  #### home
59
59
 
60
- Creates a page with a grid displaying recent posts. The content entered on the page will be displayed as text in the page's hero image.
61
-
62
- If a collection is specified, the pages in that will be displayed instead of the recent posts.
60
+ * Creates a page with a grid displaying recent posts. The content entered on the page will be displayed as text in the page's hero image.
61
+ * If an `img` is specified it will used as the hero image.
62
+ * If a `collection` is specified, the pages in that will be displayed instead of the recent posts.
63
63
 
64
64
  ```yaml
65
65
  ---
66
66
  title: Home
67
67
  layout: home
68
68
  collection: posts
69
+ img: assets/image.png
69
70
  ---
70
71
  Hero image text.
71
72
  ```
72
73
 
73
74
  #### category
74
75
 
75
- Creates a page listing the posts in the category matching the `title` of the page.
76
+ Creates a page listing the posts in the category matching the `title` of the page. If an `img` is specified it will displayed behind the title.
76
77
 
77
78
  ```yaml
78
79
  ---
@@ -1,6 +1,6 @@
1
1
  <header>
2
2
  <nav>
3
- <div id="mobile-menu-toggle">||||</div>
3
+ <div id="mobile-menu-toggle">|||</div>
4
4
  <div id="logo">
5
5
  <a href="{{ site.baseurl }}/index.html">{{ site.title }}</a>
6
6
  </div>
@@ -6,7 +6,7 @@
6
6
  {% include header.html %}
7
7
 
8
8
  <main>
9
- <header>
9
+ <header style="background-image: url('{{ page.img }}');">
10
10
  <h1>Category: {{ page.title }}</h1>
11
11
  </header>
12
12
 
@@ -10,6 +10,11 @@
10
10
  <div>
11
11
  <h1>{{ content | strip_html }}</h1>
12
12
  </div>
13
+ {% if page.img %}
14
+ <img src="{{ page.img }}">
15
+ {% else %}
16
+ <section style="height: 15em; width: 100%"></div>
17
+ {% endif %}
13
18
  </header>
14
19
 
15
20
  <div class="gallery cols-3">
@@ -6,7 +6,7 @@
6
6
  {% include header.html %}
7
7
 
8
8
  <main>
9
- <header>
9
+ <header style="background-image: url('{{ page.img }}');">
10
10
  <h1>
11
11
  {% if page.title %} {{ page.title }}
12
12
  {% else %} {{ site.title }}
@@ -6,7 +6,7 @@
6
6
  {% include header.html %}
7
7
 
8
8
  <main>
9
- <header>
9
+ <header style="background-image: url('{{ page.img }}');">
10
10
  <h1>
11
11
  {% if page.title %} {{ page.title }}
12
12
  {% else %} {{ site.title }}
@@ -1,7 +1,5 @@
1
1
  /*!
2
- Main style sheet for COM1008 Assignment
3
- Author: Charles Lee
4
- Created: 09/11/16
2
+ Main style sheet for charlie-lee-theme
5
3
  */
6
4
 
7
5
  /* ================================
@@ -38,7 +36,7 @@
38
36
  -------------------------------- */
39
37
 
40
38
  body {
41
- font-family: "Roboto", sans-serif;
39
+ font-family: Helvetica, Arial, sans-serif;
42
40
  }
43
41
  p {
44
42
  line-height: 1.3em;
@@ -56,11 +54,6 @@ a, a:visited {
56
54
  }
57
55
  a:hover { color: rgb(4,81,94); }
58
56
 
59
- /* ===Headings=== */
60
- h1, h2 {
61
- font-family: "Montserrat", sans-serif;
62
- }
63
-
64
57
  /* ===Elements that are only displayed when no CSS is avaliable=== */
65
58
  .alt {
66
59
  display: none;
@@ -155,24 +148,16 @@ aside ul {
155
148
 
156
149
  /* ===Global header===*/
157
150
  header {
158
- background-color: rgb(0,83,133);
151
+ background-color: rgb(0,0,0);
159
152
  }
160
153
 
161
154
  /* ===Logo=== */
162
155
  #logo {
163
- background-color: rgb(0,0,0);
164
- font-family: 'Merriweather', serif;
165
156
  font-size: 1.5em;
166
157
  font-weight: 600;
167
158
  margin: 0;
168
159
  text-align: center;
169
160
  }
170
- #logo .fa-coffee::after {
171
- /* Creates a space after the logo symbol relative to font-size */
172
- color: transparent;
173
- content: "-";
174
- text-shadow: none;
175
- }
176
161
  #logo a:hover {
177
162
  background-color: rgb(30,30,30);
178
163
  text-decoration: none;
@@ -196,14 +181,37 @@ main header h1 {
196
181
  }
197
182
 
198
183
  /* ===Hero headers===*/
184
+ .hero {
185
+ align-items: center;
186
+ box-sizing: border-box;
187
+ display: flex;
188
+ overflow: hidden;
189
+ position: relative;
190
+ }
199
191
  .hero div {
200
- margin: 10% auto;
192
+ align-items: center;
193
+ background-color: rgba(0,0,0,0.5);
194
+ display: flex;
195
+ height: 100%;
196
+ justify-content: center;
197
+ position: absolute;
198
+ top: 0;
199
+ width: 100%;
200
+ z-index: 2;
201
201
  }
202
202
  .hero h1 {
203
+ background-color: transparent;
204
+ color: rgb(255,255,255);
203
205
  display: inline;
204
- font-family: "Coming Soon", cursive;
206
+ line-height: 1.2em;
207
+ margin: 0;
208
+ padding: 0;
209
+ text-shadow: 0px 0px 10px rgb(0, 0, 0);
205
210
  white-space: pre-wrap;
206
211
  }
212
+ .hero img {
213
+ width: 100%;
214
+ }
207
215
 
208
216
  /* 1.4. NAVIGATION
209
217
  -------------------------------- */
@@ -251,6 +259,7 @@ nav li.highlight:nth-of-type(2n+2) a {
251
259
  padding: 10px;
252
260
  position: absolute;
253
261
  right: 0;
262
+ transform: rotate(90deg);
254
263
  }
255
264
  #mobile-menu-toggle:hover {
256
265
  color: rgb(212,212,212);
@@ -515,7 +524,7 @@ footer li:last-child:after {
515
524
  width: 100%;
516
525
  }
517
526
  article {
518
- max-width: 900px;
527
+ max-width: 800px;
519
528
  padding: 0 20px;
520
529
  }
521
530
  article.with-sidebar {
@@ -552,15 +561,16 @@ footer li:last-child:after {
552
561
  max-width: 1200px;
553
562
  }
554
563
  main header h1 {
555
- max-width: 900px;
564
+ max-width: 800px;
556
565
  }
557
566
 
558
567
  /* ===Hero headers===*/
559
- .hero div {
560
- max-width: 900px;
568
+ .hero {
569
+ max-height: 25em;
561
570
  }
562
571
  .hero h1 {
563
572
  font-size: 3.5em;
573
+ max-width: 800px;
564
574
  }
565
575
 
566
576
  /* 3.3. NAVIGATION
@@ -570,7 +580,7 @@ footer li:last-child:after {
570
580
  display: flex;
571
581
  /* Moves header contents onto one row */
572
582
  flex-flow: row wrap;
573
- max-width: 900px;
583
+ max-width: 1200px;
574
584
  }
575
585
  nav ul, header nav ul.hidden {
576
586
  display: block;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- JavaScript used on the entire website.
2
+ Main JavaScript file for charlie-lee-theme.
3
3
  */
4
4
 
5
5
  var mobileToggle = document.getElementById("mobile-menu-toggle"),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charlie-lee-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-18 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll