
์ธ์ด ๐ฐ๐ท ํ๊ตญ์ด
์์ํ๊ธฐ
์์ ฏ ์คํ์ผ๋ง
๊ธฐํ ํ๋ก ํธ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
Custom Styling Guide
์ด ๊ฐ์ด๋๋ FastComments ๋๊ธ ์์ ฏ (v2)์์ ์ฌ์ฉ๋๋ ๊ธฐ๋ณธ CSS ์ ์ฒด์ ์คํ์ผ์ ์ฌ์ ์ํ๋
๋ช ๊ฐ์ง ์ง์นจ์ ์ ๊ณตํฉ๋๋ค.
Understanding the default CSS allows you to:
- ๋ชจ์์ ์ฌ์ฉ์ํ: ํน์ ์คํ์ผ์ ์ฌ์ ์ํ์ฌ
- ์คํ์ผ ๋ฌธ์ ํด๊ฒฐ: ์ด๋ค ํด๋์ค์ ์ ํ์๊ฐ ์ฌ์ฉ ๊ฐ๋ฅํ์ง ํ์ธํ์ฌ ์คํ์ผ ๋ฌธ์ ๋ฅผ ์ง๋จ
- ์ปค์คํ ํ ๋ง ์์ฑ: ์์ ฏ์ ๊ตฌ์กฐ์ ๋ง๋ ์ปค์คํ ํ ๋ง๋ฅผ ๊ตฌ์ถ
- AI ์ด์์คํดํธ์ ํจ๊ป ์ฌ์ฉ: ์ปค์คํ CSS ์์ ์ ์์ฑํ๋ ๋ฐ ํ์ฉ
์คํ์ผ ์ฌ์ ์ ๋ฐฉ๋ฒ
์คํ์ผ ์ฌ์ ์ ๋ฐฉ๋ฒ์ ์์ ฏ์ ๋ฐ๋ผ ๋ค๋ฆ
๋๋ค. ๋๊ธ ์์ ฏ์ ๊ฒฝ์ฐ, customCSS ๊ตฌ์ฑ ๋งค๊ฐ๋ณ์๋ฅผ ์ฌ์ฉํ์ฌ CSS๋ฅผ iframe์ผ๋ก ์ ๋ฌํ๊ฑฐ๋, ๊ด๋ฆฌ์ ๋์๋ณด๋์ Customization ํ์ด์ง์ CSS๋ฅผ ์ง์ ํ ์ ์์ผ๋ฉฐ, ํด๋น ํ์ด์ง๋ CDN์์ CSS๋ฅผ ์ ๊ณตํฉ๋๋ค.
์คํ์ผ ๋ง์ถค ์ค์ ๋ฐฉ๋ฒ 
๋๊ธ ์์ ฏ ์คํ์ผ ๋ง์ถค ์ค์ ๋ฐฉ๋ฒ
๋ค์ ๋ ๊ฐ์ง ๋ฐฉ๋ฒ์ผ๋ก ๋๊ธ ์์ ฏ ์คํ์ผ์ ๋ง์ถค ์ค์ ํ ์ ์์ต๋๋ค:
์ต์
1: customCSS ๋งค๊ฐ๋ณ์ ์ฌ์ฉ
์์ ฏ์ ์ด๊ธฐํํ ๋ customCSS ๋งค๊ฐ๋ณ์์ ๋ฌธ์์ด๋ก ์ปค์คํ
CSS๋ฅผ ์ ๋ฌํ์ธ์:
window.FastCommentsUI(document.getElementById('fastcomments-widget'), {
tenantId: 'your-tenant-id',
customCSS: `
.fast-comments .comment {
background-color: #f0f0f0 !important;
border-radius: 8px !important;
}
`
});
์ต์ 2: ๊ด๋ฆฌ์ ๋์๋ณด๋ ์ฌ์ฉ
- ๊ด๋ฆฌ์ ๋์๋ณด๋์์ ์์ ฏ ๋ง์ถค ์ค์ ํ์ด์ง๋ก ์ด๋ํ์ธ์
- "๊ณ ๊ธ" ์๋์ "์ฌ์ฉ์ ์ ์ CSS" ์น์ ์ผ๋ก ์คํฌ๋กคํ์ธ์
- ์ฌ์ฉ์ ์ ์ CSS๋ฅผ ์ ๋ ฅํ์ธ์
- "์ ์ฅ"์ ํด๋ฆญํ์ธ์
์ฌ์ฉ์ ์ ์ CSS๋ ์ฌ์ดํธ์ ๋ชจ๋ ๋๊ธ ์์ ฏ์ ์ ์ฉ๋ฉ๋๋ค.
ํ
- ํ์ํ ๊ฒฝ์ฐ ๊ธฐ๋ณธ ์คํ์ผ์ ์ฌ์ ์ํ๋ ค๋ฉด
!important๋ฅผ ์ฌ์ฉํ์ธ์ - ์ฌ์ดํธ์ ๋ค๋ฅธ ๋ถ๋ถ์ ์ํฅ์ ์ฃผ์ง ์๋๋ก ํน์ ์ ํ์๋ฅผ ์ง์ ํ์ธ์
- ํธํ์ฑ์ ์ํด ์ฌ๋ฌ ๋ธ๋ผ์ฐ์ ์์ CSS๋ฅผ ํ ์คํธํ์ธ์
- ์์ ฏ์ ํ์ค CSS๋ฅผ ์ฌ์ฉํ๋ฏ๋ก ๋ณ๋์ ์ ์ฒ๋ฆฌ๊ธฐ๊ฐ ํ์ํ์ง ์์ต๋๋ค
๋๊ธ ์์ ฏ ์คํ์ผ๋ง ์ฐธ๊ณ (v2, ์ต์ ) 

์ต๊ทผ ๋๊ธ ์์ ฏ ์คํ์ผ๋ง 
The Recent Comments ์์ ฏ์ ์ฌ์ดํธ ์ ์ฒด ๋๋ ํน์ ํ์ด์ง์ ๋ํ ์ต์ ๋๊ธ ๋ชฉ๋ก์ ํ์ํฉ๋๋ค.
์ด ์์ ฏ์ ์ต์ํ์ ๊ธฐ๋ณธ ์คํ์ผ์ ํฌํจํ๋ฉฐ ์ฌ์ฉ์์ CSS๋ก ์ฝ๊ฒ ์ปค์คํฐ๋ง์ด์ฆํ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค.
์์ ฏ ๊ตฌ์กฐ
์ด ์์ ฏ์ ๋ค์๊ณผ ๊ฐ์ HTML ๊ตฌ์กฐ๋ก ๋ ๋๋ง๋ฉ๋๋ค:
<div class="fastcomments-recent-comments">
<div class="comment">
<div class="user-details">
<img src="..." alt="Avatar" class="avatar" />
<span class="user-name">Username</span>
<span class="reply-date-time">2 hours ago</span>
</div>
<div class="comment-text">Comment content...</div>
<div class="link-wrapper">
<a class="link" href="...">Page Title</a>
</div>
</div>
<!-- More comments... -->
</div>
Recent Comments ๊ธฐ๋ณธ CSS ์ฐธ์กฐ
์ด ์์ ฏ์ ๋ค์๊ณผ ๊ฐ์ ์ต์ํ์ ๊ธฐ๋ณธ ์คํ์ผ์ ํฌํจํฉ๋๋ค:

์ฌ์ฉ์ ์ ์ ์์
์๋ฐํ ํฌ๊ธฐ ๋ณ๊ฒฝ
.fastcomments-recent-comments .comment .user-details img {
width: 32px !important;
height: 32px !important;
border-radius: 50%;
}
๋๊ธ ํ ์คํธ ์๋ฆผ ๋ณ๊ฒฝ
๊ธฐ๋ณธ ์คํ์ผ์ CSS ํธ๋ฆญ์ ์ฌ์ฉํ์ฌ ๊ธด ๋๊ธ์ "..."๋ก ์๋ผ๋ ๋๋ค. ๋นํ์ฑํํ๋ ค๋ฉด:
.fastcomments-recent-comments .comment .comment-text:before,
.fastcomments-recent-comments .comment .comment-text:after {
display: none !important;
}
๋๊ธ์ ํ ๋๋ฆฌ ์ถ๊ฐ
.fastcomments-recent-comments .comment {
border-bottom: 1px solid #eee !important;
padding-bottom: 10px !important;
}
์์ ํ์ด์ง ์์ ฏ ์คํ์ผ๋ง 
์์ ํ์ด์ง ์์ ฏ์ ๋๊ธ์ด ๊ฐ์ฅ ๋ง์ ํ์ด์ง ๋ชฉ๋ก์ ํ์ํฉ๋๋ค.
์ด ์์ ฏ์ ์ต์ํ์ ๊ธฐ๋ณธ ์คํ์ผ๋ง์ ํฌํจํ๋ฉฐ ์ฌ์ฉ์๊ฐ ์ง์ CSS๋ก ์ฝ๊ฒ ์ปค์คํฐ๋ง์ด์ฆํ ์ ์๋๋ก ์ค๊ณ๋์ด ์์ต๋๋ค.
์์ ฏ ๊ตฌ์กฐ
์์ ฏ์ ๋ค์๊ณผ ๊ฐ์ HTML ๊ตฌ์กฐ๋ก ๋ ๋๋ง๋ฉ๋๋ค:
<div class="fastcomments-top-pages">
<div class="page">
<a class="title-link" href="...">Page Title (42)</a>
</div>
<!-- More pages... -->
</div>
์์ ํ์ด์ง ๊ธฐ๋ณธ CSS ์ฐธ๊ณ
์ด ์์ ฏ์ ๋ค์๊ณผ ๊ฐ์ ์ต์ํ์ ๊ธฐ๋ณธ ์คํ์ผ์ ํฌํจํฉ๋๋ค:

์ฌ์ฉ์ ์ง์ ์์
๋งํฌ์ ์คํ์ผ ์ถ๊ฐ
.fastcomments-top-pages .title-link {
color: #0066cc !important;
text-decoration: none !important;
font-size: 14px !important;
}
.fastcomments-top-pages .title-link:hover {
text-decoration: underline !important;
}
ํ์ด์ง ์ฌ์ด์ ํ ๋๋ฆฌ ์ถ๊ฐ
.fastcomments-top-pages .page {
border-bottom: 1px solid #eee !important;
padding: 10px 0 !important;
}
.fastcomments-top-pages .page:last-child {
border-bottom: none !important;
}
๋๊ธ ์ ์คํ์ผ ์ง์
.fastcomments-top-pages .title-link {
display: flex !important;
justify-content: space-between !important;
}