Skip to content

Commit

Permalink
css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 1, 2024
1 parent 1d0f24a commit f25da66
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
32 changes: 23 additions & 9 deletions src/_includes/css/comments.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
font: var(--font-title);
letter-spacing: var(--font-title-spacing);
margin: 0;
color: var(--color-base);
}
& p {
font: var(--font-ui);
Expand All @@ -22,6 +23,16 @@
border: solid 1px var(--color-line);
color: var(--color-dim);
font: var(--font-small);
container-type: inline-size;

@media (max-width: 450px) {
margin-left: calc(-15vw / 2);
margin-right: calc(-15vw / 2);
border-radius: 0;
border-left: none;
border-right: none;
padding: calc(15vw / 2);
}

& a {
color: currentColor;
Expand All @@ -44,14 +55,16 @@
margin-top: 2em;
padding-top: 2em;
border-top: solid 1px var(--color-line);

@media (min-width: 600px) {
margin-left: 64px;
}
margin-left: var(--indent);
}
> ul {
--avatar-size: clamp(32px, 10cqw, 50px);
--indent: min(10cqw, var(--avatar-size) + 15px);
}

.comment-avatar {
width: 50px;
height: 50px;
width: var(--avatar-size);
height: var(--avatar-size);
border-radius: 6px;
float: left;
margin-right: 14px;
Expand All @@ -64,8 +77,8 @@
}
.comment-author {
position: absolute;
left: 35px;
top: 35px;
left: calc(var(--avatar-size) - 15px);
top: calc(var(--avatar-size) - 15px);
background: var(--color-highlight);
border-radius: 50%;
width: 20px;
Expand All @@ -89,13 +102,14 @@
color: currentColor;
text-decoration: none;
display: block;
padding-left: var(--indent);
}
.comment-address:hover {
text-decoration: underline;
}
.comment-body {
margin-top: 1em;
margin-left: 64px;
margin-left: var(--indent);
line-height: 1.5;

.invisible {
Expand Down
1 change: 1 addition & 0 deletions src/_includes/css/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
letter-spacing: var(--font-display-spacing);
margin: 0 0 0.2em;
text-wrap: balance;
color: var(--color-base);
}

.post-details {
Expand Down
4 changes: 3 additions & 1 deletion src/posts/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ export default site;

## Customization

> [!tip] You can use [lumeCMS](https://lume.land/cms) to customize the blog and
> [!tip]
>
> You can use [lumeCMS](https://lume.land/cms) to customize the blog and
> add content easily

0 comments on commit f25da66

Please sign in to comment.