port tag cloud widget from hubzilla
This commit is contained in:
parent
29a1c067ee
commit
d7d653aab6
7 changed files with 188 additions and 2 deletions
|
@ -522,3 +522,49 @@ td.pendingnote > p > span {
|
|||
.invalid-src:after,
|
||||
.invalid-href:after { content: '⚠️'}
|
||||
img.invalid-src:after { vertical-align: top;}
|
||||
|
||||
/* Tag cloud */
|
||||
.tag1, .tag1:hover {
|
||||
font-size: 0.9em ;
|
||||
color: DarkGray;
|
||||
}
|
||||
.tag2, .tag2:hover {
|
||||
font-size: 1.0em;
|
||||
color: LawnGreen;
|
||||
}
|
||||
.tag3, .tag3:hover {
|
||||
font-size: 1.1em;
|
||||
color: DarkOrange;
|
||||
}
|
||||
.tag4, .tag4:hover {
|
||||
font-size: 1.2em;
|
||||
color: Red;
|
||||
}
|
||||
.tag5, .tag5:hover {
|
||||
font-size: 1.3em;
|
||||
color: Gold;
|
||||
}
|
||||
.tag6, .tag6:hover {
|
||||
font-size: 1.4em;
|
||||
color: Teal;
|
||||
}
|
||||
.tag7, .tag7:hover {
|
||||
font-size: 1.5em;
|
||||
color: DarkMagenta;
|
||||
}
|
||||
.tag8, .tag8:hover {
|
||||
font-size: 1.6em;
|
||||
color: DarkGoldenRod;
|
||||
}
|
||||
.tag9, .tag9:hover {
|
||||
font-size: 1.7em;
|
||||
color: DarkBlue;
|
||||
}
|
||||
.tag10 .tag10:hover {
|
||||
font-size: 1.8em;
|
||||
color: DeepPink;
|
||||
}
|
||||
.tag1:hover, .tag2:hover, .tag3:hover, .tag4:hover, .tag5:hover,
|
||||
.tag6:hover, .tag7:hover, .tag8:hover, .tag9:hover, .tag10:hover {
|
||||
text-decoration: underline;
|
||||
}
|
11
view/templates/tagblock_widget.tpl
Normal file
11
view/templates/tagblock_widget.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
<div class="tagblock widget">
|
||||
<h3>{{$title}}</h3>
|
||||
|
||||
<div class="tags">
|
||||
{{foreach $tags as $tag}}
|
||||
<span class="tag{{$tag.level}}">#</span>
|
||||
<a href="search?f=&tag={{$tag.url}}" class="tag{{$tag.level}}">{{$tag.name}}</a>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
|
@ -1238,6 +1238,11 @@ aside #group-sidebar li .group-edit-tool:first-child {
|
|||
width: 75px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Tag cloud widget */
|
||||
.tagblock.widget > .tags {
|
||||
text-align: center;
|
||||
}
|
||||
/* Section */
|
||||
section ul.tabs {
|
||||
display: none !important;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue