Skip to content

Commit 905756f

Browse files
add styling for comment system
1 parent 5767509 commit 905756f

1 file changed

Lines changed: 172 additions & 0 deletions

File tree

_sass/_comments.scss

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,176 @@
5454
display: none;
5555
}
5656

57+
/* Comment Section Styling - Matches site aesthetic */
58+
.comments-section {
59+
margin-top: 2rem;
60+
padding-top: 1.5rem;
61+
border-top: 1px solid black;
62+
}
63+
64+
.comments-section h3 {
65+
font-size: 1.5rem;
66+
font-weight: bold;
67+
margin-bottom: 1rem;
68+
color: $text-color;
69+
text-align: center;
70+
}
71+
72+
/* Comments List */
73+
.comments-list {
74+
margin-bottom: 2rem;
75+
}
76+
77+
.comment {
78+
background-color: #eee;
79+
border: 1px solid black;
80+
border-collapse: collapse;
81+
padding: 1rem;
82+
margin-bottom: 1rem;
83+
box-shadow: -0.2em 0.2em 0.05em #666;
84+
}
85+
86+
.comment-header {
87+
display: flex;
88+
justify-content: space-between;
89+
align-items: center;
90+
margin-bottom: 0.75rem;
91+
padding-bottom: 0.5rem;
92+
border-bottom: 1px solid black;
93+
}
94+
95+
.comment-header strong {
96+
color: $text-color;
97+
font-weight: bold;
98+
}
5799

100+
.comment-date {
101+
color: $grey-color-dark;
102+
font-size: 0.9rem;
103+
font-style: italic;
104+
}
105+
106+
.comment-body {
107+
color: $text-color;
108+
line-height: $base-line-height;
109+
}
110+
111+
.comment-body p {
112+
margin-bottom: 0.5rem;
113+
}
114+
115+
.comment-body p:last-child {
116+
margin-bottom: 0;
117+
}
118+
119+
/* Comment Form */
120+
.comment-form {
121+
background-color: #ddd;
122+
border: 1px solid black;
123+
border-collapse: collapse;
124+
padding: 1.5rem;
125+
margin-top: 1.5rem;
126+
box-shadow: -0.2em 0.2em 0.05em #666;
127+
}
128+
129+
.comment-form h4 {
130+
font-size: 1.25rem;
131+
font-weight: bold;
132+
margin-bottom: 1rem;
133+
color: $text-color;
134+
text-align: center;
135+
}
136+
137+
.form-group {
138+
margin-bottom: 1rem;
139+
}
140+
141+
.form-group label {
142+
display: block;
143+
font-weight: bold;
144+
margin-bottom: 0.25rem;
145+
color: $text-color;
146+
}
147+
148+
.form-group input,
149+
.form-group textarea {
150+
width: 100%;
151+
padding: 0.5rem;
152+
border: 1px solid black;
153+
background-color: #fff;
154+
font-family: $base-font-family;
155+
font-size: $base-font-size;
156+
box-sizing: border-box;
157+
}
158+
159+
.form-group input:focus,
160+
.form-group textarea:focus {
161+
outline: 2px solid $brand-color;
162+
background-color: #f9f9f9;
163+
}
164+
165+
.comment-form button {
166+
background-color: $brand-color;
167+
color: white;
168+
border: 1px solid black;
169+
padding: 0.75rem 1.5rem;
170+
font-size: $base-font-size;
171+
font-weight: bold;
172+
cursor: pointer;
173+
box-shadow: -0.2em 0.2em 0.05em #666;
174+
}
175+
176+
.comment-form button:hover {
177+
background-color: darken($brand-color, 10%);
178+
}
179+
180+
.comment-form button:active {
181+
box-shadow: -0.1em 0.1em 0.02em #666;
182+
transform: translate(-0.1em, 0.1em);
183+
}
184+
185+
.form-note {
186+
margin-top: 1rem;
187+
font-size: $small-font-size;
188+
color: $grey-color-dark;
189+
font-style: italic;
190+
text-align: center;
191+
}
192+
193+
/* No Comments Message */
194+
.comments-section > p {
195+
color: $grey-color-dark;
196+
font-style: italic;
197+
text-align: center;
198+
padding: 1.5rem;
199+
background-color: #eee;
200+
border: 1px solid black;
201+
margin-bottom: 1.5rem;
202+
}
203+
204+
/* Responsive Design */
205+
@include media-query($on-palm) {
206+
.comments-section {
207+
margin-top: 1.5rem;
208+
padding-top: 1rem;
209+
}
210+
211+
.comment {
212+
padding: 0.75rem;
213+
}
214+
215+
.comment-form {
216+
padding: 1rem;
217+
}
218+
219+
.comment-header {
220+
flex-direction: column;
221+
align-items: flex-start;
222+
gap: 0.25rem;
223+
}
224+
225+
.form-group input,
226+
.form-group textarea {
227+
padding: 0.4rem;
228+
}
229+
}

0 commit comments

Comments
 (0)