mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Make nicer heading with last modified column header
This commit is contained in:
parent
fea8c25e24
commit
1eba2027ca
@ -116,16 +116,34 @@ main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr.heading {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Used for both blog and project summaries
|
// Used for both blog and project summaries
|
||||||
|
@mixin time-text {
|
||||||
|
font-size: 0.75em;
|
||||||
|
color: var(--theme-subtle-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
span.dt-label {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
text-align: right;
|
||||||
|
@include time-text;
|
||||||
|
}
|
||||||
|
|
||||||
section.title-date-container {
|
section.title-date-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
// flex-wrap: wrap;
|
|
||||||
time {
|
time {
|
||||||
font-size: 0.75em;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
color: var(--theme-subtle-text-color);
|
@include time-text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,6 +168,13 @@ a {
|
|||||||
color: var(--theme-text-color);
|
color: var(--theme-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 > a,
|
||||||
|
h2 > a,
|
||||||
|
h3 > a,
|
||||||
|
li > a {
|
||||||
|
text-decoration: None;
|
||||||
|
}
|
||||||
|
|
||||||
header a,
|
header a,
|
||||||
nav a {
|
nav a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -77,10 +77,6 @@ summary h3 {
|
|||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
|
||||||
height: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.details-container {
|
div.details-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: 2.2rem;
|
margin-left: 2.2rem;
|
||||||
@ -89,32 +85,20 @@ div.details-container {
|
|||||||
.cv-title-container {
|
.cv-title-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
justify-content: space-between;
|
||||||
|
|
||||||
div.cv-title-container {
|
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
|
||||||
div.cv-title-container h2 {
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.cv-title-container a {
|
border-bottom: var(--theme-subtle-outline) 1px solid;
|
||||||
cursor: pointer;
|
h2 {
|
||||||
margin-left: 3em;
|
margin: 0px;
|
||||||
|
}
|
||||||
border-style: solid;
|
a {
|
||||||
border-radius: 5px;
|
cursor: pointer;
|
||||||
border-width: 1px;
|
text-decoration: None;
|
||||||
border-color: transparent;
|
color: var(--theme-text-color);
|
||||||
offset: None;
|
font-size: 0.75em;
|
||||||
|
}
|
||||||
background-color: transparent;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.cv-title-container button:hover {
|
|
||||||
border-color: black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 900px) {
|
@media only screen and (max-width: 900px) {
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
// Also affects blog and posts pages
|
||||||
|
h1.highlights {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin-bottom: -0.2em;
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
section.highlights {
|
section.highlights {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
@ -9,27 +18,6 @@ section.highlights {
|
|||||||
margin-left: $left_pad;
|
margin-left: $left_pad;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1.highlights {
|
|
||||||
font-size: 1.75rem;
|
|
||||||
// margin-left: $left_pad;
|
|
||||||
margin-bottom: 0.75em;
|
|
||||||
}
|
|
||||||
a.heading {
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hr.heading {
|
|
||||||
width: 100%;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 2em;
|
|
||||||
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
||||||
height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr.blogroll {
|
hr.blogroll {
|
||||||
border-width: 0 !important;
|
border-width: 0 !important;
|
||||||
}
|
}
|
||||||
|
5
blog.md
5
blog.md
@ -9,6 +9,11 @@ img:
|
|||||||
src: /assets/images/avatar.jpeg
|
src: /assets/images/avatar.jpeg
|
||||||
alt: A picture of me.
|
alt: A picture of me.
|
||||||
---
|
---
|
||||||
|
<section class="title-date-container">
|
||||||
|
<h1 class = "highlights">Blog</h1>
|
||||||
|
<span class="dt-label">Date Posted</span>
|
||||||
|
</section>
|
||||||
|
<hr class="heading">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
{% include post_summary.html %}
|
{% include post_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
@ -17,26 +17,35 @@ head: |
|
|||||||
Welcome to my little home on the web! Below you'll find recent blog posts, projects and mastodon toots. You'll also find links to the web version of my thesis <a href = "/thesis/4_Amorphous_Kitaev_Model/4.2_AMK_Methods.html#:~:text=Figure 1:,on the torus.">(with animations!)</a> and my <a href="/cv/">CV</a>.
|
Welcome to my little home on the web! Below you'll find recent blog posts, projects and mastodon toots. You'll also find links to the web version of my thesis <a href = "/thesis/4_Amorphous_Kitaev_Model/4.2_AMK_Methods.html#:~:text=Figure 1:,on the torus.">(with animations!)</a> and my <a href="/cv/">CV</a>.
|
||||||
|
|
||||||
<section class = "highlights">
|
<section class = "highlights">
|
||||||
<a href = "/blog/" class="heading"><h1 class = "highlights">Posts</h1></a>
|
|
||||||
|
<section class="title-date-container">
|
||||||
|
<h1 class = "highlights"><a href = "/blog/" class="heading">Posts</a></h1>
|
||||||
|
<span class="dt-label">Date Posted</span>
|
||||||
|
</section>
|
||||||
|
|
||||||
<hr class="heading">
|
<hr class="heading">
|
||||||
{% for post in site.posts limit:5 %}
|
{% for post in site.posts limit:5 %}
|
||||||
{% include post_summary.html %}
|
{% include post_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<br>
|
<br>
|
||||||
<a href = "/blog/" class = "highlights-more">More Posts</a>
|
<a href = "/blog/" class = "highlights-more">More</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class = "highlights">
|
<section class = "highlights">
|
||||||
<a href = "/projects/" class = "heading"><h1 class = "highlights">Projects</h1></a>
|
|
||||||
|
<section class="title-date-container">
|
||||||
|
<h1 class = "highlights"><a href = "/projects/" class = "heading">Projects</a></h1>
|
||||||
|
<span class="dt-label">Last Modified</span>
|
||||||
|
</section>
|
||||||
<hr class="heading">
|
<hr class="heading">
|
||||||
{% for post in site.projects limit:5 %}
|
{% for post in site.projects limit:5 %}
|
||||||
{% include project_summary.html %}
|
{% include project_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<a href = "/projects/" class = "highlights-more">More Projects</a>
|
<a href = "/projects/" class = "highlights-more">More</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class = "highlights">
|
<section class = "highlights">
|
||||||
<a href = "https://tech.lgbt/@Tomhodson" class = "heading"><h1 class = "highlights">Toots</h1></a>
|
<h1 class = "highlights"><a href = "https://tech.lgbt/@Tomhodson" class = "heading">Toots</a></h1>
|
||||||
<hr class="heading">
|
<hr class="heading">
|
||||||
<div id="mt-container" class="mt-container">
|
<div id="mt-container" class="mt-container">
|
||||||
<div class="mt-body" role="feed">
|
<div class="mt-body" role="feed">
|
||||||
|
@ -11,6 +11,12 @@ img:
|
|||||||
|
|
||||||
social_image: /assets/projects/lego_adapters/thumbnail.png
|
social_image: /assets/projects/lego_adapters/thumbnail.png
|
||||||
---
|
---
|
||||||
|
<section class="title-date-container">
|
||||||
|
<h1 class = "highlights">Projects</h1>
|
||||||
|
<span class="dt-label">Last Modified</span>
|
||||||
|
</section>
|
||||||
|
<hr class="heading">
|
||||||
|
|
||||||
{% for post in site.projects %}
|
{% for post in site.projects %}
|
||||||
{% include project_summary.html %}
|
{% include project_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user