Change tag style

This commit is contained in:
Knah Tsaeb 2016-09-14 11:13:49 +02:00
parent e68e261882
commit 645557480c
4 changed files with 82 additions and 48 deletions

View file

@ -90,8 +90,8 @@ <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirecto
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span> onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
<br> <br>
{if="$value.tags"} {if="$value.tags"}
<div class="linktaglist"> <div class="tags">
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop} {loop="value.taglist"}<a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a> {/loop}
</div> </div>
{/if} {/if}
</div> </div>

View file

@ -621,33 +621,51 @@ a, .linkdescription a {
text-decoration: none; text-decoration: none;
} }
.linktaglist { .tags a {
line-height: 200%; float: left;
padding-top: 0.3em; background: #777;
} color: #fff;
.linktag {
background: linear-gradient(#F2F2F2,#ffffff);
background-color: #ffffff;
background-image: url(../../images/tag_blue.png);
background-position: 3px center;
background-repeat: no-repeat;
border-radius: 3px 3px 3px 3px;
box-shadow: 0 0 2px rgba(0,0,0,0.5);
cursor: pointer;
font-size: 9pt;
height: 20px;
padding: 3px 3px 3px 20px;
}
.linktag:hover {
border-color: #555573;
color: #000;
}
.linktag a {
color: #777;
text-decoration: none; text-decoration: none;
margin: 0 0 10px 18px;
padding: 2px 10px 1px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
position: relative;
transition: all .25s linear;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
white-space: nowrap;
line-height: 21px;
}
.tags a:before {
content: "";
border-style: solid;
border-color: transparent #777 transparent transparent;
border-width: 12px 13px 12px 0;
position: absolute;
left: -13px;
top: 0;
transition: all .25s linear;
}
.tags a:after {
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 50% 50% 50% 50%;
box-shadow: 0 1px 1px #737373 inset;
content: "";
height: 5px;
left: -1px;
position: absolute;
top: 10px;
width: 5px;
}
.tags a:hover {
background-color: #333;
color: #a2dd42;
}
.tags a:hover:before {
border-color: transparent #333 transparent transparent;
} }
.linkshort a { .linkshort a {

View file

@ -633,36 +633,52 @@ a, .linkdescription a {
color: #3465A4; color: #3465A4;
text-decoration: none; text-decoration: none;
} }
.tags a {
.linktaglist { float: left;
line-height: 200%; background: #777;
padding-top: 0.3em; color: #fff;
}
.linktag {
background: linear-gradient(#F2F2F2,#ffffff);
background-color: #ffffff;
background-image: url(../../images/tag_blue.png);
background-position: 3px center;
background-repeat: no-repeat;
border-radius: 3px 3px 3px 3px;
box-shadow: 0 0 2px rgba(0,0,0,0.5);
cursor: pointer;
font-size: 9pt;
height: 20px;
padding: 3px 3px 3px 20px;
}
.linktag:hover {
border-color: #555573;
color: #000;
}
.linktag a {
color: #777;
text-decoration: none; text-decoration: none;
margin: 0 0 10px 18px;
padding: 2px 10px 1px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
position: relative;
transition: all .25s linear;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
white-space: nowrap;
line-height: 21px;
} }
.tags a:before {
content: "";
border-style: solid;
border-color: transparent #777 transparent transparent;
border-width: 12px 13px 12px 0;
position: absolute;
left: -13px;
top: 0;
transition: all .25s linear;
}
.tags a:after {
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 50% 50% 50% 50%;
box-shadow: 0 1px 1px #737373 inset;
content: "";
height: 5px;
left: -1px;
position: absolute;
top: 10px;
width: 5px;
}
.tags a:hover {
background-color: #333;
color: #a2dd42;
}
.tags a:hover:before {
border-color: transparent #333 transparent transparent;
}
.linkshort a { .linkshort a {
color: #393964; color: #393964;
text-decoration: none; text-decoration: none;

View file

@ -90,8 +90,8 @@ <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirecto
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span> onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
<br> <br>
{if="$value.tags"} {if="$value.tags"}
<div class="linktaglist"> <div class="tags">
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop} {loop="value.taglist"}<a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a> {/loop}
</div> </div>
{/if} {/if}
</div> </div>