99 color : white;
1010}
1111
12+ /* ====================================================== */
13+ /* 네비게이션바 관련 CSS */
14+ /* ====================================================== */
15+
1216.sidebar {
1317 background-color : # 222 ;
1418 width : 200px ;
@@ -44,6 +48,10 @@ body {
4448 background : var (--main-velog-color );
4549}
4650
51+ /* ====================================================== */
52+ /* 메인과 메인섹션 & Block 관련 CSS */
53+ /* ====================================================== */
54+
4755.main-content {
4856 transition : margin-left 0.3s ease;
4957}
@@ -119,7 +127,7 @@ nav ul li:last-child a {
119127 color : var (--main-velog-color );
120128}
121129
122- .stats-section-block-detail div {
130+ .stats-section-block-detail > div {
123131 display : flex;
124132 flex-direction : row;
125133 font-size : 0.85rem ;
@@ -163,6 +171,10 @@ nav ul li:last-child a {
163171 color : var (--main-velog-color );
164172}
165173
174+ /* ====================================================== */
175+ /* 동적으로 랜더링되는 post list 관련 CSS */
176+ /* ====================================================== */
177+
166178# posts-list {
167179 width : 100% ;
168180}
@@ -178,6 +190,30 @@ nav ul li:last-child a {
178190 border-radius : 15px ;
179191}
180192
193+ .posts-list-graph {
194+ padding : 10px ;
195+ cursor : pointer;
196+ font-size : 0.8rem ;
197+ font-weight : bolder;
198+ color : var (--main-velog-color );
199+ }
200+
201+ .posts-list-graph : hover {
202+ background-color : # 444 ;
203+ }
204+
205+ .posts-list-graph ::after {
206+ content : "그래프 ▼" ;
207+ }
208+
209+ .graph-active ::after {
210+ content : "그래프 ▲" ;
211+ padding : 6px ;
212+ border-radius : 15px ;
213+ background-color : var (--main-velog-color );
214+ color : white;
215+ }
216+
181217.posts-list-today-veiw {
182218 display : flex;
183219 align-items : center;
@@ -188,6 +224,68 @@ nav ul li:last-child a {
188224 margin-right : 5px ;
189225}
190226
227+ /* ====================================================== */
228+ /* 동적으로 랜더링되는 차트 관련 CSS */
229+ /* ====================================================== */
230+ .post-graph-div-date {
231+ display : flex;
232+ align-items : center;
233+ flex-direction : row;
234+ justify-content : center;
235+ }
236+
237+ /* 모든 버튼과 링크에 대한 스타일링 */
238+ .post-graph-div-btn {
239+ background-color : var (--main-velog-color );
240+ color : white;
241+ padding : 7px ;
242+ text-decoration : none;
243+ border : none;
244+ border-radius : 4px ;
245+ cursor : pointer;
246+ }
247+
248+ /* 버튼과 링크에 대한 호버 효과 */
249+ .post-graph-div-btn : hover {
250+ background-color : # 666 ;
251+ color : var (--main-velog-color );
252+ transition : background-color 0.3s , color 0.3s ;
253+ }
254+
255+
256+ /* 날짜 선택기 스타일링 */
257+ .post-graph-div-date input [type = "date" ] {
258+ background-color : # 333 ;
259+ color : # ccc ;
260+ border : 1px solid # 444 ;
261+ padding : 5px ;
262+ border-radius : 4px ;
263+ margin : 5px ;
264+ font-size : 0.8rem ;
265+ }
266+
267+ /* 입력 필드에 대한 호버 및 포커스 효과 */
268+ .post-graph-div-date input [type = "date" ]: hover ,
269+ .post-graph-div-date input [type = "date" ]: focus {
270+ border-color : var (--main-velog-color );
271+ /* 호버 및 포커스시 테두리 색상 */
272+ outline : none;
273+ /* 기본 아웃라인 제거 */
274+ }
275+
276+ /* 레이블 스타일링 */
277+ .post-graph-div-date label {
278+ font-size : 0.8rem ;
279+ color : # ccc ;
280+ margin-bottom : 5px ;
281+ }
282+
283+
284+ /* ====================================================== */
285+ /* 그 외 & footer 관련 CSS */
286+ /* ====================================================== */
287+
288+
191289hr {
192290 border : 1px solid # 444 ;
193291}
@@ -200,23 +298,34 @@ hr {
200298}
201299
202300
203-
204- /* ==================================================== */
301+ /* ====================================================== */
205302/* MOBILE */
206- /* ==================================================== */
303+ /* ====================================================== */
207304
208305@media only screen and (max-width : 600px ) {
209306
210307 /* 화면 너비가 600px 이하일 때 적용할 스타일을 여기에 작성합니다. */
211308 .stats-section {
212309 flex-direction : column;
213310 }
311+
312+ .posts-list-graph ::after {
313+ content : "▼" ;
314+ }
315+
316+ .graph-active ::after {
317+ content : "▲" ;
318+ padding : 6px ;
319+ border-radius : 15px ;
320+ background-color : var (--main-velog-color );
321+ color : white;
322+ }
214323}
215324
216325@media only screen and (max-width : 1200px ) {
217326
218327 /* 화면 너비가 1200px 이하일 때 적용할 스타일을 여기에 작성합니다. */
219328 # posts-list li a {
220- max-width : 740 px ;
329+ max-width : 650 px ;
221330 }
222331}
0 commit comments