Style the post title and fixed alignment

This commit is contained in:
Your Name committed 2025-04-27 20:28:57 +08:00
1 parent 5acc2d0f09
commit 8531278f1a
1 file changed
+47 -10
+47 -10
View File
@@ -82,21 +82,55 @@
border: 1px solid #dbdbdb; border: 1px solid #dbdbdb;
color: #363636; color: #363636;
} }
/* Styling the post title header to appear below the title and closer to it */
.post-title-header { .post-title-header {
font-size: 0.9rem; font-size: 0.9rem; /* Slightly smaller font size */
margin-bottom: 0.3rem; margin-top: 0.1rem; /* Reduced space between title and header */
margin-bottom: 0.5rem; /* Added space below the title header */
color: #38315f; /* Regular color */
} }
.post-title-header small.handle,
.post-title-header small.time, /* Style for handle and time (grey color and bigger text) */
.post-title-header a.nav-link { .post-title-header .handle,
font-size: 0.75rem; .post-title-header .time {
font-size: 1rem; /* Increase the font size */
color: #6b6b6b; /* Grey color for handle and time */
}
/* Make the handle underlined on hover */
.post-title-header .handle {
text-decoration: none;
cursor: pointer;
}
.post-title-header .handle:hover {
text-decoration: underline; /* Underline effect on hover */
}
/* Style for the navigation links (parent, next) */
.post-title-header .nav-link {
font-size: 0.875rem; /* Smaller font size for the links */
margin-left: 0.5rem; margin-left: 0.5rem;
text-decoration: underline; color: #38315f; /* Match the color with other text */
color: #38315f; text-decoration: none;
} }
.post-title-header a.nav-link:hover {
color: #2d274a; .post-title-header .nav-link:hover {
color: #2d274a; /* Darker color on hover */
text-decoration: underline; /* Underline effect on hover */
} }
/* Styling for the body text to create more space below the title header */
.content p:first-of-type {
margin-bottom: 0.0rem; /* Add more space below the title header and before the body */
}
/* Ensure post text is aligned to the left */
.media-content {
text-align: left;
}
</style> </style>
</head> </head>
<body> <body>
@@ -138,10 +172,13 @@
<p> <p>
<strong><a href="#" class="post-title">[Ask] The saga of the disappearing ergonomic chair continues. ✏️</a></strong> <strong><a href="#" class="post-title">[Ask] The saga of the disappearing ergonomic chair continues. ✏️</a></strong>
</p> </p>
<!-- Moved post-title-header below the title -->
<div class="post-title-header"> <div class="post-title-header">
<small class="handle">@deskdetective</small> <small class="time">1h ago</small> <small class="handle">@deskdetective</small> <small class="time">1h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a> <a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
</div> </div>
<p> <p>
Every time I leave my desk, it seems to vanish. Suspecting foul play at this point. Anyone else faced something like this? Every time I leave my desk, it seems to vanish. Suspecting foul play at this point. Anyone else faced something like this?
</p> </p>