visually distinguish the special 'all' tag
This commit is contained in:
@@ -65,8 +65,9 @@ const PaperList = props => {
|
|||||||
const Tag = props => {
|
const Tag = props => {
|
||||||
const t = props.tag;
|
const t = props.tag;
|
||||||
const turl = "/?rank=tags&tags=" + t.name;
|
const turl = "/?rank=tags&tags=" + t.name;
|
||||||
|
const tag_class = 'rel_utag' + (t.name === 'all' ? ' rel_utag_all' : '');
|
||||||
return (
|
return (
|
||||||
<div class='rel_utag'>
|
<div class={tag_class}>
|
||||||
<a href={turl}>
|
<a href={turl}>
|
||||||
{t.n} {t.name}
|
{t.n} {t.name}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ body {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.rel_utag_all { /* distinguishes the special 'all' tag from others */
|
||||||
|
background-color: #909;
|
||||||
|
}
|
||||||
.rel_utag_add { /* adds a paper to a tag */
|
.rel_utag_add { /* adds a paper to a tag */
|
||||||
background-color: #55f;
|
background-color: #55f;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
|
|||||||
Reference in New Issue
Block a user