소스 검색

Modified formatting of recent blog posts

pull/24/head
Teknikode 5 년 전
부모
커밋
2f8db913de
2개의 변경된 파일15개의 추가작업 그리고 6개의 파일을 삭제
  1. 3
    3
      home/main.php
  2. 12
    3
      templates/default/css/common.css

+ 3
- 3
home/main.php 파일 보기

@@ -18,7 +18,7 @@
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Recent Blog Posts</h3>
<h3 class="panel-title text-center">Recent Blog Posts</h3>
</div>
<div class="panel-body">
<?php
@@ -61,8 +61,8 @@
<div class="row">
<div class="col-sm-12">
<div class="blog-post">
<h2 class="blog-post-title text-left"><a href="<?php echo get_page_url("blog", $CONF); ?>/<?php echo $author->username; ?>/<?php echo $post_id; ?>" id="title_<?php echo $post_id; ?>"><?php echo $title; ?></a></h2>
<p class="blog-post-meta text-center text-muted">
<h2 class="blog-post-title-sm text-left"><a href="<?php echo get_page_url("blog", $CONF); ?>/<?php echo $author->username; ?>/<?php echo $post_id; ?>" id="title_<?php echo $post_id; ?>"><?php echo $title; ?></a></h2>
<p class="blog-post-meta text-left text-muted">
Posted on <?php echo date("F d, Y",strtotime($date)); ?> by <a href="<?php echo get_page_url("home", $CONF); ?>/<?php echo $author->username; ?>"><?php echo $author->username; ?></a><?php echo $reply_msg; ?>
</p>
</div>

+ 12
- 3
templates/default/css/common.css 파일 보기

@@ -667,8 +667,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22;}
.blog-main {
font-size: 18px;
line-height: 1.5;
}
}
/*
* Blog posts
*/
@@ -676,16 +675,26 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22;}
.blog-post {
margin-bottom: 60px;
}
.blog-post-sm {
margin-bottom: 60px;
}
.blog-post-title {
margin-bottom: 5px;
font-size: 40px;
}
.blog-post-title-sm {
margin-bottom: 5px;
font-size: 25px;
}
/*.blog-post-title a {
color: rgb(51, 51, 51);
}*/
.blog-post-meta {
margin-bottom: 20px;
}
.blog-post-meta-sm {
margin-bottom: 20px;
}
/*
* Podcast name and description
@@ -808,4 +817,4 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22;}
overflow:hidden;
clip:rect(0,900px,0,0);
animation:noise-anim-2 3s infinite linear alternate-reverse;
}
}

Loading…
취소
저장