Merge pull request #3966 from rabuzarus/20171122_-_port_tagcloud

A tag cloud widget for the profile page
This commit is contained in:
Hypolite Petovan 2017-11-26 11:16:14 -05:00 committed by GitHub
commit 3fbf2e3bcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 242 additions and 2 deletions

View file

@ -522,3 +522,51 @@ 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;
}
.tags > a:hover {
text-decoration: underline;
}
.tag-cloud {
word-wrap: break-word;
}

View file

@ -0,0 +1,13 @@
<div class="tagblock widget">
<h3>{{$title}}</h3>
<div class="tag-cloud">
{{foreach $tags as $tag}}
<span class="tags">
<span class="tag{{$tag.level}}">#</span><a href="{{$tag.url}}" class="tag{{$tag.level}}">{{$tag.name}}</a>
</span>
{{/foreach}}
</div>
<div class="tagblock-widget-end clear"></div>
</div>

View file

@ -1238,6 +1238,11 @@ aside #group-sidebar li .group-edit-tool:first-child {
width: 75px;
border-radius: 4px;
}
/* Tag cloud widget */
.tagblock.widget > .tag-cloud {
text-align: center;
}
/* Section */
section ul.tabs {
display: none !important;