Browse Source

Update styles

pull/255/head
Danang Probo Sayekti 10 years ago
parent
commit
0a2a375953
8 changed files with 45 additions and 13 deletions
  1. +4
    -4
      system/htmly.php
  2. +1
    -0
      themes/blog/main.html.php
  3. +14
    -3
      themes/clean/css/style.css
  4. +1
    -0
      themes/clean/main.html.php
  5. +1
    -0
      themes/default/css/style.css
  6. +3
    -2
      themes/default/main.html.php
  7. +18
    -2
      themes/logs/css/style.css
  8. +3
    -2
      themes/logs/main.html.php

+ 4
- 4
system/htmly.php View File

@ -28,7 +28,7 @@ get('/index', function () {
} else { } else {
$tagline = ''; $tagline = '';
} }
render('static', array( render('static', array(
'title' => blog_title() . $tagline, 'title' => blog_title() . $tagline,
'description' => blog_description(), 'description' => blog_description(),
@ -1564,7 +1564,7 @@ get('/tag/:tag', function ($tag) {
$posts = get_tag($tag, $page, $perpage, false); $posts = get_tag($tag, $page, $perpage, false);
$total = get_tagcount($tag, 'basename'); $total = get_tagcount($tag, 'basename');
$ttag = new stdClass; $ttag = new stdClass;
$ttag->title = tag_i18n($tag); $ttag->title = tag_i18n($tag);
@ -1616,7 +1616,7 @@ get('/archive/:req', function ($req) {
} else { } else {
$timestamp = $req; $timestamp = $req;
} }
$tarchive = new stdClass; $tarchive = new stdClass;
$tarchive->title = $timestamp; $tarchive->title = $timestamp;
@ -1651,7 +1651,7 @@ get('/search/:keyword', function ($keyword) {
$perpage = config('search.perpage'); $perpage = config('search.perpage');
$posts = get_keyword($keyword, $page, $perpage); $posts = get_keyword($keyword, $page, $perpage);
$tsearch = new stdClass; $tsearch = new stdClass;
$tsearch->title = $keyword; $tsearch->title = $keyword;


+ 1
- 0
themes/blog/main.html.php View File

@ -93,6 +93,7 @@
<?php if (!empty($pagination['prev'])): ?> <?php if (!empty($pagination['prev'])): ?>
<span class="newer pull-left"><a class="btn btn-cta-secondary" href="?page=<?php echo $page - 1 ?>" rel="prev">Newer</a></span> <span class="newer pull-left"><a class="btn btn-cta-secondary" href="?page=<?php echo $page - 1 ?>" rel="prev">Newer</a></span>
<?php endif; ?> <?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?> <?php if (!empty($pagination['next'])): ?>
<span class="older pull-right"><a class="btn btn-cta-secondary" href="?page=<?php echo $page + 1 ?>" rel="next">Older</a></span> <span class="older pull-right"><a class="btn btn-cta-secondary" href="?page=<?php echo $page + 1 ?>" rel="next">Older</a></span>
<?php endif; ?> <?php endif; ?>


+ 14
- 3
themes/clean/css/style.css View File

@ -161,6 +161,10 @@ h6 {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
} }
#content ul.nav, #content ul.nav li {
margin-bottom:0;
}
/*---------------------------- /*----------------------------
Content & Posts Content & Posts
-----------------------------*/ -----------------------------*/
@ -463,8 +467,12 @@ aside .archive, aside .tagcloud, aside .recent {
margin-left: 10px; margin-left: 10px;
} }
aside .archive ul li ul, aside .tagcloud ul li, aside .recent ul li {
margin-left: 30px;
aside .tagcloud ul li, aside .recent ul li {
margin-left: 15px;
}
aside .archive ul li ul {
margin-left: 18px;
} }
aside .menu ul li > a:hover, aside .menu ul li.active > a { aside .menu ul li > a:hover, aside .menu ul li.active > a {
@ -556,6 +564,7 @@ aside .copyright p {
width: 100%; width: 100%;
float: left; float: left;
padding: 30px 0 30px 0; padding: 30px 0 30px 0;
text-align:center;
} }
.pager .pagination-arrow { .pager .pagination-arrow {
@ -572,6 +581,7 @@ aside .copyright p {
.pager .pagination-arrow.newer { .pager .pagination-arrow.newer {
padding-left: 20px; padding-left: 20px;
float:left;
} }
.pager .pagination-arrow.older { .pager .pagination-arrow.older {
@ -936,6 +946,7 @@ ul.archivegroup {
display: none; display: none;
} }
.archivegroup li.expanded, .archivegroup li.collapsed {
.archivegroup li.expanded, .archivegroup li.collapsed, .archivegroup li.expanded li, .archivegroup li.collapsed li {
list-style: none; list-style: none;
background:none;
} }

+ 1
- 0
themes/clean/main.html.php View File

@ -73,6 +73,7 @@
<?php if (!empty($pagination['prev'])): ?> <?php if (!empty($pagination['prev'])): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev">Newer</a></span> <span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev">Newer</a></span>
<?php endif; ?> <?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum']; ?></span>
<?php if (!empty($pagination['next'])): ?> <?php if (!empty($pagination['next'])): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next">Older</a></span> <span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next">Older</a></span>
<?php endif; ?> <?php endif; ?>


+ 1
- 0
themes/default/css/style.css View File

@ -739,6 +739,7 @@ h1.title-post a:hover, h2.title-index a:hover {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
text-align:center;
} }
.pager a { .pager a {


+ 3
- 2
themes/default/main.html.php View File

@ -71,10 +71,11 @@
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?> <?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<div class="pager"> <div class="pager">
<?php if (!empty($pagination['prev'])): ?> <?php if (!empty($pagination['prev'])): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev">Newer</a></span>
<span class="newer"><a href="?page=<?php echo $page - 1 ?>" rel="prev">Newer</a></span>
<?php endif; ?> <?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum']; ?></span>
<?php if (!empty($pagination['next'])): ?> <?php if (!empty($pagination['next'])): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next">Older</a></span>
<span class="older"><a href="?page=<?php echo $page + 1 ?>" rel="next">Older</a></span>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>


+ 18
- 2
themes/logs/css/style.css View File

@ -576,13 +576,29 @@ ul li, ol li {
.pager, .postnav { .pager, .postnav {
font-size: 15px; font-size: 15px;
position:relative;
} }
.pager .newer, .postnav .newer {
.pager {
text-align:center;
margin-bottom: 1em;
}
.pager .newer {
position:absolute;
left: 0;
}
.postnav .newer {
float: left; float: left;
} }
.pager .older, .postnav .older {
.pager .older {
position:absolute;
right:0;
}
.postnav .older {
float: right; float: right;
} }


+ 3
- 2
themes/logs/main.html.php View File

@ -71,10 +71,11 @@
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?> <?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<div class="pager"> <div class="pager">
<?php if (!empty($pagination['prev'])): ?> <?php if (!empty($pagination['prev'])): ?>
<span class="newer">&laquo; <a href="?page=<?php echo $page - 1 ?>" rel="prev">Newer</a></span>
<span class="newer" ><a href="?page=<?php echo $page - 1 ?>" rel="prev">&laquo; Newer</a></span>
<?php endif; ?> <?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?> <?php if (!empty($pagination['next'])): ?>
<span class="older"><a href="?page=<?php echo $page + 1 ?>" rel="next">Older</a> &raquo;</span>
<span class="older"><a href="?page=<?php echo $page + 1 ?>" rel="next">Older &raquo;</a></span>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>


Loading…
Cancel
Save