Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkerchan committed Sep 30, 2024
1 parent 2513474 commit bc9693f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { pic, desc, date } = post.frontmatter;
<div class="text-grey-darker text-sm text-600">{date}</div>
</div>
<p
class="text-600 text-sm md:w-78 w-94 overflow-hidden pt-2.5 line-clamp-2 px-3 w-full h-12"
class="card-desc text-sm md:w-78 w-94 overflow-hidden pt-2.5 line-clamp-2 px-3 w-full h-12"
>
{desc}
</p>
Expand Down
7 changes: 6 additions & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,10 @@ blockquote {
margin: 2rem 0;
padding: 1.25em 1.5rem;
border-left: 3px solid var(--theme-text-light);
background-color: var(--theme-bg-offset);
/* background-color: var(--theme-bg-offset); */
border-radius: 0 0.25rem 0.25rem 0;
line-height: 1.7;
font-style: italic;
}

img {
Expand Down Expand Up @@ -413,4 +414,8 @@ h2.heading {
margin-bottom: 1rem;
font-weight: 700;
line-height: 1;
}

.card-desc{
color: var(--theme-text-light-gray);
}
3 changes: 3 additions & 0 deletions src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
--theme-divider: hsla(var(--color-gray-95), 1);
--theme-text: hsla(var(--color-gray-10), 1);
--theme-text-light: #333;
--theme-text-light-gray: #666;
/* @@@: not used anywhere */
--theme-text-lighter: hsla(var(--color-gray-80), 1);
--theme-bg: hsla(var(--color-base-white), 100%, 1);
Expand All @@ -66,7 +67,9 @@
color-scheme: dark;
--theme-accent: #e8a15a;
--theme-text: #e7e9ea;

--theme-text-light: var(--theme-text);
--theme-text-light-gray: #ccc;
--theme-divider: #555;
--theme-bg: #21262b;
--placeholder-gradient-start: #2c3e50;
Expand Down

0 comments on commit bc9693f

Please sign in to comment.