Skip to content

Commit 2902e39

Browse files
committed
Introduce color for blog post background
1 parent f3a6459 commit 2902e39

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

LinkDotNet.Blog.Web/Pages/Index.razor.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.blogpost-cards {
2-
/* TODO: Do not use the color directly, this will interfere with dark mode */
3-
background-color: var(--big-stone);
2+
background-color: var(--blog-post-background-color);
43
margin: 1rem auto 1.6%;
54
}
65

LinkDotNet.Blog.Web/wwwroot/css/basic.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
--white: #ffffff;
1313
--wild-sand: #f4f4f4;
1414

15-
/* Usages */
15+
/* Usages - this colors have to be defined in every theme */
1616
--active-link: var(--big-stone);
1717
--disabled-link: var(--pewter);
1818
--link-hover: var(--tana);
@@ -37,6 +37,8 @@
3737
--button-secondary-color: var(--big-stone);
3838
--button-secondary-border-color: var(--big-stone);
3939

40+
--blog-post-background-color: var(--big-stone);
41+
4042
}
4143

4244

0 commit comments

Comments
 (0)