Skip to content

Commit 1d00dcf

Browse files
authored
Merge pull request #4 from cd88/design-updates
Long-form text font -> Open Sans, styled homepage article-post datestamp
2 parents 3b467cb + a1aa5f4 commit 1d00dcf

File tree

3 files changed

+37
-18
lines changed

3 files changed

+37
-18
lines changed

css/html-defaults.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $accent: #FF0F00;
55
/* HTML and Agent Defaults */
66
body {
77
margin: 0;
8-
font-family: "Inconsolata";
8+
font-family: 'Open Sans';
99
background-color: #FFFFDD;
1010
min-height: 100%;
1111
}

css/main.scss

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $small-width: 480px;
3131
display: flex;
3232
align-items: center;
3333
gap: 1rem;
34+
font-family: 'Inconsolata';
3435

3536
.logos {
3637
display: flex;
@@ -66,34 +67,48 @@ $small-width: 480px;
6667
/* homepage */
6768
.homepage-post {
6869
margin-bottom: 1em;
70+
font-family: 'Inconsolata';
71+
6972
&:not(:first-child) {
7073
margin-top: 1em;
7174
}
7275

7376
.post-header {
7477
display: flex;
7578
justify-content: space-between;
76-
}
77-
.title {
78-
max-width: 500px;
79-
color: #272727;
80-
display: inline-block;
81-
font-size: 30px;
82-
}
8379

84-
.details {
85-
@extend .float-right;
86-
text-align: right;
87-
margin-left: 20px;
88-
font-size: 15px;
89-
}
80+
.title {
81+
max-width: 500px;
82+
color: #272727;
83+
display: inline-block;
84+
font-size: 30px;
85+
font-family: 'Inconsolata';
86+
}
87+
88+
.details {
89+
@extend .float-right;
90+
text-align: right;
91+
margin: 6px 0 0 10px;
92+
font-size: 15px;
93+
min-width: 150px;
94+
color: #333;
95+
}
9096

97+
.post-tags {
98+
font-size: 0.9em;
99+
}
100+
}
101+
91102
.subtitle, .excerpt {
92-
max-width: 500px;
93103
color: #555555;
94104
text-decoration-color: #555555;
95105
}
96106

107+
.excerpt {
108+
font-family: 'Open Sans';
109+
line-height: 1.65;
110+
}
111+
97112
.resource {
98113
display: flex;
99114
justify-content: space-between;
@@ -107,7 +122,9 @@ $small-width: 480px;
107122
color: #272727;
108123
display: inline-block;
109124
font-size: 24px;
125+
font-family: 'Inconsolata';
110126
}
127+
111128
.homepage-post-image {
112129
width: 4rem;
113130
height: auto;
@@ -144,6 +161,7 @@ $small-width: 480px;
144161
font-size: 1.5rem;
145162
font-weight: bold;
146163
margin-top: 20px;
164+
font-family: 'Inconsolata';
147165

148166
hr {
149167
margin: 0;
@@ -157,6 +175,7 @@ $small-width: 480px;
157175
font-size: xx-large;
158176
font-weight: bold;
159177
line-height: 2;
178+
font-family: 'Inconsolata';
160179
}
161180

162181
.page-subtitle {

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<b>{{ post.date | date: "%d %B %Y" }}</b>
1818
<br>
1919
{% if post.tags %}
20-
<b>[</b>
20+
[
2121
{% for tag in post.tags %}
22-
<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a>{% if forloop.last == false %},{% endif %}
22+
<a class="post-tags" href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a>{% if forloop.last == false %},{% endif %}
2323
{% endfor %}
24-
<b>]</b>
24+
]
2525
{% endif %}
2626
</div>
2727
</div>

0 commit comments

Comments
 (0)