Skip to content

Commit

Permalink
Slight style change
Browse files Browse the repository at this point in the history
  • Loading branch information
kizu committed Jan 31, 2025
1 parent b024eac commit 24e709c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/css/components/articlelist.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
display: flex;
flex-direction: column;
height: 100%;
text-wrap: pretty;

font-size: calc(
var(--priority) * var(--THEME_FONT_SIZE) +
Expand All @@ -89,12 +90,27 @@
--_transition: 0.2s;
}

.ArticleList-Item > h2 {
display: flex;
max-inline-size: max-content;
margin-inline: auto;
}

.ArticleList-Item > h2::after {
content: "";
flex-basis: calc(var(--priority) * 0.1px);
}

.ArticleList-Item:after {
padding-top: 2rem;
margin-top: auto;
opacity: calc(1 - 100 * var(--_hover));
}

.ArticleList-Item > * > .TagList {
min-width: calc(var(--priority) * 100%);
}

.ArticleList-Item:hover {
--_hover: 0.66;
}
Expand Down

0 comments on commit 24e709c

Please sign in to comment.