Skip to content

Commit 2e95bd2

Browse files
author
yangxg
committed
Step7: publish post using django admin
- improve custom.css
1 parent 5a576fc commit 2e95bd2

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

blog/static/blog/css/custom.css

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ figure {
200200
padding-bottom: 4em;
201201
}
202202

203-
.post {
203+
.post, .comment-area {
204204
background: #fff;
205205
padding: 30px 30px 0;
206206
}
@@ -647,7 +647,7 @@ figure {
647647
* 10.0 - Contact Form
648648
*/
649649

650-
.contact-form input {
650+
.contact-form input, .comment-form input {
651651
border: 1px solid #aaa;
652652
margin-bottom: 15px;
653653
width: 100%;
@@ -657,7 +657,7 @@ figure {
657657
transition: 0.4s border-color linear;
658658
}
659659

660-
.contact-form textarea {
660+
.contact-form textarea, .comment-form textarea {
661661
border: 1px solid #aaa;
662662
margin-bottom: 15px;
663663
width: 100%;
@@ -668,8 +668,8 @@ figure {
668668
transition: 0.4s border-color linear;
669669
}
670670

671-
.contact-form input:focus,
672-
.contact-form textarea:focus {
671+
.contact-form input:focus, .comment-form input:focus,
672+
.contact-form textarea:focus, .comment-form textarea:focus {
673673
border-color: #666;
674674
}
675675

@@ -798,4 +798,31 @@ figure {
798798
.overlay ul li {
799799
min-height: 34px;
800800
}
801-
}
801+
}
802+
803+
/* Comment list */
804+
.comment-list {
805+
margin-top: 30px;
806+
font-size: 16px;
807+
}
808+
809+
.comment-item {
810+
border-bottom: 1px #ccc solid;
811+
margin-bottom: 20px;
812+
padding-bottom: 20px;
813+
}
814+
815+
.comment-item .name,
816+
.comment-item .date {
817+
color: #444;
818+
font-size: 14px;
819+
}
820+
821+
.comment-item .name:after {
822+
content: '·';
823+
}
824+
825+
.comment-item .text {
826+
padding-top: 5px;
827+
}
828+

0 commit comments

Comments
 (0)