Update blog post styles and layout
This commit is contained in:
parent
3f020187d2
commit
cfa3c90d68
|
@ -6,8 +6,12 @@ layout: default
|
|||
{% include navigation.html %}
|
||||
|
||||
<img src="/assets/post_images/{{ page.image }}" alt="{{ page.title }}"/>
|
||||
<h1>{{ page.title }}</h1>
|
||||
<h2>{{ page.date | date_to_string }}</h2>
|
||||
|
||||
{{ content }}
|
||||
<main>
|
||||
<h1>{{ page.title }}</h1>
|
||||
<h2>{{ page.date | date_to_string }}</h2>
|
||||
|
||||
{{ content }}
|
||||
</main>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
gap: 0.75rem;
|
||||
|
||||
border-radius: 0.5rem;
|
||||
background-color: #202020;
|
||||
|
|
|
@ -1,7 +1,22 @@
|
|||
/*** Post Content ***/
|
||||
.post_grid > p {
|
||||
margin: 0;
|
||||
.post_grid > main p {
|
||||
padding: 0.5rem;
|
||||
color: #FFFFFF;
|
||||
font-family: "IBM Plex Sans Regular";
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
/* Link Properties */
|
||||
|
||||
.post_grid > main a {
|
||||
color: #509afc;
|
||||
font-family: "IBM Plex Sans Regular";
|
||||
}
|
||||
|
||||
.post_grid > main a:hover {
|
||||
color: #20e5ff;
|
||||
}
|
||||
|
||||
.post_grid > main a:active {
|
||||
color: #0768fa;
|
||||
}
|
||||
|
|
|
@ -7,19 +7,10 @@
|
|||
grid-row: 2;
|
||||
}
|
||||
|
||||
.post_grid > h1 {
|
||||
.post_grid > main {
|
||||
grid-column: col-start / span 12;
|
||||
grid-row: 3;
|
||||
}
|
||||
|
||||
.post_grid > h2 {
|
||||
grid-column: col-start / span 12;
|
||||
grid-row: 4;
|
||||
}
|
||||
|
||||
.post_grid > p {
|
||||
grid-column: col-start / span 12;
|
||||
}
|
||||
}
|
||||
|
||||
/* Large Screen Layout */
|
||||
|
@ -29,17 +20,8 @@
|
|||
grid-row: 2;
|
||||
}
|
||||
|
||||
.post_grid > h1 {
|
||||
.post_grid > main {
|
||||
grid-column: col-start / span 12;
|
||||
grid-row: 3;
|
||||
}
|
||||
|
||||
.post_grid > h2 {
|
||||
grid-column: col-start / span 12;
|
||||
grid-row: 4;
|
||||
}
|
||||
|
||||
.post_grid > p {
|
||||
grid-column: col-start / span 12;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/*** Post Header ***/
|
||||
|
||||
.post_grid > h1 {
|
||||
.post_grid > main h1 {
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
color: #FFFFFF;
|
||||
font-family: "Fira Code Semibold";
|
||||
|
||||
|
@ -14,8 +15,9 @@
|
|||
filter: drop-shadow(0.1rem 0.1rem 0.2rem #000000);
|
||||
}
|
||||
|
||||
.post_grid > h2 {
|
||||
.post_grid > main h2 {
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
color: #b6b6b6;
|
||||
font-family: "Fira Code Semibold";
|
||||
font-size: 1.2rem;
|
||||
|
|
Loading…
Reference in New Issue
Block a user