Skip to content

Commit 53980d4

Browse files
committed
fix: Better coloring for section headers (fixes #467)
1 parent 755f321 commit 53980d4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/LinkDotNet.Blog.Web/Features/Admin/BlogPostEditor/Components/CreateNewBlogPost.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="d-flex justify-content-between align-items-center mb-4">
2020
<h2 class="fw-bold text-primary mb-0">@Title</h2>
2121
<div class="d-flex gap-2">
22-
<span class="badge text-dark px-3 py-2 fw-medium">
22+
<span class="badge text-body-secondary px-3 py-2 fw-medium">
2323
@GetStatusText()
2424
</span>
2525
@if (model.IsDirty)
@@ -55,7 +55,7 @@
5555
</div>
5656

5757
<div class="p-4 border-bottom">
58-
<label class="form-label fw-bold text-dark mb-3">Short Description</label>
58+
<label class="form-label fw-bold mb-3">Short Description</label>
5959
<MarkdownTextArea Id="short" Class="form-control border-0 shadow-none"
6060
Rows="4" Placeholder="Write a compelling summary..."
6161
@bind-Value="@model.ShortDescription"
@@ -64,7 +64,7 @@
6464
</div>
6565

6666
<div class="p-4 position-relative">
67-
<label class="form-label fw-bold text-dark mb-3">
67+
<label class="form-label fw-bold mb-3">
6868
Content <span class="badge bg-secondary ms-2 fw-medium">@ReadingTimeCalculator.GetWordCount(model.Content) words</span>
6969
<span class="badge bg-info ms-1 fw-medium">~@GetEstimatedReadTime() min read</span>
7070
</label>

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/SimilarBlogPostSection.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<div class="col-2 col-sm-1">
2424
@if (!string.IsNullOrEmpty(post.PreviewImageUrl))
2525
{
26-
<img src="@post.PreviewImageUrl"
27-
alt="@post.Title"
26+
<img src="@post.PreviewImageUrl"
27+
alt="@post.Title"
2828
class="img-fluid rounded w-100 aspect-ratio-1x1"
2929
loading="lazy"
3030
onerror="this.onerror=null; this.src='@(post.PreviewImageUrlFallback ?? "assets/image-placeholder.webp")';">
@@ -42,7 +42,7 @@
4242
<p class="mb-1 small text-body-secondary">
4343
@MarkdownConverter.ToPlainString(post.ShortDescription)
4444
</p>
45-
<div class="text-dark-emphasis d-flex flex-wrap gap-2 mt-1">
45+
<div class="text-body-secondary d-flex flex-wrap gap-2 mt-1">
4646
<div class="me-2">
4747
<span class="date"></span>
4848
<span class="ms-1">@post.UpdatedDate.ToShortDateString()</span>

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/ShowBlogPostPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ else if (BlogPost is not null)
4646
<div class="blog-inner-content">
4747
<header class="text-center">
4848
<h1 class="fw-bold">@BlogPost.Title</h1></header>
49-
<div class="text-dark-emphasis d-flex flex-wrap align-items-center gap-3 meta-info">
49+
<div class="text-body-secondary d-flex flex-wrap align-items-center gap-3 meta-info">
5050
<div class="d-inline-flex align-items-center">
5151
<span class="date me-1"></span>
5252
<span>@BlogPost.UpdatedDate.ToShortDateString()</span>

0 commit comments

Comments
 (0)