tag icons

This commit is contained in:
mappu 2014-05-10 13:54:10 +12:00
parent bf7b18fd1f
commit d440ccc1b3
2 changed files with 13 additions and 1 deletions

View File

@ -351,7 +351,7 @@ function buildall() {
:: ::
<?php } ?> <?php } ?>
<?php foreach($pr->tags as $tag) { ?> <?php foreach($pr->tags as $tag) { ?>
<span class="tag" data-tag="<?=hesc($tag)?>"><?=hesc($tag)?></span> <a class="tag tag-link" data-tag="<?=hesc($tag)?>"><?=hesc($tag)?></a>
<?php } ?> <?php } ?>
</small> </small>
<?php } ?> <?php } ?>

View File

@ -62,6 +62,18 @@ html, body {
/* */ /* */
.tag::before {
content:"";
display:inline-block;
width:7px;
height:7px;
margin-right:2px;
background:transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAZUlEQVQI12P4//8/Awyrqqp6KSkp/QdhFRWV7cgS+kDBN0B8RVlZuRikACahB+T8ger6BMTXwJJAiTwg4xvMOCj+ART3ZwCa3YYm8QcopgsyEWasDVT3W5AVMHcgO6gViNORXQ8A84NToxbSsJcAAAAASUVORK5CYII=') no-repeat 0 0;
}
.projtable { .projtable {
border-collapse: collapse; border-collapse: collapse;
width:100%; width:100%;