jekyll-theme-dusk 0.4.1 → 0.5.1

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
  SHA256:
3
- metadata.gz: 4b30c5b4dfe3eed3c57dda4bc85dd40b00886a38cce0a9224c2f0b8fa0e95681
4
- data.tar.gz: a5f1336c912df2bf913567656d3da9398316f6b91e14353a1fa3177e7cc3984a
3
+ metadata.gz: 98021741a38ec30b0f6cab6fc2fa9b3968101138d2d37d5c512ad70db65bad0c
4
+ data.tar.gz: b5162fb63acfb0089e7f7e774e9def719fe3d2c971f943bbc5cd91acaa5ca76d
5
5
  SHA512:
6
- metadata.gz: d378059e9f0e1880ba2c672ad3967501c4f25ab6de4b7451fc38320b22cf42f43914bedc98731e123ce526b16029ad80c29c14f615bbe29d8371f24789c1a11b
7
- data.tar.gz: 2707864978043b2b6ae5acdec1ac9b87545bbc8e0eede5ef391317bfb83c6e6b4584ddcc1a9ec868bf3f72cbf8b8b34fd647ddadad58bd12dfce6b0fe46729cc
6
+ metadata.gz: 869911196277cdebcd6b39188d06624ff99ba1c638db23d7a46b080eddb2f242e3c522fa3e841a2c1976f2deeea42d60606ad9ca8138859dd4625d659d7ab968
7
+ data.tar.gz: 52e4957c66e3f9b77393e055a99be7493fb85f16438bd8c5469f7147eae4300f7db771a51cab8dd2d358182188ddd0624bd9b99d79ed2464e5e28c276aa8693e
data/README.md CHANGED
@@ -57,10 +57,9 @@ This theme has many features in it. They are written here so that it is easier t
57
57
  - ### Image Galleries
58
58
 
59
59
  *This one is a bit complicated, but is pretty cool in my opinion.*
60
- If you want to create a gallery, you will need to do a few things.
61
-
62
- **In this section, replace [GALLERY_NAME] with the name of a gallery. This must be the same for all parts if you want to use the gallery without issues.**
63
-
60
+ If you want to create a gallery, you will need to do a few things.
61
+ **In this section, replace [GALLERY_NAME] with the name of a gallery. This must be the same for all parts if you want to use the gallery without issues.**
62
+
64
63
  1. Create the folders at the paths:
65
64
  ```
66
65
  /assets/images/gallery/
@@ -105,6 +104,8 @@ This theme has many features in it. They are written here so that it is easier t
105
104
  summary: "Dusk is a theme built for GitHub Pages."
106
105
  ```
107
106
 
107
+ You do not need the title or summary variables, as the variables ```{{ site.title }}``` and ```{{ site.description }}``` can be set in your ```_config.yml``` file as well, which is the default. This does override the other though.
108
+
108
109
  - ### Blog Page
109
110
 
110
111
  This page contains all your posts that you have made on your website. All you need to do is just to make some posts, and then they will all appear there.
data/_config.yml CHANGED
@@ -17,26 +17,16 @@ exclude:
17
17
 
18
18
  # Jekyll settings
19
19
  sass:
20
- style: compressed
20
+ style: expanded
21
21
  permalink: pretty
22
22
  strict_front_matter: true # not sure if this goes here
23
23
 
24
24
  # Site settings
25
25
  encoding: utf-8
26
26
  title: "Dusk"
27
+ description: "A dark coloured Jekyll theme compatible with GitHub Pages, with emphasis on elegance?"
27
28
 
28
29
  #domain: parmjot-singh.github.io
29
30
  #url: https://parmjot-singh.github.io
30
31
  baseurl: ""
31
32
  repo: "https://github.com/parmjot-singh/jekyll-theme-dusk"
32
-
33
- # Load custom fonts
34
- fonts:
35
- preconnect_urls:
36
- - https://fonts.gstatic.com
37
- fonts_urls:
38
- # Display - Chivo Mono
39
- # Content - Titillium Web
40
- # Second link - Material Symbols
41
- - https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&family=Titillium+Web:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&display=swap
42
- - https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200
data/_data/navigation.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  - name: Home
2
- icon:
3
2
  link: /
4
3
  - name: About
5
4
  icon: /assets/images/about-icon.png
@@ -7,4 +6,3 @@
7
6
  - name: Blog
8
7
  icon: /assets/images/blog-icon.png
9
8
  link: /blog.html
10
-
@@ -1,20 +1,20 @@
1
1
  <footer>
2
- {%- if site.data.navigation -%}
3
- <div id="footer-links">
4
- {%- for item in site.data.navigation -%}
5
- <a href="{{ item.link }}">
6
- <div>
7
- {%- if item.name -%}
8
- {{ item.name }}
9
- {%- else %}
10
- {{ item.link }}
11
- {%- endif -%}
12
- </div>
13
- </a>
14
- {%- endfor -%}
15
- </div>
16
- <div id="blatant-advertising">
17
- This website is using Dusk, a theme built with ❤️ for GitHub pages, by Parmjot Singh.
18
- </div>
19
- {%- endif -%}
2
+ {%- if site.data.navigation -%}
3
+ <div id="footer__links">
4
+ {%- for item in site.data.navigation -%}
5
+ <a href="{{ item.link }}">
6
+ <div>
7
+ {%- if item.name -%}
8
+ {{ item.name }}
9
+ {%- else %}
10
+ {{ item.link }}
11
+ {%- endif -%}
12
+ </div>
13
+ </a>
14
+ {%- endfor -%}
15
+ </div>
16
+ <div id="footer__watermark">
17
+ This website is using Dusk, a theme built with ❤️ for GitHub pages, by Parmjot Singh.
18
+ </div>
19
+ {%- endif -%}
20
20
  </footer>
data/_includes/head.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <head>
2
- <meta charset="utf-8" />
3
- <meta name="viewport" content="width=device-width, initial-scale=1" />
4
- <title>{{ page.title }}</title>
5
- <link rel="stylesheet" href="/assets/css/styles.css" />
2
+ <meta charset="utf-8" />
3
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
4
+ <title>{{ page.title }}</title>
5
+ <link rel="stylesheet" href="/assets/css/styles.css" />
6
6
  </head>
@@ -1,7 +1,7 @@
1
1
  <header>
2
- {%- include navigation.html -%}
3
- <div id="header-content">
4
- <h1 class="page-title">{{ page.title }}</h1>
2
+ {%- include navigation.html -%}
3
+ <div id="header__content">
4
+ <h1 class="page-title">{{ page.title }}</h1>
5
5
  <h2 class="page-summary">{{ page.summary }}</h2>
6
6
  </div>
7
7
  </header>
@@ -1,10 +1,7 @@
1
- <div class="home"> <!-- this is so that the formatting can differentiate between header layouts. There has to be a better solution -->
2
- <header>
3
- {%- include navigation.html -%}
4
- <div id="header-content"> <!-- center div in middle, and allow text to remain above quick links 60% height of viewport -->
5
- <h1 class="page-title">{{ page.title }}</h1>
6
- <h2 class="page-summary">{{ page.summary }}</h2>
7
-
8
- </div>
9
- </header>
10
- </div>
1
+ <header id="header--home">
2
+ {%- include navigation.html -%}
3
+ <div id="header__content"> <!-- center div in middle, and allow text to remain above quick links 60% height of viewport -->
4
+ <h1 class="page-title">{{ page.title | site.title }}</h1>
5
+ <h3 class="page-summary">{{ page.summary | default: site.description }}</h3>
6
+ </div>
7
+ </header>
@@ -1,18 +1,11 @@
1
1
  <header>
2
- {%- include navigation.html -%}
3
- <div id="header-content">
4
- <h1 class="page-title">Blog</h1>
5
- <div id="why"><!-- if anyone can fix this, they get their name in the footer of every website who uses this theme -->
6
- <a class="b2b-container" href="/blog.html">
7
- <div class="b2b-icon-container">
8
- <img src="/assets/images/blog-icon.png">
9
- </div>
10
- <div class="b2-blog">
11
- <small>
12
- Back to Blog
13
- </small>
14
- </div>
15
- </a>
16
- </div>
2
+ {%- include navigation.html -%}
3
+ <div id="header__content">
4
+ <h1 class="page-title">Blog</h1>
5
+ <a class="b2b-container" href="/blog.html">
6
+ <small>
7
+ Back to Blog
8
+ </small>
9
+ </a>
17
10
  </div>
18
11
  </header>
@@ -1,11 +1,11 @@
1
1
  <!-- credit to Tim Van Damme at css-tricks.com -->
2
2
  <!-- https://css-tricks.com/adaptive-photo-layout-with-flexbox -->
3
3
  <div class="image-gallery">
4
- <ul>
5
- {%- for item in site.data.galleries[include.gallery_id] -%}
6
- <li>
7
- <img src="/assets/images/gallery/{{ include.gallery_id }}/{{ item.image }}">
8
- </li>
9
- {%- endfor -%}
10
- </ul>
4
+ <ul>
5
+ {%- for item in site.data.galleries[include.gallery_id] -%}
6
+ <li>
7
+ <img src="/assets/images/gallery/{{ include.gallery_id }}/{{ item.image }}">
8
+ </li>
9
+ {%- endfor -%}
10
+ </ul>
11
11
  </div>
@@ -1,36 +1,34 @@
1
1
  <script>
2
- /* Set the width of the side navigation to 250px */
3
- function openNav() {
4
- document.getElementById("sideNav").style.width = "200px";
5
- document.getElementById("open-nav").style.right = "-100px";
6
- }
7
-
8
- /* Set the width of the side navigation to 0 */
9
- function closeNav() {
10
- document.getElementById("sideNav").style.width = "0";
11
- document.getElementById("open-nav").style.right = "7px";
12
- }
2
+ /* Set the width of the side navigation to 250px */
3
+ function openNav() {
4
+ document.getElementById("nav").style.width = "200px";
5
+ document.getElementById("nav__openbtn").style.right = "-100px";
6
+ }
7
+
8
+ /* Set the width of the side navigation to 0 */
9
+ function closeNav() {
10
+ document.getElementById("nav").style.width = "0";
11
+ document.getElementById("nav__openbtn").style.right = "7px";
12
+ }
13
13
  </script>
14
- <nav>
15
- <div id="sideNav" class="sidenav">
16
- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()"><img src="/assets/images/cross.png"></a>
17
- {%- if site.data.navigation -%}
18
- {%- for item in site.data.navigation -%}
19
- <a href="{{ item.link }}">
20
- <div style="width: 24px;"> <!-- even spacing -->
21
- {%- if item.icon -%}
22
- <img src="{{ item.icon }}" class="nav-links-icon">
23
- {%- endif -%}
24
- </div>
25
- {%- if item.name -%}
26
- {{ item.name }}
27
- {%- else %}
28
- {{ item.link }}
29
- {%- endif -%}
30
- <div style="width: 24px;"> <!-- even spacing --> </div>
31
- </a>
32
- {%- endfor -%}
33
- {%- endif -%}
34
- </div>
35
- <span onclick="openNav()" id="open-nav">Navigation</span>
14
+ <nav id="nav"> <!-- this has the ID nav because I do not think there is another way to get the JavaScript working. This is because there is no function to grab a tag, and apply a style to it, in the same way that getElementById() does. Otherwise, the ID does literally nothing, as all the formatting is applied to the nav tag itself -->
15
+ <a href="javascript:void(0)" id="nav__closebtn" onclick="closeNav()"><img src="/assets/images/cross.png"></a>
16
+ {%- if site.data.navigation -%}
17
+ {%- for item in site.data.navigation -%}
18
+ <a class="nav__links" href="{{ item.link }}">
19
+ <div style="width: 24px;"> <!-- even spacing -->
20
+ {%- if item.icon -%}
21
+ <img src="{{ item.icon }}" class="nav__links__icon">
22
+ {%- endif -%}
23
+ </div>
24
+ {%- if item.name -%}
25
+ {{ item.name }}
26
+ {%- else %}
27
+ {{ item.link }}
28
+ {%- endif -%}
29
+ <div style="width: 24px;"> <!-- even spacing --> </div>
30
+ </a>
31
+ {%- endfor -%}
32
+ {%- endif -%}
36
33
  </nav>
34
+ <span onclick="openNav()" id="nav__openbtn">Navigation</span>
data/_layouts/blog.html CHANGED
@@ -1,24 +1,22 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ site.lang | default: 'en-US' }}">
3
- {%- include head.html -%}
4
- <body>
5
- {%- include header-default.html -%}
6
- <div class="blog">
7
- <main>
8
- {{ content }}
9
- <hr>
10
- <h2>Latest Posts</h2>
11
- <ul>
12
- {%- for post in site.posts -%}
13
- <li>
14
- <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
15
- {%- if post.author -%} - {{ post.author }}{%- endif -%}
16
- {{ post.excerpt }}
17
- </li>
18
- {%- endfor -%}
19
- </ul>
20
- </main>
21
- </div>
22
- {%- include footer.html -%}
23
- </body>
3
+ {%- include head.html -%}
4
+ <body>
5
+ {%- include header-default.html -%}
6
+ <main>
7
+ {{ content }}
8
+ <hr>
9
+ <h2>Latest Posts</h2>
10
+ <ul>
11
+ {%- for post in site.posts -%}
12
+ <li>
13
+ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
14
+ {%- if post.author -%} - {{ post.author }}{%- endif -%}
15
+ {{ post.excerpt }}
16
+ </li>
17
+ {%- endfor -%}
18
+ </ul>
19
+ </main>
20
+ {%- include footer.html -%}
21
+ </body>
24
22
  </html>
@@ -1,11 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ site.lang | default: 'en-US' }}">
3
- {%- include head.html -%}
4
- <body>
5
- {%- include header-default.html -%}
6
- <main>
7
- {{ content }}
8
- </main>
9
- {%- include footer.html -%}
10
- </body>
3
+ {%- include head.html -%}
4
+ <body>
5
+ {%- include header-default.html -%}
6
+ <main>
7
+ {{ content }}
8
+ </main>
9
+ {%- include footer.html -%}
10
+ </body>
11
11
  </html>
data/_layouts/home.html CHANGED
@@ -1,13 +1,13 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ site.lang | default: 'en-US' }}">
3
- {%- include head.html -%}
4
- <body>
5
- {%- include header-home.html -%}
3
+ {%- include head.html -%}
4
+ <body>
5
+ {%- include header-home.html -%}
6
6
  <main>
7
- <div class="home">
8
- {{ content }}
9
- </div>
10
- </main>
11
- {%- include footer.html -%}
12
- </body>
7
+ <div class="home">
8
+ {{ content }}
9
+ </div>
10
+ </main>
11
+ {%- include footer.html -%}
12
+ </body>
13
13
  </html>
data/_layouts/post.html CHANGED
@@ -1,16 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ site.lang | default: 'en-US' }}">
3
- {%- include head.html -%}
4
- <body>
5
- {%- include header-post.html -%}
6
- <main>
7
- <h2>{{ page.title }}</h2>
8
- <h5>{{ page.author }}</h5>
9
- <p>{{ page.date | date_to_string }}</p>
10
- <article>
11
- {{ content }}
12
- </article>
13
- </main>
14
- {%- include footer.html -%}
15
- </body>
3
+ {%- include head.html -%}
4
+ <body>
5
+ {%- include header-post.html -%}
6
+ <main>
7
+ <h2>{{ page.title }}</h2>
8
+ <h4>{{ page.author }}</h4>
9
+ <p>{{ page.date | date_to_string }}</p>
10
+ <article>
11
+ {{ content }}
12
+ </article>
13
+ </main>
14
+ {%- include footer.html -%}
15
+ </body>
16
16
  </html>
data/_sass/base.scss CHANGED
@@ -1,112 +1,213 @@
1
- @use "sass:math";
2
1
  @import "css-reset";
3
- @import "fonts";
4
- @import "include";
5
- @import "layout";
2
+ @import "text";
6
3
  @import "device-support";
4
+ @import "variables.scss";
7
5
 
8
- /* Colours */
9
- $primary-colour: #c7bc87; // Light Gold
10
- $background-colour: #171717; // Dark Gray
11
-
12
- /* Templates */
13
- @mixin display {
14
- font-family: 'Chivo Mono', monospace;
15
- color: $primary-colour;
6
+ h1, h2, h3, h4, h5, h6 {
7
+ @include display;
16
8
  }
17
9
 
18
- @mixin content {
19
- font-family: 'Titillium Web', sans-serif;
20
- color: white;
10
+ a, a:hover, a:active, a:visited {
11
+ color: white;
12
+ text-decoration: none;
21
13
  }
22
14
 
15
+ /* Base Formatting */
23
16
  html {
24
- @include content;
25
- transition: 0.5s;
26
- font-size: min(max(1rem, 2vw), 18px);
27
- }
28
-
29
- h1 {
30
- font-size: min(max(3rem, 9vw), 50px);
31
- font-weight: 700;
17
+ @include content;
18
+ background-color: $background-colour;
19
+ transition: 0.5s;
32
20
  }
33
21
 
34
- h2 {
35
- font-size: min(max(2.7rem, 8vw), 30px);
36
- font-weight: 400;
37
- }
22
+ header {
23
+ display: block;
24
+ height: 30vh;
25
+ flex-shrink: 0; /* this is so that the flex layout doesnt shrink the header when the window isn't tall enough to fit everything */
38
26
 
39
- h3 {
40
- font-size: min(max(2.4rem, 7vw), 25px);
41
- font-weight: 200;
42
- }
27
+ /* parallax effect in background */
28
+ background-image: url("/assets/images/dusk-gray.jpg");
29
+ background-repeat: no-repeat;
30
+ background-attachment: fixed;
31
+ background-position: center;
32
+ background-size: cover;
43
33
 
44
- h4 {
45
- font-size: min(max(2.1rem, 6vw), 20px);
46
- font-weight: 200;
34
+ /* center content in header */
35
+ position: relative;
47
36
  }
48
37
 
49
- h5 {
50
- font-size: min(max(1.5rem, 4vw), 18px);
51
- font-weight: 200;
52
- font-style: italic;
38
+ #header--home {
39
+ height: 50vh;
40
+ text-align: center;
53
41
  }
54
42
 
55
- h6 {
56
- font-size: min(max(0.9rem, 3vw), 16px);
57
- font-weight: 200;
58
- font-style: italic;
43
+ #header__content {
44
+ display: block;
45
+ width: 80vw;
46
+ /* center content in header */
47
+ margin: 0;
48
+ position: absolute;
49
+ top: 50%;
50
+ left: 50%;
51
+ transform: translate(-50%, -50%);
59
52
  }
60
53
 
61
- h1, h2, h3, h4, h5, h6 {
62
- @include display;
54
+ body {
55
+ display: flex;
56
+ flex-direction: column;
57
+ align-items: stretch;
58
+ justify-content: space-between;
63
59
  }
64
60
 
65
- a, a:hover, a:active, a:visited {
66
- color: white;
67
- text-decoration: none;
61
+ main {
62
+ width: 80vw;
63
+ margin: 30px auto 0 auto;
68
64
  }
69
65
 
70
- /* Base Formatting */
71
- html {
72
- @include content;
73
- background-color: $background-colour;
66
+ article {
67
+ margin: 20px 0;
74
68
  }
75
69
 
76
- main {
77
- width: 80vw;
78
- margin: 30px auto 0 auto;
79
- }
80
70
  hr {
81
- margin: 20px;
82
- }
83
-
84
- article {
85
- margin: 20px 0;
71
+ margin: 20px;
86
72
  }
87
73
 
74
+ /* Custom Classes */
88
75
  .image-gallery {
89
- ul {
90
- display: flex;
91
- flex-wrap: wrap;
92
- list-style: none;
93
- padding-left: 0;
94
-
95
- &:after {
96
- content:'';
97
- display:block;
98
- flex-grow: 10;
99
- }
100
- }
101
-
102
- li {
103
- flex-grow: 1;
104
- }
105
-
106
- img {
107
- max-height: 100%;
108
- min-width: 100%;
109
- object-fit: cover;
110
- vertical-align: bottom;
111
- }
76
+ margin: 10px 0;
77
+
78
+ ul {
79
+ display: flex;
80
+ flex-wrap: wrap;
81
+ list-style: none;
82
+ padding-left: 0;
83
+ margin: 0.75vmin;
84
+
85
+ &:after {
86
+ content: '';
87
+ display: block;
88
+ flex-grow: 10;
89
+ }
90
+ }
91
+
92
+ li {
93
+ border: 1px solid rgba($primary-colour, 0.2);
94
+ border-radius: 0.5vmin;
95
+ padding: 3px;
96
+ flex-grow: 1;
97
+ margin: 0.75vmin;
98
+ }
99
+
100
+ img {
101
+ max-height: 100%;
102
+ min-width: 100%;
103
+ object-fit: cover;
104
+ vertical-align: bottom;
105
+ border-radius: 0.5vmin;
106
+ }
107
+ }
108
+
109
+ .b2b-container {
110
+ display: inline-flex;
111
+ justify-content: center;
112
+ width: 120px;
113
+ margin: 0;
114
+ padding: 2px;
115
+ background-color: rgba(0, 0, 0, 0.6);
116
+ border: 1px solid rgba(255, 255, 255, 0.2);
117
+ border-radius: 4px;
118
+ transition: 0.5s;
119
+ }
120
+
121
+ .b2b-container:hover {
122
+ background: rgba(199, 188, 135, 0.2) url(/assets/images/noise.png);
123
+ }
124
+
125
+ /* navigation.html */
126
+ nav {
127
+ height: 100%;
128
+ width: 0; /* changed with JavaScript */
129
+ position: fixed;
130
+ z-index: 2;
131
+ top: 0;
132
+ right: 0;
133
+ overflow-x: hidden;
134
+ transition: 0.5s;
135
+
136
+ text-align: center;
137
+ background-color: rgba(0, 0, 0, 0.6);
138
+ }
139
+
140
+ .nav__links {
141
+ display: flex;
142
+ justify-content: space-between;
143
+
144
+ padding: 11px;
145
+ transition: 0.5s;
146
+ height: 45px;
147
+ width: 100%;
148
+ }
149
+
150
+ #nav__closebtn {
151
+ transition: 0.5s;
152
+ padding: 11px;
153
+ position: absolute;
154
+ top: 0;
155
+ left: 0;
156
+ width: 45px;
157
+ }
158
+
159
+ .nav__links:hover, #nav__closebtn:hover {
160
+ background: rgba(199, 188, 135, 0.2) url(/assets/images/noise.png);
161
+ }
162
+
163
+ .nav__links__icon {
164
+ width: 24px;
165
+ display: inline-block;
166
+ }
167
+
168
+ #nav__openbtn {
169
+ background-color: rgba(0, 0, 0, 0.6);
170
+ position: fixed;
171
+ top: 7px;
172
+ right: 7px;
173
+ z-index: 1;
174
+ display: block;
175
+
176
+ transition: 0.5s;
177
+ cursor: pointer;
178
+ border: 1px solid rgba(255, 255, 255, 0.2);
179
+ border-radius: 4px;
180
+ padding: 3px 10px;
181
+ }
182
+
183
+ #nav__openbtn:hover {
184
+ background: rgba(199, 188, 135, 0.2) url(/assets/images/noise.png);
185
+ }
186
+
187
+ /* footer.html */
188
+ footer {
189
+ display: flex;
190
+ justify-content: space-between;
191
+ background: linear-gradient(100deg, #202020, #323232);
192
+ padding: 3% 10%;
193
+ margin-top: 5%;
194
+ }
195
+
196
+ #footer__links {
197
+ display: inline-flex;
198
+ flex-direction: column;
199
+ a:hover {
200
+ transition: 0.5s;
201
+ color: $primary_colour;
202
+ }
203
+ }
204
+
205
+ #footer__watermark {
206
+ display: flex;
207
+ flex-direction: column;
208
+ justify-content: flex-end;
209
+ text-align: right;
210
+ font-size: 85%;
211
+ width: 50%;
212
+ opacity: 50%;
112
213
  }
data/_sass/css-reset.scss CHANGED
@@ -1,38 +1,38 @@
1
1
  /* CSS Reset - https://www.joshwcomeau.com/css/custom-css-reset/ */
2
2
  /* 1. Use a more-intuitive box-sizing model. */
3
3
  *, *::before, *::after {
4
- box-sizing: border-box;
4
+ box-sizing: border-box;
5
5
  }
6
6
  /* 2. Remove default margin */
7
7
  * {
8
- margin: 0;
8
+ margin: 0;
9
9
  }
10
10
  /* 3. Allow percentage-based heights in the application */
11
11
  html, body {
12
- height: 100%;
12
+ height: 100%;
13
13
  }
14
14
  /* Typographic tweaks!
15
15
  4. Add accessible line-height
16
16
  5. Improve text rendering
17
17
  */
18
18
  body {
19
- line-height: 1.5;
20
- -webkit-font-smoothing: antialiased;
19
+ line-height: 1.5;
20
+ -webkit-font-smoothing: antialiased;
21
21
  }
22
22
  /* 6. Improve media defaults */
23
23
  img, picture, video, canvas, svg {
24
- display: block;
25
- max-width: 100%;
24
+ display: block;
25
+ max-width: 100%;
26
26
  }
27
27
  /* 7. Remove built-in form typography styles */
28
28
  input, button, textarea, select {
29
- font: inherit;
29
+ font: inherit;
30
30
  }
31
31
  /* 8. Avoid text overflows */
32
32
  p, h1, h2, h3, h4, h5, h6 {
33
- overflow-wrap: break-word;
33
+ overflow-wrap: break-word;
34
34
  }
35
35
  /* 9. Create a root stacking context */
36
36
  #root, #__next {
37
- isolation: isolate;
37
+ isolation: isolate;
38
38
  }
@@ -1,32 +1,47 @@
1
1
  /* Extra small devices (phones, 600px and down) */
2
2
  @media only screen and (max-width: 600px) {
3
- .image-gallery {
4
- li {
5
- height: 15vh;
6
- }
7
- }
3
+ .image-gallery {
4
+ li {
5
+ height: 15vh;
6
+ }
7
+ }
8
+
9
+ #header__content {
10
+ width: 80vw;
11
+ }
8
12
  }
9
13
 
10
14
  /* Small devices (portrait tablets and large phones, 600px and up) */
11
15
  @media only screen and (min-width: 600px) {
12
- .image-gallery {
13
- li {
14
- height: 20vh;
15
- }
16
- }
16
+ .image-gallery {
17
+ li {
18
+ height: 20vh;
19
+ }
20
+ }
21
+
22
+ #header__content {
23
+ width: 80vw;
24
+ }
17
25
  }
18
26
 
19
27
  /* Medium devices (landscape tablets, 768px and up) */
20
28
  @media only screen and (min-width: 768px) {
21
- .image-gallery {
22
- li {
23
- height: 30vh;
24
- }
25
- }
29
+ .image-gallery {
30
+ li {
31
+ height: 30vh;
32
+ }
33
+ }
34
+
35
+ #header__content {
36
+ width: 80vw;
37
+ }
26
38
  }
27
39
 
28
40
  /* Large devices (laptops/desktops, 992px and up) */
29
41
  @media only screen and (min-width: 992px) {
42
+ #header__content {
43
+ width: 50vw;
44
+ }
30
45
  }
31
46
 
32
47
  /* Extra large devices (large laptops and desktops, 1200px and up) */
data/_sass/text.scss ADDED
@@ -0,0 +1,43 @@
1
+ /* Fonts */
2
+ /* Display */
3
+ @import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&display=swap');
4
+
5
+ /* Content */
6
+ @import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&display=swap');
7
+
8
+ /* Text formatting */
9
+ html {
10
+ font-size: min(max(16px, 2vw), 18px);
11
+ }
12
+
13
+ h1 {
14
+ font-size: min(max(2.5rem, 9vw), 50px);
15
+ font-weight: 700;
16
+ }
17
+
18
+ h2 {
19
+ font-size: min(max(2rem, 6vw), 25px);
20
+ font-weight: 400;
21
+ }
22
+
23
+ h3 {
24
+ font-size: min(max(1.8rem, 5vw), 22px);
25
+ font-weight: 200;
26
+ }
27
+
28
+ h4 {
29
+ font-size: min(max(1.6rem, 4vw), 19px);
30
+ font-weight: 200;
31
+ }
32
+
33
+ h5 {
34
+ font-size: min(max(1.4rem, 3vw), 17.5px);
35
+ font-weight: 200;
36
+ font-style: italic;
37
+ }
38
+
39
+ h6 {
40
+ font-size: min(max(1.1rem, 2vw), 16px);
41
+ font-weight: 200;
42
+ font-style: italic;
43
+ }
@@ -0,0 +1,14 @@
1
+ /* Colours */
2
+ $primary-colour: #c7bc87; // Light Gold
3
+ $background-colour: #171717; // Dark Gray
4
+
5
+ /* Templates */
6
+ @mixin display {
7
+ font-family: 'Chivo Mono', monospace;
8
+ color: $primary-colour;
9
+ }
10
+
11
+ @mixin content {
12
+ font-family: 'Titillium Web', sans-serif;
13
+ color: white;
14
+ }
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  ---
3
- @import "base";
3
+ @import "base";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-dusk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parmjot Singh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -56,9 +56,8 @@ files:
56
56
  - _sass/base.scss
57
57
  - _sass/css-reset.scss
58
58
  - _sass/device-support.scss
59
- - _sass/fonts.scss
60
- - _sass/include.scss
61
- - _sass/layout.scss
59
+ - _sass/text.scss
60
+ - _sass/variables.scss
62
61
  - assets/css/styles.scss
63
62
  - assets/images/about-icon.png
64
63
  - assets/images/blog-icon.png
data/_sass/fonts.scss DELETED
@@ -1,18 +0,0 @@
1
- /* Fonts */
2
- /* Display */
3
- @import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&display=swap');
4
-
5
- /* Content */
6
- @import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&display=swap');
7
-
8
- /* Symbols */
9
- @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
10
-
11
- /* symbols font config */
12
- .material-symbols-outlined {
13
- font-variation-settings:
14
- 'FILL' 1,
15
- 'wght' 400,
16
- 'GRAD' 0,
17
- 'opsz' 48;
18
- }
data/_sass/include.scss DELETED
@@ -1,175 +0,0 @@
1
- /* _include file formatting */
2
- /* header-home.html */
3
- .home { /* this is to make sure that this code only affects the header-home.html file, and none of the other headers. */
4
- header {
5
- display: block;
6
- height: 50vh;
7
- text-align: center;
8
- /* parallax effect in background */
9
- background-image: url("/assets/images/dusk-gray.jpg");
10
- background-repeat: no-repeat;
11
- background-attachment: fixed;
12
- background-position: center;
13
- background-size: cover;
14
-
15
- /* center content in header */
16
- position: relative;
17
- }
18
-
19
- #header-content {
20
- display: inline-flex;
21
- flex-direction: column;
22
- width: 50%;
23
- /* center content in header */
24
- margin: 0;
25
- position: absolute;
26
- top: 50%;
27
- left: 50%;
28
- transform: translate(-50%, -50%);
29
-
30
- h1 {
31
- font-size: min(max(3rem, 9vw), 70px);
32
- }
33
- }
34
- }
35
- #why {/* container around .b2b-container div. Button doesn't look correct without this for some reason, hence the name #why */
36
- display: flex;
37
- flex-direction: row;
38
- justify-content: flex-start;
39
- }
40
-
41
- .b2b-container {
42
- display: inline-flex;
43
- justify-content: center;
44
- width: 120px;
45
- margin: 0;
46
- padding: 0;
47
-
48
- border: 1px solid rgba(255, 255, 255, 0.2);
49
- border-radius: 4px;
50
- }
51
-
52
- .b2b-container:hover {
53
- background: rgba(199, 188, 135, 0.2) url(/assets/images/noise.png);
54
- }
55
-
56
- .b2b-icon-container {
57
- position: relative;
58
- height: 100%;
59
- aspect-ratio: 1/1;
60
-
61
- img {
62
- padding: 15%;
63
- position: absolute;
64
- }
65
- }
66
-
67
- /* header-default.html */
68
- header {
69
- display: block;
70
- height: 30vh;
71
-
72
- /* parallax effect in background */
73
- background-image: url("/assets/images/dusk-gray.jpg");
74
- background-repeat: no-repeat;
75
- background-attachment: fixed;
76
- background-position: center;
77
- background-size: cover;
78
-
79
- /* center content in header */
80
- position: relative;
81
- }
82
-
83
- #header-content {
84
- display: block;
85
- width: 80vw;
86
- /* center content in header */
87
- margin: 0;
88
- position: absolute;
89
- top: 50%;
90
- left: 50%;
91
- transform: translate(-50%, -50%);
92
- }
93
-
94
- /* navigation.html */
95
- .sidenav {
96
- height: 100%;
97
- width: 0; /* changed with JavaScript */
98
- position: fixed;
99
- z-index: 2;
100
- top: 0;
101
- right: 0;
102
- overflow-x: hidden;
103
- transition: 0.5s;
104
-
105
- text-align: center;
106
- background-color: rgba(0, 0, 0, 0.6);
107
-
108
- a {
109
- display: flex;
110
- justify-content: space-between;
111
-
112
- padding: 11px;
113
- transition: 0.5s;
114
- height: 45px;
115
- width: 100%;
116
- }
117
-
118
- .closebtn {
119
- position: absolute;
120
- top: 0;
121
- left: 0;
122
- width: 45px;
123
- }
124
-
125
- a:hover, .closebtn:hover {
126
- background: rgba(199, 188, 135, 0.2) url(/assets/images/noise.png);
127
- }
128
- }
129
-
130
- #open-nav {
131
- background-color: rgba(0, 0, 0, 0.6);
132
- position: fixed;
133
- top: 7px;
134
- right: 7px;
135
- z-index: 1;
136
- display: block;
137
-
138
- transition: 0.5s;
139
- cursor: pointer;
140
- border: 1px solid rgba(255, 255, 255, 0.2);
141
- border-radius: 4px;
142
- padding: 3px 10px;
143
- }
144
-
145
- #open-nav:hover {
146
- background: rgba(199, 188, 135, 0.2) url(/assets/images/noise.png);
147
- }
148
-
149
- .nav-links-icon {
150
- width: 24px;
151
- display: inline-block;
152
- }
153
-
154
- /* footer.html */
155
- footer {
156
- display: flex;
157
- justify-content: space-between;
158
- background: linear-gradient(100deg, #202020, #323232);
159
- padding: 3% 10%;
160
- margin-top: 5%;
161
- }
162
-
163
- #footer-links {
164
- display: inline-flex;
165
- flex-direction: column;
166
- }
167
-
168
- #blatant-advertising {
169
- display: flex;
170
- flex-direction: column;
171
- justify-content: flex-end;
172
- text-align: right;
173
- font-size: 85%;
174
- width: 50%;
175
- opacity: 50%;}
data/_sass/layout.scss DELETED
@@ -1,10 +0,0 @@
1
- body {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: stretch;
5
- justify-content: space-between;
6
- }
7
-
8
- header {
9
- flex-shrink: 0;
10
- }