Skip to content

Commit

Permalink
Change comment page style
Browse files Browse the repository at this point in the history
Signed-off-by: Eunki Hong <[email protected]>
  • Loading branch information
hinohie committed Jun 23, 2024
1 parent 648b7d9 commit 1ebb5df
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 15 deletions.
4 changes: 0 additions & 4 deletions debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ <h1 class="titleText">방명록 <span id="comments-count"></span></h1>
commentsWrapper.appendChild(commentsList);
}

const body = DOMPurify.sanitize(marked(comment.body));
const postedByAuthor = comment.author_association === 'OWNER';
const edited = comment.created_at !== comment.updated_at;

</script>

</div>
Expand Down
53 changes: 42 additions & 11 deletions styles/style_comment.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@
word-wrap: break-word;
align-items: flex-start;
};
padding: 0.5vw;;
padding: 0.5vh 1.5vw;
position: relative;
flex-direction: column;
justify-content: center;
align-items: flex-start;
background-color: aqua;
}

.comments-list {
position: relative;
flex-direction: column;
justify-content: center;
align-items: flex-start;
display: flex;
padding-inline-start: 1rem;
padding-inline-end: 1rem;
}

.comment {
Expand All @@ -41,20 +50,41 @@
overflow: hidden;
};
.meta_username {
background-color: aqua;

/* TODO */
color: #0F0F3F;
font-size: 1.25rem;
font-family: Noto Serif KR;
font-weight: 400;
};
.meta_date-posted{
background-color: aqua;
/* TODO */
color: darkblue;
font-size: 1.0rem;
font-family: Noto Serif KR;
font-weight: 400;
line-height: 1.55rlh;

display: inline;
};
.meta_tag_author-badge{
background-color: aqua;
/* TODO */
color: darkblue;
font-size: 0.75rem;
font-family: Noto Serif KR;
font-weight: 400;
line-height: 1.55rlh;

display: inline;
};
.meta_comment-edited{
background-color: aqua;

/* TODO */
color: darkgray;
font-size: 0.75rem;
font-family: Noto Serif KR;
font-weight: 400;
line-height: 1.55rlh;

display: inline;
};
};
.comment-body {
Expand All @@ -64,9 +94,10 @@
font-weight: 400;
line-height: 1.55rlh;
};
border-bottom: 0.2rem double black;
width:100%;
position: relative;
flex-direction: column;
justify-content: center;
align-items: flex-start;
display: inline-flex;
justify-content:left;
display: flex;
}

0 comments on commit 1ebb5df

Please sign in to comment.